Skip to content

Latest commit

 

History

History
62 lines (42 loc) · 1.26 KB

trusted-setup.md

File metadata and controls

62 lines (42 loc) · 1.26 KB

Trusted Setup

How to verify the correctness of execution?

Verify using MACI CLI

Clone the MACI repo and switch to version v0.7.1:

git clone https://github.com/appliedzkp/maci.git
cd maci/
git checkout v0.7.1

Follow instructions in README.md to install necessary dependencies.

Download zkSNARK parameters for 'medium' circuits into circuits/params/ directory and rebuild the keys:

cd circuits
./scripts/buildSnarksMedium.sh

Recompile the contracts:

cd ../contracts
npm run compileSol

Download the tally file and verify it:

cd ../cli
node build/index.js verify -t tally.json

Verify using clrfund scripts

Switch to contracts directory:

cd contracts/

Download zkSNARK parameters for 'medium' circuits to snark-params directory. Example:

ipfs get --output snark-params QmRzp3vkFPNHPpXiu7iKpPqVnZB97wq7gyih2mp6pa5bmD

Set the path to downloaded parameter files:

export NODE_CONFIG='{"snarkParamsPath": "../../../contracts/snark-params/"}'

Verify:

yarn ts-node scripts/verify.ts tally.json