Struct snarkvm_polycommit::kzg10::Commitment [−][src]
pub struct Commitment<E: PairingEngine>(pub E::G1Affine);
Expand description
Commitment
commits to a polynomial. It is output by KZG10::commit
.
Trait Implementations
impl<'a, E: PairingEngine> AddAssign<(<E as PairingEngine>::Fr, &'a Commitment<E>)> for Commitment<E>
[src]
impl<'a, E: PairingEngine> AddAssign<(<E as PairingEngine>::Fr, &'a Commitment<E>)> for Commitment<E>
[src]fn add_assign(&mut self, (f, other): (E::Fr, &'a Commitment<E>))
[src]
fn add_assign(&mut self, (f, other): (E::Fr, &'a Commitment<E>))
[src]Performs the +=
operation. Read more
impl<E: PairingEngine> CanonicalDeserialize for Commitment<E>
[src]
impl<E: PairingEngine> CanonicalDeserialize for Commitment<E>
[src]fn deserialize<R: Read>(reader: &mut R) -> Result<Self, SerializationError>
[src]
fn deserialize<R: Read>(reader: &mut R) -> Result<Self, SerializationError>
[src]Reads Self
from reader
.
fn deserialize_uncompressed<R: Read>(
reader: &mut R
) -> Result<Self, SerializationError>
[src]
fn deserialize_uncompressed<R: Read>(
reader: &mut R
) -> Result<Self, SerializationError>
[src]Reads Self
from reader
without compression.
impl<E: PairingEngine> CanonicalSerialize for Commitment<E>
[src]
impl<E: PairingEngine> CanonicalSerialize for Commitment<E>
[src]fn serialize<W: Write>(&self, writer: &mut W) -> Result<(), SerializationError>
[src]
fn serialize<W: Write>(&self, writer: &mut W) -> Result<(), SerializationError>
[src]Serializes self
into writer
.
fn serialized_size(&self) -> usize
[src]
fn serialize_uncompressed<W: Write>(
&self,
writer: &mut W
) -> Result<(), SerializationError>
[src]
fn serialize_uncompressed<W: Write>(
&self,
writer: &mut W
) -> Result<(), SerializationError>
[src]Serializes self
into writer
without compression.
fn uncompressed_size(&self) -> usize
[src]
impl<E: PairingEngine> Clone for Commitment<E>
[src]
impl<E: PairingEngine> Clone for Commitment<E>
[src]impl<E: PairingEngine> Debug for Commitment<E>
[src]
impl<E: PairingEngine> Debug for Commitment<E>
[src]impl<E: PairingEngine> Default for Commitment<E>
[src]
impl<E: PairingEngine> Default for Commitment<E>
[src]impl<E: PairingEngine> FromBytes for Commitment<E>
[src]
impl<E: PairingEngine> FromBytes for Commitment<E>
[src]impl<E: PairingEngine> Hash for Commitment<E>
[src]
impl<E: PairingEngine> Hash for Commitment<E>
[src]impl<E: PairingEngine> PCCommitment for Commitment<E>
[src]
impl<E: PairingEngine> PCCommitment for Commitment<E>
[src]fn has_degree_bound(&self) -> bool
[src]
fn has_degree_bound(&self) -> bool
[src]Does this commitment have a degree bound?
fn is_in_correct_subgroup_assuming_on_curve(&self) -> bool
[src]
fn is_in_correct_subgroup_assuming_on_curve(&self) -> bool
[src]Does this commitment’s affine belong to the correct subgroup?
impl<E: PairingEngine> PCPreparedCommitment<Commitment<E>> for PreparedCommitment<E>
[src]
impl<E: PairingEngine> PCPreparedCommitment<Commitment<E>> for PreparedCommitment<E>
[src]fn prepare(comm: &Commitment<E>) -> Self
[src]
fn prepare(comm: &Commitment<E>) -> Self
[src]prepare PreparedCommitment
from Commitment
impl<E: PairingEngine> PartialEq<Commitment<E>> for Commitment<E>
[src]
impl<E: PairingEngine> PartialEq<Commitment<E>> for Commitment<E>
[src]impl<E: PairingEngine> ToBytes for Commitment<E>
[src]
impl<E: PairingEngine> ToBytes for Commitment<E>
[src]impl<E: PairingEngine> ToConstraintField<<E as PairingEngine>::Fq> for Commitment<E> where
E::G1Affine: ToConstraintField<E::Fq>,
[src]
impl<E: PairingEngine> ToConstraintField<<E as PairingEngine>::Fq> for Commitment<E> where
E::G1Affine: ToConstraintField<E::Fq>,
[src]fn to_field_elements(&self) -> Result<Vec<E::Fq>, ConstraintFieldError>
[src]
impl<E: PairingEngine> Copy for Commitment<E>
[src]
impl<E: PairingEngine> Eq for Commitment<E>
[src]
Auto Trait Implementations
impl<E> RefUnwindSafe for Commitment<E> where
<E as PairingEngine>::G1Affine: RefUnwindSafe,
<E as PairingEngine>::G1Affine: RefUnwindSafe,
impl<E> Send for Commitment<E>
impl<E> Sync for Commitment<E>
impl<E> Unpin for Commitment<E> where
<E as PairingEngine>::G1Affine: Unpin,
<E as PairingEngine>::G1Affine: Unpin,
impl<E> UnwindSafe for Commitment<E> where
<E as PairingEngine>::G1Affine: UnwindSafe,
<E as PairingEngine>::G1Affine: UnwindSafe,
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<Q, K> Equivalent<K> for Q where
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
[src]
impl<Q, K> Equivalent<K> for Q where
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
[src]pub fn equivalent(&self, key: &K) -> bool
[src]
pub fn equivalent(&self, key: &K) -> bool
[src]Compare self to key
and return true
if they are equal.
impl<T> Pointable for T
impl<T> Pointable for T
impl<T> Same<T> for T
impl<T> Same<T> for T
type Output = T
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn to_owned(&self) -> T
[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
[src]
pub fn clone_into(&self, target: &mut T)
[src]🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,