An element of a finite field.
The number 1 as a
The number 0 as a
Assert that this
Field is either 0 or 1.
This function can only be called inside a checked computation, like a SmartContract method, and throws an error if the assertion fails.
const negOne = Field.one.neg();
Field 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.
A random field element.
Generated using TypeDoc