Expand description
Modules§
- permutation
- Implementation of permutation argument.
Structs§
- Advice
- An advice column
- Advice
Query - Query of advice column at a certain relative location
- Batch
Verifier - A verifier that checks multiple proofs in a batch. This requires the
batch
crate feature to be enabled. - Challenge
- A challenge squeezed from transcript after advice columns at the phase have been committed.
- 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.
- First
Phase - First phase
- Fixed
- A fixed column
- Fixed
Query - Query of fixed column at a certain relative location
- Gate
- Gate
- Instance
- An instance column
- Instance
Query - Query of instance column at a certain relative location
- 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.
- Second
Phase - Second phase
- Selector
- A selector, representing a fixed boolean value per row of the circuit.
- Table
Column - A fixed column of a lookup table.
- Third
Phase - Third phase
- Verifying
Key - This is a verifying key which allows for the verification of proofs for a particular circuit.
- Virtual
Cell - A “virtual cell” is a PLONK cell that has been queried at a particular relative offset within a custom gate.
- 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.
- Table
Error - This is an error that could occur during table synthesis.
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.
- Phase
- Phase of advice column
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_
pk2 - Generate a
ProvingKey
from an instance ofCircuit
.VerifyingKey
is generated in the process. - keygen_
pk_ impl - Generate a
ProvingKey
from either a precalculatedVerifyingKey
and an instance ofCircuit
, or just aCircuit
, in which case a newVerifyingKey
is generated. The latter is more efficient because it does fixed column FFTs only once. - keygen_
vk - Generate a
VerifyingKey
from an instance ofCircuit
. By default, selector compression is turned off. - keygen_
vk_ custom - Generate a
VerifyingKey
from an instance ofCircuit
. - verify_
proof - Returns a boolean indicating whether or not the proof is valid