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: PairingEngine> FromBytes for KZGProof<E>
impl<E: PairingEngine> FromBytes for KZGProof<E>
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>
impl<E: Eq + PairingEngine> Eq for KZGProof<E>
impl<E: PairingEngine> StructuralPartialEq for KZGProof<E>
Auto Trait Implementations§
impl<E> Freeze for KZGProof<E>
impl<E> RefUnwindSafe for KZGProof<E>
impl<E> Send for KZGProof<E>
impl<E> Sync for KZGProof<E>
impl<E> Unpin for KZGProof<E>
impl<E> UnwindSafe for KZGProof<E>
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<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.