Quick Start
1. Build the Program
cd program && cargo prove buildOr let it build automatically when running the script.
2. Execute (No Proof)
Test the logic without generating a proof:
cargo run --release -- --execute --ip 8.8.8.8 --exclude FR,USThis runs the ZK circuit locally and outputs the result without generating a cryptographic proof.
3. Generate a Proof (Local)
cargo run --release -- --prove --ip 8.8.8.8 --exclude FRLocal proving is slow (minutes to hours depending on hardware). For production, use the network.
4. Use the Prover Network
The Succinct Prover Network provides fast, distributed proof generation.
Setup:- Generate a key pair:
cast wallet new(or export from Metamask) - Get PROVE tokens on Ethereum Mainnet
- Deposit PROVE at Succinct Explorer
- Configure environment:
cp .env.example .envSP1_PROVER=network
NETWORK_PRIVATE_KEY=0x... # Your requester account private key
- Run:
cargo run --release -- --prove --ip 8.8.8.8 --exclude FR