halo2_ecc::bigint::big_is_zero

Function assign

Source
pub fn assign<F: ScalarField>(
    gate: &impl GateInstructions<F>,
    ctx: &mut Context<F>,
    a: ProperUint<F>,
) -> AssignedValue<F>
Expand description

Given ProperUint<F> a, returns 1 iff every limb of a is zero. Returns 0 otherwise.

It is almost always more efficient to use positive instead.

ยงAssumptions

  • a has nonzero number of limbs