WASM Runtime
JeremyRubin opened this issue · 1 comments
JeremyRubin commented
Everyone knows that WASM is the future for sandboxing code to make it safe.
It is highly desirable that as much of this code run in WASM as possible, so that the attack surface is minimized. This is a security oriented project, after all.
This means you would need some (rust or C++) shim for the networking part since WASM has no system APIs.
See wasm-pack tool for compiling rust to wasm.
zhuowei commented
rust-web3 recently added Wasm support. It might just work(tm) if you cross compile the Rust to wasm, compile some C++ via Emscripten or a Wasi toolchain, and run it with a Web3 wallet in your browser (eg MetaMask).
Please send a PR if it works.