Struct poly_commit::Commitment
source · pub struct Commitment<P: Pairing>(pub P::G1Affine);Tuple Fields§
§0: P::G1AffineImplementations§
source§impl<P: Pairing> Commitment<P>
impl<P: Pairing> Commitment<P>
pub fn new(value: P::G1Projective) -> Self
Trait Implementations§
source§impl<P: Clone + Pairing> Clone for Commitment<P>where
P::G1Affine: Clone,
impl<P: Clone + Pairing> Clone for Commitment<P>where P::G1Affine: Clone,
source§fn clone(&self) -> Commitment<P>
fn clone(&self) -> Commitment<P>
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<P: Pairing> Decode for Commitment<P>where
P::G1Affine: Decode,
impl<P: Pairing> Decode for Commitment<P>where P::G1Affine: Decode,
source§impl<P: Default + Pairing> Default for Commitment<P>where
P::G1Affine: Default,
impl<P: Default + Pairing> Default for Commitment<P>where P::G1Affine: Default,
source§fn default() -> Commitment<P>
fn default() -> Commitment<P>
Returns the “default value” for a type. Read more
source§impl<P: Pairing> Encode for Commitment<P>where
P::G1Affine: Encode,
impl<P: Pairing> Encode for Commitment<P>where P::G1Affine: Encode,
source§fn encode_to<__CodecOutputEdqy: Output + ?Sized>(
&self,
__codec_dest_edqy: &mut __CodecOutputEdqy
)
fn encode_to<__CodecOutputEdqy: Output + ?Sized>( &self, __codec_dest_edqy: &mut __CodecOutputEdqy )
Convert self to a slice and append it to the destination.
source§fn using_encoded<R, F: FnOnce(&[u8]) -> R>(&self, f: F) -> R
fn using_encoded<R, F: FnOnce(&[u8]) -> R>(&self, f: F) -> R
Convert self to a slice and then invoke the given closure with it.
source§fn size_hint(&self) -> usize
fn size_hint(&self) -> usize
If possible give a hint of expected size of the encoding. Read more
source§fn encoded_size(&self) -> usize
fn encoded_size(&self) -> usize
Calculates the encoded size. Read more
source§impl<P: PartialEq + Pairing> PartialEq<Commitment<P>> for Commitment<P>where
P::G1Affine: PartialEq,
impl<P: PartialEq + Pairing> PartialEq<Commitment<P>> for Commitment<P>where P::G1Affine: PartialEq,
source§fn eq(&self, other: &Commitment<P>) -> bool
fn eq(&self, other: &Commitment<P>) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl<P: Copy + Pairing> Copy for Commitment<P>where P::G1Affine: Copy,
impl<P: Pairing> EncodeLike<Commitment<P>> for Commitment<P>where P::G1Affine: Encode,
impl<P: Eq + Pairing> Eq for Commitment<P>where P::G1Affine: Eq,
impl<P: Pairing> StructuralEq for Commitment<P>
impl<P: Pairing> StructuralPartialEq for Commitment<P>
Auto Trait Implementations§
impl<P> RefUnwindSafe for Commitment<P>where <P as Pairing>::G1Affine: RefUnwindSafe,
impl<P> Send for Commitment<P>
impl<P> Sync for Commitment<P>
impl<P> Unpin for Commitment<P>where <P as Pairing>::G1Affine: Unpin,
impl<P> UnwindSafe for Commitment<P>where <P as Pairing>::G1Affine: 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