pub struct ConstraintCompositionCoefficients<E>where
E: FieldElement,{
pub transition: Vec<E>,
pub boundary: Vec<E>,
pub lagrange: Option<LagrangeConstraintsCompositionCoefficients<E>>,
}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 is one coefficient for each constraint so that we can compute a random linear combination of constraints as: $$ \sum_{i = 0}^k{\alpha_i \cdot C_i(x)} $$ where:
- $\alpha_i$ is the coefficient for the $i$th constraint.
- $C_i(x)$ is an evaluation of the $i$th constraint at $x$.
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>§boundary: Vec<E>§lagrange: Option<LagrangeConstraintsCompositionCoefficients<E>>Trait Implementations§
Source§impl<E> Clone for ConstraintCompositionCoefficients<E>where
E: Clone + FieldElement,
impl<E> Clone for ConstraintCompositionCoefficients<E>where
E: Clone + FieldElement,
Source§fn clone(&self) -> ConstraintCompositionCoefficients<E>
fn clone(&self) -> ConstraintCompositionCoefficients<E>
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl<E> Freeze for ConstraintCompositionCoefficients<E>where
E: Freeze,
impl<E> RefUnwindSafe for ConstraintCompositionCoefficients<E>where
E: RefUnwindSafe,
impl<E> Send for ConstraintCompositionCoefficients<E>
impl<E> Sync for ConstraintCompositionCoefficients<E>
impl<E> Unpin for ConstraintCompositionCoefficients<E>where
E: Unpin,
impl<E> UnwindSafe for ConstraintCompositionCoefficients<E>where
E: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more