-
Installing the circom ecosystem
-
Write the circuit
-
Compile the circuit
circom product.circom --r1cs --wasm --sym --c
-
Go to product_js folder & Compute the witness
node generate_witness.js product.wasm input.json witness.wtns
-
Proving circuit with ZK
-
Generating .zkey & export verification key
-
Generate a Proof
snarkjs groth16 prove product_0001.zkey witness.wtns proof.json public.json
-
Verifying a Proof
snarkjs groth16 verify verification_key.json public.json proof.json
-
Verifying from a Smart Contract
snarkjs zkey export solidityverifier product_0001.zkey verifier.sol
-
Notifications
You must be signed in to change notification settings - Fork 0
anurag-iitk/zk-proof
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
Build and verify zero-knowledge proofs circuit using Circom
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published