Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kidneyweakx/zk-tornado
https://github.com/kidneyweakx/zk-tornado
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/kidneyweakx/zk-tornado
- Owner: kidneyweakx
- Created: 2023-01-17T02:06:14.000Z (almost 2 years ago)
- Default Branch: puzzle
- Last Pushed: 2023-07-17T07:48:00.000Z (over 1 year ago)
- Last Synced: 2024-10-14T06:36:16.372Z (3 months ago)
- Language: TypeScript
- Size: 133 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# ZK-Template
fork from `https://github.com/0xPARC/circom-starter`
A basic circom project using [Hardhat](https://github.com/nomiclabs/hardhat) and [hardhat-circom](https://github.com/projectsophon/hardhat-circom). This combines the multiple steps of the [Circom](https://github.com/iden3/circom) and [SnarkJS](https://github.com/iden3/snarkjs) workflow into your [Hardhat](https://hardhat.org) 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](https://github.com/projectsophon/hardhat-circom) 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)