Module plonk
Expand description
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
batchcrate feature to be enabled. - 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
- 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.
- 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.
- Table
Error - This is an error that could occur during table synthesis.
Traits§
- Assignment
- This trait allows a
Circuitto 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
ConstraintSystemimplementation. - 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
circuitwhen given the public parametersparamsand the proving keyProvingKeythat was generated previously for the same circuit. The providedinstancesare zero-padded internally. - keygen_
pk - Generate a
ProvingKeyfrom aVerifyingKeyand an instance ofCircuit. - keygen_
vk - Generate a
VerifyingKeyfrom an instance ofCircuit. - verify_
proof - Returns a boolean indicating whether or not the proof is valid