Open skyl opened 2 years ago
Compile library to run on browser
Would open up a ton of possibilities for easy developer ergonomics if vanilla webapp in the browser could call lightwalletd.
Might be a long road ..
https://developer.mozilla.org/en-US/docs/WebAssembly/Rust_to_wasm https://github.com/rust-lang/socket2/issues/268 https://github.com/tokio-rs/tokio/issues/1597#issuecomment-1140428947 https://yieldcode.blog/post/native-rust-wasm/
other routes to zwl on web browsers - maybe grpc-web? https://github.com/grpc/grpc-web
more community context
Zephyr: https://forum.zcashcommunity.com/t/project-zephyr-update-march22/41118
"2 years of Lightwalletd Infra hosting & maintenance" https://forum.zcashcommunity.com/t/2-years-of-lightwalletd-infra-hosting-maintenance/38126
str4d demo for zcon1 - https://github.com/str4d/zcon1-demo-wasm
aditya wasm branch of zecwallet-lite: https://forum.zcashcommunity.com/t/a-lightweight-web-wallet-for-zcash/38882/2
Hah... that wasm branch has moved a very similar subset of the code I was hacking on in a local experiment.. Basically the lightwallet directory. Great find! Thanks.
What
Compile library to run on browser
Why
Would open up a ton of possibilities for easy developer ergonomics if vanilla webapp in the browser could call lightwalletd.
References
Might be a long road ..
https://developer.mozilla.org/en-US/docs/WebAssembly/Rust_to_wasm https://github.com/rust-lang/socket2/issues/268 https://github.com/tokio-rs/tokio/issues/1597#issuecomment-1140428947 https://yieldcode.blog/post/native-rust-wasm/
other routes to zwl on web browsers - maybe grpc-web? https://github.com/grpc/grpc-web
more community context
Zephyr: https://forum.zcashcommunity.com/t/project-zephyr-update-march22/41118
"2 years of Lightwalletd Infra hosting & maintenance" https://forum.zcashcommunity.com/t/2-years-of-lightwalletd-infra-hosting-maintenance/38126
str4d demo for zcon1 - https://github.com/str4d/zcon1-demo-wasm
aditya wasm branch of zecwallet-lite: https://forum.zcashcommunity.com/t/a-lightweight-web-wallet-for-zcash/38882/2