Trait snarkvm_wasm::traits::EqGadget [−][src]
pub trait EqGadget<F>: Eq + ConditionalEqGadget<F> where
F: Field, { fn is_eq<CS>(
&self,
_cs: CS,
_other: &Self
) -> Result<Boolean, SynthesisError>
where
CS: ConstraintSystem<F>, { ... } fn enforce_equal<CS>(
&self,
cs: CS,
other: &Self
) -> Result<(), SynthesisError>
where
CS: ConstraintSystem<F>, { ... } fn cost() -> usize { ... } }
Provided methods
fn is_eq<CS>(&self, _cs: CS, _other: &Self) -> Result<Boolean, SynthesisError> where
CS: ConstraintSystem<F>,
fn is_eq<CS>(&self, _cs: CS, _other: &Self) -> Result<Boolean, SynthesisError> where
CS: ConstraintSystem<F>,
Output a Boolean
value representing whether self.value() == other.value()
.
fn enforce_equal<CS>(&self, cs: CS, other: &Self) -> Result<(), SynthesisError> where
CS: ConstraintSystem<F>,
Implementations on Foreign Types
pub fn is_eq<CS>(&self, cs: CS, other: &[T]) -> Result<Boolean, SynthesisError> where
CS: ConstraintSystem<F>,
Implementors
impl<P, F> EqGadget<F> for Fp6Gadget<P, F> where
P: Fp6Parameters,
F: PrimeField,
<P as Fp6Parameters>::Fp2Params: Fp2Parameters,
<<P as Fp6Parameters>::Fp2Params as Fp2Parameters>::Fp == F,
impl<P, F> EqGadget<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,
impl<TargetField, BaseField> EqGadget<BaseField> for NonNativeFieldVar<TargetField, BaseField> where
BaseField: PrimeField,
TargetField: PrimeField,