Struct snarkvm_algorithms::polycommit::kzg10::PreparedCommitment
source · [−]pub struct PreparedCommitment<E: PairingEngine>(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
sourceimpl<E: PairingEngine> PreparedCommitment<E>
impl<E: PairingEngine> PreparedCommitment<E>
sourcepub fn prepare(comm: &Commitment<E>) -> Self
pub fn prepare(comm: &Commitment<E>) -> Self
prepare PreparedCommitment
from Commitment
Trait Implementations
sourceimpl<E: Clone + PairingEngine> Clone for PreparedCommitment<E> where
E::G1Affine: Clone,
impl<E: Clone + PairingEngine> Clone for PreparedCommitment<E> where
E::G1Affine: Clone,
sourcefn clone(&self) -> PreparedCommitment<E>
fn clone(&self) -> PreparedCommitment<E>
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl<E: Debug + PairingEngine> Debug for PreparedCommitment<E> where
E::G1Affine: Debug,
impl<E: Debug + PairingEngine> Debug for PreparedCommitment<E> where
E::G1Affine: Debug,
sourceimpl<E: Default + PairingEngine> Default for PreparedCommitment<E> where
E::G1Affine: Default,
impl<E: Default + PairingEngine> Default for PreparedCommitment<E> where
E::G1Affine: Default,
sourcefn default() -> PreparedCommitment<E>
fn default() -> PreparedCommitment<E>
Returns the “default value” for a type. Read more
sourceimpl<E: Hash + PairingEngine> Hash for PreparedCommitment<E> where
E::G1Affine: Hash,
impl<E: Hash + PairingEngine> Hash for PreparedCommitment<E> where
E::G1Affine: Hash,
sourceimpl<E: PartialEq + PairingEngine> PartialEq<PreparedCommitment<E>> for PreparedCommitment<E> where
E::G1Affine: PartialEq,
impl<E: PartialEq + PairingEngine> PartialEq<PreparedCommitment<E>> for PreparedCommitment<E> where
E::G1Affine: PartialEq,
sourcefn eq(&self, other: &PreparedCommitment<E>) -> bool
fn eq(&self, other: &PreparedCommitment<E>) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
impl<E: Eq + PairingEngine> Eq for PreparedCommitment<E> where
E::G1Affine: Eq,
impl<E: PairingEngine> StructuralEq for PreparedCommitment<E>
impl<E: PairingEngine> StructuralPartialEq for PreparedCommitment<E>
Auto Trait Implementations
impl<E> RefUnwindSafe for PreparedCommitment<E> where
<E as PairingEngine>::G1Affine: RefUnwindSafe,
impl<E> Send for PreparedCommitment<E>
impl<E> Sync for PreparedCommitment<E>
impl<E> Unpin for PreparedCommitment<E> where
<E as PairingEngine>::G1Affine: Unpin,
impl<E> UnwindSafe for PreparedCommitment<E> where
<E as PairingEngine>::G1Affine: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<Q, K> Equivalent<K> for Q where
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Q where
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
sourcefn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.