Struct snarkvm_algorithms::polycommit::kzg10::KZGProof
source · pub struct KZGProof<E: PairingEngine> {
pub w: E::G1Affine,
pub random_v: Option<E::Fr>,
}
Expand description
KZGProof
is an evaluation proof that is output by KZG10::open
.
Fields§
§w: E::G1Affine
This is a commitment to the witness polynomial; see [KZG10] for more details.
random_v: Option<E::Fr>
This is the evaluation of the random polynomial at the point for which the evaluation proof was produced.
Implementations§
source§impl<E: PairingEngine> KZGProof<E>
impl<E: PairingEngine> KZGProof<E>
pub fn absorb_into_sponge(&self, sponge: &mut impl AlgebraicSponge<E::Fq, 2>)
Trait Implementations§
source§impl<E: PairingEngine> CanonicalDeserialize for KZGProof<E>
impl<E: PairingEngine> CanonicalDeserialize for KZGProof<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,
source§impl<E: PairingEngine> CanonicalSerialize for KZGProof<E>
impl<E: PairingEngine> CanonicalSerialize for KZGProof<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
source§impl<E: Default + PairingEngine> Default for KZGProof<E>where
E::G1Affine: Default,
E::Fr: Default,
impl<E: Default + PairingEngine> Default for KZGProof<E>where E::G1Affine: Default, E::Fr: Default,
source§impl<E: PairingEngine> FromBytes for KZGProof<E>
impl<E: PairingEngine> FromBytes for KZGProof<E>
source§impl<E: PartialEq + PairingEngine> PartialEq<KZGProof<E>> for KZGProof<E>where
E::G1Affine: PartialEq,
E::Fr: PartialEq,
impl<E: PartialEq + PairingEngine> PartialEq<KZGProof<E>> for KZGProof<E>where E::G1Affine: PartialEq, E::Fr: PartialEq,
source§impl<E: PairingEngine> ToBytes for KZGProof<E>
impl<E: PairingEngine> ToBytes for KZGProof<E>
source§impl<E: PairingEngine> Valid for KZGProof<E>
impl<E: PairingEngine> Valid for KZGProof<E>
fn check(&self) -> Result<(), SerializationError>
fn batch_check<'a>( batch: impl Iterator<Item = &'a Self> + Send ) -> Result<(), SerializationError>where Self: 'a,
impl<E: Copy + PairingEngine> Copy for KZGProof<E>where E::G1Affine: Copy, E::Fr: Copy,
impl<E: Eq + PairingEngine> Eq for KZGProof<E>where E::G1Affine: Eq, E::Fr: Eq,
impl<E: PairingEngine> StructuralEq for KZGProof<E>
impl<E: PairingEngine> StructuralPartialEq for KZGProof<E>
Auto Trait Implementations§
impl<E> RefUnwindSafe for KZGProof<E>where <E as PairingEngine>::Fr: RefUnwindSafe, <E as PairingEngine>::G1Affine: RefUnwindSafe,
impl<E> Send for KZGProof<E>
impl<E> Sync for KZGProof<E>
impl<E> Unpin for KZGProof<E>where <E as PairingEngine>::Fr: Unpin, <E as PairingEngine>::G1Affine: Unpin,
impl<E> UnwindSafe for KZGProof<E>where <E as PairingEngine>::Fr: UnwindSafe, <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
§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
Compare self to
key
and return true
if they are equal.