Fetches the GroupContext used by this element.
Validate that the element is actually within the bounds of [0,max). Returns true if all is good, false if something's wrong.
Validate that the element is actually within the bounds of [1,max). Returns true if all is good, false if something's wrong.
Returns whether the element is zero.
Converts from the internal representation to a regular JS bigint.
Converts from the internal representation to a big-endian Uint8Array.
Returns a hexidecimal representation of the element.
Generated using TypeDoc
ElementModP and ElementModQ both implement this interface, which is useful for functions and methods that can work on either type.