Functions
Const add
- add(curve: Curve, a: bigint, b: bigint): bigint
-
Parameters
Returns bigint
Const divide
- divide(curve: Curve, a: bigint, b: bigint): bigint
-
Parameters
Returns bigint
Const eGcd
- eGcd(a: bigint, b: bigint): object
-
Parameters
Returns object
-
g: bigint
-
x: bigint
-
y: bigint
Const mod
- mod(curve: Curve | bigint, n: bigint): bigint
-
Parameters
-
curve: Curve | bigint
-
n: bigint
Returns bigint
Const modInverse
- modInverse(a: bigint, modulo: bigint): bigint
-
Parameters
Returns bigint
Const multiply
- multiply(curve: Curve, a: bigint, b: bigint): bigint
-
Parameters
Returns bigint
Const power
- power(curve: Curve, a: bigint, b: bigint): bigint
-
Parameters
Returns bigint
Const random
- random(curve: Curve): bigint
-
Parameters
Returns bigint
Const squareRoots
- squareRoots(curve: Curve, value: bigint): [bigint, bigint]
-
Parameters
Returns [bigint, bigint]
Const subtract
- subtract(curve: Curve, a: bigint, b: bigint): bigint
-
Parameters
Returns bigint
Const toZn
- toZn(a: bigint, n: bigint): bigint
-
Parameters
Returns bigint
a + b