Skip to content

Latest commit

 

History

History
23 lines (13 loc) · 1.04 KB

README.md

File metadata and controls

23 lines (13 loc) · 1.04 KB

circom-starter

A basic circom project using Hardhat and hardhat-circom. This combines the multiple steps of the Circom and SnarkJS workflow into your Hardhat workflow.

By providing configuration containing your Phase 1 Powers of Tau and circuits, this plugin will:

How To Run

Workflow

  1. npm i to install dependencies

  2. npm run circom:dev to build deterministic development circuits.

    • To build a single circuit during development, you can use the --circuit CLI parameter. For example, if you make a change to hash.circom and you want to only rebuild that, you can run yarn circom:dev --circuit hash.
  3. npm test to test circuits and verifier contracts.

When all tests passed, you can run npm run circom:prod for production builds (using Date.now() as entropy).

Output Location

  1. circuits: ./api/circuits
  2. contracts: ./circom/contracts