Expand description
§p3-uni-stark
A minimal univariate STARK framework: proving and verification of a single AIR over a two-adic field, generic over the polynomial commitment scheme.
Key items:
prove/verify(and*_with_preprocessedvariants) — the prover and verifier entry pointsStarkConfig/StarkGenericConfig— ties together field, PCS and challengerSymbolicAirBuilder— symbolic constraint evaluation for degree inferenceProof,VerificationError— proof object and typed verifier errors
The verifier is designed to reject malformed proofs with a typed error, but panics on adversarial inputs are not yet ruled out; see the repository README’s known-issues section.
Part of Plonky3, dual-licensed under MIT and Apache 2.0.
Structs§
- AirLayout
- Describes the shape of an AIR for symbolic constraint evaluation.
- Commitments
- Conjectured
Security - Conjectured security level (in bits) using the “random words” regime of 2025/2010 §1.5.
- Constraint
Layout - Maps between global constraint indices and the separated base/ext streams.
- Opened
Values - Preprocessed
Prover Data - Prover-side reusable data for preprocessed columns.
- Preprocessed
Verifier Key - Verifier-side reusable data for preprocessed columns.
- Proof
- Proven
Security - Proven security level (in bits) of a STARK configuration.
- Prover
Constraint Folder - Packed constraint folder for SIMD-optimized prover evaluation.
- Stark
Config - Stark
Security Params - Parameters required to compute STARK proof security level.
- SubAir
Builder - Evaluates a sub-AIR against a restricted slice of the parent trace.
- SubSliced
- A column-restricted view over a trace window.
- Symbolic
AirBuilder - Symbolic AIR builder that records constraints.
- Symbolic
Variable - A variable within the evaluation window for base-field columns.
- Symbolic
Variable Ext - A variable within the evaluation window for extension-field columns.
- Vectorized
Constraint Folder - Packed constraint folder evaluating
Npacked vectors per constraint in lockstep. - Verifier
Constraint Folder - Handles constraint verification for the verifier in a STARK system.
Enums§
- Base
Entry - Entry kinds for base-field trace columns and public inputs.
- Base
Leaf - Leaf nodes for base-field symbolic expressions.
- ExtEntry
- Entry kinds for extension-field columns (permutation trace, challenges, and permutation values).
- ExtLeaf
- Leaf nodes for extension-field symbolic expressions.
- Invalid
Proof Shape Error - Specific reasons why a proof’s shape is invalid.
- Periodic
Column Error - Reasons a periodic column cannot be evaluated.
- Symbolic
Expr - A symbolic expression tree, generic over its leaf type
A. - Verification
Error - Top-level verification error.
Traits§
- Quotient
Air - AIRs usable with
quotient_valuesand the functions built on it. - Stark
Generic Config - SymLeaf
- Properties that leaf nodes must provide for the generic expression tree.
Functions§
- check_
periodic_ column_ lengths - Reject periodic columns the verifier cannot evaluate over the trace domain.
- constraint_
degree_ from_ poly_ degree - Convert an absolute constraint-polynomial degree into the “constraint degree”
used to size the quotient: the number of degree-
(trace_len - 1)trace polynomials the constraint behaves like. - get_
all_ symbolic_ constraints - get_
constraint_ layout - Evaluate the AIR symbolically and return the constraint layout.
- get_
log_ num_ quotient_ chunks - get_
log_ quotient_ degree_ extension - get_
max_ constraint_ degree - get_
max_ constraint_ degree_ extension - get_
symbolic_ constraints - get_
symbolic_ constraints_ extension - prove
- prove_
with_ preprocessed - quotient_
values - recompose_
quotient_ from_ chunks - Recomposes the quotient polynomial from its chunks evaluated at a point.
- setup_
preprocessed - Set up and commit the preprocessed trace for a given
Airand degree. - validate_
degree_ bits - verify
- verify_
constraints - Verifies that the folded constraints match the quotient polynomial at zeta.
- verify_
with_ preprocessed
Type Aliases§
- Domain
- Packed
Challenge - Packed
Val - PcsError
- Symbolic
Expression - A symbolic expression tree for base-field AIR constraints.
- Symbolic
Expression Ext - A symbolic expression tree for extension-field AIR constraints.
- Val
- Vectorized
Challenge - Vectorized extension-field expression type used by
VectorizedConstraintFolder. - Vectorized
Val - Vectorized base-field expression type used by
VectorizedConstraintFolder:Npacked vectors evaluated in lockstep.