Skip to content

About

End-to-end ZK-SNARK demo with snarkjs: generate keys, produce proofs, and verify them without revealing the secret.

Topics

Resources

Stars

10 stars

Watchers

1 watching

Forks

Repository files navigation

snarkjs-zk-demo

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 demo

Run the following commands in order:

1. Generate Keys

Generate proving and verification keys:

npm run keyGen

2. Prover

Generate a proof:

npm run prover

3. Verifier

Verify the proof:

npm run verifier

About

End-to-end ZK-SNARK demo with snarkjs: generate keys, produce proofs, and verify them without revealing the secret.

Topics

Resources

Stars

10 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages