[−][src]Struct snarkos_algorithms::snark::groth16::snark::Groth16
Note: V should serialize its contents to Vec<E::Fr>
in the same order as
during the constraint generation.
Trait Implementations
impl<E: Clone + PairingEngine, C: Clone + ConstraintSynthesizer<E::Fr>, V: Clone + ToConstraintField<E::Fr> + ?Sized> Clone for Groth16<E, C, V>
[src]
impl<E: Debug + PairingEngine, C: Debug + ConstraintSynthesizer<E::Fr>, V: Debug + ToConstraintField<E::Fr> + ?Sized> Debug for Groth16<E, C, V>
[src]
impl<E: Eq + PairingEngine, C: Eq + ConstraintSynthesizer<E::Fr>, V: Eq + ToConstraintField<E::Fr> + ?Sized> Eq for Groth16<E, C, V>
[src]
impl<E: PartialEq + PairingEngine, C: PartialEq + ConstraintSynthesizer<E::Fr>, V: PartialEq + ToConstraintField<E::Fr> + ?Sized> PartialEq<Groth16<E, C, V>> for Groth16<E, C, V>
[src]
fn eq(&self, other: &Groth16<E, C, V>) -> bool
[src]
fn ne(&self, other: &Groth16<E, C, V>) -> bool
[src]
impl<E: PairingEngine, C: ConstraintSynthesizer<E::Fr>, V: ToConstraintField<E::Fr> + ?Sized> SNARK for Groth16<E, C, V>
[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
fn setup<R: Rng>(
circuit: Self::Circuit,
rng: &mut R
) -> Result<(Self::ProvingParameters, Self::PreparedVerificationParameters), SNARKError>
[src]
circuit: Self::Circuit,
rng: &mut R
) -> Result<(Self::ProvingParameters, Self::PreparedVerificationParameters), SNARKError>
fn prove<R: Rng>(
pp: &Self::ProvingParameters,
input_and_witness: Self::AssignedCircuit,
rng: &mut R
) -> Result<Self::Proof, SNARKError>
[src]
pp: &Self::ProvingParameters,
input_and_witness: Self::AssignedCircuit,
rng: &mut R
) -> Result<Self::Proof, SNARKError>
fn verify(
vk: &Self::PreparedVerificationParameters,
input: &Self::VerifierInput,
proof: &Self::Proof
) -> Result<bool, SNARKError>
[src]
vk: &Self::PreparedVerificationParameters,
input: &Self::VerifierInput,
proof: &Self::Proof
) -> Result<bool, SNARKError>
impl<E: PairingEngine, C: ConstraintSynthesizer<E::Fr>, V: ToConstraintField<E::Fr> + ?Sized> StructuralEq for Groth16<E, C, V>
[src]
impl<E: PairingEngine, C: ConstraintSynthesizer<E::Fr>, V: ToConstraintField<E::Fr> + ?Sized> StructuralPartialEq for Groth16<E, C, V>
[src]
Auto Trait Implementations
impl<E, C, V: ?Sized> RefUnwindSafe for Groth16<E, C, V> where
C: RefUnwindSafe,
E: RefUnwindSafe,
V: RefUnwindSafe,
C: RefUnwindSafe,
E: RefUnwindSafe,
V: RefUnwindSafe,
impl<E, C, V: ?Sized> Send for Groth16<E, C, V> where
C: Send,
V: Send,
C: Send,
V: Send,
impl<E, C, V: ?Sized> Sync for Groth16<E, C, V> where
C: Sync,
V: Sync,
C: Sync,
V: Sync,
impl<E, C, V: ?Sized> Unpin for Groth16<E, C, V> where
C: Unpin,
E: Unpin,
V: Unpin,
C: Unpin,
E: Unpin,
V: Unpin,
impl<E, C, V: ?Sized> UnwindSafe for Groth16<E, C, V> where
C: UnwindSafe,
E: UnwindSafe,
V: UnwindSafe,
C: UnwindSafe,
E: UnwindSafe,
V: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,