Skip to content

Latest commit

 

History

History
18 lines (14 loc) · 890 Bytes

start_maci.md

File metadata and controls

18 lines (14 loc) · 890 Bytes

How to start maci

In this tutorial, we will use this maci circuit

Dwnload some requirements

  1. clone this repository with maci
git clone --recurse-submodules https://github.com/DoraFactory/snarkjs-bellman-adapter.git
  1. download the ptau file
    You can see all the ptau in this, we use powersOfTau28_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 dir ptau.

  2. 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.