Struct ark_groth16::data_structures::Proof
source · pub struct Proof<E: Pairing> {
pub a: E::G1Affine,
pub b: E::G2Affine,
pub c: E::G1Affine,
}
Expand description
A proof in the Groth16 SNARK.
Fields§
§a: E::G1Affine
The A
element in G1
.
b: E::G2Affine
The B
element in G2
.
c: E::G1Affine
The C
element in G1
.
Trait Implementations§
source§impl<E: Pairing> CanonicalDeserialize for Proof<E>
impl<E: Pairing> CanonicalDeserialize for Proof<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 Proof<E>
impl<E: Pairing> CanonicalSerialize for Proof<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.