zk-snark-example
v2.0.0
Published
this is an example of zk-snark
Downloads
2
Readme
zk-snark-example
This repositry contains snarkjs demo, where a simple circuit is provided and using snarkjs proving & verification keys are generated and later using both keys and the circuit proof of secret information is generated and verified with the help of snarkjs without revealing the secret information.
How to run demo
To run demo please follow following steps
1. Generate Keys
To generate prover & verification keys run following command
npm run keyGen
2. Prover
To generate proof you need to run prover using following command
npm run prover
3. Verifier
To verify proof you need to run verifier using following command
npm run verifier