pub struct Commitment<A: CurveAffine>(pub A);
Expand description
polynomial commitment expresses as affine coordinate
Tuple Fields§
§0: A
Implementations§
Source§impl<A: CurveAffine> Commitment<A>
impl<A: CurveAffine> Commitment<A>
pub fn new(value: <A as CurveGroup>::Extended) -> Self
Trait Implementations§
Source§impl<A: Clone + CurveAffine> Clone for Commitment<A>
impl<A: Clone + CurveAffine> 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: Debug + CurveAffine> Debug for Commitment<A>
impl<A: Debug + CurveAffine> Debug for Commitment<A>
Source§impl<A> Decode for Commitment<A>where
A: Decode + CurveAffine,
impl<A> Decode for Commitment<A>where
A: Decode + CurveAffine,
Source§impl<A: Default + CurveAffine> Default for Commitment<A>
impl<A: Default + CurveAffine> 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 + CurveAffine,
impl<A> Encode for Commitment<A>where
A: Encode + CurveAffine,
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 + CurveAffine> PartialEq for Commitment<A>
impl<A: PartialEq + CurveAffine> PartialEq for Commitment<A>
impl<A: Copy + CurveAffine> Copy for Commitment<A>
impl<A> EncodeLike for Commitment<A>where
A: Encode + CurveAffine,
impl<A: Eq + CurveAffine> Eq for Commitment<A>
impl<A: CurveAffine> StructuralPartialEq for Commitment<A>
Auto Trait Implementations§
impl<A> Freeze for Commitment<A>where
A: Freeze,
impl<A> RefUnwindSafe for Commitment<A>where
A: RefUnwindSafe,
impl<A> Send for Commitment<A>
impl<A> Sync for Commitment<A>
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> DecodeLimit for Twhere
T: Decode,
impl<T> DecodeLimit for Twhere
T: Decode,
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