Trait snarkvm_wasm::bits::ToBitsBEGadget [−][src]
pub trait ToBitsBEGadget<F> where
F: Field, { fn to_bits_be<CS>(
&self,
cs: CS
) -> Result<Vec<Boolean, Global>, SynthesisError>
where
CS: ConstraintSystem<F>; fn to_bits_be_strict<CS>(
&self,
cs: CS
) -> Result<Vec<Boolean, Global>, SynthesisError>
where
CS: ConstraintSystem<F>; }
Required methods
fn to_bits_be<CS>(&self, cs: CS) -> Result<Vec<Boolean, Global>, SynthesisError> where
CS: ConstraintSystem<F>,
fn to_bits_be_strict<CS>(
&self,
cs: CS
) -> Result<Vec<Boolean, Global>, SynthesisError> where
CS: ConstraintSystem<F>,
fn to_bits_be_strict<CS>(
&self,
cs: CS
) -> Result<Vec<Boolean, Global>, SynthesisError> where
CS: ConstraintSystem<F>,
Additionally checks if the produced list of booleans is ‘valid’.
Implementations on Foreign Types
pub fn to_bits_be<CS>(
&self,
_cs: CS
) -> Result<Vec<Boolean, Global>, SynthesisError> where
CS: ConstraintSystem<F>,
pub fn to_bits_be_strict<CS>(
&self,
_cs: CS
) -> Result<Vec<Boolean, Global>, SynthesisError> where
CS: ConstraintSystem<F>,
pub fn to_bits_be<CS>(
&self,
_cs: CS
) -> Result<Vec<Boolean, Global>, SynthesisError> where
CS: ConstraintSystem<F>,
pub fn to_bits_be_strict<CS>(
&self,
_cs: CS
) -> Result<Vec<Boolean, Global>, SynthesisError> where
CS: ConstraintSystem<F>,
Implementors
impl<P, F> ToBitsBEGadget<F> for Fp2Gadget<P, F> where
F: PrimeField,
P: Fp2Parameters<Fp = F>,
impl<P, F> ToBitsBEGadget<F> for Fp6Gadget<P, F> where
F: PrimeField,
P: Fp6Parameters,
<P as Fp6Parameters>::Fp2Params: Fp2Parameters,
<<P as Fp6Parameters>::Fp2Params as Fp2Parameters>::Fp == F,
impl<P, F> ToBitsBEGadget<F> for Fp12Gadget<P, F> where
F: PrimeField,
P: Fp12Parameters,
<<P as Fp12Parameters>::Fp6Params as Fp6Parameters>::Fp2Params: Fp2Parameters,
<<<P as Fp12Parameters>::Fp6Params as Fp6Parameters>::Fp2Params as Fp2Parameters>::Fp == F,
impl<TargetField, BaseField> ToBitsBEGadget<BaseField> for NonNativeFieldVar<TargetField, BaseField> where
BaseField: PrimeField,
TargetField: PrimeField,
impl<TargetField, BaseField> ToBitsBEGadget<BaseField> for AllocatedNonNativeFieldVar<TargetField, BaseField> where
BaseField: PrimeField,
TargetField: PrimeField,