Skip to content

basic circom project using hardhat-circom (upgrade to circom2 is WIP)

Notifications You must be signed in to change notification settings

kidneyweakx/ZK-template

 
 

Repository files navigation

ZK-Template

fork from https://github.com/0xPARC/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:

  1. Compile the circuits
  2. Apply the final beacon
  3. Output your wasm and zkey files
  4. Generate and output a Verifier.sol

Document

See the source projects for full documentation and configuration

Install

npm install to install dependencies

Development builds

npm run circom:dev to build deterministic development circuits.

Further, for debugging purposes, you may wish to inspect the intermediate files. This is possible with the --debug flag which the circom:dev task enables by default. You'll find them (by default) in artifacts/circom/

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 npm run circom:dev --circuit hash.

Production builds

npm run circom:prod for production builds (using Date.now() as entropy)

About

basic circom project using hardhat-circom (upgrade to circom2 is WIP)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 82.4%
  • Circom 17.6%