Struct snarkvm_algorithms::polycommit::kzg10::VerifierKey
source · pub struct VerifierKey<E: PairingEngine> {
pub g: E::G1Affine,
pub gamma_g: E::G1Affine,
pub h: E::G2Affine,
pub beta_h: E::G2Affine,
pub prepared_h: <E::G2Affine as PairingCurve>::Prepared,
pub prepared_beta_h: <E::G2Affine as PairingCurve>::Prepared,
}
Expand description
VerifierKey
is used to check evaluation proofs for a given commitment.
Fields§
§g: E::G1Affine
The generator of G1.
gamma_g: E::G1Affine
The generator of G1 that is used for making a commitment hiding.
h: E::G2Affine
The generator of G2.
beta_h: E::G2Affine
\beta times the above generator of G2.
prepared_h: <E::G2Affine as PairingCurve>::Prepared
The generator of G2, prepared for use in pairings.
prepared_beta_h: <E::G2Affine as PairingCurve>::Prepared
\beta times the above generator of G2, prepared for use in pairings.
Trait Implementations§
source§impl<E: PairingEngine> CanonicalDeserialize for VerifierKey<E>
impl<E: PairingEngine> CanonicalDeserialize for VerifierKey<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 VerifierKey<E>
impl<E: PairingEngine> CanonicalSerialize for VerifierKey<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: Clone + PairingEngine> Clone for VerifierKey<E>where
E::G1Affine: Clone,
E::G2Affine: Clone,
impl<E: Clone + PairingEngine> Clone for VerifierKey<E>where E::G1Affine: Clone, E::G2Affine: Clone,
source§fn clone(&self) -> VerifierKey<E>
fn clone(&self) -> VerifierKey<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: Debug + PairingEngine> Debug for VerifierKey<E>where
E::G1Affine: Debug,
E::G2Affine: Debug,
impl<E: Debug + PairingEngine> Debug for VerifierKey<E>where E::G1Affine: Debug, E::G2Affine: Debug,
source§impl<E: Default + PairingEngine> Default for VerifierKey<E>where
E::G1Affine: Default,
E::G2Affine: Default,
impl<E: Default + PairingEngine> Default for VerifierKey<E>where E::G1Affine: Default, E::G2Affine: Default,
source§fn default() -> VerifierKey<E>
fn default() -> VerifierKey<E>
Returns the “default value” for a type. Read more
source§impl<E: PairingEngine> FromBytes for VerifierKey<E>
impl<E: PairingEngine> FromBytes for VerifierKey<E>
source§impl<E: PartialEq + PairingEngine> PartialEq for VerifierKey<E>where
E::G1Affine: PartialEq,
E::G2Affine: PartialEq,
impl<E: PartialEq + PairingEngine> PartialEq for VerifierKey<E>where E::G1Affine: PartialEq, E::G2Affine: PartialEq,
source§fn eq(&self, other: &VerifierKey<E>) -> bool
fn eq(&self, other: &VerifierKey<E>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl<E: PairingEngine> ToBytes for VerifierKey<E>
impl<E: PairingEngine> ToBytes for VerifierKey<E>
source§impl<E: PairingEngine> Valid for VerifierKey<E>
impl<E: PairingEngine> Valid for VerifierKey<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 VerifierKey<E>where E::G1Affine: Eq, E::G2Affine: Eq,
impl<E: PairingEngine> StructuralEq for VerifierKey<E>
impl<E: PairingEngine> StructuralPartialEq for VerifierKey<E>
Auto Trait Implementations§
impl<E> RefUnwindSafe for VerifierKey<E>where <E as PairingEngine>::G1Affine: RefUnwindSafe, <E as PairingEngine>::G2Affine: RefUnwindSafe, <<E as PairingEngine>::G2Affine as PairingCurve>::Prepared: RefUnwindSafe,
impl<E> Send for VerifierKey<E>
impl<E> Sync for VerifierKey<E>
impl<E> Unpin for VerifierKey<E>where <E as PairingEngine>::G1Affine: Unpin, <E as PairingEngine>::G2Affine: Unpin, <<E as PairingEngine>::G2Affine as PairingCurve>::Prepared: Unpin,
impl<E> UnwindSafe for VerifierKey<E>where <E as PairingEngine>::G1Affine: UnwindSafe, <E as PairingEngine>::G2Affine: UnwindSafe, <<E as PairingEngine>::G2Affine as PairingCurve>::Prepared: 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.