Static
UnsafeProves that this Bool is false
.
Optional
message: stringProves that this Bool is true
.
Optional
message: stringThis converts the Bool to a javascript boolean. This can only be called on non-witness values.
Serialize the Bool to a JSON string. This operation does NOT affect the circuit and can't be used to prove anything about the string representation of the Field.
Serialize the Bool to a string, e.g. for printing. This operation does NOT affect the circuit and can't be used to prove anything about the string representation of the Field.
Static
andStatic
assertStatic
checkStatic
countStatic
equalStatic
fromStatic
fromStatic
fromJSONStatic
notStatic
orStatic
readStatic
sizeStatic
sizeStatic
toStatic
toStatic
toStatic
toStatic
toStatic
toJSONGenerated using TypeDoc
Converts a Field into a Bool. This is a dangerous operation as it assumes that the field element is either 1 or 0 (which might not be true).