pub struct PreparedCommitment<E: Pairing>(pub Vec<E::G1Affine>);Expand description
PreparedCommitment commits to a polynomial and prepares for mul_bits.
Tuple Fields§
§0: Vec<E::G1Affine>The commitment is a group element.
Implementations§
Source§impl<E: Pairing> PreparedCommitment<E>
impl<E: Pairing> PreparedCommitment<E>
Sourcepub fn prepare(comm: &Commitment<E>) -> Self
pub fn prepare(comm: &Commitment<E>) -> Self
prepare PreparedCommitment from Commitment
Trait Implementations§
Source§impl<E: Pairing> Clone for PreparedCommitment<E>
impl<E: Pairing> Clone for PreparedCommitment<E>
Source§impl<E: Pairing> Debug for PreparedCommitment<E>
impl<E: Pairing> Debug for PreparedCommitment<E>
Source§impl<E: Pairing> Default for PreparedCommitment<E>
impl<E: Pairing> Default for PreparedCommitment<E>
Source§impl<E: Pairing> Hash for PreparedCommitment<E>
impl<E: Pairing> Hash for PreparedCommitment<E>
Source§impl<E: Pairing> PartialEq for PreparedCommitment<E>
impl<E: Pairing> PartialEq for PreparedCommitment<E>
impl<E: Pairing> Eq for PreparedCommitment<E>
Auto Trait Implementations§
impl<E> Freeze for PreparedCommitment<E>
impl<E> RefUnwindSafe for PreparedCommitment<E>
impl<E> Send for PreparedCommitment<E>
impl<E> Sync for PreparedCommitment<E>
impl<E> Unpin for PreparedCommitment<E>
impl<E> UnwindSafe for PreparedCommitment<E>
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§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