Fetches the GroupContext used by this element.
Creates a new instance of this element where the powP function will use the acceleration possible with {@link PowRadix} to run faster.
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.
Validate that this element is in the subgroup reachable from the generator.
Returns whether the element is zero.
Internal implementation of powP(), which might or might not be accelerated.
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.
Converts to Montgomery form, allowing for faster modular multiplication.
Generated using TypeDoc
General-purpose holder of elements in [0, P). The constructor and concrete type are not exposed. Instead use the helper functions, like {@link GroupContext[createElementModP]}, which will check for errors.