Optional
base: number | "hex"Optional
endian: EndiannessOptional
endian: EndiannessStatic
BNStatic
wordcompare numbers and return -1 (a < b)
, 0 (a == b)
, or 1 (a > b)
depending on the comparison result
a equals b
a greater than b
a greater than or equals b
shift right (unimplemented https://github.com/indutny/bn.js/blob/master/lib/bn.js#L2086)
a less than b
a less than or equals b
Optional
endian: EndiannessOptional
length: numberconvert to an instance of type
, which must behave like an Array
Optional
endian: EndiannessOptional
length: numbercompare numbers and return -1 (a < b)
, 0 (a == b)
, or 1 (a > b)
depending on the comparison result
Static
isBNStatic
maxStatic
minStatic
montcreate a reduction context with the Montgomery trick.
Static
redcreate a reduction context
Generated using TypeDoc
Description
absolute value