In this tutorial, we will use this maci circuit
- clone this repository with maci
git clone --recurse-submodules https://github.com/DoraFactory/snarkjs-bellman-adapter.git
-
download the ptau file
You can see all the ptau in this, we usepowersOfTau28_hez_final_22.ptau
(Also, if your circuit is relatively large in scale, you can choose to use the other ptau file that supports larger circuits). We need to put the ptau file in dirptau
. -
generate proof
cd snarkjs-bellman-adapter && ./start_maci_bn128.sh qf-maci
You can find the xxx_hex.json
in dir circuit/qf-maci/build/final_proof
and circuit/qf-maci/build/final_verification_key
and you can use the proof data to verify.