Compile Circuit - Beginner
This option is for novice users.
This command sets up everything required to generate zk-SNARK proofs for a given circuit, automating the multi-step trusted setup process. Just type the below command, press enter and let the magic unfold!
py poseidon.py --init-setup circuit_nameπ§ What it does:
Compiles the specified Circom file (
<circuit_name>)Produces
.r1cs,.wasm, and.symfiles
Runs Trusted Setup (Powers of Tau + Phase 2)
Initializes a new ceremony if none exists
Contributes randomness
Prepares final
.zkeyproving key
Generates Keys:
proving_key.zkeyβ for generating zk-proofsverification_key.jsonβ for verifying proofs
Ready for Proofs: After this, you're ready to run
--proveand--verify.
Expected Folder Layout
If everything went well your folder structure should look something similar to this,
Last updated