Prerequisites
Before deploying Privacy Cash, ensure you have the following installed:- Solana CLI 2.1.18 or later
- Rust 1.79.0 or compatible version
- Anchor 0.31.1
- Node.js 16 or later
- npm or yarn
- Circom v2.2.2 - Installation guide
Deployment Environments
Privacy Cash supports deployment to multiple Solana networks:Devnet
Development and testing environment. Use this for:- Testing new features
- Integration testing
- Development workflows
ATZj4jZ4FFzkvAcvk27DW9GRkgSbFnHo49fKKPQXU7VS
Mainnet
Production environment for live applications. Program ID:9fhQBbumKEFuXtMBDw8AaQyAjCorLGJQiS3skWZdQyQD
The mainnet program is fully audited by Accretion, HashCloak, Zigtur and Kriko, and verified onchain with hash
c6f1e5336f2068dc1c1e1c64e92e3d8495b8df79f78011e2620af60aa43090c5.Deployment Workflow
The typical deployment process follows these steps:Build the Program
Compile the Solana program using Anchor with appropriate feature flags for your target environment.
Initialize Program State
Run initialization scripts to set up Merkle trees and configuration accounts.
Program Configuration
The program configuration is managed inanchor/Anchor.toml:
Keypair Management
Deployment requires two keypairs:- deploy-keypair.json: Pays for deployment transactions and initializes the program
- zkcash-keypair.json: The program’s keypair that determines its address
Next Steps
Deploy to Devnet
Learn how to deploy and test on devnet
Deploy to Mainnet
Production deployment guide
Verify Deployment
Verify your deployed program