Proof Generation - Prover
Generate zk-SNARK proofs
Please make sure that you compile your circuit, perform tau ceremony, setup proving key before performing proof generation
Here is a sample input.json for the circuit1.circom boilerplate circuit.
This command takes your compiled circuit, proving key, and input signals to generate a zk-SNARK proof. It automates the process using snarkjs
behind the scenes.
🧱 What it needs:
circuit_name.wasm
– WebAssembly file for witness generationcircuit_name.r1cs
– constraint systemproving_key.zkey
– proving key generated from--init-setup
input.json
– input values (both public and private)
⚙️ What it does:
Generates the witness from
input.json
using the.wasm
fileCreates the proof and
public.json
usingsnarkjs groth16 prove
Saves:
proof.json
– the zk-SNARK proofpublic.json
– public inputs needed for verification
✅ Output files:
proof.json
public.json
Last updated