virto-network / virto-sdk

Virto toolset to build simple to use decentralized applications
GNU General Public License v3.0
21 stars 5 forks source link

Smoldot backend #3

Open olanod opened 3 years ago

olanod commented 3 years ago

In order to fully realize the promise of decentralization, Sube should be usable as a simple client library that itself is a light blockchain node with no dependency on a specific remote node being available, Sube still needs to be light and compile to WASM to run in the browser, something more easily achievable with smoldot than Substrate since its built with modularity and browser friendliness in mind.

gilescope commented 2 years ago

Will try and give this a go on my fork... https://github.com/paritytech/smoldot/issues/2542

olanod commented 2 years ago

Awesome! that would be very helpful. Now that we'll be working on Fido and rely on Sube it's time to revisit the state of the library and give it the love it deserves, that could mean some breaking changes are possible but shouldn't be anything mayor. Feedback will be welcomed while shaping the stable API :)

gilescope commented 2 years ago

Well my suggestion from my fork is do less (maybe have two libraries - you can see the split I think is appropriate as I've just got the lower level library code left in the fork). Talking with Pierre about smoldot he said it's a fair amount of work to create a Platform and use smoldot directly. He suggests using substrate-connect from js. I'm thinking that maybe that can be abstracted away behind a rust lib that talks to js (and then if someone does want to put in all the effort to remove the hops they can do that later without breaking the API)...

gilescope commented 2 years ago

Fido: got to say being able to use a yubikey as a wallet sounds pretty cool and should certainly be an option. They are pretty ubiquitous.