Once you are in circom
folder:
- Install Circom and SnarkJS
- Install the NPM dependencies with
yarn
- Run
yarn run:ceremony
to compile the circuit and run a fake trusted-setup for testing - Run
yarn start
to generate and verify Semaphore v3 and v4 proofs and compare them
The difference between version 3 and 4 is in this case mainly due to the different version of SnarkJS. Benchmarks were run on a Intel Core i7-1165G7, 16 GB RAM machine.
Generate proof | Verify proof | Constraints | Tree depth | |
---|---|---|---|---|
Semaphore v3 | 404ms |
14ms |
4582 |
16 |
Semaphore v4 | 382ms |
13ms |
4374 |
16 |