Struct poly_commit::Commitment
source · pub struct Commitment<A: Affine>(pub A);
Expand description
polynomial commitment expresses as affine coordinate
Tuple Fields§
§0: A
Implementations§
source§impl<A: Affine> Commitment<A>
impl<A: Affine> Commitment<A>
pub fn new(value: <A as CurveGroup>::Extended) -> Self
Trait Implementations§
source§impl<A: Clone + Affine> Clone for Commitment<A>
impl<A: Clone + Affine> Clone for Commitment<A>
source§fn clone(&self) -> Commitment<A>
fn clone(&self) -> Commitment<A>
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<A> Decode for Commitment<A>where
A: Decode + Affine,
impl<A> Decode for Commitment<A>where A: Decode + Affine,
source§impl<A: Default + Affine> Default for Commitment<A>
impl<A: Default + Affine> Default for Commitment<A>
source§fn default() -> Commitment<A>
fn default() -> Commitment<A>
Returns the “default value” for a type. Read more
source§impl<A> Encode for Commitment<A>where
A: Encode + Affine,
impl<A> Encode for Commitment<A>where A: Encode + Affine,
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<A: PartialEq + Affine> PartialEq<Commitment<A>> for Commitment<A>
impl<A: PartialEq + Affine> PartialEq<Commitment<A>> for Commitment<A>
source§fn eq(&self, other: &Commitment<A>) -> bool
fn eq(&self, other: &Commitment<A>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl<A: Copy + Affine> Copy for Commitment<A>
impl<A> EncodeLike<Commitment<A>> for Commitment<A>where A: Encode + Affine,
impl<A: Eq + Affine> Eq for Commitment<A>
impl<A: Affine> StructuralEq for Commitment<A>
impl<A: Affine> StructuralPartialEq for Commitment<A>
Auto Trait Implementations§
impl<A> RefUnwindSafe for Commitment<A>where A: RefUnwindSafe,
impl<A> Send for Commitment<A>where A: Send,
impl<A> Sync for Commitment<A>where A: Sync,
impl<A> Unpin for Commitment<A>where A: Unpin,
impl<A> UnwindSafe for Commitment<A>where A: 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