lakutata 2.0.50 → 2.0.51
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/helper.d.ts +34 -1
- package/package.json +1 -1
- package/src/lib/helpers/BigNumber.cjs +529 -507
- package/src/lib/helpers/BigNumber.mjs +80 -58
- package/vendor/Package.19.cjs +1 -1
- package/vendor/Package.19.mjs +1 -1
package/helper.d.ts
CHANGED
|
@@ -5390,8 +5390,41 @@ declare class RedBN extends BN {
|
|
|
5390
5390
|
redPow(b: BN): RedBN;
|
|
5391
5391
|
}
|
|
5392
5392
|
|
|
5393
|
+
type BigNumberEndianness = BN.Endianness;
|
|
5394
|
+
type BigNumberIPrimeName = BN.IPrimeName;
|
|
5395
|
+
type BigNumberReductionContext = BN.ReductionContext;
|
|
5393
5396
|
declare class BigNumber extends BN {
|
|
5397
|
+
static BigNumber: typeof BigNumber;
|
|
5398
|
+
static wordSize: 26;
|
|
5399
|
+
constructor(number: bigint | number | string | number[] | Uint8Array | Buffer | BigNumber, base?: number | 'hex', endian?: BigNumberEndianness);
|
|
5400
|
+
constructor(number: bigint | number | string | number[] | Uint8Array | Buffer | BigNumber, endian?: BigNumberEndianness);
|
|
5401
|
+
/**
|
|
5402
|
+
* create a reduction context
|
|
5403
|
+
* @param reductionContext
|
|
5404
|
+
*/
|
|
5405
|
+
static red(reductionContext: BigNumber | BigNumberIPrimeName): BigNumberReductionContext;
|
|
5406
|
+
/**
|
|
5407
|
+
* returns the maximum of 2 BigNumber instances.
|
|
5408
|
+
* @param left
|
|
5409
|
+
* @param right
|
|
5410
|
+
*/
|
|
5411
|
+
static max(left: BigNumber, right: BigNumber): BigNumber;
|
|
5412
|
+
/**
|
|
5413
|
+
* returns the minimum of 2 BigNumber instances.
|
|
5414
|
+
* @param left
|
|
5415
|
+
* @param right
|
|
5416
|
+
*/
|
|
5417
|
+
static min(left: BigNumber, right: BigNumber): BigNumber;
|
|
5418
|
+
/**
|
|
5419
|
+
* returns true if the supplied object is a BN.js instance
|
|
5420
|
+
*/
|
|
5421
|
+
static isBigNumber(input: any): input is BigNumber;
|
|
5422
|
+
/**
|
|
5423
|
+
* create a reduction context with the Montgomery trick.
|
|
5424
|
+
* @param num
|
|
5425
|
+
*/
|
|
5426
|
+
static mont(num: BigNumber): BigNumberReductionContext;
|
|
5394
5427
|
}
|
|
5395
5428
|
|
|
5396
5429
|
export { ArrayToSet, As, BigNumber, ConvertArrayLikeToIterable, ConvertArrayLikeToStream, Delay, DevNull, GetObjectNestingDepth, GetObjectPropertyPaths, Glob, GraceExit, HexToIEEE754, HexToSigned, HexToUnsigned, IEEE754ToHex, IP, IPv4, IPv6, IsAbortError, IsEmptyObject, IsExists, IsGlobString, IsHtml, IsNativeFunction, IsPath, IsPromise, IsPromiseLike, IsSymbol, IsXML, MD5, MergeArray, MergeMap, MergeSet, MissingValueError, NoCase, NonceStr, ObjectConstructor, ObjectHash, ObjectParentConstructor, ObjectParentConstructors, ObjectPrototype, ObjectToMap, RandomString, SHA1, SHA256, SetToArray, SignedToHex, SortArray, SortKeys, SortObject, Split, Statistics, Templating, ToLower, ToUpper, URLBuilder, UniqueArray, UnsignedToHex };
|
|
5397
|
-
export type { IPBinHex, IPv4SubNet, IPv6Result, IPv6SubNet, NoCaseOptions, ObjectHashOptions, SortKeysOptions, SortObjectOptions, SortOptions, SplitOptions, TemplatingOptions, URLAttributes };
|
|
5430
|
+
export type { BigNumberEndianness, BigNumberIPrimeName, BigNumberReductionContext, IPBinHex, IPv4SubNet, IPv6Result, IPv6SubNet, NoCaseOptions, ObjectHashOptions, SortKeysOptions, SortObjectOptions, SortOptions, SplitOptions, TemplatingOptions, URLAttributes };
|