Piratewallet Lightclient Library and CLI interface (with modifications to support Qortal cross-chain trades)
Go to file
2019-09-06 14:09:12 -07:00
demo-www Expose verified (and thus spendable) balance 2019-06-21 14:29:28 +02:00
envoy Pin envoy version to avoid deprecation errors 2019-08-29 11:54:19 -07:00
rust-lightclient Automatically load and save wallet 2019-09-06 14:09:12 -07:00
zcash-client-backend-wasm Expose verified (and thus spendable) balance 2019-06-21 14:29:28 +02:00
zcash-client-sdk-js Blossom consesus branchID 2019-08-30 15:01:24 -07:00
build.sh Simple demo displaying address of a fixed spending key 2019-06-21 13:39:13 +02:00
README.md ZcashClient.sendToAddress() 2019-06-21 14:29:01 +02:00

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.