665ff5ad268ef0174e6ed28c4367820b5ae46e5f
The WASM binary doubles in size to 2MB after this change. This is still dwarfed by the size of the spend parameters (46MB), and transaction creation time decreases by 20% in exchange.
Zcon1 WASM demo
Dependencies
Building
$ ./build.sh
Running the backend
Web browsers currently cannot talk directly to gRPC servers, so it is necessary to run a
proxy as part of the backend. The envoy/ subdirectory contains a Dockerfile and config
file for an Envoy proxy that listens on localhost:8081 and will route requests to a
lightwalletd frontend listening on localhost:9067.
See the lightwalletd documentation
for details on how to set up a local lightwalletd testnet instance. Note that when
starting the frontend, you may need to use --bind-addr 0.0.0.0:9067 so that the Docker
container can access it.
To build and run the Envoy proxy:
$ docker build -t lightwalletd/envoy -f envoy/envoy.Dockerfile envoy
$ docker run -d -p 8081:8081 --network=host lightwalletd/envoy
Running the demo
$ ln -s "$HOME/.zcash-params" demo-www/params
$ cd demo-www
$ npm run start
Then open http://localhost:8080/ in your browser.
Description
Languages
Rust
98.2%
Shell
1.3%
Dockerfile
0.4%
Makefile
0.1%