Skip to content

Quickstart

This quickstart takes you through the shortest reliable path through ProveKit: compile the checked-in noir-examples/basic circuit, generate a proof from its prover inputs, and verify the proof locally. About five minutes.

You’ll need provekit-cli available (cargo install provekit-cli or a source checkout) and a copy of noir-examples/basic/ to run against. See Installation and setup if either is missing.

The commands below assume provekit-cli is on your PATH. Source-checkout users: substitute cargo run --release --bin provekit-cli -- for provekit-cli in every command.

  1. Enter the example Noir package.

    Terminal window
    cd noir-examples/basic
  2. Prepare the prover and verifier keys.

    Terminal window
    provekit-cli prepare
  3. Generate a proof from Prover.toml.

    Terminal window
    provekit-cli prove
  4. Verify the proof locally.

    Terminal window
    provekit-cli verify
StepCommandReadsWrites
1prepareNargo.toml, src/main.nr, Noir dependenciesbasic.pkp, basic.pkv, Noir target/ artifacts
2provebasic.pkp, Prover.tomlproof.np
3verifybasic.pkv, proof.npexit status only, no output file

basic.pkp, basic.pkv, and proof.np are generated. Don’t commit them unless a downstream integration explicitly relies on checked-in fixtures.

ArtifactPurposeDefault location
basic.pkpProver key written by prepare.Named after the enclosing Noir package.
basic.pkvVerifier key written by prepare.Named after the enclosing Noir package.
proof.npProof written by prove, consumed by verify../proof.np (override with prove --out).
Prover.tomlProver inputs for the example circuit.Checked into noir-examples/basic/.

Return the example directory to a source-only state:

Terminal window
rm -f basic.pkp basic.pkv proof.np
rm -rf target