pub struct Proof<E: PairingEngine> {
    pub a: E::G1Affine,
    pub b: E::G2Affine,
    pub c: E::G1Affine,
    /* private fields */
}
Expand description

A proof in the Groth16 SNARK.

Fields

a: E::G1Affineb: E::G2Affinec: E::G1Affine

Implementations

Returns true if the proof is in compressed form.

Serialize the proof into bytes in compressed form, for storage on disk or transmission over the network.

Serialize the proof into bytes in uncompressed form, for storage on disk or transmission over the network.

Deserialize the proof from compressed bytes.

Deserialize the proof from uncompressed bytes.

Deserialize a proof from compressed or uncompressed bytes.

Returns the number of bytes in a compressed proof serialization.

Returns the number of bytes in an uncompressed proof serialization.

Trait Implementations

Reads Self from reader.

Reads Self from reader without compression.

Serializes self into writer.

Serializes self into writer without compression.

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

Deserialize this value from the given Serde deserializer. Read more

Formats the value using the given formatter. Read more

Reads Self from reader as little-endian bytes.

Returns Self from a byte array in little-endian order.

The associated error which can be returned from parsing.

Parses a string s to return a value of this type. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Serialize this value into the given Serde serializer. Read more

Writes self into writer as little-endian bytes.

Returns self as a byte array in little-endian order.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Compare self to key and return true if they are equal.

Performs the conversion.

Performs the conversion.

The alignment of pointer.

The type for initializers.

Initializes a with the given initializer. Read more

Dereferences the given pointer. Read more

Mutably dereferences the given pointer. Read more

Drops the object pointed to by the given pointer. Read more

Should always be Self

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

Uses borrowed data to replace owned data, usually by cloning. Read more

Converts the given value to a String. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.