BigintUtils class

Constructors

BigintUtils()

Properties

hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited

Static Methods

adc(BigInt a, BigInt b, BigInt carry) → List<BigInt>
bitlengthInBytes(BigInt value) → int
combineU256FromU64Parts(List<BigInt> parts, {Endian order = Endian.big}) → BigInt
ctSelectBigInt(BigInt a, BigInt b, bool choice) → BigInt
divmod(BigInt value, int radix) → (BigInt, BigInt)
Divides a BigInt value by a specified radix and returns both the quotient and the remainder.
fromBytes(List<int> bytes, {Endian byteOrder = Endian.big, bool sign = false}) → BigInt
Converts a list of bytes to a BigInt, considering the specified byte order.
inverseMod(BigInt a, BigInt m) → BigInt
Calculates the modular multiplicative inverse of 'a' modulo 'm'.
mac(BigInt a, BigInt b, BigInt c, BigInt carry) → List<BigInt>
max(BigInt a, BigInt b) → BigInt
parse(dynamic number, {bool allowHex = true}) → BigInt
Parses a dynamic value number into a BigInt.
sbb(BigInt a, BigInt b, BigInt borrow) → List<BigInt>
splitU256ToU64Parts(BigInt number, {Endian order = Endian.big}) → List<BigInt>
toBinary(BigInt value, {int zeroPadBitLen = 0}) → String
Converts a BigInt value to a binary string with optional zero padding.
toBinaryBool(BigInt value, {int? bitLength}) → List<bool>
toBytes(BigInt val, {int? length, Endian order = Endian.big}) → List<int>
Converts a BigInt to a list of bytes with the specified length and byte order.
tryParse(dynamic number, {bool allowHex = true}) → BigInt?
Tries to parse a dynamic value number into a BigInt, returning null if parsing fails.
variableNatDecode(List<int> bytes) → (BigInt, int)
variableNatEncode(BigInt val) → List<int>