Struct ark_groth16::data_structures::ProvingKey
source · pub struct ProvingKey<E: Pairing> {
pub vk: VerifyingKey<E>,
pub beta_g1: E::G1Affine,
pub delta_g1: E::G1Affine,
pub a_query: Vec<E::G1Affine>,
pub b_g1_query: Vec<E::G1Affine>,
pub b_g2_query: Vec<E::G2Affine>,
pub h_query: Vec<E::G1Affine>,
pub l_query: Vec<E::G1Affine>,
}
Expand description
The prover key for for the Groth16 zkSNARK.
Fields§
§vk: VerifyingKey<E>
The underlying verification key.
beta_g1: E::G1Affine
The element beta * G
in E::G1
.
delta_g1: E::G1Affine
The element delta * G
in E::G1
.
a_query: Vec<E::G1Affine>
The elements a_i * G
in E::G1
.
b_g1_query: Vec<E::G1Affine>
The elements b_i * G
in E::G1
.
b_g2_query: Vec<E::G2Affine>
The elements b_i * H
in E::G2
.
h_query: Vec<E::G1Affine>
The elements h_i * G
in E::G1
.
l_query: Vec<E::G1Affine>
The elements l_i * G
in E::G1
.
Trait Implementations§
source§impl<E: Pairing> CanonicalDeserialize for ProvingKey<E>
impl<E: Pairing> CanonicalDeserialize for ProvingKey<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 ProvingKey<E>
impl<E: Pairing> CanonicalSerialize for ProvingKey<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 ProvingKey<E>where
E::G1Affine: Clone,
E::G2Affine: Clone,
impl<E: Clone + Pairing> Clone for ProvingKey<E>where E::G1Affine: Clone, E::G2Affine: Clone,
source§fn clone(&self) -> ProvingKey<E>
fn clone(&self) -> ProvingKey<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 ProvingKey<E>where
E::G1Affine: Debug,
E::G2Affine: Debug,
impl<E: Debug + Pairing> Debug for ProvingKey<E>where E::G1Affine: Debug, E::G2Affine: Debug,
source§impl<E: PartialEq + Pairing> PartialEq<ProvingKey<E>> for ProvingKey<E>where
E::G1Affine: PartialEq,
E::G2Affine: PartialEq,
impl<E: PartialEq + Pairing> PartialEq<ProvingKey<E>> for ProvingKey<E>where E::G1Affine: PartialEq, E::G2Affine: PartialEq,
source§fn eq(&self, other: &ProvingKey<E>) -> bool
fn eq(&self, other: &ProvingKey<E>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.