Struct snarkvm_wasm::algorithms::snark::GM17VerifyingKeyGadget [−][src]
pub struct GM17VerifyingKeyGadget<Pairing, F, P> where
P: PairingGadget<Pairing, F>,
F: Field,
Pairing: PairingEngine, { pub h_g2: <P as PairingGadget<Pairing, F>>::G2Gadget, pub g_alpha_g1: <P as PairingGadget<Pairing, F>>::G1Gadget, pub h_beta_g2: <P as PairingGadget<Pairing, F>>::G2Gadget, pub g_gamma_g1: <P as PairingGadget<Pairing, F>>::G1Gadget, pub h_gamma_g2: <P as PairingGadget<Pairing, F>>::G2Gadget, pub query: Vec<<P as PairingGadget<Pairing, F>>::G1Gadget, Global>, }
Fields
h_g2: <P as PairingGadget<Pairing, F>>::G2Gadgetg_alpha_g1: <P as PairingGadget<Pairing, F>>::G1Gadgeth_beta_g2: <P as PairingGadget<Pairing, F>>::G2Gadgetg_gamma_g1: <P as PairingGadget<Pairing, F>>::G1Gadgeth_gamma_g2: <P as PairingGadget<Pairing, F>>::G2Gadgetquery: 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]
impl<Pairing, F, P> GM17VerifyingKeyGadget<Pairing, F, P> where
P: PairingGadget<Pairing, F>,
F: Field,
Pairing: PairingEngine, [src]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]
impl<Pairing, F, P> AllocBytesGadget<Vec<u8, Global>, F> for GM17VerifyingKeyGadget<Pairing, F, P> where
P: PairingGadget<Pairing, F>,
F: Field,
Pairing: PairingEngine, [src]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>,
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]
Fn: FnOnce() -> Result<T, SynthesisError>,
CS: ConstraintSystem<F>,
T: Borrow<V>,
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]
impl<Pairing, F, P> AllocGadget<VerifyingKey<Pairing>, F> for GM17VerifyingKeyGadget<Pairing, F, P> where
P: PairingGadget<Pairing, F>,
F: Field,
Pairing: PairingEngine, [src]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>>,
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]
Fn: FnOnce() -> Result<T, SynthesisError>,
CS: ConstraintSystem<F>,
T: Borrow<V>,
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>,
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]
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]
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]pub fn clone(&self) -> GM17VerifyingKeyGadget<Pairing, F, P>[src]
pub fn clone(&self) -> GM17VerifyingKeyGadget<Pairing, F, P>[src]Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
fn clone_from(&mut self, source: &Self)1.0.0[src]Performs copy-assignment from source. Read more
impl<Pairing, F, P> ToBytesGadget<F> for GM17VerifyingKeyGadget<Pairing, F, P> where
P: PairingGadget<Pairing, F>,
F: Field,
Pairing: PairingEngine, [src]
impl<Pairing, F, P> ToBytesGadget<F> for GM17VerifyingKeyGadget<Pairing, F, P> where
P: PairingGadget<Pairing, F>,
F: Field,
Pairing: PairingEngine, [src]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]
pub fn to_bytes_strict<CS>(
&self,
cs: CS
) -> Result<Vec<UInt8, Global>, SynthesisError> where
CS: ConstraintSystem<F>, [src]Additionally checks if the produced list of booleans is ‘valid’.
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> 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<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>,