Point Queries
LEADS enables uploading private data and executing point queries on this data. In D3.3 we explain the implemented method. Here, we show two examples of how private data can be safely uploaded in the platform to enable such querying. The first example receives as input a file and the second receives a database.
Example 1 (using file as input)
Encrypted Upload
ClientSide client = new ClientSide(Svalue, k,sk_fileName); CStore store = client.Setup(inputFileName, 3);
Privacy Preserving Point Querying
ClientSide client = new ClientSide(sk_fileName); String token = client.TSetGetTag(value); ServerSide server = new ServerSide(); HashMap<String, ArrayList<Etuple>> eResults = server.TSetRetrieve(store, token); HashMap<String, <String>> unResults = client.Decrypt_Answer(eResults);
Example 2 (using a Database as input)
Encrypted Upload
ClientSide client = new ClientSide(Svalue, k, sk_fileName); CStore store = client.Setup(conn,tableName,columnName);
Privacy Preserving Point Querying
ClientSide client = new ClientSide(sk_fileName); String token = client.TSetGetTag(value); ServerSide server = new ServerSide(); HashMap<String, ArrayList<Etuple>> eResults = server.TSetRetrieve(store, token); HashMap<String, <String>> unResults = client.Decrypt_Answer(eResults);