Trait snarkvm_wasm::AllocGadget[][src]

pub trait AllocGadget<V, F> where
    F: Field,
    V: ?Sized
{ fn alloc<Fn, T, CS>(cs: CS, f: Fn) -> Result<Self, SynthesisError>
    where
        Fn: FnOnce() -> Result<T, SynthesisError>,
        CS: ConstraintSystem<F>,
        T: Borrow<V>
;
fn alloc_input<Fn, T, CS>(cs: CS, f: Fn) -> Result<Self, SynthesisError>
    where
        Fn: FnOnce() -> Result<T, SynthesisError>,
        CS: ConstraintSystem<F>,
        T: Borrow<V>
; 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>
, { ... }
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>
, { ... }
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>
, { ... } }

Required methods

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

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

Provided methods

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 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 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]

Implementations on Foreign Types

impl<I, F, A> AllocGadget<[I], F> for Vec<A, Global> where
    A: AllocGadget<I, F>,
    F: Field
[src]

pub fn alloc<Fn, T, CS>(cs: CS, f: Fn) -> Result<Vec<A, Global>, SynthesisError> where
    Fn: FnOnce() -> Result<T, SynthesisError>,
    CS: ConstraintSystem<F>,
    T: Borrow<[I]>, 
[src]

pub fn alloc_checked<Fn, T, CS>(
    cs: CS,
    f: Fn
) -> Result<Vec<A, Global>, SynthesisError> where
    Fn: FnOnce() -> Result<T, SynthesisError>,
    CS: ConstraintSystem<F>,
    T: Borrow<[I]>, 
[src]

pub fn alloc_input<Fn, T, CS>(
    cs: CS,
    f: Fn
) -> Result<Vec<A, Global>, SynthesisError> where
    Fn: FnOnce() -> Result<T, SynthesisError>,
    CS: ConstraintSystem<F>,
    T: Borrow<[I]>, 
[src]

pub fn alloc_input_checked<Fn, T, CS>(
    cs: CS,
    f: Fn
) -> Result<Vec<A, Global>, SynthesisError> where
    Fn: FnOnce() -> Result<T, SynthesisError>,
    CS: ConstraintSystem<F>,
    T: Borrow<[I]>, 
[src]

Implementors

impl<C, H, CGadget, HGadget, F> AllocGadget<CommitmentMerklePath<C, H>, F> for CommitmentMerklePathGadget<C, H, CGadget, HGadget, F> where
    C: CommitmentScheme,
    H: CRH,
    F: Field,
    CGadget: CommitmentGadget<C, F>,
    HGadget: CRHGadget<H, F>, 
[src]

pub fn alloc<Fn, T, CS>(
    cs: CS,
    value_gen: Fn
) -> Result<CommitmentMerklePathGadget<C, H, CGadget, HGadget, F>, SynthesisError> where
    Fn: FnOnce() -> Result<T, SynthesisError>,
    CS: ConstraintSystem<F>,
    T: Borrow<CommitmentMerklePath<C, H>>, 
[src]

pub fn alloc_input<Fn, T, CS>(
    cs: CS,
    value_gen: Fn
) -> Result<CommitmentMerklePathGadget<C, H, CGadget, HGadget, F>, SynthesisError> where
    Fn: FnOnce() -> Result<T, SynthesisError>,
    CS: ConstraintSystem<F>,
    T: Borrow<CommitmentMerklePath<C, H>>, 
[src]

impl<F> AllocGadget<<Int8 as Integer>::IntegerType, F> for Int8 where
    F: Field
[src]

pub fn alloc<Fn, T, CS>(cs: CS, value_gen: Fn) -> Result<Int8, SynthesisError> where
    Fn: FnOnce() -> Result<T, SynthesisError>,
    CS: ConstraintSystem<F>,
    T: Borrow<<Int8 as Integer>::IntegerType>, 
[src]

pub fn alloc_input<Fn, T, CS>(
    cs: CS,
    value_gen: Fn
) -> Result<Int8, SynthesisError> where
    Fn: FnOnce() -> Result<T, SynthesisError>,
    CS: ConstraintSystem<F>,
    T: Borrow<<Int8 as Integer>::IntegerType>, 
[src]

impl<F> AllocGadget<<Int16 as Integer>::IntegerType, F> for Int16 where
    F: Field
[src]

pub fn alloc<Fn, T, CS>(cs: CS, value_gen: Fn) -> Result<Int16, SynthesisError> where
    Fn: FnOnce() -> Result<T, SynthesisError>,
    CS: ConstraintSystem<F>,
    T: Borrow<<Int16 as Integer>::IntegerType>, 
[src]

pub fn alloc_input<Fn, T, CS>(
    cs: CS,
    value_gen: Fn
) -> Result<Int16, SynthesisError> where
    Fn: FnOnce() -> Result<T, SynthesisError>,
    CS: ConstraintSystem<F>,
    T: Borrow<<Int16 as Integer>::IntegerType>, 
[src]

impl<F> AllocGadget<<Int32 as Integer>::IntegerType, F> for Int32 where
    F: Field
[src]

pub fn alloc<Fn, T, CS>(cs: CS, value_gen: Fn) -> Result<Int32, SynthesisError> where
    Fn: FnOnce() -> Result<T, SynthesisError>,
    CS: ConstraintSystem<F>,
    T: Borrow<<Int32 as Integer>::IntegerType>, 
[src]

pub fn alloc_input<Fn, T, CS>(
    cs: CS,
    value_gen: Fn
) -> Result<Int32, SynthesisError> where
    Fn: FnOnce() -> Result<T, SynthesisError>,
    CS: ConstraintSystem<F>,
    T: Borrow<<Int32 as Integer>::IntegerType>, 
[src]

impl<F> AllocGadget<<Int64 as Integer>::IntegerType, F> for Int64 where
    F: Field
[src]

pub fn alloc<Fn, T, CS>(cs: CS, value_gen: Fn) -> Result<Int64, SynthesisError> where
    Fn: FnOnce() -> Result<T, SynthesisError>,
    CS: ConstraintSystem<F>,
    T: Borrow<<Int64 as Integer>::IntegerType>, 
[src]

pub fn alloc_input<Fn, T, CS>(
    cs: CS,
    value_gen: Fn
) -> Result<Int64, SynthesisError> where
    Fn: FnOnce() -> Result<T, SynthesisError>,
    CS: ConstraintSystem<F>,
    T: Borrow<<Int64 as Integer>::IntegerType>, 
[src]

impl<F> AllocGadget<<Int128 as Integer>::IntegerType, F> for Int128 where
    F: Field
[src]

pub fn alloc<Fn, T, CS>(cs: CS, value_gen: Fn) -> Result<Int128, SynthesisError> where
    Fn: FnOnce() -> Result<T, SynthesisError>,
    CS: ConstraintSystem<F>,
    T: Borrow<<Int128 as Integer>::IntegerType>, 
[src]

pub fn alloc_input<Fn, T, CS>(
    cs: CS,
    value_gen: Fn
) -> Result<Int128, SynthesisError> where
    Fn: FnOnce() -> Result<T, SynthesisError>,
    CS: ConstraintSystem<F>,
    T: Borrow<<Int128 as Integer>::IntegerType>, 
[src]

impl<F> AllocGadget<<UInt8 as Integer>::IntegerType, F> for UInt8 where
    F: Field
[src]

pub fn alloc<Fn, T, CS>(cs: CS, value_gen: Fn) -> Result<UInt8, SynthesisError> where
    Fn: FnOnce() -> Result<T, SynthesisError>,
    CS: ConstraintSystem<F>,
    T: Borrow<<UInt8 as Integer>::IntegerType>, 
[src]

pub fn alloc_input<Fn, T, CS>(
    cs: CS,
    value_gen: Fn
) -> Result<UInt8, SynthesisError> where
    Fn: FnOnce() -> Result<T, SynthesisError>,
    CS: ConstraintSystem<F>,
    T: Borrow<<UInt8 as Integer>::IntegerType>, 
[src]

impl<F> AllocGadget<<UInt16 as Integer>::IntegerType, F> for UInt16 where
    F: Field
[src]

pub fn alloc<Fn, T, CS>(cs: CS, value_gen: Fn) -> Result<UInt16, SynthesisError> where
    Fn: FnOnce() -> Result<T, SynthesisError>,
    CS: ConstraintSystem<F>,
    T: Borrow<<UInt16 as Integer>::IntegerType>, 
[src]

pub fn alloc_input<Fn, T, CS>(
    cs: CS,
    value_gen: Fn
) -> Result<UInt16, SynthesisError> where
    Fn: FnOnce() -> Result<T, SynthesisError>,
    CS: ConstraintSystem<F>,
    T: Borrow<<UInt16 as Integer>::IntegerType>, 
[src]

impl<F> AllocGadget<<UInt32 as Integer>::IntegerType, F> for UInt32 where
    F: Field
[src]

pub fn alloc<Fn, T, CS>(cs: CS, value_gen: Fn) -> Result<UInt32, SynthesisError> where
    Fn: FnOnce() -> Result<T, SynthesisError>,
    CS: ConstraintSystem<F>,
    T: Borrow<<UInt32 as Integer>::IntegerType>, 
[src]

pub fn alloc_input<Fn, T, CS>(
    cs: CS,
    value_gen: Fn
) -> Result<UInt32, SynthesisError> where
    Fn: FnOnce() -> Result<T, SynthesisError>,
    CS: ConstraintSystem<F>,
    T: Borrow<<UInt32 as Integer>::IntegerType>, 
[src]

impl<F> AllocGadget<<UInt64 as Integer>::IntegerType, F> for UInt64 where
    F: Field
[src]

pub fn alloc<Fn, T, CS>(cs: CS, value_gen: Fn) -> Result<UInt64, SynthesisError> where
    Fn: FnOnce() -> Result<T, SynthesisError>,
    CS: ConstraintSystem<F>,
    T: Borrow<<UInt64 as Integer>::IntegerType>, 
[src]

pub fn alloc_input<Fn, T, CS>(
    cs: CS,
    value_gen: Fn
) -> Result<UInt64, SynthesisError> where
    Fn: FnOnce() -> Result<T, SynthesisError>,
    CS: ConstraintSystem<F>,
    T: Borrow<<UInt64 as Integer>::IntegerType>, 
[src]

impl<F> AllocGadget<<UInt128 as Integer>::IntegerType, F> for UInt128 where
    F: Field
[src]

pub fn alloc<Fn, T, CS>(
    cs: CS,
    value_gen: Fn
) -> Result<UInt128, SynthesisError> where
    Fn: FnOnce() -> Result<T, SynthesisError>,
    CS: ConstraintSystem<F>,
    T: Borrow<<UInt128 as Integer>::IntegerType>, 
[src]

pub fn alloc_input<Fn, T, CS>(
    cs: CS,
    value_gen: Fn
) -> Result<UInt128, SynthesisError> where
    Fn: FnOnce() -> Result<T, SynthesisError>,
    CS: ConstraintSystem<F>,
    T: Borrow<<UInt128 as Integer>::IntegerType>, 
[src]

impl<F> AllocGadget<[u8; 32], F> for Blake2sRandomnessGadget where
    F: PrimeField
[src]

pub fn alloc<Fn, T, CS>(
    cs: CS,
    value_gen: Fn
) -> Result<Blake2sRandomnessGadget, SynthesisError> where
    Fn: FnOnce() -> Result<T, SynthesisError>,
    CS: ConstraintSystem<F>,
    T: Borrow<[u8; 32]>, 
[src]

pub fn alloc_input<Fn, T, CS>(
    cs: CS,
    value_gen: Fn
) -> Result<Blake2sRandomnessGadget, SynthesisError> where
    Fn: FnOnce() -> Result<T, SynthesisError>,
    CS: ConstraintSystem<F>,
    T: Borrow<[u8; 32]>, 
[src]

impl<F> AllocGadget<[u8; 32], F> for Blake2sOutputGadget where
    F: PrimeField
[src]

pub fn alloc<Fn, T, CS>(
    cs: CS,
    value_gen: Fn
) -> Result<Blake2sOutputGadget, SynthesisError> where
    Fn: FnOnce() -> Result<T, SynthesisError>,
    CS: ConstraintSystem<F>,
    T: Borrow<[u8; 32]>, 
[src]

pub fn alloc_input<Fn, T, CS>(
    cs: CS,
    value_gen: Fn
) -> Result<Blake2sOutputGadget, SynthesisError> where
    Fn: FnOnce() -> Result<T, SynthesisError>,
    CS: ConstraintSystem<F>,
    T: Borrow<[u8; 32]>, 
[src]

impl<F> AllocGadget<bool, F> for Boolean where
    F: Field
[src]

pub fn alloc<Fn, T, CS>(
    cs: CS,
    value_gen: Fn
) -> Result<Boolean, SynthesisError> where
    Fn: FnOnce() -> Result<T, SynthesisError>,
    CS: ConstraintSystem<F>,
    T: Borrow<bool>, 
[src]

pub fn alloc_input<Fn, T, CS>(
    cs: CS,
    value_gen: Fn
) -> Result<Boolean, SynthesisError> where
    Fn: FnOnce() -> Result<T, SynthesisError>,
    CS: ConstraintSystem<F>,
    T: Borrow<bool>, 
[src]

impl<F> AllocGadget<bool, F> for AllocatedBit where
    F: Field
[src]

pub fn alloc<Fn, T, CS>(
    cs: CS,
    value_gen: Fn
) -> Result<AllocatedBit, SynthesisError> where
    Fn: FnOnce() -> Result<T, SynthesisError>,
    CS: ConstraintSystem<F>,
    T: Borrow<bool>, 
[src]

pub fn alloc_input<Fn, T, CS>(
    cs: CS,
    value_gen: Fn
) -> Result<AllocatedBit, SynthesisError> where
    Fn: FnOnce() -> Result<T, SynthesisError>,
    CS: ConstraintSystem<F>,
    T: Borrow<bool>, 
[src]

impl<F> AllocGadget<(), F> for Blake2sParametersGadget where
    F: Field
[src]

pub fn alloc<Fn, T, CS>(
    CS,
    Fn
) -> Result<Blake2sParametersGadget, SynthesisError> where
    Fn: FnOnce() -> Result<T, SynthesisError>,
    CS: ConstraintSystem<F>,
    T: Borrow<()>, 
[src]

pub fn alloc_input<Fn, T, CS>(
    CS,
    Fn
) -> Result<Blake2sParametersGadget, SynthesisError> where
    Fn: FnOnce() -> Result<T, SynthesisError>,
    CS: ConstraintSystem<F>,
    T: Borrow<()>, 
[src]

impl<F> AllocGadget<F, F> for FpGadget<F> where
    F: PrimeField
[src]

pub fn alloc_constant<FN, T, CS>(
    _cs: CS,
    value_gen: FN
) -> Result<FpGadget<F>, SynthesisError> where
    CS: ConstraintSystem<F>,
    T: Borrow<F>,
    FN: FnOnce() -> Result<T, SynthesisError>, 
[src]

pub fn alloc<FN, T, CS>(
    cs: CS,
    value_gen: FN
) -> Result<FpGadget<F>, SynthesisError> where
    CS: ConstraintSystem<F>,
    T: Borrow<F>,
    FN: FnOnce() -> Result<T, SynthesisError>, 
[src]

pub fn alloc_input<FN, T, CS>(
    cs: CS,
    value_gen: FN
) -> Result<FpGadget<F>, SynthesisError> where
    CS: ConstraintSystem<F>,
    T: Borrow<F>,
    FN: FnOnce() -> Result<T, SynthesisError>, 
[src]

impl<F> AllocGadget<F, F> for AllocatedFp<F> where
    F: PrimeField
[src]

pub fn alloc_constant<FN, T, CS>(
    cs: CS,
    value_gen: FN
) -> Result<AllocatedFp<F>, SynthesisError> where
    CS: ConstraintSystem<F>,
    T: Borrow<F>,
    FN: FnOnce() -> Result<T, SynthesisError>, 
[src]

pub fn alloc<FN, T, CS>(
    cs: CS,
    value_gen: FN
) -> Result<AllocatedFp<F>, SynthesisError> where
    CS: ConstraintSystem<F>,
    T: Borrow<F>,
    FN: FnOnce() -> Result<T, SynthesisError>, 
[src]

pub fn alloc_input<FN, T, CS>(
    cs: CS,
    value_gen: FN
) -> Result<AllocatedFp<F>, SynthesisError> where
    CS: ConstraintSystem<F>,
    T: Borrow<F>,
    FN: FnOnce() -> Result<T, SynthesisError>, 
[src]

impl<F, CF> AllocGadget<Vec<F, Global>, CF> for NonNativeFieldInputVar<F, CF> where
    F: PrimeField,
    CF: PrimeField
[src]

pub fn alloc_constant<Fn, T, CS>(
    cs: CS,
    value_gen: Fn
) -> Result<NonNativeFieldInputVar<F, CF>, SynthesisError> where
    Fn: FnOnce() -> Result<T, SynthesisError>,
    CS: ConstraintSystem<CF>,
    T: Borrow<Vec<F, Global>>, 
[src]

pub fn alloc<Fn, T, CS>(
    cs: CS,
    value_gen: Fn
) -> Result<NonNativeFieldInputVar<F, CF>, SynthesisError> where
    Fn: FnOnce() -> Result<T, SynthesisError>,
    CS: ConstraintSystem<CF>,
    T: Borrow<Vec<F, Global>>, 
[src]

pub fn alloc_input<Fn, T, CS>(
    cs: CS,
    value_gen: Fn
) -> Result<NonNativeFieldInputVar<F, CF>, SynthesisError> where
    Fn: FnOnce() -> Result<T, SynthesisError>,
    CS: ConstraintSystem<CF>,
    T: Borrow<Vec<F, Global>>, 
[src]

impl<F, CF> AllocGadget<Vec<F, Global>, CF> for BooleanInputGadget<F, CF> where
    F: PrimeField,
    CF: PrimeField
[src]

pub fn alloc_constant<Fn, T, CS>(
    cs: CS,
    value_gen: Fn
) -> Result<BooleanInputGadget<F, CF>, SynthesisError> where
    Fn: FnOnce() -> Result<T, SynthesisError>,
    CS: ConstraintSystem<CF>,
    T: Borrow<Vec<F, Global>>, 
[src]

pub fn alloc<Fn, T, CS>(
    cs: CS,
    value_gen: Fn
) -> Result<BooleanInputGadget<F, CF>, SynthesisError> where
    Fn: FnOnce() -> Result<T, SynthesisError>,
    CS: ConstraintSystem<CF>,
    T: Borrow<Vec<F, Global>>, 
[src]

pub fn alloc_input<Fn, T, CS>(
    cs: CS,
    value_gen: Fn
) -> Result<BooleanInputGadget<F, CF>, SynthesisError> where
    Fn: FnOnce() -> Result<T, SynthesisError>,
    CS: ConstraintSystem<CF>,
    T: Borrow<Vec<F, Global>>, 
[src]

impl<G, F> AllocGadget<<G as Group>::ScalarField, F> for PedersenRandomnessGadget<G> where
    G: Group,
    F: PrimeField
[src]

pub fn alloc<Fn, T, CS>(
    cs: CS,
    value_gen: Fn
) -> Result<PedersenRandomnessGadget<G>, SynthesisError> where
    Fn: FnOnce() -> Result<T, SynthesisError>,
    CS: ConstraintSystem<F>,
    T: Borrow<<G as Group>::ScalarField>, 
[src]

pub fn alloc_input<Fn, T, CS>(
    cs: CS,
    value_gen: Fn
) -> Result<PedersenRandomnessGadget<G>, SynthesisError> where
    Fn: FnOnce() -> Result<T, SynthesisError>,
    CS: ConstraintSystem<F>,
    T: Borrow<<G as Group>::ScalarField>, 
[src]

impl<G, F> AllocGadget<<G as Group>::ScalarField, F> for GroupEncryptionPrivateKeyGadget<G> where
    G: Group,
    F: PrimeField
[src]

pub fn alloc<Fn, T, CS>(
    cs: CS,
    value_gen: Fn
) -> Result<GroupEncryptionPrivateKeyGadget<G>, SynthesisError> where
    Fn: FnOnce() -> Result<T, SynthesisError>,
    CS: ConstraintSystem<F>,
    T: Borrow<<G as Group>::ScalarField>, 
[src]

pub fn alloc_input<Fn, T, CS>(
    cs: CS,
    value_gen: Fn
) -> Result<GroupEncryptionPrivateKeyGadget<G>, SynthesisError> where
    Fn: FnOnce() -> Result<T, SynthesisError>,
    CS: ConstraintSystem<F>,
    T: Borrow<<G as Group>::ScalarField>, 
[src]

impl<G, F> AllocGadget<<G as Group>::ScalarField, F> for GroupEncryptionRandomnessGadget<G> where
    G: Group,
    F: PrimeField
[src]

pub fn alloc<Fn, T, CS>(
    cs: CS,
    value_gen: Fn
) -> Result<GroupEncryptionRandomnessGadget<G>, SynthesisError> where
    Fn: FnOnce() -> Result<T, SynthesisError>,
    CS: ConstraintSystem<F>,
    T: Borrow<<G as Group>::ScalarField>, 
[src]

pub fn alloc_input<Fn, T, CS>(
    cs: CS,
    value_gen: Fn
) -> Result<GroupEncryptionRandomnessGadget<G>, SynthesisError> where
    Fn: FnOnce() -> Result<T, SynthesisError>,
    CS: ConstraintSystem<F>,
    T: Borrow<<G as Group>::ScalarField>, 
[src]

impl<G, F> AllocGadget<Vec<<G as Group>::ScalarField, Global>, F> for GroupEncryptionBlindingExponentsGadget<G> where
    G: Group,
    F: PrimeField
[src]

pub fn alloc<Fn, T, CS>(
    cs: CS,
    value_gen: Fn
) -> Result<GroupEncryptionBlindingExponentsGadget<G>, SynthesisError> where
    Fn: FnOnce() -> Result<T, SynthesisError>,
    CS: ConstraintSystem<F>,
    T: Borrow<Vec<<G as Group>::ScalarField, Global>>, 
[src]

pub fn alloc_input<Fn, T, CS>(
    cs: CS,
    value_gen: Fn
) -> Result<GroupEncryptionBlindingExponentsGadget<G>, SynthesisError> where
    Fn: FnOnce() -> Result<T, SynthesisError>,
    CS: ConstraintSystem<F>,
    T: Borrow<Vec<<G as Group>::ScalarField, Global>>, 
[src]

impl<G, F> AllocGadget<GroupEncryptionParameters<G>, F> for GroupEncryptionParametersGadget<G> where
    G: Group + ProjectiveCurve,
    F: Field
[src]

pub fn alloc<Fn, T, CS>(
    _cs: CS,
    value_gen: Fn
) -> Result<GroupEncryptionParametersGadget<G>, SynthesisError> where
    Fn: FnOnce() -> Result<T, SynthesisError>,
    CS: ConstraintSystem<F>,
    T: Borrow<GroupEncryptionParameters<G>>, 
[src]

pub fn alloc_input<Fn, T, CS>(
    _cs: CS,
    value_gen: Fn
) -> Result<GroupEncryptionParametersGadget<G>, SynthesisError> where
    Fn: FnOnce() -> Result<T, SynthesisError>,
    CS: ConstraintSystem<F>,
    T: Borrow<GroupEncryptionParameters<G>>, 
[src]

impl<G, F, D> AllocGadget<SchnorrParameters<G, D>, F> for SchnorrParametersGadget<G, F, D> where
    G: Group,
    D: Digest,
    F: Field
[src]

pub fn alloc<Fn, T, CS>(
    _cs: CS,
    value_gen: Fn
) -> Result<SchnorrParametersGadget<G, F, D>, SynthesisError> where
    Fn: FnOnce() -> Result<T, SynthesisError>,
    CS: ConstraintSystem<F>,
    T: Borrow<SchnorrParameters<G, D>>, 
[src]

pub fn alloc_input<Fn, T, CS>(
    _cs: CS,
    value_gen: Fn
) -> Result<SchnorrParametersGadget<G, F, D>, SynthesisError> where
    Fn: FnOnce() -> Result<T, SynthesisError>,
    CS: ConstraintSystem<F>,
    T: Borrow<SchnorrParameters<G, D>>, 
[src]

impl<G, F, GG> AllocGadget<Vec<G, Global>, F> for GroupEncryptionCiphertextGadget<G, F, GG> where
    G: Group + ProjectiveCurve,
    F: Field,
    GG: CompressedGroupGadget<G, F>, 
[src]

pub fn alloc<Fn, T, CS>(
    cs: CS,
    f: Fn
) -> Result<GroupEncryptionCiphertextGadget<G, F, GG>, SynthesisError> where
    Fn: FnOnce() -> Result<T, SynthesisError>,
    CS: ConstraintSystem<F>,
    T: Borrow<Vec<G, Global>>, 
[src]

pub fn alloc_input<Fn, T, CS>(
    cs: CS,
    f: Fn
) -> Result<GroupEncryptionCiphertextGadget<G, F, GG>, SynthesisError> where
    Fn: FnOnce() -> Result<T, SynthesisError>,
    CS: ConstraintSystem<F>,
    T: Borrow<Vec<G, Global>>, 
[src]

impl<G, F, GG> AllocGadget<Vec<G, Global>, F> for GroupEncryptionPlaintextGadget<G, F, GG> where
    G: Group + ProjectiveCurve,
    F: Field,
    GG: GroupGadget<G, F>, 
[src]

pub fn alloc<Fn, T, CS>(
    cs: CS,
    f: Fn
) -> Result<GroupEncryptionPlaintextGadget<G, F, GG>, SynthesisError> where
    Fn: FnOnce() -> Result<T, SynthesisError>,
    CS: ConstraintSystem<F>,
    T: Borrow<Vec<G, Global>>, 
[src]

pub fn alloc_input<Fn, T, CS>(
    cs: CS,
    f: Fn
) -> Result<GroupEncryptionPlaintextGadget<G, F, GG>, SynthesisError> where
    Fn: FnOnce() -> Result<T, SynthesisError>,
    CS: ConstraintSystem<F>,
    T: Borrow<Vec<G, Global>>, 
[src]

impl<G, F, GG> AllocGadget<GroupEncryptionPublicKey<G>, F> for GroupEncryptionPublicKeyGadget<G, F, GG> where
    G: Group + ProjectiveCurve,
    F: Field,
    GG: GroupGadget<G, F>, 
[src]

pub fn alloc<Fn, T, CS>(
    cs: CS,
    f: Fn
) -> Result<GroupEncryptionPublicKeyGadget<G, F, GG>, SynthesisError> where
    Fn: FnOnce() -> Result<T, SynthesisError>,
    CS: ConstraintSystem<F>,
    T: Borrow<GroupEncryptionPublicKey<G>>, 
[src]

pub fn alloc_input<Fn, T, CS>(
    cs: CS,
    f: Fn
) -> Result<GroupEncryptionPublicKeyGadget<G, F, GG>, SynthesisError> where
    Fn: FnOnce() -> Result<T, SynthesisError>,
    CS: ConstraintSystem<F>,
    T: Borrow<GroupEncryptionPublicKey<G>>, 
[src]

impl<G, F, GG> AllocGadget<SchnorrPublicKey<G>, F> for SchnorrPublicKeyGadget<G, F, GG> where
    G: Group + CanonicalSerialize + CanonicalDeserialize,
    F: Field,
    GG: GroupGadget<G, F>, 
[src]

pub fn alloc<Fn, T, CS>(
    cs: CS,
    f: Fn
) -> Result<SchnorrPublicKeyGadget<G, F, GG>, SynthesisError> where
    Fn: FnOnce() -> Result<T, SynthesisError>,
    CS: ConstraintSystem<F>,
    T: Borrow<SchnorrPublicKey<G>>, 
[src]

pub fn alloc_input<Fn, T, CS>(
    cs: CS,
    f: Fn
) -> Result<SchnorrPublicKeyGadget<G, F, GG>, SynthesisError> where
    Fn: FnOnce() -> Result<T, SynthesisError>,
    CS: ConstraintSystem<F>,
    T: Borrow<SchnorrPublicKey<G>>, 
[src]

impl<G, S, F> AllocGadget<PedersenCommitmentParameters<G, S>, F> for PedersenCommitmentParametersGadget<G, S, F> where
    G: Group,
    S: PedersenSize,
    F: PrimeField
[src]

pub fn alloc<Fn, T, CS>(
    _cs: CS,
    value_gen: Fn
) -> Result<PedersenCommitmentParametersGadget<G, S, F>, SynthesisError> where
    Fn: FnOnce() -> Result<T, SynthesisError>,
    CS: ConstraintSystem<F>,
    T: Borrow<PedersenCommitmentParameters<G, S>>, 
[src]

pub fn alloc_input<Fn, T, CS>(
    _cs: CS,
    value_gen: Fn
) -> Result<PedersenCommitmentParametersGadget<G, S, F>, SynthesisError> where
    Fn: FnOnce() -> Result<T, SynthesisError>,
    CS: ConstraintSystem<F>,
    T: Borrow<PedersenCommitmentParameters<G, S>>, 
[src]

impl<G, S, F, GG> AllocGadget<PedersenCRHParameters<G, S>, F> for PedersenCRHParametersGadget<G, S, F, GG> where
    G: Group,
    S: PedersenSize,
    F: Field,
    GG: GroupGadget<G, F>, 
[src]

pub fn alloc<Fn, T, CS>(
    _cs: CS,
    value_gen: Fn
) -> Result<PedersenCRHParametersGadget<G, S, F, GG>, SynthesisError> where
    Fn: FnOnce() -> Result<T, SynthesisError>,
    CS: ConstraintSystem<F>,
    T: Borrow<PedersenCRHParameters<G, S>>, 
[src]

pub fn alloc_input<Fn, T, CS>(
    _cs: CS,
    value_gen: Fn
) -> Result<PedersenCRHParametersGadget<G, S, F, GG>, SynthesisError> where
    Fn: FnOnce() -> Result<T, SynthesisError>,
    CS: ConstraintSystem<F>,
    T: Borrow<PedersenCRHParameters<G, S>>, 
[src]

impl<P> AllocGadget<G2Prepared<P>, <P as Bls12Parameters>::Fp> for G2PreparedGadget<P> where
    P: Bls12Parameters
[src]

pub fn alloc_constant<Fn, T, CS>(
    cs: CS,
    value_gen: Fn
) -> Result<G2PreparedGadget<P>, SynthesisError> where
    Fn: FnOnce() -> Result<T, SynthesisError>,
    CS: ConstraintSystem<<P as Bls12Parameters>::Fp>,
    T: Borrow<G2Prepared<P>>, 
[src]

pub fn alloc<Fn, T, CS>(
    cs: CS,
    value_gen: Fn
) -> Result<G2PreparedGadget<P>, SynthesisError> where
    Fn: FnOnce() -> Result<T, SynthesisError>,
    CS: ConstraintSystem<<P as Bls12Parameters>::Fp>,
    T: Borrow<G2Prepared<P>>, 
[src]

pub fn alloc_input<Fn, T, CS>(
    cs: CS,
    value_gen: Fn
) -> Result<G2PreparedGadget<P>, SynthesisError> where
    Fn: FnOnce() -> Result<T, SynthesisError>,
    CS: ConstraintSystem<<P as Bls12Parameters>::Fp>,
    T: Borrow<G2Prepared<P>>, 
[src]

impl<P, F> AllocGadget<<P as ModelParameters>::BaseField, F> for Elligator2FieldGadget<P, F> where
    P: MontgomeryModelParameters,
    F: PrimeField
[src]

pub fn alloc<Fn, T, CS>(
    cs: CS,
    value_gen: Fn
) -> Result<Elligator2FieldGadget<P, F>, SynthesisError> where
    Fn: FnOnce() -> Result<T, SynthesisError>,
    CS: ConstraintSystem<F>,
    T: Borrow<<P as ModelParameters>::BaseField>, 
[src]

pub fn alloc_input<Fn, T, CS>(
    cs: CS,
    value_gen: Fn
) -> Result<Elligator2FieldGadget<P, F>, SynthesisError> where
    Fn: FnOnce() -> Result<T, SynthesisError>,
    CS: ConstraintSystem<F>,
    T: Borrow<<P as ModelParameters>::BaseField>, 
[src]

impl<P, F> AllocGadget<Fp6<P>, F> for Fp6Gadget<P, F> where
    P: Fp6Parameters,
    F: PrimeField,
    <P as Fp6Parameters>::Fp2Params: Fp2Parameters,
    <<P as Fp6Parameters>::Fp2Params as Fp2Parameters>::Fp == F, 
[src]

pub fn alloc<Fn, T, CS>(
    cs: CS,
    value_gen: Fn
) -> Result<Fp6Gadget<P, F>, SynthesisError> where
    Fn: FnOnce() -> Result<T, SynthesisError>,
    CS: ConstraintSystem<F>,
    T: Borrow<Fp6<P>>, 
[src]

pub fn alloc_input<Fn, T, CS>(
    cs: CS,
    value_gen: Fn
) -> Result<Fp6Gadget<P, F>, SynthesisError> where
    Fn: FnOnce() -> Result<T, SynthesisError>,
    CS: ConstraintSystem<F>,
    T: Borrow<Fp6<P>>, 
[src]

impl<P, F> AllocGadget<Fp2<P>, F> for Fp2Gadget<P, F> where
    P: Fp2Parameters<Fp = F>,
    F: PrimeField
[src]

pub fn alloc<Fn, T, CS>(
    cs: CS,
    value_gen: Fn
) -> Result<Fp2Gadget<P, F>, SynthesisError> where
    Fn: FnOnce() -> Result<T, SynthesisError>,
    CS: ConstraintSystem<F>,
    T: Borrow<Fp2<P>>, 
[src]

pub fn alloc_input<Fn, T, CS>(
    cs: CS,
    value_gen: Fn
) -> Result<Fp2Gadget<P, F>, SynthesisError> where
    Fn: FnOnce() -> Result<T, SynthesisError>,
    CS: ConstraintSystem<F>,
    T: Borrow<Fp2<P>>, 
[src]

impl<P, F> AllocGadget<Fp12<P>, F> for Fp12Gadget<P, F> where
    P: Fp12Parameters,
    F: PrimeField,
    <<P as Fp12Parameters>::Fp6Params as Fp6Parameters>::Fp2Params: Fp2Parameters,
    <<<P as Fp12Parameters>::Fp6Params as Fp6Parameters>::Fp2Params as Fp2Parameters>::Fp == F, 
[src]

pub fn alloc<Fn, T, CS>(
    cs: CS,
    value_gen: Fn
) -> Result<Fp12Gadget<P, F>, SynthesisError> where
    Fn: FnOnce() -> Result<T, SynthesisError>,
    CS: ConstraintSystem<F>,
    T: Borrow<Fp12<P>>, 
[src]

pub fn alloc_input<Fn, T, CS>(
    cs: CS,
    value_gen: Fn
) -> Result<Fp12Gadget<P, F>, SynthesisError> where
    Fn: FnOnce() -> Result<T, SynthesisError>,
    CS: ConstraintSystem<F>,
    T: Borrow<Fp12<P>>, 
[src]

impl<P, F, FG> AllocGadget<GroupProjective<P>, F> for snarkvm_wasm::curves::templates::bls12::AffineGadget<P, F, FG> where
    P: SWModelParameters,
    F: PrimeField,
    FG: FieldGadget<<P as ModelParameters>::BaseField, F>, 
[src]

pub fn alloc<Fn, T, CS>(
    cs: CS,
    value_gen: Fn
) -> Result<AffineGadget<P, F, FG>, SynthesisError> where
    Fn: FnOnce() -> Result<T, SynthesisError>,
    CS: ConstraintSystem<F>,
    T: Borrow<GroupProjective<P>>, 
[src]

pub fn alloc_checked<Fn, T, CS>(
    cs: CS,
    value_gen: Fn
) -> Result<AffineGadget<P, F, FG>, SynthesisError> where
    Fn: FnOnce() -> Result<T, SynthesisError>,
    CS: ConstraintSystem<F>,
    T: Borrow<GroupProjective<P>>, 
[src]

pub fn alloc_input<Fn, T, CS>(
    cs: CS,
    value_gen: Fn
) -> Result<AffineGadget<P, F, FG>, SynthesisError> where
    Fn: FnOnce() -> Result<T, SynthesisError>,
    CS: ConstraintSystem<F>,
    T: Borrow<GroupProjective<P>>, 
[src]

impl<P, F, FG> AllocGadget<GroupAffine<P>, F> for snarkvm_wasm::curves::templates::twisted_edwards::AffineGadget<P, F, FG> where
    P: TEModelParameters,
    F: Field,
    FG: FieldGadget<<P as ModelParameters>::BaseField, F>,
    AffineGadget<P, F, FG>: GroupGadget<GroupAffine<P>, F>, 
[src]

pub fn alloc<Fn, T, CS>(
    cs: CS,
    value_gen: Fn
) -> Result<AffineGadget<P, F, FG>, SynthesisError> where
    Fn: FnOnce() -> Result<T, SynthesisError>,
    CS: ConstraintSystem<F>,
    T: Borrow<GroupAffine<P>>, 
[src]

pub fn alloc_checked<Fn, T, CS>(
    cs: CS,
    value_gen: Fn
) -> Result<AffineGadget<P, F, FG>, SynthesisError> where
    Fn: FnOnce() -> Result<T, SynthesisError>,
    CS: ConstraintSystem<F>,
    T: Borrow<GroupAffine<P>>, 
[src]

pub fn alloc_input<Fn, T, CS>(
    cs: CS,
    value_gen: Fn
) -> Result<AffineGadget<P, F, FG>, SynthesisError> where
    Fn: FnOnce() -> Result<T, SynthesisError>,
    CS: ConstraintSystem<F>,
    T: Borrow<GroupAffine<P>>, 
[src]

impl<P, F, FG> AllocGadget<GroupProjective<P>, F> for snarkvm_wasm::curves::templates::twisted_edwards::AffineGadget<P, F, FG> where
    P: TEModelParameters,
    F: Field,
    FG: FieldGadget<<P as ModelParameters>::BaseField, F>,
    AffineGadget<P, F, FG>: GroupGadget<GroupProjective<P>, F>, 
[src]

pub fn alloc<FN, T, CS>(
    cs: CS,
    value_gen: FN
) -> Result<AffineGadget<P, F, FG>, SynthesisError> where
    CS: ConstraintSystem<F>,
    T: Borrow<GroupProjective<P>>,
    FN: FnOnce() -> Result<T, SynthesisError>, 
[src]

pub fn alloc_checked<FN, T, CS>(
    cs: CS,
    value_gen: FN
) -> Result<AffineGadget<P, F, FG>, SynthesisError> where
    CS: ConstraintSystem<F>,
    T: Borrow<GroupProjective<P>>,
    FN: FnOnce() -> Result<T, SynthesisError>, 
[src]

pub fn alloc_input<FN, T, CS>(
    cs: CS,
    value_gen: FN
) -> Result<AffineGadget<P, F, FG>, SynthesisError> where
    CS: ConstraintSystem<F>,
    T: Borrow<GroupProjective<P>>,
    FN: FnOnce() -> Result<T, SynthesisError>, 
[src]

impl<P, HGadget, F> AllocGadget<MerklePath<P>, F> for MerklePathGadget<P, HGadget, F> where
    P: MerkleParameters,
    F: Field,
    HGadget: CRHGadget<<P as MerkleParameters>::H, F>, 
[src]

pub fn alloc<Fn, T, CS>(
    cs: CS,
    value_gen: Fn
) -> Result<MerklePathGadget<P, HGadget, F>, SynthesisError> where
    Fn: FnOnce() -> Result<T, SynthesisError>,
    CS: ConstraintSystem<F>,
    T: Borrow<MerklePath<P>>, 
[src]

pub fn alloc_input<Fn, T, CS>(
    cs: CS,
    value_gen: Fn
) -> Result<MerklePathGadget<P, HGadget, F>, SynthesisError> where
    Fn: FnOnce() -> Result<T, SynthesisError>,
    CS: ConstraintSystem<F>,
    T: Borrow<MerklePath<P>>, 
[src]

impl<Pairing, F, P> AllocGadget<Proof<Pairing>, F> for GM17ProofGadget<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<GM17ProofGadget<Pairing, F, P>, SynthesisError> where
    Fn: FnOnce() -> Result<T, SynthesisError>,
    CS: ConstraintSystem<F>,
    T: Borrow<Proof<Pairing>>, 
[src]

pub fn alloc_input<Fn, T, CS>(
    cs: CS,
    value_gen: Fn
) -> Result<GM17ProofGadget<Pairing, F, P>, SynthesisError> where
    Fn: FnOnce() -> Result<T, SynthesisError>,
    CS: ConstraintSystem<F>,
    T: Borrow<Proof<Pairing>>, 
[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]

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]

impl<PairingE, ConstraintF, P> AllocGadget<Proof<PairingE>, ConstraintF> for ProofGadget<PairingE, ConstraintF, P> where
    P: PairingGadget<PairingE, ConstraintF>,
    PairingE: PairingEngine,
    ConstraintF: Field
[src]

pub fn alloc<FN, T, CS>(
    cs: CS,
    value_gen: FN
) -> Result<ProofGadget<PairingE, ConstraintF, P>, SynthesisError> where
    CS: ConstraintSystem<ConstraintF>,
    T: Borrow<Proof<PairingE>>,
    FN: FnOnce() -> Result<T, SynthesisError>, 
[src]

pub fn alloc_input<FN, T, CS>(
    cs: CS,
    value_gen: FN
) -> Result<ProofGadget<PairingE, ConstraintF, P>, SynthesisError> where
    CS: ConstraintSystem<ConstraintF>,
    T: Borrow<Proof<PairingE>>,
    FN: FnOnce() -> Result<T, SynthesisError>, 
[src]

impl<PairingE, ConstraintF, P> AllocGadget<VerifyingKey<PairingE>, ConstraintF> for VerifyingKeyGadget<PairingE, ConstraintF, P> where
    P: PairingGadget<PairingE, ConstraintF>,
    PairingE: PairingEngine,
    ConstraintF: Field
[src]

pub fn alloc<FN, T, CS>(
    cs: CS,
    value_gen: FN
) -> Result<VerifyingKeyGadget<PairingE, ConstraintF, P>, SynthesisError> where
    CS: ConstraintSystem<ConstraintF>,
    T: Borrow<VerifyingKey<PairingE>>,
    FN: FnOnce() -> Result<T, SynthesisError>, 
[src]

pub fn alloc_input<FN, T, CS>(
    cs: CS,
    value_gen: FN
) -> Result<VerifyingKeyGadget<PairingE, ConstraintF, P>, SynthesisError> where
    CS: ConstraintSystem<ConstraintF>,
    T: Borrow<VerifyingKey<PairingE>>,
    FN: FnOnce() -> Result<T, SynthesisError>, 
[src]

impl<TargetCurve, BaseCurve, PG> AllocGadget<Proof<TargetCurve>, <BaseCurve as PairingEngine>::Fr> for ProofVar<TargetCurve, BaseCurve, PG> where
    TargetCurve: PairingEngine,
    BaseCurve: PairingEngine,
    PG: PairingGadget<TargetCurve, <BaseCurve as PairingEngine>::Fr>,
    <TargetCurve as PairingEngine>::G1Affine: ToConstraintField<<BaseCurve as PairingEngine>::Fr>,
    <TargetCurve as PairingEngine>::G2Affine: ToConstraintField<<BaseCurve as PairingEngine>::Fr>, 
[src]

pub fn alloc_constant<Fn, T, CS>(
    cs: CS,
    value_gen: Fn
) -> Result<ProofVar<TargetCurve, BaseCurve, PG>, SynthesisError> where
    Fn: FnOnce() -> Result<T, SynthesisError>,
    CS: ConstraintSystem<<BaseCurve as PairingEngine>::Fr>,
    T: Borrow<Proof<TargetCurve>>, 
[src]

pub fn alloc<Fn, T, CS>(
    cs: CS,
    value_gen: Fn
) -> Result<ProofVar<TargetCurve, BaseCurve, PG>, SynthesisError> where
    Fn: FnOnce() -> Result<T, SynthesisError>,
    CS: ConstraintSystem<<BaseCurve as PairingEngine>::Fr>,
    T: Borrow<Proof<TargetCurve>>, 
[src]

pub fn alloc_input<Fn, T, CS>(
    cs: CS,
    value_gen: Fn
) -> Result<ProofVar<TargetCurve, BaseCurve, PG>, SynthesisError> where
    Fn: FnOnce() -> Result<T, SynthesisError>,
    CS: ConstraintSystem<<BaseCurve as PairingEngine>::Fr>,
    T: Borrow<Proof<TargetCurve>>, 
[src]

impl<TargetCurve, BaseCurve, PG> AllocGadget<Commitment<TargetCurve>, <BaseCurve as PairingEngine>::Fr> for CommitmentVar<TargetCurve, BaseCurve, PG> where
    TargetCurve: PairingEngine,
    BaseCurve: PairingEngine,
    PG: PairingGadget<TargetCurve, <BaseCurve as PairingEngine>::Fr>,
    <TargetCurve as PairingEngine>::G1Affine: ToConstraintField<<BaseCurve as PairingEngine>::Fr>,
    <TargetCurve as PairingEngine>::G2Affine: ToConstraintField<<BaseCurve as PairingEngine>::Fr>, 
[src]

pub fn alloc_constant<Fn, T, CS>(
    cs: CS,
    value_gen: Fn
) -> Result<CommitmentVar<TargetCurve, BaseCurve, PG>, SynthesisError> where
    Fn: FnOnce() -> Result<T, SynthesisError>,
    CS: ConstraintSystem<<BaseCurve as PairingEngine>::Fr>,
    T: Borrow<Commitment<TargetCurve>>, 
[src]

pub fn alloc<Fn, T, CS>(
    cs: CS,
    value_gen: Fn
) -> Result<CommitmentVar<TargetCurve, BaseCurve, PG>, SynthesisError> where
    Fn: FnOnce() -> Result<T, SynthesisError>,
    CS: ConstraintSystem<<BaseCurve as PairingEngine>::Fr>,
    T: Borrow<Commitment<TargetCurve>>, 
[src]

pub fn alloc_input<Fn, T, CS>(
    cs: CS,
    value_gen: Fn
) -> Result<CommitmentVar<TargetCurve, BaseCurve, PG>, SynthesisError> where
    Fn: FnOnce() -> Result<T, SynthesisError>,
    CS: ConstraintSystem<<BaseCurve as PairingEngine>::Fr>,
    T: Borrow<Commitment<TargetCurve>>, 
[src]

impl<TargetCurve, BaseCurve, PG> AllocGadget<PreparedCommitment<TargetCurve>, <BaseCurve as PairingEngine>::Fr> for PreparedCommitmentVar<TargetCurve, BaseCurve, PG> where
    TargetCurve: PairingEngine,
    BaseCurve: PairingEngine,
    PG: PairingGadget<TargetCurve, <BaseCurve as PairingEngine>::Fr>,
    <TargetCurve as PairingEngine>::G1Affine: ToConstraintField<<BaseCurve as PairingEngine>::Fr>,
    <TargetCurve as PairingEngine>::G2Affine: ToConstraintField<<BaseCurve as PairingEngine>::Fr>, 
[src]

pub fn alloc_constant<Fn, T, CS>(
    cs: CS,
    value_gen: Fn
) -> Result<PreparedCommitmentVar<TargetCurve, BaseCurve, PG>, SynthesisError> where
    Fn: FnOnce() -> Result<T, SynthesisError>,
    CS: ConstraintSystem<<BaseCurve as PairingEngine>::Fr>,
    T: Borrow<PreparedCommitment<TargetCurve>>, 
[src]

pub fn alloc<Fn, T, CS>(
    cs: CS,
    value_gen: Fn
) -> Result<PreparedCommitmentVar<TargetCurve, BaseCurve, PG>, SynthesisError> where
    Fn: FnOnce() -> Result<T, SynthesisError>,
    CS: ConstraintSystem<<BaseCurve as PairingEngine>::Fr>,
    T: Borrow<PreparedCommitment<TargetCurve>>, 
[src]

pub fn alloc_input<Fn, T, CS>(
    cs: CS,
    value_gen: Fn
) -> Result<PreparedCommitmentVar<TargetCurve, BaseCurve, PG>, SynthesisError> where
    Fn: FnOnce() -> Result<T, SynthesisError>,
    CS: ConstraintSystem<<BaseCurve as PairingEngine>::Fr>,
    T: Borrow<PreparedCommitment<TargetCurve>>, 
[src]

impl<TargetCurve, BaseCurve, PG> AllocGadget<PreparedVerifierKey<TargetCurve>, <BaseCurve as PairingEngine>::Fr> for PreparedVerifierKeyVar<TargetCurve, BaseCurve, PG> where
    TargetCurve: PairingEngine,
    BaseCurve: PairingEngine,
    PG: PairingGadget<TargetCurve, <BaseCurve as PairingEngine>::Fr>,
    <TargetCurve as PairingEngine>::G1Affine: ToConstraintField<<BaseCurve as PairingEngine>::Fr>,
    <TargetCurve as PairingEngine>::G2Affine: ToConstraintField<<BaseCurve as PairingEngine>::Fr>, 
[src]

pub fn alloc_constant<Fn, T, CS>(
    cs: CS,
    value_gen: Fn
) -> Result<PreparedVerifierKeyVar<TargetCurve, BaseCurve, PG>, SynthesisError> where
    Fn: FnOnce() -> Result<T, SynthesisError>,
    CS: ConstraintSystem<<BaseCurve as PairingEngine>::Fr>,
    T: Borrow<PreparedVerifierKey<TargetCurve>>, 
[src]

pub fn alloc<Fn, T, CS>(
    cs: CS,
    value_gen: Fn
) -> Result<PreparedVerifierKeyVar<TargetCurve, BaseCurve, PG>, SynthesisError> where
    Fn: FnOnce() -> Result<T, SynthesisError>,
    CS: ConstraintSystem<<BaseCurve as PairingEngine>::Fr>,
    T: Borrow<PreparedVerifierKey<TargetCurve>>, 
[src]

pub fn alloc_input<Fn, T, CS>(
    cs: CS,
    value_gen: Fn
) -> Result<PreparedVerifierKeyVar<TargetCurve, BaseCurve, PG>, SynthesisError> where
    Fn: FnOnce() -> Result<T, SynthesisError>,
    CS: ConstraintSystem<<BaseCurve as PairingEngine>::Fr>,
    T: Borrow<PreparedVerifierKey<TargetCurve>>, 
[src]

impl<TargetCurve, BaseCurve, PG> AllocGadget<VerifierKey<TargetCurve>, <BaseCurve as PairingEngine>::Fr> for VerifierKeyVar<TargetCurve, BaseCurve, PG> where
    TargetCurve: PairingEngine,
    BaseCurve: PairingEngine,
    PG: PairingGadget<TargetCurve, <BaseCurve as PairingEngine>::Fr>, 
[src]

pub fn alloc_constant<Fn, T, CS>(
    cs: CS,
    value_gen: Fn
) -> Result<VerifierKeyVar<TargetCurve, BaseCurve, PG>, SynthesisError> where
    Fn: FnOnce() -> Result<T, SynthesisError>,
    CS: ConstraintSystem<<BaseCurve as PairingEngine>::Fr>,
    T: Borrow<VerifierKey<TargetCurve>>, 
[src]

pub fn alloc<Fn, T, CS>(
    cs: CS,
    value_gen: Fn
) -> Result<VerifierKeyVar<TargetCurve, BaseCurve, PG>, SynthesisError> where
    Fn: FnOnce() -> Result<T, SynthesisError>,
    CS: ConstraintSystem<<BaseCurve as PairingEngine>::Fr>,
    T: Borrow<VerifierKey<TargetCurve>>, 
[src]

pub fn alloc_input<Fn, T, CS>(
    cs: CS,
    value_gen: Fn
) -> Result<VerifierKeyVar<TargetCurve, BaseCurve, PG>, SynthesisError> where
    Fn: FnOnce() -> Result<T, SynthesisError>,
    CS: ConstraintSystem<<BaseCurve as PairingEngine>::Fr>,
    T: Borrow<VerifierKey<TargetCurve>>, 
[src]

impl<TargetCurve, BaseCurve, PG> AllocGadget<BatchLCProof<<TargetCurve as PairingEngine>::Fr, MarlinKZG10<TargetCurve>>, <BaseCurve as PairingEngine>::Fr> for BatchLCProofVar<TargetCurve, BaseCurve, PG> where
    TargetCurve: PairingEngine,
    BaseCurve: PairingEngine,
    PG: PairingGadget<TargetCurve, <BaseCurve as PairingEngine>::Fr>,
    <TargetCurve as PairingEngine>::G1Affine: ToConstraintField<<BaseCurve as PairingEngine>::Fr>,
    <TargetCurve as PairingEngine>::G2Affine: ToConstraintField<<BaseCurve as PairingEngine>::Fr>, 
[src]

pub fn alloc_constant<Fn, T, CS>(
    cs: CS,
    value_gen: Fn
) -> Result<BatchLCProofVar<TargetCurve, BaseCurve, PG>, SynthesisError> where
    Fn: FnOnce() -> Result<T, SynthesisError>,
    CS: ConstraintSystem<<BaseCurve as PairingEngine>::Fr>,
    T: Borrow<BatchLCProof<<TargetCurve as PairingEngine>::Fr, MarlinKZG10<TargetCurve>>>, 
[src]

pub fn alloc<Fn, T, CS>(
    cs: CS,
    value_gen: Fn
) -> Result<BatchLCProofVar<TargetCurve, BaseCurve, PG>, SynthesisError> where
    Fn: FnOnce() -> Result<T, SynthesisError>,
    CS: ConstraintSystem<<BaseCurve as PairingEngine>::Fr>,
    T: Borrow<BatchLCProof<<TargetCurve as PairingEngine>::Fr, MarlinKZG10<TargetCurve>>>, 
[src]

pub fn alloc_input<Fn, T, CS>(
    cs: CS,
    value_gen: Fn
) -> Result<BatchLCProofVar<TargetCurve, BaseCurve, PG>, SynthesisError> where
    Fn: FnOnce() -> Result<T, SynthesisError>,
    CS: ConstraintSystem<<BaseCurve as PairingEngine>::Fr>,
    T: Borrow<BatchLCProof<<TargetCurve as PairingEngine>::Fr, MarlinKZG10<TargetCurve>>>, 
[src]

impl<TargetCurve, BaseCurve, PG> AllocGadget<LabeledCommitment<Commitment<TargetCurve>>, <BaseCurve as PairingEngine>::Fr> for LabeledCommitmentVar<TargetCurve, BaseCurve, PG> where
    TargetCurve: PairingEngine,
    BaseCurve: PairingEngine,
    PG: PairingGadget<TargetCurve, <BaseCurve as PairingEngine>::Fr>,
    <TargetCurve as PairingEngine>::G1Affine: ToConstraintField<<BaseCurve as PairingEngine>::Fr>,
    <TargetCurve as PairingEngine>::G2Affine: ToConstraintField<<BaseCurve as PairingEngine>::Fr>, 
[src]

pub fn alloc_constant<Fn, T, CS>(
    cs: CS,
    value_gen: Fn
) -> Result<LabeledCommitmentVar<TargetCurve, BaseCurve, PG>, SynthesisError> where
    Fn: FnOnce() -> Result<T, SynthesisError>,
    CS: ConstraintSystem<<BaseCurve as PairingEngine>::Fr>,
    T: Borrow<LabeledCommitment<Commitment<TargetCurve>>>, 
[src]

pub fn alloc<Fn, T, CS>(
    cs: CS,
    value_gen: Fn
) -> Result<LabeledCommitmentVar<TargetCurve, BaseCurve, PG>, SynthesisError> where
    Fn: FnOnce() -> Result<T, SynthesisError>,
    CS: ConstraintSystem<<BaseCurve as PairingEngine>::Fr>,
    T: Borrow<LabeledCommitment<Commitment<TargetCurve>>>, 
[src]

pub fn alloc_input<Fn, T, CS>(
    cs: CS,
    value_gen: Fn
) -> Result<LabeledCommitmentVar<TargetCurve, BaseCurve, PG>, SynthesisError> where
    Fn: FnOnce() -> Result<T, SynthesisError>,
    CS: ConstraintSystem<<BaseCurve as PairingEngine>::Fr>,
    T: Borrow<LabeledCommitment<Commitment<TargetCurve>>>, 
[src]

impl<TargetField, BaseField> AllocGadget<LinearCombination<TargetField>, BaseField> for LinearCombinationVar<TargetField, BaseField> where
    BaseField: PrimeField,
    TargetField: PrimeField
[src]

pub fn alloc_constant<FN, T, CS>(
    cs: CS,
    value_gen: FN
) -> Result<LinearCombinationVar<TargetField, BaseField>, SynthesisError> where
    CS: ConstraintSystem<BaseField>,
    T: Borrow<LinearCombination<TargetField>>,
    FN: FnOnce() -> Result<T, SynthesisError>, 
[src]

pub fn alloc<FN, T, CS>(
    cs: CS,
    value_gen: FN
) -> Result<LinearCombinationVar<TargetField, BaseField>, SynthesisError> where
    CS: ConstraintSystem<BaseField>,
    T: Borrow<LinearCombination<TargetField>>,
    FN: FnOnce() -> Result<T, SynthesisError>, 
[src]

pub fn alloc_input<FN, T, CS>(
    cs: CS,
    value_gen: FN
) -> Result<LinearCombinationVar<TargetField, BaseField>, SynthesisError> where
    CS: ConstraintSystem<BaseField>,
    T: Borrow<LinearCombination<TargetField>>,
    FN: FnOnce() -> Result<T, SynthesisError>, 
[src]

impl<TargetField, BaseField> AllocGadget<TargetField, BaseField> for NonNativeFieldVar<TargetField, BaseField> where
    BaseField: PrimeField,
    TargetField: PrimeField
[src]

pub fn alloc_constant<FN, T, CS>(
    _cs: CS,
    value_gen: FN
) -> Result<NonNativeFieldVar<TargetField, BaseField>, SynthesisError> where
    CS: ConstraintSystem<BaseField>,
    T: Borrow<TargetField>,
    FN: FnOnce() -> Result<T, SynthesisError>, 
[src]

pub fn alloc<FN, T, CS>(
    cs: CS,
    value_gen: FN
) -> Result<NonNativeFieldVar<TargetField, BaseField>, SynthesisError> where
    CS: ConstraintSystem<BaseField>,
    T: Borrow<TargetField>,
    FN: FnOnce() -> Result<T, SynthesisError>, 
[src]

pub fn alloc_input<FN, T, CS>(
    cs: CS,
    value_gen: FN
) -> Result<NonNativeFieldVar<TargetField, BaseField>, SynthesisError> where
    CS: ConstraintSystem<BaseField>,
    T: Borrow<TargetField>,
    FN: FnOnce() -> Result<T, SynthesisError>, 
[src]

impl<TargetField, BaseField> AllocGadget<TargetField, BaseField> for AllocatedNonNativeFieldVar<TargetField, BaseField> where
    BaseField: PrimeField,
    TargetField: PrimeField
[src]

pub fn alloc_constant<FN, T, CS>(
    cs: CS,
    value_gen: FN
) -> Result<AllocatedNonNativeFieldVar<TargetField, BaseField>, SynthesisError> where
    CS: ConstraintSystem<BaseField>,
    T: Borrow<TargetField>,
    FN: FnOnce() -> Result<T, SynthesisError>, 
[src]

pub fn alloc<FN, T, CS>(
    cs: CS,
    value_gen: FN
) -> Result<AllocatedNonNativeFieldVar<TargetField, BaseField>, SynthesisError> where
    CS: ConstraintSystem<BaseField>,
    T: Borrow<TargetField>,
    FN: FnOnce() -> Result<T, SynthesisError>, 
[src]

pub fn alloc_input<FN, T, CS>(
    cs: CS,
    value_gen: FN
) -> Result<AllocatedNonNativeFieldVar<TargetField, BaseField>, SynthesisError> where
    CS: ConstraintSystem<BaseField>,
    T: Borrow<TargetField>,
    FN: FnOnce() -> Result<T, SynthesisError>, 
[src]