Expand description
Structs§
- Advice
- An advice column
- Batch
Verifier - A verifier that checks multiple proofs in a batch.
- Column
- A column with an index and type
- Constraint
- An individual polynomial constraint.
- Constraint
System - This is a description of the circuit environment, such as the gate, column and permutation arrangements.
- Constraints
- A set of polynomial constraints with a common selector.
- Fixed
- A fixed column
- Instance
- An instance column
- Pinned
Constraint System - Represents the minimal parameters that determine a
ConstraintSystem
. - Pinned
Verification Key - Minimal representation of a verification key that can be used to identify its active contents.
- Proving
Key - This is a proving key which allows for the creation of proofs for a particular circuit.
- Selector
- A selector, representing a fixed boolean value per row of the circuit.
- Single
Verifier - A verifier that checks a single proof at a time.
- Table
Column - A fixed column of a lookup table.
- Verifying
Key - This is a verifying key which allows for the verification of proofs for a particular circuit.
- Virtual
Cells - Exposes the “virtual cells” that can be queried while creating a custom gate or lookup table.
Enums§
- Any
- An enum over the Advice, Fixed, Instance structs
- Assigned
- A value assigned to a cell within a circuit.
- Error
- This is an error that could occur during proving or circuit synthesis.
- Expression
- Low-degree expression representing an identity that must hold over the committed columns.
Traits§
- Assignment
- This trait allows a
Circuit
to direct some backend to assign a witness for a constraint system. - Circuit
- This is a trait that circuits provide implementations for so that the
backend prover can ask the circuit to synthesize using some given
ConstraintSystem
implementation. - Column
Type - A column type
- Floor
Planner - A floor planning strategy for a circuit.
- Verification
Strategy - Trait representing a strategy for verifying Halo 2 proofs.
Functions§
- create_
proof - This creates a proof for the provided
circuit
when given the public parametersparams
and the proving keyProvingKey
that was generated previously for the same circuit. The providedinstances
are zero-padded internally. - keygen_
pk - Generate a
ProvingKey
from aVerifyingKey
and an instance ofCircuit
. - keygen_
vk - Generate a
VerifyingKey
from an instance ofCircuit
. - verify_
proof - Returns a boolean indicating whether or not the proof is valid