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:
-
npm i
to install dependencies -
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 tohash.circom
and you want to only rebuild that, you can runyarn circom:dev --circuit hash
.
- To build a single circuit during development, you can use the
-
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).
- circuits: ./api/circuits
- contracts: ./circom/contracts