<!--
  Thank you for suggesting an idea to make Teaclave better.
  Please fill in as much of the template below as you're able.
-->

### Motivation & problem statement
The rpc used by Teaclave is not universal and does not support async.

<!--
  Provide a clear and concise description of what the problem is.
-->


### Proposed solution

<!--
  Provide a clear and concise description of what you want to happen.
-->
Replace current rpc with grpc (e.g. Tonic).

I noticed that there is an example based on tonic and tokio in rust-sgx-sdk.

https://github.com/apache/incubator-teaclave-sgx-sdk/tree/v2.0.0-preview/samplecode/rpc

Tonic supports  async/await and has a high performance.

To do mutual attestation, we can establish trusted gRPC channel through 
attested TLS.

Grpc based on tonic, rustls and tokio is easier to maintain, and has better 
compatibility and performance.


-- 
Reply to this email directly or view it on GitHub:
https://github.com/apache/incubator-teaclave/issues/668
You are receiving this because you are subscribed to this thread.

Message ID: <apache/incubator-teaclave/issues/6...@github.com>

Reply via email to