Skip to content

Latest commit

 

History

History

circom

Semaphore icon. Semaphore V4 - Circuits

Usage

Once you are in circom folder:

  1. Install Circom and SnarkJS
  2. Install the NPM dependencies with yarn
  3. Run yarn run:ceremony to compile the circuit and run a fake trusted-setup for testing
  4. Run yarn start to generate and verify Semaphore v3 and v4 proofs and compare them

Benchmarks

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