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