Expand description
IsZero gadget works as follows:
Given a value
to be checked if it is zero:
- witnesses
inv0(value)
, whereinv0(x)
is 0 whenx
= 0, and1/x
otherwise
Structs§
- Wrapper around
IsZeroConfig
for which [Chip
] is implemented. - Config struct representing the required fields for an
IsZero
config to exist.
Traits§
- Trait that needs to be implemented for any gadget or circuit that wants to implement
IsZero
.