zingolabs / zaino

Work in progress pure-rust lightwalletd replacement. Currently all methods offload to lwd.
4 stars 4 forks source link

Agree on final design spec of new remote functionality for "full node" wallets and block explorers #69

Open idky137 opened 1 week ago

idky137 commented 1 week ago

Several options have been discussed:

idky137 commented 1 week ago

A possible gRPC implementation:

This would allow any wallets or block explorers to have a simple interface to fetch data both locally and remotely and allow for more complex indices to be built when running code privately. But would also stop public Zaino servers that will replace lightwalletd from exposing potentially dangerous functionality.

arya2 commented 1 week ago

A simple wrapper for the ReadStateService seems best. Multiple encodings could be supported by tonic as long as there are From and Codec impls for them (though tonic doesn't yet support selecting a codec with the content-type header so it would need to use different endpoints or rust cfg flags).