Function halo2_gadgets::utilities::bool_check
source · [−]pub fn bool_check<F: FieldExt>(value: Expression<F>) -> Expression<F>
Expand description
Checks that an expression is either 1 or 0.
pub fn bool_check<F: FieldExt>(value: Expression<F>) -> Expression<F>
Checks that an expression is either 1 or 0.