Struct snarkvm_algorithms::snark::groth16::Parameters[][src]

pub struct Parameters<E: PairingEngine> {
    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>,
}

Full public (prover and verifier) parameters for the Groth16 zkSNARK.

Fields

vk: VerifyingKey<E>beta_g1: E::G1Affinedelta_g1: E::G1Affinea_query: Vec<E::G1Affine>b_g1_query: Vec<E::G1Affine>b_g2_query: Vec<E::G2Affine>h_query: Vec<E::G1Affine>l_query: Vec<E::G1Affine>

Implementations

impl<E: PairingEngine> Parameters<E>[src]

pub fn write<W: Write>(&self, writer: W) -> IoResult<()>[src]

Serialize the parameters to bytes.

pub fn read<R: Read>(reader: R, checked: bool) -> IoResult<Self>[src]

Deserialize the public parameters from bytes.

Trait Implementations

impl<E: PairingEngine> CanonicalDeserialize for Parameters<E>[src]

impl<E: PairingEngine> CanonicalSerialize for Parameters<E>[src]

impl<E: Clone + PairingEngine> Clone for Parameters<E> where
    E::G1Affine: Clone,
    E::G1Affine: Clone,
    E::G1Affine: Clone,
    E::G1Affine: Clone,
    E::G2Affine: Clone,
    E::G1Affine: Clone,
    E::G1Affine: Clone
[src]

impl<E: Debug + PairingEngine> Debug for Parameters<E> where
    E::G1Affine: Debug,
    E::G1Affine: Debug,
    E::G1Affine: Debug,
    E::G1Affine: Debug,
    E::G2Affine: Debug,
    E::G1Affine: Debug,
    E::G1Affine: Debug
[src]

impl<E: PairingEngine> From<Parameters<E>> for VerifyingKey<E>[src]

impl<E: PairingEngine> From<Parameters<E>> for PreparedVerifyingKey<E>[src]

impl<E: PairingEngine> FromBytes for Parameters<E>[src]

impl<E: PartialEq + PairingEngine> PartialEq<Parameters<E>> for Parameters<E> where
    E::G1Affine: PartialEq,
    E::G1Affine: PartialEq,
    E::G1Affine: PartialEq,
    E::G1Affine: PartialEq,
    E::G2Affine: PartialEq,
    E::G1Affine: PartialEq,
    E::G1Affine: PartialEq
[src]

impl<E: PairingEngine> StructuralPartialEq for Parameters<E>[src]

impl<E: PairingEngine> ToBytes for Parameters<E>[src]

Auto Trait Implementations

impl<E> RefUnwindSafe for Parameters<E> where
    <E as PairingEngine>::G1Affine: RefUnwindSafe,
    <E as PairingEngine>::G2Affine: RefUnwindSafe

impl<E> Send for Parameters<E>

impl<E> Sync for Parameters<E>

impl<E> Unpin for Parameters<E> where
    <E as PairingEngine>::G1Affine: Unpin,
    <E as PairingEngine>::G2Affine: Unpin

impl<E> UnwindSafe for Parameters<E> where
    <E as PairingEngine>::G1Affine: UnwindSafe,
    <E as PairingEngine>::G2Affine: UnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Pointable for T

type Init = T

The type for initializers.

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,