pub struct CommitmentKey<C: CurveAffine> {
pub bases: Vec<C>,
}
Fields§
§bases: Vec<C>
Implementations§
Source§impl<C: CurveAffine> CommitmentKey<C>
impl<C: CurveAffine> CommitmentKey<C>
pub fn trim(&self, truncated_degree: usize) -> Self
pub fn commit(&self, coeffs: &Coefficients<C::Scalar>) -> Commitment<C>
Trait Implementations§
Source§impl<C: Clone + CurveAffine> Clone for CommitmentKey<C>
impl<C: Clone + CurveAffine> Clone for CommitmentKey<C>
Source§fn clone(&self) -> CommitmentKey<C>
fn clone(&self) -> CommitmentKey<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 + CurveAffine> Debug for CommitmentKey<C>
impl<C: Debug + CurveAffine> Debug for CommitmentKey<C>
Source§impl<C: CurveAffine> Decode for CommitmentKey<C>
impl<C: CurveAffine> Decode for CommitmentKey<C>
Source§impl<C: Default + CurveAffine> Default for CommitmentKey<C>
impl<C: Default + CurveAffine> Default for CommitmentKey<C>
Source§fn default() -> CommitmentKey<C>
fn default() -> CommitmentKey<C>
Returns the “default value” for a type. Read more
Source§impl<C: CurveAffine> Encode for CommitmentKey<C>
impl<C: CurveAffine> Encode for CommitmentKey<C>
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<C: PartialEq + CurveAffine> PartialEq for CommitmentKey<C>
impl<C: PartialEq + CurveAffine> PartialEq for CommitmentKey<C>
impl<C: CurveAffine> EncodeLike for CommitmentKey<C>
impl<C: CurveAffine> StructuralPartialEq for CommitmentKey<C>
Auto Trait Implementations§
impl<C> Freeze for CommitmentKey<C>
impl<C> RefUnwindSafe for CommitmentKey<C>where
C: RefUnwindSafe,
impl<C> Send for CommitmentKey<C>
impl<C> Sync for CommitmentKey<C>
impl<C> Unpin for CommitmentKey<C>where
C: Unpin,
impl<C> UnwindSafe for CommitmentKey<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<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