Struct snarkvm_algorithms::polycommit::kzg10::PreparedKZGCommitment
source · pub struct PreparedKZGCommitment<E: PairingEngine>(pub Vec<E::G1Affine>);
Expand description
PreparedKZGCommitment
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> PreparedKZGCommitment<E>
impl<E: PairingEngine> PreparedKZGCommitment<E>
sourcepub fn prepare(comm: &KZGCommitment<E>) -> Self
pub fn prepare(comm: &KZGCommitment<E>) -> Self
prepare PreparedKZGCommitment
from KZGCommitment
Trait Implementations
sourceimpl<E: Clone + PairingEngine> Clone for PreparedKZGCommitment<E>where
E::G1Affine: Clone,
impl<E: Clone + PairingEngine> Clone for PreparedKZGCommitment<E>where
E::G1Affine: Clone,
sourcefn clone(&self) -> PreparedKZGCommitment<E>
fn clone(&self) -> PreparedKZGCommitment<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 moresourceimpl<E: Debug + PairingEngine> Debug for PreparedKZGCommitment<E>where
E::G1Affine: Debug,
impl<E: Debug + PairingEngine> Debug for PreparedKZGCommitment<E>where
E::G1Affine: Debug,
sourceimpl<E: Default + PairingEngine> Default for PreparedKZGCommitment<E>where
E::G1Affine: Default,
impl<E: Default + PairingEngine> Default for PreparedKZGCommitment<E>where
E::G1Affine: Default,
sourcefn default() -> PreparedKZGCommitment<E>
fn default() -> PreparedKZGCommitment<E>
Returns the “default value” for a type. Read more
sourceimpl<E: Hash + PairingEngine> Hash for PreparedKZGCommitment<E>where
E::G1Affine: Hash,
impl<E: Hash + PairingEngine> Hash for PreparedKZGCommitment<E>where
E::G1Affine: Hash,
sourceimpl<E: PartialEq + PairingEngine> PartialEq<PreparedKZGCommitment<E>> for PreparedKZGCommitment<E>where
E::G1Affine: PartialEq,
impl<E: PartialEq + PairingEngine> PartialEq<PreparedKZGCommitment<E>> for PreparedKZGCommitment<E>where
E::G1Affine: PartialEq,
sourcefn eq(&self, other: &PreparedKZGCommitment<E>) -> bool
fn eq(&self, other: &PreparedKZGCommitment<E>) -> bool
impl<E: Eq + PairingEngine> Eq for PreparedKZGCommitment<E>where
E::G1Affine: Eq,
impl<E: PairingEngine> StructuralEq for PreparedKZGCommitment<E>
impl<E: PairingEngine> StructuralPartialEq for PreparedKZGCommitment<E>
Auto Trait Implementations
impl<E> RefUnwindSafe for PreparedKZGCommitment<E>where
<E as PairingEngine>::G1Affine: RefUnwindSafe,
impl<E> Send for PreparedKZGCommitment<E>
impl<E> Sync for PreparedKZGCommitment<E>
impl<E> Unpin for PreparedKZGCommitment<E>where
<E as PairingEngine>::G1Affine: Unpin,
impl<E> UnwindSafe for PreparedKZGCommitment<E>where
<E as PairingEngine>::G1Affine: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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 Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere
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.