Struct snarkvm_wasm::algorithms::snark::GM17VerifyingKeyGadget [−][src]
Fields
h_g2: <P as PairingGadget<Pairing, F>>::G2Gadget
g_alpha_g1: <P as PairingGadget<Pairing, F>>::G1Gadget
h_beta_g2: <P as PairingGadget<Pairing, F>>::G2Gadget
g_gamma_g1: <P as PairingGadget<Pairing, F>>::G1Gadget
h_gamma_g2: <P as PairingGadget<Pairing, F>>::G2Gadget
query: Vec<<P as PairingGadget<Pairing, F>>::G1Gadget, Global>
Implementations
impl<Pairing, F, P> GM17VerifyingKeyGadget<Pairing, F, P> where
P: PairingGadget<Pairing, F>,
F: Field,
Pairing: PairingEngine,
[src]
P: PairingGadget<Pairing, F>,
F: Field,
Pairing: PairingEngine,
pub fn prepare<CS>(
&self,
cs: CS
) -> Result<GM17PreparedVerifyingKeyGadget<Pairing, F, P>, SynthesisError> where
CS: ConstraintSystem<F>,
[src]
&self,
cs: CS
) -> Result<GM17PreparedVerifyingKeyGadget<Pairing, F, P>, SynthesisError> where
CS: ConstraintSystem<F>,
Trait Implementations
impl<Pairing, F, P> AllocBytesGadget<Vec<u8, Global>, F> for GM17VerifyingKeyGadget<Pairing, F, P> where
P: PairingGadget<Pairing, F>,
F: Field,
Pairing: PairingEngine,
[src]
P: PairingGadget<Pairing, F>,
F: Field,
Pairing: PairingEngine,
pub fn alloc_bytes<FN, T, CS>(
cs: CS,
value_gen: FN
) -> Result<GM17VerifyingKeyGadget<Pairing, F, P>, SynthesisError> where
CS: ConstraintSystem<F>,
T: Borrow<Vec<u8, Global>>,
FN: FnOnce() -> Result<T, SynthesisError>,
[src]
cs: CS,
value_gen: FN
) -> Result<GM17VerifyingKeyGadget<Pairing, F, P>, SynthesisError> where
CS: ConstraintSystem<F>,
T: Borrow<Vec<u8, Global>>,
FN: FnOnce() -> Result<T, SynthesisError>,
pub fn alloc_input_bytes<FN, T, CS>(
cs: CS,
value_gen: FN
) -> Result<GM17VerifyingKeyGadget<Pairing, F, P>, SynthesisError> where
CS: ConstraintSystem<F>,
T: Borrow<Vec<u8, Global>>,
FN: FnOnce() -> Result<T, SynthesisError>,
[src]
cs: CS,
value_gen: FN
) -> Result<GM17VerifyingKeyGadget<Pairing, F, P>, SynthesisError> where
CS: ConstraintSystem<F>,
T: Borrow<Vec<u8, Global>>,
FN: FnOnce() -> Result<T, SynthesisError>,
pub fn alloc_bytes_checked<Fn, T, CS>(
cs: CS,
f: Fn
) -> Result<Self, SynthesisError> where
Fn: FnOnce() -> Result<T, SynthesisError>,
CS: ConstraintSystem<F>,
T: Borrow<V>,
[src]
cs: CS,
f: Fn
) -> Result<Self, SynthesisError> where
Fn: FnOnce() -> Result<T, SynthesisError>,
CS: ConstraintSystem<F>,
T: Borrow<V>,
pub fn alloc_input_bytes_checked<Fn, T, CS>(
cs: CS,
f: Fn
) -> Result<Self, SynthesisError> where
Fn: FnOnce() -> Result<T, SynthesisError>,
CS: ConstraintSystem<F>,
T: Borrow<V>,
[src]
cs: CS,
f: Fn
) -> Result<Self, SynthesisError> where
Fn: FnOnce() -> Result<T, SynthesisError>,
CS: ConstraintSystem<F>,
T: Borrow<V>,
impl<Pairing, F, P> AllocGadget<VerifyingKey<Pairing>, F> for GM17VerifyingKeyGadget<Pairing, F, P> where
P: PairingGadget<Pairing, F>,
F: Field,
Pairing: PairingEngine,
[src]
P: PairingGadget<Pairing, F>,
F: Field,
Pairing: PairingEngine,
pub fn alloc<Fn, T, CS>(
cs: CS,
value_gen: Fn
) -> Result<GM17VerifyingKeyGadget<Pairing, F, P>, SynthesisError> where
Fn: FnOnce() -> Result<T, SynthesisError>,
CS: ConstraintSystem<F>,
T: Borrow<VerifyingKey<Pairing>>,
[src]
cs: CS,
value_gen: Fn
) -> Result<GM17VerifyingKeyGadget<Pairing, F, P>, SynthesisError> where
Fn: FnOnce() -> Result<T, SynthesisError>,
CS: ConstraintSystem<F>,
T: Borrow<VerifyingKey<Pairing>>,
pub fn alloc_input<Fn, T, CS>(
cs: CS,
value_gen: Fn
) -> Result<GM17VerifyingKeyGadget<Pairing, F, P>, SynthesisError> where
Fn: FnOnce() -> Result<T, SynthesisError>,
CS: ConstraintSystem<F>,
T: Borrow<VerifyingKey<Pairing>>,
[src]
cs: CS,
value_gen: Fn
) -> Result<GM17VerifyingKeyGadget<Pairing, F, P>, SynthesisError> where
Fn: FnOnce() -> Result<T, SynthesisError>,
CS: ConstraintSystem<F>,
T: Borrow<VerifyingKey<Pairing>>,
pub fn alloc_constant<Fn, T, CS>(
_cs: CS,
_f: Fn
) -> Result<Self, SynthesisError> where
Fn: FnOnce() -> Result<T, SynthesisError>,
CS: ConstraintSystem<F>,
T: Borrow<V>,
[src]
_cs: CS,
_f: Fn
) -> Result<Self, SynthesisError> where
Fn: FnOnce() -> Result<T, SynthesisError>,
CS: ConstraintSystem<F>,
T: Borrow<V>,
pub fn alloc_checked<Fn, T, CS>(cs: CS, f: Fn) -> Result<Self, SynthesisError> where
Fn: FnOnce() -> Result<T, SynthesisError>,
CS: ConstraintSystem<F>,
T: Borrow<V>,
[src]
Fn: FnOnce() -> Result<T, SynthesisError>,
CS: ConstraintSystem<F>,
T: Borrow<V>,
pub fn alloc_input_checked<Fn, T, CS>(
cs: CS,
f: Fn
) -> Result<Self, SynthesisError> where
Fn: FnOnce() -> Result<T, SynthesisError>,
CS: ConstraintSystem<F>,
T: Borrow<V>,
[src]
cs: CS,
f: Fn
) -> Result<Self, SynthesisError> where
Fn: FnOnce() -> Result<T, SynthesisError>,
CS: ConstraintSystem<F>,
T: Borrow<V>,
impl<Pairing, F, P> Clone for GM17VerifyingKeyGadget<Pairing, F, P> where
P: PairingGadget<Pairing, F>,
F: Field,
Pairing: PairingEngine,
<P as PairingGadget<Pairing, F>>::G1Gadget: Clone,
<P as PairingGadget<Pairing, F>>::GTGadget: Clone,
<P as PairingGadget<Pairing, F>>::G1PreparedGadget: Clone,
<P as PairingGadget<Pairing, F>>::G2PreparedGadget: Clone,
[src]
P: PairingGadget<Pairing, F>,
F: Field,
Pairing: PairingEngine,
<P as PairingGadget<Pairing, F>>::G1Gadget: Clone,
<P as PairingGadget<Pairing, F>>::GTGadget: Clone,
<P as PairingGadget<Pairing, F>>::G1PreparedGadget: Clone,
<P as PairingGadget<Pairing, F>>::G2PreparedGadget: Clone,
pub fn clone(&self) -> GM17VerifyingKeyGadget<Pairing, F, P>
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<Pairing, F, P> ToBytesGadget<F> for GM17VerifyingKeyGadget<Pairing, F, P> where
P: PairingGadget<Pairing, F>,
F: Field,
Pairing: PairingEngine,
[src]
P: PairingGadget<Pairing, F>,
F: Field,
Pairing: PairingEngine,
pub fn to_bytes<CS>(&self, cs: CS) -> Result<Vec<UInt8, Global>, SynthesisError> where
CS: ConstraintSystem<F>,
[src]
CS: ConstraintSystem<F>,
pub fn to_bytes_strict<CS>(
&self,
cs: CS
) -> Result<Vec<UInt8, Global>, SynthesisError> where
CS: ConstraintSystem<F>,
[src]
&self,
cs: CS
) -> Result<Vec<UInt8, Global>, SynthesisError> where
CS: ConstraintSystem<F>,
Auto Trait Implementations
impl<Pairing, F, P> RefUnwindSafe for GM17VerifyingKeyGadget<Pairing, F, P> where
<P as PairingGadget<Pairing, F>>::G1Gadget: RefUnwindSafe,
<P as PairingGadget<Pairing, F>>::G2Gadget: RefUnwindSafe,
<P as PairingGadget<Pairing, F>>::G1Gadget: RefUnwindSafe,
<P as PairingGadget<Pairing, F>>::G2Gadget: RefUnwindSafe,
impl<Pairing, F, P> Send for GM17VerifyingKeyGadget<Pairing, F, P> where
<P as PairingGadget<Pairing, F>>::G1Gadget: Send,
<P as PairingGadget<Pairing, F>>::G2Gadget: Send,
<P as PairingGadget<Pairing, F>>::G1Gadget: Send,
<P as PairingGadget<Pairing, F>>::G2Gadget: Send,
impl<Pairing, F, P> Sync for GM17VerifyingKeyGadget<Pairing, F, P> where
<P as PairingGadget<Pairing, F>>::G1Gadget: Sync,
<P as PairingGadget<Pairing, F>>::G2Gadget: Sync,
<P as PairingGadget<Pairing, F>>::G1Gadget: Sync,
<P as PairingGadget<Pairing, F>>::G2Gadget: Sync,
impl<Pairing, F, P> Unpin for GM17VerifyingKeyGadget<Pairing, F, P> where
<P as PairingGadget<Pairing, F>>::G1Gadget: Unpin,
<P as PairingGadget<Pairing, F>>::G2Gadget: Unpin,
<P as PairingGadget<Pairing, F>>::G1Gadget: Unpin,
<P as PairingGadget<Pairing, F>>::G2Gadget: Unpin,
impl<Pairing, F, P> UnwindSafe for GM17VerifyingKeyGadget<Pairing, F, P> where
<P as PairingGadget<Pairing, F>>::G1Gadget: UnwindSafe,
<P as PairingGadget<Pairing, F>>::G2Gadget: UnwindSafe,
<P as PairingGadget<Pairing, F>>::G1Gadget: UnwindSafe,
<P as PairingGadget<Pairing, F>>::G2Gadget: 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, 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> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub 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.
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>,