Struct winter_prover::ConstraintCommitment
source · pub struct ConstraintCommitment<E: FieldElement, H: ElementHasher<BaseField = E::BaseField>> { /* private fields */ }Expand description
Constraint evaluation commitment.
The commitment consists of two components:
- Evaluations of composition polynomial columns over the LDE domain.
- Merkle tree where each leaf in the tree corresponds to a row in the composition polynomial evaluation matrix.
Implementations§
source§impl<E: FieldElement, H: ElementHasher<BaseField = E::BaseField>> ConstraintCommitment<E, H>
impl<E: FieldElement, H: ElementHasher<BaseField = E::BaseField>> ConstraintCommitment<E, H>
sourcepub fn new(
evaluations: RowMatrix<E>,
commitment: MerkleTree<H>
) -> ConstraintCommitment<E, H>
pub fn new( evaluations: RowMatrix<E>, commitment: MerkleTree<H> ) -> ConstraintCommitment<E, H>
Creates a new constraint evaluation commitment from the provided composition polynomial evaluations and the corresponding Merkle tree commitment.
sourcepub fn tree_depth(&self) -> usize
pub fn tree_depth(&self) -> usize
Returns the depth of the commitment Merkle tree.
Auto Trait Implementations§
impl<E, H> RefUnwindSafe for ConstraintCommitment<E, H>
impl<E, H> Send for ConstraintCommitment<E, H>
impl<E, H> Sync for ConstraintCommitment<E, H>
impl<E, H> Unpin for ConstraintCommitment<E, H>
impl<E, H> UnwindSafe for ConstraintCommitment<E, H>
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