@naivetester/poseidon-zk-circuits
v0.0.1-alpha.21
Published
A Circom circuits library for ZK Applications
Downloads
11
Readme
@p0x-labs/poseidon-zk-circuits
Poseidon ZK circuits
Usage
Install this package
yarn add @p0x-labs/poseidon-zk-circuits
Use in your own circuits
import "path/to/node_modules/@p0x-labs/poseidon-zk-circuits/group/group.circom"
Developement
Install
yarn
Compile circuits & generate resources including WASM & zKey & Solidity contract. The first time you run it will take a long time because it will download the default ptau file and save it to artifacts.
yarn compile
If there are updated resources before you push the code, it's better to publish the resources to Google cloud, after which the resources.json will be updated
yarn upload
Use your own zkey!!!
Be notified it's better to generate your own zkey & ptau files to set up the verifier contract!
Test
Every circom circuits should come with an unit tests, you can take the example.circom for example