Struct ark_groth16::data_structures::PreparedVerifyingKey
source · pub struct PreparedVerifyingKey<E: Pairing> {
pub vk: VerifyingKey<E>,
pub alpha_g1_beta_g2: E::TargetField,
pub gamma_g2_neg_pc: E::G2Prepared,
pub delta_g2_neg_pc: E::G2Prepared,
}
Expand description
Preprocessed verification key parameters that enable faster verification at the expense of larger size in memory.
Fields§
§vk: VerifyingKey<E>
The unprepared verification key.
alpha_g1_beta_g2: E::TargetField
The element e(alpha * G, beta * H)
in E::GT
.
gamma_g2_neg_pc: E::G2Prepared
The element - gamma * H
in E::G2
, prepared for use in pairings.
delta_g2_neg_pc: E::G2Prepared
The element - delta * H
in E::G2
, prepared for use in pairings.
Trait Implementations§
source§impl<E: Pairing> CanonicalDeserialize for PreparedVerifyingKey<E>
impl<E: Pairing> CanonicalDeserialize for PreparedVerifyingKey<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 PreparedVerifyingKey<E>
impl<E: Pairing> CanonicalSerialize for PreparedVerifyingKey<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 PreparedVerifyingKey<E>where
E::TargetField: Clone,
E::G2Prepared: Clone,
impl<E: Clone + Pairing> Clone for PreparedVerifyingKey<E>where E::TargetField: Clone, E::G2Prepared: Clone,
source§fn clone(&self) -> PreparedVerifyingKey<E>
fn clone(&self) -> PreparedVerifyingKey<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 PreparedVerifyingKey<E>where
E::TargetField: Debug,
E::G2Prepared: Debug,
impl<E: Debug + Pairing> Debug for PreparedVerifyingKey<E>where E::TargetField: Debug, E::G2Prepared: Debug,
source§impl<E: Pairing> Default for PreparedVerifyingKey<E>
impl<E: Pairing> Default for PreparedVerifyingKey<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<PreparedVerifyingKey<E>> for PreparedVerifyingKey<E>where
E::TargetField: PartialEq,
E::G2Prepared: PartialEq,
impl<E: PartialEq + Pairing> PartialEq<PreparedVerifyingKey<E>> for PreparedVerifyingKey<E>where E::TargetField: PartialEq, E::G2Prepared: PartialEq,
source§fn eq(&self, other: &PreparedVerifyingKey<E>) -> bool
fn eq(&self, other: &PreparedVerifyingKey<E>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.