pub struct ConstraintCompositionCoefficients<E>where
    E: FieldElement,
{ pub transition: Vec<(E, E), Global>, pub boundary: Vec<(E, E), Global>, }
Expand description

Coefficients used in construction of constraint composition polynomial.

These coefficients are created by the Air::get_constraint_composition_coefficients() function. In the interactive version of the protocol, the verifier draws these coefficients uniformly at random from the extension field of the protocol.

There are two coefficients for each constraint so that we can compute a random linear combination of constraints like so: $$ \sum_{i = 0}^k{C_i(x) \cdot (\alpha_i + \beta_i \cdot x^{d_i})} $$ where:

  • $\alpha_i$ and $\beta_i$ are the coefficients for the $i$th constraint.
  • $C_i(x)$ is an evaluation of the $i$th constraint at $x$.
  • $d_i$ is the degree adjustment factor needed to normalize all constraints to the same degree.

The coefficients are separated into two lists: one for transition constraints and another one for boundary constraints. This separation is done for convenience only.

Fields

transition: Vec<(E, E), Global>boundary: Vec<(E, E), Global>

Trait Implementations

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Should always be Self
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.