external/a-maci-evm
: aMACI circuitsexternal/vota-circuits/circuits/maci/power
: MACI circuits
start_compile_amaci
: compile amaci circuit into zkey and wasmstart_compile_maci
: compile maci circuit into zkey and wasm
js/amaci.test.js
: generate aMACI test datajs/maci.test.js
: generate MACI test data
- First, determine whether to compile aMACI or MACI (enter the corresponding circuit directory) and install the corresponding dependencies
npm i
- Determine the circuit scale to be compiled
- Modify the parameter settings of the corresponding circuit (2-1-1-5/4-2-2-25/...)
- If it's aMACI, execute start_compile_amaci script; if it's MACI, execute start_compile_maci script (important data generated here will be in input/logs.json)
./start_compile_maci.sh 2-1-1-5 ./start_compile_amaci.sh 2-1-1-5
- After execution is complete, test data needs to be generated. If it's aMACI, execute js/amaci.test.js; if it's MACI, execute js/maci.test.js
node js/amaci.test.js node js/maci.test.js