Struct snarkvm_algorithms::snark::marlin::Commitments
source · pub struct Commitments<E: PairingEngine> {
pub witness_commitments: Vec<WitnessCommitments<E>>,
pub mask_poly: Option<Commitment<E>>,
pub g_1: Commitment<E>,
pub h_1: Commitment<E>,
pub g_a: Commitment<E>,
pub g_b: Commitment<E>,
pub g_c: Commitment<E>,
pub h_2: Commitment<E>,
}
Fields
witness_commitments: Vec<WitnessCommitments<E>>
mask_poly: Option<Commitment<E>>
Commitment to the masking polynomial.
g_1: Commitment<E>
Commitment to the g_1
polynomial.
h_1: Commitment<E>
Commitment to the h_1
polynomial.
g_a: Commitment<E>
Commitment to the g_a
polynomial.
g_b: Commitment<E>
Commitment to the g_b
polynomial.
g_c: Commitment<E>
Commitment to the g_c
polynomial.
h_2: Commitment<E>
Commitment to the h_2
polynomial.
Trait Implementations
sourceimpl<E: PairingEngine> CanonicalDeserialize for Commitments<E>
impl<E: PairingEngine> CanonicalDeserialize for Commitments<E>
fn deserialize_with_mode<R: Read>(
reader: R,
compress: Compress,
validate: Validate
) -> Result<Self, SerializationError>
fn deserialize_compressed<R>(reader: R) -> Result<Self, SerializationError>where
R: Read,
fn deserialize_compressed_unchecked<R>(
reader: R
) -> Result<Self, SerializationError>where
R: Read,
fn deserialize_uncompressed<R>(reader: R) -> Result<Self, SerializationError>where
R: Read,
fn deserialize_uncompressed_unchecked<R>(
reader: R
) -> Result<Self, SerializationError>where
R: Read,
sourceimpl<E: PairingEngine> CanonicalSerialize for Commitments<E>
impl<E: PairingEngine> CanonicalSerialize for Commitments<E>
fn serialize_with_mode<W: Write>(
&self,
writer: W,
compress: Compress
) -> Result<(), SerializationError>
fn serialized_size(&self, compress: Compress) -> usize
fn serialize_compressed<W>(&self, writer: W) -> Result<(), SerializationError>where
W: Write,
fn compressed_size(&self) -> usize
fn serialize_uncompressed<W>(&self, writer: W) -> Result<(), SerializationError>where
W: Write,
fn uncompressed_size(&self) -> usize
sourceimpl<E: Clone + PairingEngine> Clone for Commitments<E>
impl<E: Clone + PairingEngine> Clone for Commitments<E>
sourcefn clone(&self) -> Commitments<E>
fn clone(&self) -> Commitments<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 Commitments<E>
impl<E: Debug + PairingEngine> Debug for Commitments<E>
sourceimpl<E: PartialEq + PairingEngine> PartialEq<Commitments<E>> for Commitments<E>
impl<E: PartialEq + PairingEngine> PartialEq<Commitments<E>> for Commitments<E>
sourcefn eq(&self, other: &Commitments<E>) -> bool
fn eq(&self, other: &Commitments<E>) -> bool
sourceimpl<E: PairingEngine> Valid for Commitments<E>
impl<E: PairingEngine> Valid for Commitments<E>
fn check(&self) -> Result<(), SerializationError>
fn batch_check<'a>(
batch: impl Iterator<Item = &'a Self> + Send
) -> Result<(), SerializationError>where
Self: 'a,
impl<E: Eq + PairingEngine> Eq for Commitments<E>
impl<E: PairingEngine> StructuralEq for Commitments<E>
impl<E: PairingEngine> StructuralPartialEq for Commitments<E>
Auto Trait Implementations
impl<E> RefUnwindSafe for Commitments<E>where
<E as PairingEngine>::G1Affine: RefUnwindSafe,
impl<E> Send for Commitments<E>
impl<E> Sync for Commitments<E>
impl<E> Unpin for Commitments<E>where
<E as PairingEngine>::G1Affine: Unpin,
impl<E> UnwindSafe for Commitments<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.