Struct ark_gm17::GM17 [−][src]
The SNARK of [GrothMaller17].
Trait Implementations
impl<E: PairingEngine> CircuitSpecificSetupSNARK<<E as PairingEngine>::Fr> for GM17<E>
[src]
pub fn setup<C, R>(
circuit: C,
rng: &mut R
) -> Result<(Self::ProvingKey, Self::VerifyingKey), Self::Error> where
C: ConstraintSynthesizer<F>,
R: RngCore + CryptoRng,
circuit: C,
rng: &mut R
) -> Result<(Self::ProvingKey, Self::VerifyingKey), Self::Error> where
C: ConstraintSynthesizer<F>,
R: RngCore + CryptoRng,
impl<E: PairingEngine> SNARK<<E as PairingEngine>::Fr> for GM17<E>
[src]
type ProvingKey = ProvingKey<E>
The information required by the prover to produce a proof for a specific circuit C. Read more
type VerifyingKey = VerifyingKey<E>
The information required by the verifier to check a proof for a specific circuit C. Read more
type Proof = Proof<E>
The proof output by the prover.
type ProcessedVerifyingKey = PreparedVerifyingKey<E>
This contains the verification key, but preprocessed to enable faster verification. Read more
type Error = SynthesisError
Errors encountered during setup, proving, or verification.
fn circuit_specific_setup<C: ConstraintSynthesizer<E::Fr>, R: RngCore>(
circuit: C,
rng: &mut R
) -> Result<(Self::ProvingKey, Self::VerifyingKey), Self::Error>
[src]
circuit: C,
rng: &mut R
) -> Result<(Self::ProvingKey, Self::VerifyingKey), Self::Error>
fn prove<C: ConstraintSynthesizer<E::Fr>, R: RngCore>(
pk: &Self::ProvingKey,
circuit: C,
rng: &mut R
) -> Result<Self::Proof, Self::Error>
[src]
pk: &Self::ProvingKey,
circuit: C,
rng: &mut R
) -> Result<Self::Proof, Self::Error>
fn process_vk(
circuit_vk: &Self::VerifyingKey
) -> Result<Self::ProcessedVerifyingKey, Self::Error>
[src]
circuit_vk: &Self::VerifyingKey
) -> Result<Self::ProcessedVerifyingKey, Self::Error>
fn verify_with_processed_vk(
circuit_pvk: &Self::ProcessedVerifyingKey,
x: &[E::Fr],
proof: &Self::Proof
) -> Result<bool, Self::Error>
[src]
circuit_pvk: &Self::ProcessedVerifyingKey,
x: &[E::Fr],
proof: &Self::Proof
) -> Result<bool, Self::Error>
pub fn verify(
circuit_vk: &Self::VerifyingKey,
public_input: &[F],
proof: &Self::Proof
) -> Result<bool, Self::Error>
circuit_vk: &Self::VerifyingKey,
public_input: &[F],
proof: &Self::Proof
) -> Result<bool, Self::Error>
Auto Trait Implementations
impl<E> RefUnwindSafe for GM17<E> where
E: RefUnwindSafe,
E: RefUnwindSafe,
impl<E> Send for GM17<E>
impl<E> Sync for GM17<E>
impl<E> Unpin for GM17<E> where
E: Unpin,
E: Unpin,
impl<E> UnwindSafe for GM17<E> where
E: UnwindSafe,
E: 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,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Pointable for T
pub const ALIGN: usize
type Init = T
The type for initializers.
pub unsafe fn init(init: <T as Pointable>::Init) -> usize
pub unsafe fn deref<'a>(ptr: usize) -> &'a T
pub unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T
pub unsafe fn drop(ptr: usize)
impl<T> Same<T> for T
type Output = T
Should always be Self
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.
pub 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.
pub 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>,