Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WASM Runtime #1

Open
JeremyRubin opened this issue Apr 11, 2021 · 1 comment
Open

WASM Runtime #1

JeremyRubin opened this issue Apr 11, 2021 · 1 comment
Labels
enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed

Comments

@JeremyRubin
Copy link

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
Copy link
Owner

zhuowei commented Apr 11, 2021

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.

@zhuowei zhuowei added enhancement New feature or request help wanted Extra attention is needed good first issue Good for newcomers labels Apr 11, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants