Zondax / hello-rustee

Apache License 2.0
0 stars 2 forks source link

Add a REE service that listen to client requests #7

Closed neithanmo closed 3 years ago

neithanmo commented 3 years ago

This service runs on the Host and the protocol being used should be transparent to the application, giving room for further improvements even changing the protocol must not affect the host application. It is possible at this stage of the development to use JSON-RPC over HTTP.

ghost commented 3 years ago

This is currently available to use and test under remotee-signer branch:

  1. REE/deps/host-common contains the interface definition for all "host services" (connections to the outside world), see REEService trait

  2. REE/deps/jsonrpc/zkms is the definition of the JSONRPC interface

  3. REE/deps/jsonrpc/host is the implementation of the JSONRPC interface and REEService

  4. REE/lib/host glues everything together:

    • starts the service found in host-jsonrpc crate
    • feeds the service & the handler (optee_handler module) to the host-app crate