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§
source§impl<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§
source§impl<E: Clone + PairingEngine> Clone for PreparedKZGCommitment<E>where
E::G1Affine: Clone,
impl<E: Clone + PairingEngine> Clone for PreparedKZGCommitment<E>where E::G1Affine: Clone,
source§fn clone(&self) -> PreparedKZGCommitment<E>
fn clone(&self) -> PreparedKZGCommitment<E>
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<E: Debug + PairingEngine> Debug for PreparedKZGCommitment<E>where
E::G1Affine: Debug,
impl<E: Debug + PairingEngine> Debug for PreparedKZGCommitment<E>where E::G1Affine: Debug,
source§impl<E: Default + PairingEngine> Default for PreparedKZGCommitment<E>where
E::G1Affine: Default,
impl<E: Default + PairingEngine> Default for PreparedKZGCommitment<E>where E::G1Affine: Default,
source§fn default() -> PreparedKZGCommitment<E>
fn default() -> PreparedKZGCommitment<E>
Returns the “default value” for a type. Read more
source§impl<E: Hash + PairingEngine> Hash for PreparedKZGCommitment<E>where
E::G1Affine: Hash,
impl<E: Hash + PairingEngine> Hash for PreparedKZGCommitment<E>where E::G1Affine: Hash,
source§impl<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,
source§fn eq(&self, other: &PreparedKZGCommitment<E>) -> bool
fn eq(&self, other: &PreparedKZGCommitment<E>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.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§
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<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,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.