A runnable ZK-SNARK demo using snarkjs. It generates proving and verification keys for a simple circuit, produces a proof of secret information, and verifies that proof without revealing the secret.
Run the following commands in order:
Generate proving and verification keys:
npm run keyGen
Generate a proof:
npm run prover
Verify the proof:
npm run verifier