A wasi-compatible isomorphic runtime.
The runtime itself a wasm module (host) that is loaded in an environment. The runtime loads a guest wasm module and executes it.
The runtime provides the guest with a set of APIs to interact with the host; the host injects WASI APIs in addition to the blockless APIs as as extensions to the guest.
npm install
wasm-pack build bls-runtime-wasm --target web --release
Note: Requires wasm-pack
cargo build -p rust-sdk --target wasm32-wasi --release
npm run dev
First run localstack locally:
docker run \
--rm -it \
-e EXTRA_CORS_ALLOWED_ORIGINS="http://localhost:8080" \
-p 4566:4566 \
-p 4510-4559:4510-4559 \
localstack/localstack
Run local IPFS node (with CORS):
docker run --rm -it --name ipfs-node -p 4001:4001 -p 5001:5001 --entrypoint sh ipfs/go-ipfs:latest
/usr/local/bin/start_ipfs config --json API.HTTPHeaders.Access-Control-Allow-Origin "[\"*\"]"
/usr/local/bin/start_ipfs daemon --migrate=true --agent-version-suffix=docker