Sample Project
https://github.com/Privacy-Cash/privacy-cash-evm-sdk/blob/main/example/Installation
Requires Node.js 20+. The SDK is written in TypeScript and includes type definitions.
Signing In
The SDK uses a wallet signature to derive your private encryption key and UTXO keypair. Ask the user to sign a fixed message:signature and address strings are passed directly to each SDK function. No separate initialization step is required.
Sending Transactions
deposit() requires a txSender callback that signs and submits the raw transaction:
Interacting with Privacy Cash
Once the above steps are done, you can check balance, make deposits and withdrawals.Supported Network
Privacy Cash on Base operates on Base Mainnet (chain ID 8453). There is no testnet deployment.Key Path
All functions accept akeyBasePath parameter pointing to the circuit zkey file (without extension):
.zkey file in the public/ folder:
