Module gadgets::is_zero

source ·
Expand description

IsZero gadget works as follows:

Given a value to be checked if it is zero:

  • witnesses inv0(value), where inv0(x) is 0 when x = 0, and 1/x otherwise

Structs§

Traits§

  • Trait that needs to be implemented for any gadget or circuit that wants to implement IsZero.