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 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 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.