opaque-sql icon indicating copy to clipboard operation
opaque-sql copied to clipboard

gRPC python files

Open eric-feng-2011 opened this issue 4 years ago • 0 comments

Python files for gRPC. Contains OpaqueClient and OpaqueRPCListener which are instrumental in gRPC and primary actors in steps 1, 2, 3, and 4 (really everything).

In gRPC, the workflow is as follows:

  1. RPCListener starts spark shell
  2. Client performs RA with the enclaves
  3. Client sends query to RPCListener
  4. RPCListener sends query to enclaves which executes it. The encrypted results (encrypted under enclave key) are saved in a file(s) on the RPCListener
  5. The client asks for post-verification
  6. The RPCListener performs post-verification and then re-encrypts the results under the SP key and then returns it
  7. The SP decrypts the encrypted values returned using its own key

This does NOT work alone. OpaqueClient for example uses several ServiceProvider functions that are only in another PR.

The pull requests should be done in the following order: Key-get -> gRPC reEncryption -> gRPC ServiceProvider -> gRPC Python Files

eric-feng-2011 avatar Apr 27 '21 02:04 eric-feng-2011