pub struct ConstraintCommitment<E: FieldElement, H: ElementHasher<BaseField = E::BaseField>, V: VectorCommitment<H>> { /* private fields */ }Expand description
Constraint evaluation commitment.
The commitment consists of two components:
- Evaluations of composition polynomial columns over the LDE domain.
- Vector commitment where each vector element corresponds to the digest of a row in the composition polynomial evaluation matrix.
Implementations§
Source§impl<E, H, V> ConstraintCommitment<E, H, V>
impl<E, H, V> ConstraintCommitment<E, H, V>
Sourcepub fn new(
evaluations: RowMatrix<E>,
commitment: V,
) -> ConstraintCommitment<E, H, V>
pub fn new( evaluations: RowMatrix<E>, commitment: V, ) -> ConstraintCommitment<E, H, V>
Creates a new constraint evaluation commitment from the provided composition polynomial evaluations and the corresponding vector commitment.
Sourcepub fn commitment(&self) -> H::Digest
pub fn commitment(&self) -> H::Digest
Returns the commitment.
Auto Trait Implementations§
impl<E, H, V> Freeze for ConstraintCommitment<E, H, V>where
V: Freeze,
impl<E, H, V> RefUnwindSafe for ConstraintCommitment<E, H, V>
impl<E, H, V> Send for ConstraintCommitment<E, H, V>
impl<E, H, V> Sync for ConstraintCommitment<E, H, V>
impl<E, H, V> Unpin for ConstraintCommitment<E, H, V>
impl<E, H, V> UnwindSafe for ConstraintCommitment<E, H, V>
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