Returns whether the given value is all zeros.
Safely converts a UInt256 to an ElementModQ, wrapping values outside the range back to the beginning by computing "mod q".
Converts to base-16 big-endian upper-case hex string.
Converts the input to a bigint, then to big-endian bytes. If the result is smaller than 32 bytes, the high-bytes will be zero. If the result is greater than 32 bytes, an error is thrown.
If the input is smaller than 32 bytes, the low-bytes will be zero. If the input is greater than 32 bytes, an error is thrown.
If the input is smaller than 32 bytes, the high-bytes will be zero. If the input is greater than 32 bytes, an error is thrown.
Generated using TypeDoc
Superficially similar to an ElementModQ, but guaranteed to be exactly 32 bytes long. Use with care, because the internal representation allows for mutation, and the internal representation is available for external use.