Skip to content

utsavempiric20/zk-circom-project

Repository files navigation

Steps of Generate and Validate the proof

  • node generate_witness.js AadharCard.wasm input.json witness.wtns

  • snarkjs powersoftau new bn128 12 pot12_0000.ptau -v

  • snarkjs powersoftau contribute pot12_0000.ptau pot12_0001.ptau --name="First contribution" -v

  • snarkjs powersoftau prepare phase2 pot12_0001.ptau pot12_final.ptau -v

  • snarkjs groth16 setup AadharCard.r1cs pot12_final.ptau AadharCard_0000.zkey

  • snarkjs zkey contribute AadharCard_0000.zkey AadharCard_0001.zkey --name="1st Contributor Name" -v

  • snarkjs zkey export verificationkey AadharCard_0001.zkey verification_key.json

  • snarkjs groth16 prove AadharCard_0001.zkey witness.wtns proof.json public.json

  • snarkjs groth16 verify verification_key.json public.json proof.json

  • snarkjs zkey export solidityverifier AadharCard_0001.zkey verifier.sol

  • snarkjs generatecall

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published