WebZjs Zcash Snap is a MetaMask Snap that brings Zcash functionality directly into the MetaMask browser extension. WebZjs is the first JavaScript SDK for Zcash, enabling seamless integration of Zcash privacy features for web users.
Snap uses a Rust library WebZjs compiled to WebAssembly (Wasm). It is meant to be used in conjunction with WebZjs web-wallet.
- Node.js
- Yarn
- MetaMask Browser Extension (MetaMask Flask for development purposes) Install MM Flask
For local development, you need to add http://localhost:8080
to the allowedOrigins
in snap.manifest.json
. The endowment:rpc
section should look like this:
"endowment:rpc": {
"allowedOrigins": ["https://webzjs.chainsafe.dev", "http://localhost:8080"]
}
- Install dependencies with
yarn install
- Build the project with
yarn build
- Host snap on localhost http://localhost:8080
yarn serve