pub struct LabeledCommitment<C: CanonicalSerialize + 'static> { /* private fields */ }Expand description
A commitment along with information about its degree bound (if any).
Implementations§
Source§impl<C: CanonicalSerialize> LabeledCommitment<C>
 
impl<C: CanonicalSerialize> LabeledCommitment<C>
Sourcepub fn new(
    label: PolynomialLabel,
    commitment: C,
    degree_bound: Option<usize>,
) -> Self
 
pub fn new( label: PolynomialLabel, commitment: C, degree_bound: Option<usize>, ) -> Self
Instantiate a new polynomial_context.
pub fn new_with_info(info: &PolynomialInfo, commitment: C) -> Self
Sourcepub fn commitment(&self) -> &C
 
pub fn commitment(&self) -> &C
Retrieve the commitment from self.
Sourcepub fn degree_bound(&self) -> Option<usize>
 
pub fn degree_bound(&self) -> Option<usize>
Retrieve the degree bound in self.
Trait Implementations§
Source§impl<C: CanonicalSerialize + 'static> CanonicalSerialize for LabeledCommitment<C>
 
impl<C: CanonicalSerialize + 'static> CanonicalSerialize for LabeledCommitment<C>
fn serialize_with_mode<W: Write>( &self, writer: W, compress: Compress, ) -> Result<(), SerializationError>
fn serialized_size(&self, compress: Compress) -> usize
fn serialize_compressed<W>(&self, writer: W) -> Result<(), SerializationError>where
    W: Write,
fn compressed_size(&self) -> usize
fn serialize_uncompressed<W>(&self, writer: W) -> Result<(), SerializationError>where
    W: Write,
fn uncompressed_size(&self) -> usize
Source§impl<C: Clone + CanonicalSerialize + 'static> Clone for LabeledCommitment<C>
 
impl<C: Clone + CanonicalSerialize + 'static> Clone for LabeledCommitment<C>
Source§fn clone(&self) -> LabeledCommitment<C>
 
fn clone(&self) -> LabeledCommitment<C>
Returns a duplicate 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 moreSource§impl<C: Debug + CanonicalSerialize + 'static> Debug for LabeledCommitment<C>
 
impl<C: Debug + CanonicalSerialize + 'static> Debug for LabeledCommitment<C>
Source§impl<C: PartialEq + CanonicalSerialize + 'static> PartialEq for LabeledCommitment<C>
 
impl<C: PartialEq + CanonicalSerialize + 'static> PartialEq for LabeledCommitment<C>
Source§impl<C: CanonicalSerialize + ToBytes> ToBytes for LabeledCommitment<C>
 
impl<C: CanonicalSerialize + ToBytes> ToBytes for LabeledCommitment<C>
Source§impl<F: Field, C: CanonicalSerialize + ToConstraintField<F>> ToConstraintField<F> for LabeledCommitment<C>
 
impl<F: Field, C: CanonicalSerialize + ToConstraintField<F>> ToConstraintField<F> for LabeledCommitment<C>
fn to_field_elements(&self) -> Result<Vec<F>, ConstraintFieldError>
impl<C: Eq + CanonicalSerialize + 'static> Eq for LabeledCommitment<C>
impl<C: CanonicalSerialize + 'static> StructuralPartialEq for LabeledCommitment<C>
Auto Trait Implementations§
impl<C> Freeze for LabeledCommitment<C>where
    C: Freeze,
impl<C> RefUnwindSafe for LabeledCommitment<C>where
    C: RefUnwindSafe,
impl<C> Send for LabeledCommitment<C>where
    C: Send,
impl<C> Sync for LabeledCommitment<C>where
    C: Sync,
impl<C> Unpin for LabeledCommitment<C>where
    C: Unpin,
impl<C> UnwindSafe for LabeledCommitment<C>where
    C: 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
Source§impl<T> CloneToUninit for Twhere
    T: Clone,
 
impl<T> CloneToUninit for Twhere
    T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
 
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
 
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
 
fn equivalent(&self, key: &K) -> bool
Compare self to 
key and return true if they are equal.Source§impl<T> Instrument for T
 
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
 
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
 
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
 
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
 
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts 
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
 
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts 
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more