A hardhat-circom template to generate zero-knowledge circuits, proofs, and solidity verifiers
npm i
npx hardhat circom
This will generate the out file with circuit intermediaries and geneate the MultiplierVerifier.sol contract
npx hardhat run scripts/deploy.ts --network mumbai
This script does 4 things
- Deploys the MultiplierVerifier.sol contract
- Generates a proof from circuit intermediaries with
generateProof()
- Generates calldata with
generateCallData()
- Calls
verifyProof()
on the verifier contract with calldata
With two commands you can compile a ZKP, generate a proof, deploy a verifier, and verify the proof 🎉
Pranshu Jha
@pranshuj73
This project is licensed under the MIT License - see the LICENSE.md file for details