Struct ark_poly_commit::streaming_kzg::Commitment
source · pub struct Commitment<E: Pairing>(_);
Expand description
A Kate polynomial commitment over a bilinear group, represented as a single \(\GG_1\) element.
Implementations§
source§impl<E: Pairing> Commitment<E>
impl<E: Pairing> Commitment<E>
sourcepub fn size_in_bytes(&self) -> usize
pub fn size_in_bytes(&self) -> usize
Return the size of Commitment in bytes.
Trait Implementations§
source§impl<E: Clone + Pairing> Clone for Commitment<E>where
E::G1Affine: Clone,
impl<E: Clone + Pairing> Clone for Commitment<E>where E::G1Affine: Clone,
source§fn clone(&self) -> Commitment<E>
fn clone(&self) -> Commitment<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: PartialEq + Pairing> PartialEq<Commitment<E>> for Commitment<E>where
E::G1Affine: PartialEq,
impl<E: PartialEq + Pairing> PartialEq<Commitment<E>> for Commitment<E>where E::G1Affine: PartialEq,
source§fn eq(&self, other: &Commitment<E>) -> bool
fn eq(&self, other: &Commitment<E>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl<E: Copy + Pairing> Copy for Commitment<E>where E::G1Affine: Copy,
impl<E: Eq + Pairing> Eq for Commitment<E>where E::G1Affine: Eq,
impl<E: Pairing> StructuralEq for Commitment<E>
impl<E: Pairing> StructuralPartialEq for Commitment<E>
Auto Trait Implementations§
impl<E> RefUnwindSafe for Commitment<E>where <E as Pairing>::G1Affine: RefUnwindSafe,
impl<E> Send for Commitment<E>
impl<E> Sync for Commitment<E>
impl<E> Unpin for Commitment<E>where <E as Pairing>::G1Affine: Unpin,
impl<E> UnwindSafe for Commitment<E>where <E as Pairing>::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
§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,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more