Trait snarkvm_wasm::traits::utilities::alloc::AllocBytesGadget[][src]

pub trait AllocBytesGadget<V, F> where
    F: Field,
    V: Into<Option<Vec<u8, Global>>> + ?Sized
{ pub fn alloc_bytes<Fn, T, CS>(cs: CS, f: Fn) -> Result<Self, SynthesisError>
    where
        Fn: FnOnce() -> Result<T, SynthesisError>,
        CS: ConstraintSystem<F>,
        T: Borrow<V>
;
pub fn alloc_input_bytes<Fn, T, CS>(
        cs: CS,
        f: Fn
    ) -> Result<Self, SynthesisError>
    where
        Fn: FnOnce() -> Result<T, SynthesisError>,
        CS: ConstraintSystem<F>,
        T: Borrow<V>
; 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>
, { ... }
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>
, { ... } }

Required methods

pub fn alloc_bytes<Fn, T, CS>(cs: CS, f: Fn) -> Result<Self, SynthesisError> where
    Fn: FnOnce() -> Result<T, SynthesisError>,
    CS: ConstraintSystem<F>,
    T: Borrow<V>, 
[src]

pub fn alloc_input_bytes<Fn, T, CS>(
    cs: CS,
    f: Fn
) -> Result<Self, SynthesisError> where
    Fn: FnOnce() -> Result<T, SynthesisError>,
    CS: ConstraintSystem<F>,
    T: Borrow<V>, 
[src]

Loading content...

Provided methods

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]

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]

Loading content...

Implementors

impl<Pairing, F, P> AllocBytesGadget<Vec<u8, Global>, F> for GM17ProofGadget<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]

impl<PairingE, ConstraintF, P> AllocBytesGadget<Vec<u8, Global>, ConstraintF> for ProofGadget<PairingE, ConstraintF, P> where
    P: PairingGadget<PairingE, ConstraintF>,
    PairingE: PairingEngine,
    ConstraintF: Field
[src]

impl<PairingE, ConstraintF, P> AllocBytesGadget<Vec<u8, Global>, ConstraintF> for VerifyingKeyGadget<PairingE, ConstraintF, P> where
    P: PairingGadget<PairingE, ConstraintF>,
    PairingE: PairingEngine,
    ConstraintF: Field
[src]

Loading content...