Struct snarkvm_wasm::groth16::Groth16[][src]

pub struct Groth16<E, C, V> where
    C: ConstraintSynthesizer<<E as PairingEngine>::Fr>,
    E: PairingEngine,
    V: ToConstraintField<<E as PairingEngine>::Fr> + ?Sized
{ /* fields omitted */ }

Note: V should serialize its contents to Vec<E::Fr> in the same order as during the constraint generation.

Trait Implementations

impl<E, C, V> Clone for Groth16<E, C, V> where
    C: Clone + ConstraintSynthesizer<<E as PairingEngine>::Fr>,
    E: Clone + PairingEngine,
    V: Clone + ToConstraintField<<E as PairingEngine>::Fr> + ?Sized
[src]

impl<E, C, V> Debug for Groth16<E, C, V> where
    C: Debug + ConstraintSynthesizer<<E as PairingEngine>::Fr>,
    E: Debug + PairingEngine,
    V: Debug + ToConstraintField<<E as PairingEngine>::Fr> + ?Sized
[src]

impl<E, C, V> Eq for Groth16<E, C, V> where
    C: Eq + ConstraintSynthesizer<<E as PairingEngine>::Fr>,
    E: Eq + PairingEngine,
    V: Eq + ToConstraintField<<E as PairingEngine>::Fr> + ?Sized
[src]

impl<E, C, V> PartialEq<Groth16<E, C, V>> for Groth16<E, C, V> where
    C: PartialEq<C> + ConstraintSynthesizer<<E as PairingEngine>::Fr>,
    E: PartialEq<E> + PairingEngine,
    V: PartialEq<V> + ToConstraintField<<E as PairingEngine>::Fr> + ?Sized
[src]

impl<E, C, V> SNARK for Groth16<E, C, V> where
    C: ConstraintSynthesizer<<E as PairingEngine>::Fr>,
    E: PairingEngine,
    V: ToConstraintField<<E as PairingEngine>::Fr> + ?Sized
[src]

type AssignedCircuit = C

type Circuit = C

type PreparedVerificationParameters = PreparedVerifyingKey<E>

type Proof = Proof<E>

type ProvingParameters = Parameters<E>

type VerificationParameters = VerifyingKey<E>

type VerifierInput = V

impl<PairingE, ConstraintF, P, C, V> SNARKVerifierGadget<Groth16<PairingE, C, V>, ConstraintF> for Groth16VerifierGadget<PairingE, ConstraintF, P> where
    C: ConstraintSynthesizer<<PairingE as PairingEngine>::Fr>,
    P: PairingGadget<PairingE, ConstraintF>,
    V: ToConstraintField<<PairingE as PairingEngine>::Fr>,
    PairingE: PairingEngine,
    ConstraintF: Field
[src]

type ProofGadget = ProofGadget<PairingE, ConstraintF, P>

type VerificationKeyGadget = VerifyingKeyGadget<PairingE, ConstraintF, P>

impl<E, C, V> StructuralEq for Groth16<E, C, V> where
    C: ConstraintSynthesizer<<E as PairingEngine>::Fr>,
    E: PairingEngine,
    V: ToConstraintField<<E as PairingEngine>::Fr> + ?Sized
[src]

impl<E, C, V> StructuralPartialEq for Groth16<E, C, V> where
    C: ConstraintSynthesizer<<E as PairingEngine>::Fr>,
    E: PairingEngine,
    V: ToConstraintField<<E as PairingEngine>::Fr> + ?Sized
[src]

Auto Trait Implementations

impl<E, C, V: ?Sized> RefUnwindSafe for Groth16<E, C, V> where
    C: RefUnwindSafe,
    E: RefUnwindSafe,
    V: RefUnwindSafe

impl<E, C, V: ?Sized> Send for Groth16<E, C, V> where
    C: Send,
    V: Send

impl<E, C, V: ?Sized> Sync for Groth16<E, C, V> where
    C: Sync,
    V: Sync

impl<E, C, V: ?Sized> Unpin for Groth16<E, C, V> where
    C: Unpin,
    E: Unpin,
    V: Unpin

impl<E, C, V: ?Sized> UnwindSafe for Groth16<E, C, V> where
    C: UnwindSafe,
    E: UnwindSafe,
    V: 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<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?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>,