BigIntX class

Big number extension

Constructors

BigIntX({BigInt? bn})
BigIntX.fromBuffer(List<int> list, {Endian? endian = Endian.big})
factory
BigIntX.fromDynamic(dynamic v)
factory
BigIntX.fromHex(String hexStr, {Endian endian = Endian.big})
factory
BigIntX.fromNum(num n)
factory
BigIntX.fromScriptNumBuffer({required List<int> buf, bool fRequireMinimal = false, int? nMaxNumSize})
factory
BigIntX.fromSm(List<int> buf, {Endian endian = Endian.big})
Signed magnitude buffer. Most significant bit represents sign (0 = positive, 1 = negative).
factory
BigIntX.fromString(String source, {int radix = 10})
factory

Properties

bn BigInt?
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

add(BigIntX other) BigIntX
cmp(dynamic other) int
div(BigIntX other) BigIntX
eq(dynamic other) bool
geq(dynamic other) bool
gt(dynamic other) bool
invm(BigIntX other) BigIntX
leq(dynamic other) bool
lt(dynamic other) bool
mod(BigIntX other) BigIntX
in dart -50%47=44 , in nodejs -50%47=3 , use remainder fix it
mul(BigIntX other) BigIntX
neg() BigIntX
neq(dynamic other) bool
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
sub(BigIntX other) BigIntX
toBuffer({int? size, Endian endian = Endian.big}) List<int>
toHex({int? size, Endian endian = Endian.big}) String
toInt() int
toJSON() String
toNumber() int
toScriptNumBuffer() List<int>
toSm({Endian endian = Endian.big}) List<int>
not implement not implement fromBits(){}
toString({int radix = 10}) String
A string representation of this object.
override
umod(BigIntX other) BigIntX
ushln(dynamic n) BigIntX
ushrn(dynamic n) BigIntX

Operators

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

Static Properties

one BigIntX
no setter
two BigIntX
no setter
zero BigIntX
no setter