Struct ark_groth16::data_structures::VerifyingKey
source · pub struct VerifyingKey<E: Pairing> {
pub alpha_g1: E::G1Affine,
pub beta_g2: E::G2Affine,
pub gamma_g2: E::G2Affine,
pub delta_g2: E::G2Affine,
pub gamma_abc_g1: Vec<E::G1Affine>,
}
Expand description
A verification key in the Groth16 SNARK.
Fields§
§alpha_g1: E::G1Affine
The alpha * G
, where G
is the generator of E::G1
.
beta_g2: E::G2Affine
The alpha * H
, where H
is the generator of E::G2
.
gamma_g2: E::G2Affine
The gamma * H
, where H
is the generator of E::G2
.
delta_g2: E::G2Affine
The delta * H
, where H
is the generator of E::G2
.
gamma_abc_g1: Vec<E::G1Affine>
The gamma^{-1} * (beta * a_i + alpha * b_i + c_i) * H
, where H
is the generator of E::G1
.
Trait Implementations§
source§impl<E: Pairing> CanonicalDeserialize for VerifyingKey<E>
impl<E: Pairing> CanonicalDeserialize for VerifyingKey<E>
source§fn deserialize_with_mode<R: Read>(
reader: R,
compress: Compress,
validate: Validate
) -> Result<Self, SerializationError>
fn deserialize_with_mode<R: Read>( reader: R, compress: Compress, validate: Validate ) -> Result<Self, SerializationError>
The general deserialize method that takes in customization flags.
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: Pairing> CanonicalSerialize for VerifyingKey<E>
impl<E: Pairing> CanonicalSerialize for VerifyingKey<E>
source§fn serialize_with_mode<W: Write>(
&self,
writer: W,
compress: Compress
) -> Result<(), SerializationError>
fn serialize_with_mode<W: Write>( &self, writer: W, compress: Compress ) -> Result<(), SerializationError>
The general serialize method that takes in customization flags.
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 + Pairing> Clone for VerifyingKey<E>where
E::G1Affine: Clone,
E::G2Affine: Clone,
impl<E: Clone + Pairing> Clone for VerifyingKey<E>where E::G1Affine: Clone, E::G2Affine: Clone,
source§fn clone(&self) -> VerifyingKey<E>
fn clone(&self) -> VerifyingKey<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 + Pairing> Debug for VerifyingKey<E>where
E::G1Affine: Debug,
E::G2Affine: Debug,
impl<E: Debug + Pairing> Debug for VerifyingKey<E>where E::G1Affine: Debug, E::G2Affine: Debug,
source§impl<E: Pairing> Default for VerifyingKey<E>
impl<E: Pairing> Default for VerifyingKey<E>
source§impl<E: Pairing> From<PreparedVerifyingKey<E>> for VerifyingKey<E>
impl<E: Pairing> From<PreparedVerifyingKey<E>> for VerifyingKey<E>
source§fn from(other: PreparedVerifyingKey<E>) -> Self
fn from(other: PreparedVerifyingKey<E>) -> Self
Converts to this type from the input type.
source§impl<E: Pairing> From<VerifyingKey<E>> for PreparedVerifyingKey<E>
impl<E: Pairing> From<VerifyingKey<E>> for PreparedVerifyingKey<E>
source§fn from(other: VerifyingKey<E>) -> Self
fn from(other: VerifyingKey<E>) -> Self
Converts to this type from the input type.
source§impl<E: PartialEq + Pairing> PartialEq<VerifyingKey<E>> for VerifyingKey<E>where
E::G1Affine: PartialEq,
E::G2Affine: PartialEq,
impl<E: PartialEq + Pairing> PartialEq<VerifyingKey<E>> for VerifyingKey<E>where E::G1Affine: PartialEq, E::G2Affine: PartialEq,
source§fn eq(&self, other: &VerifyingKey<E>) -> bool
fn eq(&self, other: &VerifyingKey<E>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.