Struct snarkvm_wasm::gm17::GM17 [−][src]
pub struct GM17<E, C, V> where
C: ConstraintSynthesizer<<E as PairingEngine>::Fr>,
E: PairingEngine,
V: ToConstraintField<<E as PairingEngine>::Fr> + ?Sized, { /* fields omitted */ }Expand description
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 GM17<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> Clone for GM17<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 GM17<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> Debug for GM17<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> PartialEq<GM17<E, C, V>> for GM17<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> PartialEq<GM17<E, C, V>> for GM17<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 GM17<E, C, V> where
C: ConstraintSynthesizer<<E as PairingEngine>::Fr>,
E: PairingEngine,
V: ToConstraintField<<E as PairingEngine>::Fr> + ?Sized, [src]
impl<E, C, V> SNARK for GM17<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
pub fn setup<R>(
circuit: &<GM17<E, C, V> as SNARK>::Circuit,
rng: &mut R
) -> Result<(<GM17<E, C, V> as SNARK>::ProvingParameters, <GM17<E, C, V> as SNARK>::PreparedVerificationParameters), SNARKError> where
R: Rng, [src]
circuit: &<GM17<E, C, V> as SNARK>::Circuit,
rng: &mut R
) -> Result<(<GM17<E, C, V> as SNARK>::ProvingParameters, <GM17<E, C, V> as SNARK>::PreparedVerificationParameters), SNARKError> where
R: Rng,
pub fn prove<R>(
pp: &<GM17<E, C, V> as SNARK>::ProvingParameters,
input_and_witness: &<GM17<E, C, V> as SNARK>::AssignedCircuit,
rng: &mut R
) -> Result<<GM17<E, C, V> as SNARK>::Proof, SNARKError> where
R: Rng, [src]
pp: &<GM17<E, C, V> as SNARK>::ProvingParameters,
input_and_witness: &<GM17<E, C, V> as SNARK>::AssignedCircuit,
rng: &mut R
) -> Result<<GM17<E, C, V> as SNARK>::Proof, SNARKError> where
R: Rng,
pub fn verify(
vk: &<GM17<E, C, V> as SNARK>::PreparedVerificationParameters,
input: &<GM17<E, C, V> as SNARK>::VerifierInput,
proof: &<GM17<E, C, V> as SNARK>::Proof
) -> Result<bool, SNARKError>[src]
vk: &<GM17<E, C, V> as SNARK>::PreparedVerificationParameters,
input: &<GM17<E, C, V> as SNARK>::VerifierInput,
proof: &<GM17<E, C, V> as SNARK>::Proof
) -> Result<bool, SNARKError>
impl<Pairing, F, P, C, V> SNARKVerifierGadget<GM17<Pairing, C, V>, F> for GM17VerifierGadget<Pairing, F, P> where
C: ConstraintSynthesizer<<Pairing as PairingEngine>::Fr>,
P: PairingGadget<Pairing, F>,
F: Field,
V: ToConstraintField<<Pairing as PairingEngine>::Fr>,
Pairing: PairingEngine, [src]
impl<Pairing, F, P, C, V> SNARKVerifierGadget<GM17<Pairing, C, V>, F> for GM17VerifierGadget<Pairing, F, P> where
C: ConstraintSynthesizer<<Pairing as PairingEngine>::Fr>,
P: PairingGadget<Pairing, F>,
F: Field,
V: ToConstraintField<<Pairing as PairingEngine>::Fr>,
Pairing: PairingEngine, [src]type ProofGadget = GM17ProofGadget<Pairing, F, P>
type VerificationKeyGadget = GM17VerifyingKeyGadget<Pairing, F, P>
pub fn check_verify<'a, CS, I, T>(
cs: CS,
vk: &<GM17VerifierGadget<Pairing, F, P> as SNARKVerifierGadget<GM17<Pairing, C, V>, F>>::VerificationKeyGadget,
public_inputs: I,
proof: &<GM17VerifierGadget<Pairing, F, P> as SNARKVerifierGadget<GM17<Pairing, C, V>, F>>::ProofGadget
) -> Result<(), SynthesisError> where
CS: ConstraintSystem<F>,
T: 'a + ToBitsBEGadget<F> + ?Sized,
I: Iterator<Item = &'a T>, [src]
cs: CS,
vk: &<GM17VerifierGadget<Pairing, F, P> as SNARKVerifierGadget<GM17<Pairing, C, V>, F>>::VerificationKeyGadget,
public_inputs: I,
proof: &<GM17VerifierGadget<Pairing, F, P> as SNARKVerifierGadget<GM17<Pairing, C, V>, F>>::ProofGadget
) -> Result<(), SynthesisError> where
CS: ConstraintSystem<F>,
T: 'a + ToBitsBEGadget<F> + ?Sized,
I: Iterator<Item = &'a T>,
impl<E, C, V> Eq for GM17<E, C, V> where
C: Eq + ConstraintSynthesizer<<E as PairingEngine>::Fr>,
E: Eq + PairingEngine,
V: Eq + ToConstraintField<<E as PairingEngine>::Fr> + ?Sized, [src]
C: Eq + ConstraintSynthesizer<<E as PairingEngine>::Fr>,
E: Eq + PairingEngine,
V: Eq + ToConstraintField<<E as PairingEngine>::Fr> + ?Sized,
impl<E, C, V> StructuralEq for GM17<E, C, V> where
C: ConstraintSynthesizer<<E as PairingEngine>::Fr>,
E: PairingEngine,
V: ToConstraintField<<E as PairingEngine>::Fr> + ?Sized, [src]
C: ConstraintSynthesizer<<E as PairingEngine>::Fr>,
E: PairingEngine,
V: ToConstraintField<<E as PairingEngine>::Fr> + ?Sized,
impl<E, C, V> StructuralPartialEq for GM17<E, C, V> where
C: ConstraintSynthesizer<<E as PairingEngine>::Fr>,
E: PairingEngine,
V: ToConstraintField<<E as PairingEngine>::Fr> + ?Sized, [src]
C: ConstraintSynthesizer<<E as PairingEngine>::Fr>,
E: PairingEngine,
V: ToConstraintField<<E as PairingEngine>::Fr> + ?Sized,
Auto Trait Implementations
impl<E, C, V: ?Sized> RefUnwindSafe for GM17<E, C, V> where
C: RefUnwindSafe,
E: RefUnwindSafe,
V: RefUnwindSafe,
C: RefUnwindSafe,
E: RefUnwindSafe,
V: RefUnwindSafe,
impl<E, C, V: ?Sized> Send for GM17<E, C, V> where
C: Send,
V: Send,
C: Send,
V: Send,
impl<E, C, V: ?Sized> Sync for GM17<E, C, V> where
C: Sync,
V: Sync,
C: Sync,
V: Sync,
impl<E, C, V: ?Sized> Unpin for GM17<E, C, V> where
C: Unpin,
E: Unpin,
V: Unpin,
C: Unpin,
E: Unpin,
V: Unpin,
impl<E, C, V: ?Sized> UnwindSafe for GM17<E, C, V> where
C: UnwindSafe,
E: UnwindSafe,
V: UnwindSafe,
C: UnwindSafe,
E: UnwindSafe,
V: UnwindSafe,
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]pub fn borrow_mut(&mut self) -> &mut T[src]
pub fn borrow_mut(&mut self) -> &mut T[src]Mutably borrows from an owned value. Read more
impl<Q, K> Equivalent<K> for Q where
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized, [src]
impl<Q, K> Equivalent<K> for Q where
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized, [src]pub fn equivalent(&self, key: &K) -> bool[src]
pub fn equivalent(&self, key: &K) -> bool[src]Compare self to key and return true if they are equal.
impl<T> Pointable for T
impl<T> Pointable for Timpl<T> Same<T> for T
impl<T> Same<T> for Ttype Output = T
type Output = TShould always be Self
impl<T> ToOwned for T where
T: Clone, [src]
impl<T> ToOwned for T where
T: Clone, [src]type Owned = T
type Owned = TThe resulting type after obtaining ownership.
pub fn to_owned(&self) -> T[src]
pub fn to_owned(&self) -> T[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)[src]
pub fn clone_into(&self, target: &mut T)[src]🔬 This is a nightly-only experimental API. (toowned_clone_into)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,