BN
implements
JsonSerializable
Table of Contents
Interfaces
- JsonSerializable
Properties
-
$ASSERT_ENABLED
: mixed
-
$bi
: mixed
-
$red
: mixed
Methods
-
__construct()
: mixed
-
__debugInfo()
: mixed
-
_and()
: mixed
-
_clone()
: mixed
-
_forceRed()
: mixed
-
_or()
: mixed
-
_xor()
: mixed
-
abs()
: mixed
-
add()
: mixed
-
addn()
: mixed
-
andln()
: mixed
-
bincn()
: mixed
-
bitLength()
: mixed
-
byteLength()
: mixed
-
cmp()
: mixed
-
cmpn()
: mixed
-
copy()
: mixed
-
div()
: mixed
-
divn()
: mixed
-
divRound()
: mixed
-
eq()
: mixed
-
eqn()
: mixed
-
forceRed()
: mixed
-
fromRed()
: mixed
-
gcd()
: mixed
-
gt()
: mixed
-
gte()
: mixed
-
gten()
: mixed
-
gtn()
: mixed
-
iabs()
: mixed
-
iadd()
: mixed
-
iaddn()
: mixed
-
iand()
: mixed
-
idivn()
: mixed
-
imaskn()
: mixed
-
imul()
: mixed
-
imuln()
: mixed
-
ineg()
: mixed
-
inotn()
: mixed
-
inspect()
: mixed
-
invm()
: mixed
-
ior()
: mixed
-
isBN()
: mixed
-
isEven()
: mixed
-
ishln()
: mixed
-
ishrn()
: mixed
-
isNeg()
: mixed
-
isOdd()
: mixed
-
isqr()
: mixed
-
isub()
: mixed
-
isubn()
: mixed
-
isZero()
: mixed
-
iuand()
: mixed
-
iuor()
: mixed
-
iushln()
: mixed
-
iushrn()
: mixed
-
iuxor()
: mixed
-
ixor()
: mixed
-
jsonSerialize()
: mixed
-
lt()
: mixed
-
lte()
: mixed
-
lten()
: mixed
-
ltn()
: mixed
-
maskn()
: mixed
-
max()
: mixed
-
min()
: mixed
-
mod()
: mixed
-
modn()
: mixed
-
mont()
: mixed
-
mul()
: mixed
-
muln()
: mixed
-
neg()
: mixed
-
negative()
: mixed
-
notn()
: mixed
-
pow()
: mixed
-
red()
: mixed
-
redAdd()
: mixed
-
redIAdd()
: mixed
-
redIMul()
: mixed
-
redInvm()
: mixed
-
redISqr()
: mixed
-
redISub()
: mixed
-
redMul()
: mixed
-
redNeg()
: mixed
-
redPow()
: mixed
-
redShl()
: mixed
-
redSqr()
: mixed
-
redSqrt()
: mixed
-
redSub()
: mixed
-
setn()
: mixed
-
shln()
: mixed
-
shrn()
: mixed
-
sqr()
: mixed
-
sub()
: mixed
-
subn()
: mixed
-
testn()
: mixed
-
toArray()
: mixed
-
toNumber()
: mixed
-
toRed()
: mixed
-
toString()
: mixed
-
uand()
: mixed
-
ucmp()
: mixed
-
umod()
: mixed
-
uor()
: mixed
-
ushln()
: mixed
-
ushrn()
: mixed
-
uxor()
: mixed
-
zeroBits()
: mixed
$ASSERT_ENABLED
public
static mixed
$ASSERT_ENABLED
$bi
public
mixed
$bi
$red
public
mixed
$red
__construct()
public
__construct(mixed $number[, mixed $base = 10 ][, mixed $endian = null ]) : mixed
Parameters
-
$number
: mixed
-
-
$base
: mixed
= 10
-
-
$endian
: mixed
= null
-
__debugInfo()
public
__debugInfo() : mixed
_and()
public
_and(BN $num) : mixed
Parameters
-
$num
: BN
-
_clone()
public
_clone() : mixed
_forceRed()
public
_forceRed(Red &$ctx) : mixed
Parameters
-
$ctx
: Red
-
_or()
public
_or(BN $num) : mixed
Parameters
-
$num
: BN
-
_xor()
public
_xor(BN $num) : mixed
Parameters
-
$num
: BN
-
abs()
public
abs() : mixed
add()
public
add(BN $num) : mixed
Parameters
-
$num
: BN
-
addn()
public
addn(mixed $num) : mixed
Parameters
-
$num
: mixed
-
andln()
public
andln(mixed $num) : mixed
Parameters
-
$num
: mixed
-
bincn()
public
bincn(mixed $num) : mixed
Parameters
-
$num
: mixed
-
bitLength()
public
bitLength() : mixed
byteLength()
public
byteLength() : mixed
cmp()
public
cmp(BN $num) : mixed
Parameters
-
$num
: BN
-
cmpn()
public
cmpn(mixed $num) : mixed
Parameters
-
$num
: mixed
-
copy()
public
copy(mixed $dest) : mixed
Parameters
-
$dest
: mixed
-
div()
public
div(BN $num) : mixed
Parameters
-
$num
: BN
-
divn()
public
divn(mixed $num) : mixed
Parameters
-
$num
: mixed
-
divRound()
public
divRound(BN $num) : mixed
Parameters
-
$num
: BN
-
eq()
public
eq(BN $num) : mixed
Parameters
-
$num
: BN
-
eqn()
public
eqn(mixed $num) : mixed
Parameters
-
$num
: mixed
-
forceRed()
public
forceRed(Red &$ctx) : mixed
Parameters
-
$ctx
: Red
-
fromRed()
public
fromRed() : mixed
gcd()
public
gcd(BN $num) : mixed
Parameters
-
$num
: BN
-
gt()
public
gt(BN $num) : mixed
Parameters
-
$num
: BN
-
gte()
public
gte(BN $num) : mixed
Parameters
-
$num
: BN
-
gten()
public
gten(mixed $num) : mixed
Parameters
-
$num
: mixed
-
gtn()
public
gtn(mixed $num) : mixed
Parameters
-
$num
: mixed
-
iabs()
public
iabs() : mixed
iadd()
public
iadd(BN $num) : mixed
Parameters
-
$num
: BN
-
iaddn()
public
iaddn(mixed $num) : mixed
Parameters
-
$num
: mixed
-
iand()
public
iand(BN $num) : mixed
Parameters
-
$num
: BN
-
idivn()
public
idivn(mixed $num) : mixed
Parameters
-
$num
: mixed
-
imaskn()
public
imaskn(mixed $bits) : mixed
Parameters
-
$bits
: mixed
-
imul()
public
imul(BN $num) : mixed
Parameters
-
$num
: BN
-
imuln()
public
imuln(mixed $num) : mixed
Parameters
-
$num
: mixed
-
ineg()
public
ineg() : mixed
inotn()
public
inotn(mixed $width) : mixed
Parameters
-
$width
: mixed
-
inspect()
public
inspect() : mixed
invm()
public
invm(BN $num) : mixed
Parameters
-
$num
: BN
-
ior()
public
ior(BN $num) : mixed
Parameters
-
$num
: BN
-
isBN()
public
static isBN(mixed $num) : mixed
Parameters
-
$num
: mixed
-
isEven()
public
isEven() : mixed
ishln()
public
ishln(mixed $bits) : mixed
Parameters
-
$bits
: mixed
-
ishrn()
public
ishrn(mixed $bits[, mixed $hint = null ][, mixed $extended = null ]) : mixed
Parameters
-
$bits
: mixed
-
-
$hint
: mixed
= null
-
-
$extended
: mixed
= null
-
isNeg()
public
isNeg() : mixed
isOdd()
public
isOdd() : mixed
isqr()
public
isqr() : mixed
isub()
public
isub(BN $num) : mixed
Parameters
-
$num
: BN
-
isubn()
public
isubn(mixed $num) : mixed
Parameters
-
$num
: mixed
-
isZero()
public
isZero() : mixed
iuand()
public
iuand(BN $num) : mixed
Parameters
-
$num
: BN
-
iuor()
public
iuor(BN $num) : mixed
Parameters
-
$num
: BN
-
iushln()
public
iushln(mixed $bits) : mixed
Parameters
-
$bits
: mixed
-
iushrn()
public
iushrn(mixed $bits[, mixed $hint = 0 ][, mixed &$extended = null ]) : mixed
Parameters
-
$bits
: mixed
-
-
$hint
: mixed
= 0
-
-
$extended
: mixed
= null
-
iuxor()
public
iuxor(BN $num) : mixed
Parameters
-
$num
: BN
-
ixor()
public
ixor(BN $num) : mixed
Parameters
-
$num
: BN
-
jsonSerialize()
public
jsonSerialize() : mixed
lt()
public
lt(BN $num) : mixed
Parameters
-
$num
: BN
-
lte()
public
lte(BN $num) : mixed
Parameters
-
$num
: BN
-
lten()
public
lten(mixed $num) : mixed
Parameters
-
$num
: mixed
-
ltn()
public
ltn(mixed $num) : mixed
Parameters
-
$num
: mixed
-
maskn()
public
maskn(mixed $bits) : mixed
Parameters
-
$bits
: mixed
-
max()
public
static max(mixed $left, mixed $right) : mixed
Parameters
-
$left
: mixed
-
-
$right
: mixed
-
min()
public
static min(mixed $left, mixed $right) : mixed
Parameters
-
$left
: mixed
-
-
$right
: mixed
-
mod()
public
mod(BN $num) : mixed
Parameters
-
$num
: BN
-
modn()
public
modn(mixed $num) : mixed
Parameters
-
$num
: mixed
-
mont()
public
static mont(mixed $num) : mixed
Parameters
-
$num
: mixed
-
mul()
public
mul(BN $num) : mixed
Parameters
-
$num
: BN
-
muln()
public
muln(mixed $num) : mixed
Parameters
-
$num
: mixed
-
neg()
public
neg() : mixed
negative()
public
negative() : mixed
notn()
public
notn(mixed $width) : mixed
Parameters
-
$width
: mixed
-
pow()
public
pow(BN $num) : mixed
Parameters
-
$num
: BN
-
red()
public
static red(mixed $num) : mixed
Parameters
-
$num
: mixed
-
redAdd()
public
redAdd(BN $num) : mixed
Parameters
-
$num
: BN
-
redIAdd()
public
redIAdd(BN $num) : mixed
Parameters
-
$num
: BN
-
redIMul()
public
redIMul(BN $num) : mixed
Parameters
-
$num
: BN
-
redInvm()
public
redInvm() : mixed
redISqr()
public
redISqr() : mixed
redISub()
public
redISub(BN $num) : mixed
Parameters
-
$num
: BN
-
redMul()
public
redMul(BN $num) : mixed
Parameters
-
$num
: BN
-
redNeg()
public
redNeg() : mixed
redPow()
public
redPow(BN $num) : mixed
Parameters
-
$num
: BN
-
redShl()
public
redShl(BN $num) : mixed
Parameters
-
$num
: BN
-
redSqr()
public
redSqr() : mixed
redSqrt()
public
redSqrt() : mixed
redSub()
public
redSub(BN $num) : mixed
Parameters
-
$num
: BN
-
setn()
public
setn(mixed $bit, mixed $val) : mixed
Parameters
-
$bit
: mixed
-
-
$val
: mixed
-
shln()
public
shln(mixed $bits) : mixed
Parameters
-
$bits
: mixed
-
shrn()
public
shrn(mixed $bits) : mixed
Parameters
-
$bits
: mixed
-
sqr()
public
sqr() : mixed
sub()
public
sub(BN $num) : mixed
Parameters
-
$num
: BN
-
subn()
public
subn(mixed $num) : mixed
Parameters
-
$num
: mixed
-
testn()
public
testn(mixed $bit) : mixed
Parameters
-
$bit
: mixed
-
toArray()
public
toArray([mixed $endian = "be" ][, mixed $length = -1 ]) : mixed
Parameters
-
$endian
: mixed
= "be"
-
-
$length
: mixed
= -1
-
toNumber()
public
toNumber() : mixed
toRed()
public
toRed(Red &$ctx) : mixed
Parameters
-
$ctx
: Red
-
toString()
public
toString([mixed $base = 10 ][, mixed $padding = 0 ]) : mixed
Parameters
-
$base
: mixed
= 10
-
-
$padding
: mixed
= 0
-
uand()
public
uand(BN $num) : mixed
Parameters
-
$num
: BN
-
ucmp()
public
ucmp(BN $num) : mixed
Parameters
-
$num
: BN
-
umod()
public
umod(BN $num) : mixed
Parameters
-
$num
: BN
-
uor()
public
uor(BN $num) : mixed
Parameters
-
$num
: BN
-
ushln()
public
ushln(mixed $bits) : mixed
Parameters
-
$bits
: mixed
-
ushrn()
public
ushrn(mixed $bits) : mixed
Parameters
-
$bits
: mixed
-
uxor()
public
uxor(BN $num) : mixed
Parameters
-
$num
: BN
-
zeroBits()
public
zeroBits() : mixed