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.
{
"inputs": [123456789, 987654321]
}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.
py poseidon.py --prove circuit1🧱 What it needs:
circuit_name.wasm– WebAssembly file for witness generationcircuit_name.r1cs– constraint systemproving_key.zkey– proving key generated from--init-setupinput.json– input values (both public and private)
⚙️ What it does:
Generates the witness from
input.jsonusing the.wasmfileCreates the proof and
public.jsonusingsnarkjs groth16 proveSaves:
proof.json– the zk-SNARK proofpublic.json– public inputs needed for verification
✅ Output files:
proof.jsonpublic.json
Last updated