Optional base: number | "hex"Optional endian: EndiannessOptional endian: Endiannesscompare 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 byte Array, and optionally zero pad to length, throwing if already exceeding
Optional endian: EndiannessOptional length: numberconvert to an instance of type, which must behave like an Array
Optional endian: EndiannessOptional length: numberOptional endian: EndiannessOptional length: numberconvert to Node.js Buffer (if available). For compatibility with browserify and similar tools, use this instead: a.toArrayLike(Buffer, endian, length)
Convert number to red
compare 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
Description
absolute value