@gardenfi/core 0.2.0-beta.71 → 0.2.0-beta.72
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/dist/index.cjs +1 -1
- package/dist/index.js +14 -15
- package/dist/index10.cjs +1 -1
- package/dist/index10.js +41 -55
- package/dist/index11.cjs +1 -1
- package/dist/index11.js +2 -2
- package/dist/index14.cjs +1 -1
- package/dist/index14.js +2 -2
- package/dist/index16.cjs +1 -1
- package/dist/index16.js +136 -30
- package/dist/index17.cjs +1 -1
- package/dist/index17.js +2 -25
- package/dist/index18.cjs +3 -1
- package/dist/index18.js +26 -29
- package/dist/index19.cjs +1 -1
- package/dist/index19.js +17 -32
- package/dist/index20.cjs +2 -1
- package/dist/index20.js +25 -53
- package/dist/index21.cjs +1 -1
- package/dist/index21.js +39 -26
- package/dist/index22.cjs +1 -1
- package/dist/index22.js +199 -15
- package/dist/index23.cjs +1 -1
- package/dist/index23.js +2 -9
- package/dist/index24.cjs +1 -1
- package/dist/index24.js +2 -9
- package/dist/index25.cjs +1 -1
- package/dist/index25.js +2 -138
- package/dist/index26.cjs +1 -1
- package/dist/index26.js +28 -2
- package/dist/index27.cjs +1 -1
- package/dist/index27.js +14 -12
- package/dist/index28.cjs +1 -1
- package/dist/index28.js +174 -36
- package/dist/index29.cjs +1 -1
- package/dist/index29.js +21 -41
- package/dist/index30.cjs +1 -1
- package/dist/index30.js +2 -24
- package/dist/index31.cjs +1 -1
- package/dist/index31.js +34 -25
- package/dist/index32.cjs +1 -1
- package/dist/index32.js +8 -54
- package/dist/index33.cjs +1 -1
- package/dist/index33.js +2 -28
- package/dist/index34.cjs +6 -3
- package/dist/index34.js +949 -30
- package/dist/index35.cjs +1 -1
- package/dist/index35.js +4 -17
- package/dist/index36.cjs +1 -2
- package/dist/index36.js +18 -23
- package/dist/index37.cjs +1 -1
- package/dist/index37.js +29 -38
- package/dist/index38.cjs +1 -1
- package/dist/index38.js +60 -197
- package/dist/index39.cjs +1 -1
- package/dist/index39.js +33 -2
- package/dist/index40.cjs +1 -1
- package/dist/index40.js +87 -2
- package/dist/index41.cjs +1 -1
- package/dist/index41.js +49 -2
- package/dist/index42.cjs +1 -1
- package/dist/index42.js +25 -12
- package/dist/index43.cjs +1 -1
- package/dist/index43.js +2 -12
- package/dist/index44.cjs +1 -1
- package/dist/index44.js +2 -4
- package/dist/index45.cjs +1 -1
- package/dist/index45.js +19 -45
- package/dist/index46.cjs +1 -1
- package/dist/index46.js +30 -38
- package/dist/index47.cjs +1 -1
- package/dist/index47.js +360 -165
- package/dist/index48.cjs +1 -1
- package/dist/index48.js +21 -13
- package/dist/index49.cjs +1 -1
- package/dist/index49.js +54 -3
- package/dist/index50.cjs +1 -1
- package/dist/index50.js +3 -17
- package/dist/index51.cjs +1 -1
- package/dist/index51.js +70 -9
- package/dist/index52.cjs +1 -1
- package/dist/index52.js +2 -175
- package/dist/index53.cjs +1 -1
- package/dist/index53.js +57 -21
- package/dist/index54.js +2 -2
- package/dist/index55.cjs +1 -1
- package/dist/index55.js +39 -34
- package/dist/index56.cjs +1 -1
- package/dist/index56.js +43 -9
- package/dist/index57.cjs +1 -1
- package/dist/index57.js +17 -34
- package/dist/index58.cjs +1 -1
- package/dist/index58.js +103 -50
- package/dist/index59.cjs +1 -2
- package/dist/index59.js +19 -58
- package/dist/index60.cjs +1 -1
- package/dist/index60.js +225 -3
- package/dist/index61.cjs +1 -1
- package/dist/index61.js +4 -128
- package/dist/index62.cjs +1 -2
- package/dist/index62.js +152 -37
- package/dist/index63.cjs +1 -1
- package/dist/index63.js +2 -9
- package/dist/index64.cjs +1 -1
- package/dist/index64.js +13 -11
- package/dist/index65.cjs +1 -1
- package/dist/index65.js +2 -12
- package/dist/index66.cjs +1 -1
- package/dist/index66.js +32 -13
- package/dist/index67.cjs +1 -1
- package/dist/index67.js +2 -7
- package/dist/index68.cjs +1 -1
- package/dist/index68.js +355 -17
- package/dist/index69.cjs +1 -1
- package/dist/index69.js +235 -75
- package/dist/index70.cjs +1 -1
- package/dist/index70.js +67 -14
- package/dist/index71.cjs +1 -1
- package/dist/index71.js +60 -17
- package/dist/index72.cjs +1 -1
- package/dist/index72.js +11 -21
- package/dist/index73.cjs +1 -1
- package/dist/index73.js +44 -13
- package/dist/index74.cjs +1 -1
- package/dist/index74.js +63 -2
- package/dist/index75.cjs +1 -1
- package/dist/index75.js +226 -2
- package/dist/index76.cjs +1 -1
- package/dist/index76.js +3 -7
- package/dist/index77.cjs +1 -2
- package/dist/index77.js +166 -32
- package/dist/index78.cjs +1 -1
- package/dist/index78.js +27 -5
- package/dist/index79.cjs +1 -1
- package/dist/index79.js +19 -18
- package/dist/index80.cjs +1 -1
- package/dist/index80.js +68 -30
- package/dist/index81.cjs +1 -1
- package/dist/index81.js +128 -2
- package/dist/index82.cjs +1 -6
- package/dist/index82.js +9 -949
- package/dist/index83.cjs +1 -1
- package/dist/index84.cjs +1 -1
- package/dist/index84.js +25 -61
- package/dist/index85.cjs +1 -1
- package/dist/index85.js +2 -33
- package/dist/src/index.d.ts +1 -1
- package/dist/src/lib/utils.d.ts +1 -3
- package/package.json +2 -2
- package/dist/index100.cjs +0 -1
- package/dist/index100.js +0 -37
- package/dist/index101.cjs +0 -1
- package/dist/index101.js +0 -369
- package/dist/index102.cjs +0 -1
- package/dist/index102.js +0 -23
- package/dist/index103.cjs +0 -1
- package/dist/index103.js +0 -58
- package/dist/index104.cjs +0 -1
- package/dist/index104.js +0 -5
- package/dist/index105.cjs +0 -1
- package/dist/index105.js +0 -51
- package/dist/index106.cjs +0 -1
- package/dist/index106.js +0 -28
- package/dist/index107.cjs +0 -1
- package/dist/index107.js +0 -4
- package/dist/index108.cjs +0 -1
- package/dist/index108.js +0 -4
- package/dist/index109.cjs +0 -1
- package/dist/index109.js +0 -64
- package/dist/index110.cjs +0 -1
- package/dist/index110.js +0 -37
- package/dist/index111.cjs +0 -1
- package/dist/index111.js +0 -4
- package/dist/index112.cjs +0 -1
- package/dist/index112.js +0 -60
- package/dist/index113.cjs +0 -1
- package/dist/index113.js +0 -4
- package/dist/index114.cjs +0 -1
- package/dist/index114.js +0 -42
- package/dist/index115.cjs +0 -1
- package/dist/index115.js +0 -45
- package/dist/index116.cjs +0 -1
- package/dist/index116.js +0 -20
- package/dist/index117.cjs +0 -1
- package/dist/index117.js +0 -111
- package/dist/index118.cjs +0 -1
- package/dist/index118.js +0 -23
- package/dist/index119.cjs +0 -1
- package/dist/index119.js +0 -228
- package/dist/index120.cjs +0 -1
- package/dist/index120.js +0 -6
- package/dist/index121.cjs +0 -1
- package/dist/index121.js +0 -160
- package/dist/index122.cjs +0 -1
- package/dist/index122.js +0 -4
- package/dist/index123.cjs +0 -1
- package/dist/index123.js +0 -75
- package/dist/index124.cjs +0 -1
- package/dist/index124.js +0 -7
- package/dist/index125.cjs +0 -1
- package/dist/index125.js +0 -107
- package/dist/index126.cjs +0 -1
- package/dist/index126.js +0 -15
- package/dist/index127.cjs +0 -1
- package/dist/index127.js +0 -35
- package/dist/index128.cjs +0 -1
- package/dist/index128.js +0 -32
- package/dist/index129.cjs +0 -1
- package/dist/index129.js +0 -4
- package/dist/index130.cjs +0 -1
- package/dist/index130.js +0 -21
- package/dist/index131.cjs +0 -1
- package/dist/index131.js +0 -4
- package/dist/index132.cjs +0 -1
- package/dist/index132.js +0 -358
- package/dist/index133.cjs +0 -1
- package/dist/index133.js +0 -241
- package/dist/index134.cjs +0 -1
- package/dist/index134.js +0 -70
- package/dist/index135.cjs +0 -1
- package/dist/index135.js +0 -64
- package/dist/index136.cjs +0 -1
- package/dist/index136.js +0 -14
- package/dist/index137.cjs +0 -1
- package/dist/index137.js +0 -47
- package/dist/index138.cjs +0 -1
- package/dist/index138.js +0 -65
- package/dist/index139.cjs +0 -1
- package/dist/index139.js +0 -228
- package/dist/index140.cjs +0 -1
- package/dist/index140.js +0 -5
- package/dist/index141.cjs +0 -1
- package/dist/index141.js +0 -171
- package/dist/index142.cjs +0 -1
- package/dist/index142.js +0 -30
- package/dist/index143.cjs +0 -1
- package/dist/index143.js +0 -23
- package/dist/index144.cjs +0 -1
- package/dist/index144.js +0 -72
- package/dist/index145.cjs +0 -1
- package/dist/index145.js +0 -130
- package/dist/index146.cjs +0 -1
- package/dist/index146.js +0 -9
- package/dist/index147.cjs +0 -1
- package/dist/index147.js +0 -4
- package/dist/index148.cjs +0 -1
- package/dist/index148.js +0 -28
- package/dist/index149.cjs +0 -1
- package/dist/index149.js +0 -4
- package/dist/index86.cjs +0 -1
- package/dist/index86.js +0 -89
- package/dist/index87.cjs +0 -1
- package/dist/index87.js +0 -15
- package/dist/index88.cjs +0 -1
- package/dist/index88.js +0 -9
- package/dist/index89.cjs +0 -1
- package/dist/index89.js +0 -115
- package/dist/index90.cjs +0 -1
- package/dist/index90.js +0 -9
- package/dist/index91.cjs +0 -1
- package/dist/index91.js +0 -35
- package/dist/index92.cjs +0 -1
- package/dist/index92.js +0 -4
- package/dist/index93.cjs +0 -1
- package/dist/index93.js +0 -40
- package/dist/index94.cjs +0 -1
- package/dist/index94.js +0 -31
- package/dist/index95.cjs +0 -1
- package/dist/index95.js +0 -23
- package/dist/index96.cjs +0 -1
- package/dist/index96.js +0 -9
- package/dist/index97.cjs +0 -1
- package/dist/index97.js +0 -7
- package/dist/index98.cjs +0 -1
- package/dist/index98.js +0 -13
- package/dist/index99.cjs +0 -1
- package/dist/index99.js +0 -22
package/dist/index35.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var e={};exports.__exports=e;
|
package/dist/index35.js
CHANGED
|
@@ -1,17 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
messagePrefix: e.typeforce.oneOf(
|
|
6
|
-
e.typeforce.Buffer,
|
|
7
|
-
e.typeforce.String
|
|
8
|
-
),
|
|
9
|
-
bip32: {
|
|
10
|
-
public: e.typeforce.UInt32,
|
|
11
|
-
private: e.typeforce.UInt32
|
|
12
|
-
},
|
|
13
|
-
pubKeyHash: e.typeforce.UInt8,
|
|
14
|
-
scriptHash: e.typeforce.UInt8,
|
|
15
|
-
wif: e.typeforce.UInt8
|
|
16
|
-
}), e.Buffer256bit = e.typeforce.BufferN(32), e.Array = e.typeforce.Array, e.Boolean = e.typeforce.Boolean, e.maybe = e.typeforce.maybe;
|
|
17
|
-
})(f);
|
|
1
|
+
var r = {};
|
|
2
|
+
export {
|
|
3
|
+
r as __exports
|
|
4
|
+
};
|
package/dist/index36.cjs
CHANGED
|
@@ -1,2 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
2
|
-
Use Chrome, Firefox or Internet Explorer 11`)}var c=l.safeBufferExports.Buffer,t=a.commonjsGlobal.crypto||a.commonjsGlobal.msCrypto;t&&t.getRandomValues?s.__module.exports=i:s.__module.exports=m;function i(r,u){if(r>f)throw new RangeError("requested too many random bytes");var o=c.allocUnsafe(r);if(r>0)if(r>n)for(var e=0;e<r;e+=n)t.getRandomValues(o.slice(e,e+n));else t.getRandomValues(o);return typeof u=="function"?process.nextTick(function(){u(null,o)}):o}var p=s.__module.exports;exports.browserExports=p;
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("./index45.cjs"),n=require("./index46.cjs"),o=require("./index47.cjs"),a=require("./index48.cjs"),h=require("./index49.cjs");var u=s.inherits_browserExports,d=n.md5_js,c=o.ripemd160,p=a.sha_jsExports,i=h.cipherBase;function t(r){i.call(this,"digest"),this._hash=r}u(t,i);t.prototype._update=function(r){this._hash.update(r)};t.prototype._final=function(){return this._hash.digest()};var _=function(e){return e=e.toLowerCase(),e==="md5"?new d:e==="rmd160"||e==="ripemd160"?new c:new t(p(e))};exports.browser=_;
|
package/dist/index36.js
CHANGED
|
@@ -1,27 +1,22 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
1
|
+
import { i } from "./index45.js";
|
|
2
|
+
import { m as o } from "./index46.js";
|
|
3
|
+
import { r as a } from "./index47.js";
|
|
4
|
+
import { s as n } from "./index48.js";
|
|
5
|
+
import { c as h } from "./index49.js";
|
|
6
|
+
var p = i, m = o, f = a, u = n, e = h;
|
|
7
|
+
function s(t) {
|
|
8
|
+
e.call(this, "digest"), this._hash = t;
|
|
8
9
|
}
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
t.getRandomValues(o);
|
|
20
|
-
return typeof a == "function" ? process.nextTick(function() {
|
|
21
|
-
a(null, o);
|
|
22
|
-
}) : o;
|
|
23
|
-
}
|
|
24
|
-
var b = n.exports;
|
|
10
|
+
p(s, e);
|
|
11
|
+
s.prototype._update = function(t) {
|
|
12
|
+
this._hash.update(t);
|
|
13
|
+
};
|
|
14
|
+
s.prototype._final = function() {
|
|
15
|
+
return this._hash.digest();
|
|
16
|
+
};
|
|
17
|
+
var b = function(r) {
|
|
18
|
+
return r = r.toLowerCase(), r === "md5" ? new m() : r === "rmd160" || r === "ripemd160" ? new f() : new s(u(r));
|
|
19
|
+
};
|
|
25
20
|
export {
|
|
26
21
|
b
|
|
27
22
|
};
|
package/dist/index37.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("./index50.cjs"),s=require("./index31.cjs");var o=i.bs58,v=s.safeBufferExports.Buffer,b=function(t){function a(e){var r=t(e);return o.encode(v.concat([e,r],e.length+4))}function u(e){var r=e.slice(0,-4),n=e.slice(-4),c=t(r);if(!(n[0]^c[0]|n[1]^c[1]|n[2]^c[2]|n[3]^c[3]))return r}function d(e){var r=o.decodeUnsafe(e);if(r)return u(r)}function f(e){var r=o.decode(e),n=u(r);if(!n)throw new Error("Invalid checksum");return n}return{encode:a,decode:f,decodeUnsafe:d}};exports.base=b;
|
package/dist/index37.js
CHANGED
|
@@ -1,43 +1,34 @@
|
|
|
1
|
-
import { b as
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
return
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
1
|
+
import { b as s } from "./index50.js";
|
|
2
|
+
import { s as i } from "./index31.js";
|
|
3
|
+
var o = s, v = i.Buffer, h = function(a) {
|
|
4
|
+
function t(e) {
|
|
5
|
+
var r = a(e);
|
|
6
|
+
return o.encode(v.concat([
|
|
7
|
+
e,
|
|
8
|
+
r
|
|
9
|
+
], e.length + 4));
|
|
10
|
+
}
|
|
11
|
+
function f(e) {
|
|
12
|
+
var r = e.slice(0, -4), n = e.slice(-4), c = a(r);
|
|
13
|
+
if (!(n[0] ^ c[0] | n[1] ^ c[1] | n[2] ^ c[2] | n[3] ^ c[3]))
|
|
14
|
+
return r;
|
|
15
|
+
}
|
|
16
|
+
function u(e) {
|
|
17
|
+
var r = o.decodeUnsafe(e);
|
|
18
|
+
if (r)
|
|
19
|
+
return f(r);
|
|
20
|
+
}
|
|
21
|
+
function d(e) {
|
|
22
|
+
var r = o.decode(e), n = f(r);
|
|
23
|
+
if (!n) throw new Error("Invalid checksum");
|
|
24
|
+
return n;
|
|
25
|
+
}
|
|
13
26
|
return {
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
27
|
+
encode: t,
|
|
28
|
+
decode: d,
|
|
29
|
+
decodeUnsafe: u
|
|
17
30
|
};
|
|
18
|
-
}
|
|
19
|
-
function c(e, n, r) {
|
|
20
|
-
var o = new Buffer(r ? 34 : 33);
|
|
21
|
-
return o.writeUInt8(e, 0), n.copy(o, 1), r && (o[33] = 1), o;
|
|
22
|
-
}
|
|
23
|
-
function a(e, n) {
|
|
24
|
-
return d(t.decode(e), n);
|
|
25
|
-
}
|
|
26
|
-
function w(e, n, r) {
|
|
27
|
-
return typeof e == "number" ? t.encode(c(e, n, r)) : t.encode(
|
|
28
|
-
c(
|
|
29
|
-
e.version,
|
|
30
|
-
e.privateKey,
|
|
31
|
-
e.compressed
|
|
32
|
-
)
|
|
33
|
-
);
|
|
34
|
-
}
|
|
35
|
-
var l = {
|
|
36
|
-
decode: a,
|
|
37
|
-
decodeRaw: d,
|
|
38
|
-
encode: w,
|
|
39
|
-
encodeRaw: c
|
|
40
31
|
};
|
|
41
32
|
export {
|
|
42
|
-
|
|
33
|
+
h as b
|
|
43
34
|
};
|
package/dist/index38.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const g=require("./index39.cjs");var i=g.native;function p(r){return r.name||r.toString().match(/function (.*?)\s*\(/)[1]}function s(r){return i.Nil(r)?"":p(r.constructor)}function h(r){return i.Function(r)?"":i.String(r)?JSON.stringify(r):r&&i.Object(r)?"":r}function _(r,t){Error.captureStackTrace&&Error.captureStackTrace(r,t)}function u(r){return i.Function(r)?r.toJSON?r.toJSON():p(r):i.Array(r)?"Array":r&&i.Object(r)?"Object":r!==void 0?r:""}function S(r,t,n){var e=h(t);return"Expected "+u(r)+", got"+(n!==""?" "+n:"")+(e!==""?" "+e:"")}function o(r,t,n){n=n||s(t),this.message=S(r,t,n),_(this,o),this.__type=r,this.__value=t,this.__valueTypeName=n}o.prototype=Object.create(Error.prototype);o.prototype.constructor=o;function E(r,t,n,e,c){var a='" of type ';return t==="key"&&(a='" with key type '),S('property "'+u(n)+a+u(r),e,c)}function f(r,t,n,e,c){r?(c=c||s(e),this.message=E(r,n,t,e,c)):this.message='Unexpected property "'+t+'"',_(this,o),this.__label=n,this.__property=t,this.__type=r,this.__value=e,this.__valueTypeName=c}f.prototype=Object.create(Error.prototype);f.prototype.constructor=o;function y(r,t){return new o(r,{},t)}function T(r,t,n){return r instanceof f?(t=t+"."+r.__property,r=new f(r.__type,t,r.__label,r.__value,r.__valueTypeName)):r instanceof o&&(r=new f(r.__type,t,n,r.__value,r.__valueTypeName)),_(r),r}var O={TfTypeError:o,TfPropertyTypeError:f,tfCustomError:y,tfSubError:T,tfJSON:u,getValueTypeName:s};exports.errors=O;
|
package/dist/index38.js
CHANGED
|
@@ -1,201 +1,64 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
function c(b) {
|
|
6
|
-
a(
|
|
7
|
-
b.isPoint(
|
|
8
|
-
f("0279be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798")
|
|
9
|
-
)
|
|
10
|
-
), a(
|
|
11
|
-
!b.isPoint(
|
|
12
|
-
f("030000000000000000000000000000000000000000000000000000000000000005")
|
|
13
|
-
)
|
|
14
|
-
), a(
|
|
15
|
-
b.isPrivate(
|
|
16
|
-
f("79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798")
|
|
17
|
-
)
|
|
18
|
-
), a(
|
|
19
|
-
b.isPrivate(
|
|
20
|
-
f("fffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364140")
|
|
21
|
-
)
|
|
22
|
-
), a(
|
|
23
|
-
!b.isPrivate(
|
|
24
|
-
f("0000000000000000000000000000000000000000000000000000000000000000")
|
|
25
|
-
)
|
|
26
|
-
), a(
|
|
27
|
-
!b.isPrivate(
|
|
28
|
-
f("fffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141")
|
|
29
|
-
)
|
|
30
|
-
), a(
|
|
31
|
-
!b.isPrivate(
|
|
32
|
-
f("fffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364142")
|
|
33
|
-
)
|
|
34
|
-
), a(
|
|
35
|
-
Buffer.from(
|
|
36
|
-
b.privateAdd(
|
|
37
|
-
f("0000000000000000000000000000000000000000000000000000000000000001"),
|
|
38
|
-
f("0000000000000000000000000000000000000000000000000000000000000000")
|
|
39
|
-
)
|
|
40
|
-
).equals(
|
|
41
|
-
f("0000000000000000000000000000000000000000000000000000000000000001")
|
|
42
|
-
)
|
|
43
|
-
), a(
|
|
44
|
-
b.privateAdd(
|
|
45
|
-
f("fffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd036413e"),
|
|
46
|
-
f("0000000000000000000000000000000000000000000000000000000000000003")
|
|
47
|
-
) === null
|
|
48
|
-
), a(
|
|
49
|
-
Buffer.from(
|
|
50
|
-
b.privateAdd(
|
|
51
|
-
f("e211078564db65c3ce7704f08262b1f38f1ef412ad15b5ac2d76657a63b2c500"),
|
|
52
|
-
f("b51fbb69051255d1becbd683de5848242a89c229348dd72896a87ada94ae8665")
|
|
53
|
-
)
|
|
54
|
-
).equals(
|
|
55
|
-
f("9730c2ee69edbb958d42db7460bafa18fef9d955325aec99044c81c8282b0a24")
|
|
56
|
-
)
|
|
57
|
-
), a(
|
|
58
|
-
Buffer.from(
|
|
59
|
-
b.privateNegate(
|
|
60
|
-
f("0000000000000000000000000000000000000000000000000000000000000001")
|
|
61
|
-
)
|
|
62
|
-
).equals(
|
|
63
|
-
f("fffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364140")
|
|
64
|
-
)
|
|
65
|
-
), a(
|
|
66
|
-
Buffer.from(
|
|
67
|
-
b.privateNegate(
|
|
68
|
-
f("fffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd036413e")
|
|
69
|
-
)
|
|
70
|
-
).equals(
|
|
71
|
-
f("0000000000000000000000000000000000000000000000000000000000000003")
|
|
72
|
-
)
|
|
73
|
-
), a(
|
|
74
|
-
Buffer.from(
|
|
75
|
-
b.privateNegate(
|
|
76
|
-
f("b1121e4088a66a28f5b6b0f5844943ecd9f610196d7bb83b25214b60452c09af")
|
|
77
|
-
)
|
|
78
|
-
).equals(
|
|
79
|
-
f("4eede1bf775995d70a494f0a7bb6bc11e0b8cccd41cce8009ab1132c8b0a3792")
|
|
80
|
-
)
|
|
81
|
-
), a(
|
|
82
|
-
Buffer.from(
|
|
83
|
-
b.pointCompress(
|
|
84
|
-
f(
|
|
85
|
-
"0479be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8"
|
|
86
|
-
),
|
|
87
|
-
!0
|
|
88
|
-
)
|
|
89
|
-
).equals(
|
|
90
|
-
f("0279be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798")
|
|
91
|
-
)
|
|
92
|
-
), a(
|
|
93
|
-
Buffer.from(
|
|
94
|
-
b.pointCompress(
|
|
95
|
-
f(
|
|
96
|
-
"0479be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8"
|
|
97
|
-
),
|
|
98
|
-
!1
|
|
99
|
-
)
|
|
100
|
-
).equals(
|
|
101
|
-
f(
|
|
102
|
-
"0479be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8"
|
|
103
|
-
)
|
|
104
|
-
)
|
|
105
|
-
), a(
|
|
106
|
-
Buffer.from(
|
|
107
|
-
b.pointCompress(
|
|
108
|
-
f("0279be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798"),
|
|
109
|
-
!0
|
|
110
|
-
)
|
|
111
|
-
).equals(
|
|
112
|
-
f("0279be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798")
|
|
113
|
-
)
|
|
114
|
-
), a(
|
|
115
|
-
Buffer.from(
|
|
116
|
-
b.pointCompress(
|
|
117
|
-
f("0279be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798"),
|
|
118
|
-
!1
|
|
119
|
-
)
|
|
120
|
-
).equals(
|
|
121
|
-
f(
|
|
122
|
-
"0479be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8"
|
|
123
|
-
)
|
|
124
|
-
)
|
|
125
|
-
), a(
|
|
126
|
-
Buffer.from(
|
|
127
|
-
b.pointFromScalar(
|
|
128
|
-
f("b1121e4088a66a28f5b6b0f5844943ecd9f610196d7bb83b25214b60452c09af")
|
|
129
|
-
)
|
|
130
|
-
).equals(
|
|
131
|
-
f("02b07ba9dca9523b7ef4bd97703d43d20399eb698e194704791a25ce77a400df99")
|
|
132
|
-
)
|
|
133
|
-
), a(
|
|
134
|
-
b.xOnlyPointAddTweak(
|
|
135
|
-
f("79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798"),
|
|
136
|
-
f("fffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364140")
|
|
137
|
-
) === null
|
|
138
|
-
);
|
|
139
|
-
let e = b.xOnlyPointAddTweak(
|
|
140
|
-
f("1617d38ed8d8657da4d4761e8057bc396ea9e4b9d29776d4be096016dbd2509b"),
|
|
141
|
-
f("a8397a935f0dfceba6ba9618f6451ef4d80637abf4e6af2669fbc9de6a8fd2ac")
|
|
142
|
-
);
|
|
143
|
-
a(
|
|
144
|
-
Buffer.from(e.xOnlyPubkey).equals(
|
|
145
|
-
f("e478f99dab91052ab39a33ea35fd5e6e4933f4d28023cd597c9a1f6760346adf")
|
|
146
|
-
) && e.parity === 1
|
|
147
|
-
), e = b.xOnlyPointAddTweak(
|
|
148
|
-
f("2c0b7cf95324a07d05398b240174dc0c2be444d96b159aa6c7f7b1e668680991"),
|
|
149
|
-
f("823c3cd2142744b075a87eade7e1b8678ba308d566226a0056ca2b7a76f86b47")
|
|
150
|
-
), a(
|
|
151
|
-
Buffer.from(e.xOnlyPubkey).equals(
|
|
152
|
-
f("9534f8dc8c6deda2dc007655981c78b49c5d96c778fbf363462a11ec9dfd948c")
|
|
153
|
-
) && e.parity === 0
|
|
154
|
-
), a(
|
|
155
|
-
Buffer.from(
|
|
156
|
-
b.sign(
|
|
157
|
-
f("5e9f0a0d593efdcf78ac923bc3313e4e7d408d574354ee2b3288c0da9fbba6ed"),
|
|
158
|
-
f("fffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364140")
|
|
159
|
-
)
|
|
160
|
-
).equals(
|
|
161
|
-
f(
|
|
162
|
-
"54c4a33c6423d689378f160a7ff8b61330444abb58fb470f96ea16d99d4a2fed07082304410efa6b2943111b6a4e0aaa7b7db55a07e9861d1fb3cb1f421044a5"
|
|
163
|
-
)
|
|
164
|
-
)
|
|
165
|
-
), a(
|
|
166
|
-
b.verify(
|
|
167
|
-
f("5e9f0a0d593efdcf78ac923bc3313e4e7d408d574354ee2b3288c0da9fbba6ed"),
|
|
168
|
-
f("0379be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798"),
|
|
169
|
-
f(
|
|
170
|
-
"54c4a33c6423d689378f160a7ff8b61330444abb58fb470f96ea16d99d4a2fed07082304410efa6b2943111b6a4e0aaa7b7db55a07e9861d1fb3cb1f421044a5"
|
|
171
|
-
)
|
|
172
|
-
)
|
|
173
|
-
), b.signSchnorr && a(
|
|
174
|
-
Buffer.from(
|
|
175
|
-
b.signSchnorr(
|
|
176
|
-
f("7e2d58d8b3bcdf1abadec7829054f90dda9805aab56c77333024b9d0a508b75c"),
|
|
177
|
-
f("c90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b14e5c9"),
|
|
178
|
-
f("c87aa53824b4d7ae2eb035a2b5bbbccc080e76cdc6d1692c4b0b62d798e6d906")
|
|
179
|
-
)
|
|
180
|
-
).equals(
|
|
181
|
-
f(
|
|
182
|
-
"5831aaeed7b44bb74e5eab94ba9d4294c49bcf2a60728d8b4c200f50dd313c1bab745879a5ad954a72c45a91c3a51d3c7adea98d82f8481e0e1e03674a6f3fb7"
|
|
183
|
-
)
|
|
184
|
-
)
|
|
185
|
-
), b.verifySchnorr && a(
|
|
186
|
-
b.verifySchnorr(
|
|
187
|
-
f("7e2d58d8b3bcdf1abadec7829054f90dda9805aab56c77333024b9d0a508b75c"),
|
|
188
|
-
f("dd308afec5777e13121fa72b9cc1b7cc0139715309b086c960e18fd969774eb8"),
|
|
189
|
-
f(
|
|
190
|
-
"5831aaeed7b44bb74e5eab94ba9d4294c49bcf2a60728d8b4c200f50dd313c1bab745879a5ad954a72c45a91c3a51d3c7adea98d82f8481e0e1e03674a6f3fb7"
|
|
191
|
-
)
|
|
192
|
-
)
|
|
193
|
-
);
|
|
1
|
+
import { n as E } from "./index39.js";
|
|
2
|
+
var i = E;
|
|
3
|
+
function p(r) {
|
|
4
|
+
return r.name || r.toString().match(/function (.*?)\s*\(/)[1];
|
|
194
5
|
}
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
if (!b) throw new Error("ecc library invalid");
|
|
6
|
+
function u(r) {
|
|
7
|
+
return i.Nil(r) ? "" : p(r.constructor);
|
|
198
8
|
}
|
|
9
|
+
function S(r) {
|
|
10
|
+
return i.Function(r) ? "" : i.String(r) ? JSON.stringify(r) : r && i.Object(r) ? "" : r;
|
|
11
|
+
}
|
|
12
|
+
function _(r, t) {
|
|
13
|
+
Error.captureStackTrace && Error.captureStackTrace(r, t);
|
|
14
|
+
}
|
|
15
|
+
function s(r) {
|
|
16
|
+
return i.Function(r) ? r.toJSON ? r.toJSON() : p(r) : i.Array(r) ? "Array" : r && i.Object(r) ? "Object" : r !== void 0 ? r : "";
|
|
17
|
+
}
|
|
18
|
+
function h(r, t, n) {
|
|
19
|
+
var e = S(t);
|
|
20
|
+
return "Expected " + s(r) + ", got" + (n !== "" ? " " + n : "") + (e !== "" ? " " + e : "");
|
|
21
|
+
}
|
|
22
|
+
function o(r, t, n) {
|
|
23
|
+
n = n || u(t), this.message = h(r, t, n), _(this, o), this.__type = r, this.__value = t, this.__valueTypeName = n;
|
|
24
|
+
}
|
|
25
|
+
o.prototype = Object.create(Error.prototype);
|
|
26
|
+
o.prototype.constructor = o;
|
|
27
|
+
function g(r, t, n, e, c) {
|
|
28
|
+
var a = '" of type ';
|
|
29
|
+
return t === "key" && (a = '" with key type '), h('property "' + s(n) + a + s(r), e, c);
|
|
30
|
+
}
|
|
31
|
+
function f(r, t, n, e, c) {
|
|
32
|
+
r ? (c = c || u(e), this.message = g(r, n, t, e, c)) : this.message = 'Unexpected property "' + t + '"', _(this, o), this.__label = n, this.__property = t, this.__type = r, this.__value = e, this.__valueTypeName = c;
|
|
33
|
+
}
|
|
34
|
+
f.prototype = Object.create(Error.prototype);
|
|
35
|
+
f.prototype.constructor = o;
|
|
36
|
+
function y(r, t) {
|
|
37
|
+
return new o(r, {}, t);
|
|
38
|
+
}
|
|
39
|
+
function T(r, t, n) {
|
|
40
|
+
return r instanceof f ? (t = t + "." + r.__property, r = new f(
|
|
41
|
+
r.__type,
|
|
42
|
+
t,
|
|
43
|
+
r.__label,
|
|
44
|
+
r.__value,
|
|
45
|
+
r.__valueTypeName
|
|
46
|
+
)) : r instanceof o && (r = new f(
|
|
47
|
+
r.__type,
|
|
48
|
+
t,
|
|
49
|
+
n,
|
|
50
|
+
r.__value,
|
|
51
|
+
r.__valueTypeName
|
|
52
|
+
)), _(r), r;
|
|
53
|
+
}
|
|
54
|
+
var m = {
|
|
55
|
+
TfTypeError: o,
|
|
56
|
+
TfPropertyTypeError: f,
|
|
57
|
+
tfCustomError: y,
|
|
58
|
+
tfSubError: T,
|
|
59
|
+
tfJSON: s,
|
|
60
|
+
getValueTypeName: u
|
|
61
|
+
};
|
|
199
62
|
export {
|
|
200
|
-
|
|
63
|
+
m as e
|
|
201
64
|
};
|
package/dist/index39.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var t={Array:function(n){return n!=null&&n.constructor===Array},Boolean:function(n){return typeof n=="boolean"},Function:function(n){return typeof n=="function"},Nil:function(n){return n==null},Number:function(n){return typeof n=="number"},Object:function(n){return typeof n=="object"},String:function(n){return typeof n=="string"},"":function(){return!0}};t.Null=t.Nil;for(var r in t)t[r].toJSON=(function(n){return n}).bind(null,r);var e=t;exports.native=e;
|
package/dist/index39.js
CHANGED
|
@@ -1,4 +1,35 @@
|
|
|
1
|
-
var
|
|
1
|
+
var t = {
|
|
2
|
+
Array: function(n) {
|
|
3
|
+
return n != null && n.constructor === Array;
|
|
4
|
+
},
|
|
5
|
+
Boolean: function(n) {
|
|
6
|
+
return typeof n == "boolean";
|
|
7
|
+
},
|
|
8
|
+
Function: function(n) {
|
|
9
|
+
return typeof n == "function";
|
|
10
|
+
},
|
|
11
|
+
Nil: function(n) {
|
|
12
|
+
return n == null;
|
|
13
|
+
},
|
|
14
|
+
Number: function(n) {
|
|
15
|
+
return typeof n == "number";
|
|
16
|
+
},
|
|
17
|
+
Object: function(n) {
|
|
18
|
+
return typeof n == "object";
|
|
19
|
+
},
|
|
20
|
+
String: function(n) {
|
|
21
|
+
return typeof n == "string";
|
|
22
|
+
},
|
|
23
|
+
"": function() {
|
|
24
|
+
return !0;
|
|
25
|
+
}
|
|
26
|
+
};
|
|
27
|
+
t.Null = t.Nil;
|
|
28
|
+
for (var r in t)
|
|
29
|
+
t[r].toJSON = (function(n) {
|
|
30
|
+
return n;
|
|
31
|
+
}).bind(null, r);
|
|
32
|
+
var u = t;
|
|
2
33
|
export {
|
|
3
|
-
|
|
34
|
+
u as n
|
|
4
35
|
};
|
package/dist/index40.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var e={};
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const J=require("./index39.cjs"),M=require("./index38.cjs");var I,b;function H(){if(b)return I;b=1;var o=J.native,S=M.errors;function N(n){return Buffer.isBuffer(n)}function g(n){return typeof n=="string"&&/^([0-9a-f]{2})+$/i.test(n)}function f(n,e){var r=n.toJSON();function i(t){if(!n(t))return!1;if(t.length===e)return!0;throw S.tfCustomError(r+"(Length: "+e+")",r+"(Length: "+t.length+")")}return i.toJSON=function(){return r},i}var a=f.bind(null,o.Array),h=f.bind(null,N),_=f.bind(null,g),x=f.bind(null,o.String);function d(n,e,r){r=r||o.Number;function i(t,E){return r(t,E)&&t>n&&t<e}return i.toJSON=function(){return`${r.toJSON()} between [${n}, ${e}]`},i}var u=Math.pow(2,53)-1;function y(n){return typeof n=="number"&&isFinite(n)}function U(n){return n<<24>>24===n}function O(n){return n<<16>>16===n}function m(n){return(n|0)===n}function B(n){return typeof n=="number"&&n>=-u&&n<=u&&Math.floor(n)===n}function R(n){return(n&255)===n}function p(n){return(n&65535)===n}function q(n){return n>>>0===n}function A(n){return typeof n=="number"&&n>=0&&n<=u&&Math.floor(n)===n}var c={ArrayN:a,Buffer:N,BufferN:h,Finite:y,Hex:g,HexN:_,Int8:U,Int16:O,Int32:m,Int53:B,Range:d,StringN:x,UInt8:R,UInt16:p,UInt32:q,UInt53:A};for(var s in c)c[s].toJSON=(function(n){return n}).bind(null,s);return I=c,I}exports.__require=H;
|
package/dist/index40.js
CHANGED
|
@@ -1,4 +1,89 @@
|
|
|
1
|
-
|
|
1
|
+
import { n as H } from "./index39.js";
|
|
2
|
+
import { e as L } from "./index38.js";
|
|
3
|
+
var I, a;
|
|
4
|
+
function q() {
|
|
5
|
+
if (a) return I;
|
|
6
|
+
a = 1;
|
|
7
|
+
var o = H, h = L;
|
|
8
|
+
function N(n) {
|
|
9
|
+
return Buffer.isBuffer(n);
|
|
10
|
+
}
|
|
11
|
+
function g(n) {
|
|
12
|
+
return typeof n == "string" && /^([0-9a-f]{2})+$/i.test(n);
|
|
13
|
+
}
|
|
14
|
+
function e(n, f) {
|
|
15
|
+
var r = n.toJSON();
|
|
16
|
+
function i(t) {
|
|
17
|
+
if (!n(t)) return !1;
|
|
18
|
+
if (t.length === f) return !0;
|
|
19
|
+
throw h.tfCustomError(r + "(Length: " + f + ")", r + "(Length: " + t.length + ")");
|
|
20
|
+
}
|
|
21
|
+
return i.toJSON = function() {
|
|
22
|
+
return r;
|
|
23
|
+
}, i;
|
|
24
|
+
}
|
|
25
|
+
var x = e.bind(null, o.Array), _ = e.bind(null, N), b = e.bind(null, g), m = e.bind(null, o.String);
|
|
26
|
+
function S(n, f, r) {
|
|
27
|
+
r = r || o.Number;
|
|
28
|
+
function i(t, J) {
|
|
29
|
+
return r(t, J) && t > n && t < f;
|
|
30
|
+
}
|
|
31
|
+
return i.toJSON = function() {
|
|
32
|
+
return `${r.toJSON()} between [${n}, ${f}]`;
|
|
33
|
+
}, i;
|
|
34
|
+
}
|
|
35
|
+
var u = Math.pow(2, 53) - 1;
|
|
36
|
+
function U(n) {
|
|
37
|
+
return typeof n == "number" && isFinite(n);
|
|
38
|
+
}
|
|
39
|
+
function p(n) {
|
|
40
|
+
return n << 24 >> 24 === n;
|
|
41
|
+
}
|
|
42
|
+
function d(n) {
|
|
43
|
+
return n << 16 >> 16 === n;
|
|
44
|
+
}
|
|
45
|
+
function y(n) {
|
|
46
|
+
return (n | 0) === n;
|
|
47
|
+
}
|
|
48
|
+
function B(n) {
|
|
49
|
+
return typeof n == "number" && n >= -u && n <= u && Math.floor(n) === n;
|
|
50
|
+
}
|
|
51
|
+
function O(n) {
|
|
52
|
+
return (n & 255) === n;
|
|
53
|
+
}
|
|
54
|
+
function R(n) {
|
|
55
|
+
return (n & 65535) === n;
|
|
56
|
+
}
|
|
57
|
+
function A(n) {
|
|
58
|
+
return n >>> 0 === n;
|
|
59
|
+
}
|
|
60
|
+
function E(n) {
|
|
61
|
+
return typeof n == "number" && n >= 0 && n <= u && Math.floor(n) === n;
|
|
62
|
+
}
|
|
63
|
+
var c = {
|
|
64
|
+
ArrayN: x,
|
|
65
|
+
Buffer: N,
|
|
66
|
+
BufferN: _,
|
|
67
|
+
Finite: U,
|
|
68
|
+
Hex: g,
|
|
69
|
+
HexN: b,
|
|
70
|
+
Int8: p,
|
|
71
|
+
Int16: d,
|
|
72
|
+
Int32: y,
|
|
73
|
+
Int53: B,
|
|
74
|
+
Range: S,
|
|
75
|
+
StringN: m,
|
|
76
|
+
UInt8: O,
|
|
77
|
+
UInt16: R,
|
|
78
|
+
UInt32: A,
|
|
79
|
+
UInt53: E
|
|
80
|
+
};
|
|
81
|
+
for (var s in c)
|
|
82
|
+
c[s].toJSON = (function(n) {
|
|
83
|
+
return n;
|
|
84
|
+
}).bind(null, s);
|
|
85
|
+
return I = c, I;
|
|
86
|
+
}
|
|
2
87
|
export {
|
|
3
|
-
|
|
88
|
+
q as __require
|
|
4
89
|
};
|
package/dist/index41.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";
|
|
1
|
+
"use strict";const f=require("./index43.cjs");f.__exports.byteLength=l;f.__exports.toByteArray=C;f.__exports.fromByteArray=g;var x=[],c=[],u=typeof Uint8Array<"u"?Uint8Array:Array,s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(var F=0,A=s.length;F<A;++F)x[F]=s[F],c[s.charCodeAt(F)]=F;c[45]=62;c[95]=63;function p(r){var e=r.length;if(e%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var t=r.indexOf("=");t===-1&&(t=e);var o=t===e?0:4-t%4;return[t,o]}function l(r){var e=p(r),t=e[0],o=e[1];return(t+o)*3/4-o}function y(r,e,t){return(e+t)*3/4-t}function C(r){var e,t=p(r),o=t[0],n=t[1],a=new u(y(r,o,n)),v=0,d=n>0?o-4:o,h;for(h=0;h<d;h+=4)e=c[r.charCodeAt(h)]<<18|c[r.charCodeAt(h+1)]<<12|c[r.charCodeAt(h+2)]<<6|c[r.charCodeAt(h+3)],a[v++]=e>>16&255,a[v++]=e>>8&255,a[v++]=e&255;return n===2&&(e=c[r.charCodeAt(h)]<<2|c[r.charCodeAt(h+1)]>>4,a[v++]=e&255),n===1&&(e=c[r.charCodeAt(h)]<<10|c[r.charCodeAt(h+1)]<<4|c[r.charCodeAt(h+2)]>>2,a[v++]=e>>8&255,a[v++]=e&255),a}function L(r){return x[r>>18&63]+x[r>>12&63]+x[r>>6&63]+x[r&63]}function i(r,e,t){for(var o,n=[],a=e;a<t;a+=3)o=(r[a]<<16&16711680)+(r[a+1]<<8&65280)+(r[a+2]&255),n.push(L(o));return n.join("")}function g(r){for(var e,t=r.length,o=t%3,n=[],a=16383,v=0,d=t-o;v<d;v+=a)n.push(i(r,v,v+a>d?d:v+a));return o===1?(e=r[t-1],n.push(x[e>>2]+x[e<<4&63]+"==")):o===2&&(e=(r[t-2]<<8)+r[t-1],n.push(x[e>>10]+x[e>>4&63]+x[e<<2&63]+"=")),n.join("")}module.exports=f.__exports;
|
package/dist/index41.js
CHANGED
|
@@ -1,4 +1,51 @@
|
|
|
1
|
-
|
|
1
|
+
import { __exports as l } from "./index43.js";
|
|
2
|
+
l.byteLength = p;
|
|
3
|
+
l.toByteArray = C;
|
|
4
|
+
l.fromByteArray = i;
|
|
5
|
+
var F = [], f = [], u = typeof Uint8Array < "u" ? Uint8Array : Array, x = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
|
|
6
|
+
for (var c = 0, A = x.length; c < A; ++c)
|
|
7
|
+
F[c] = x[c], f[x.charCodeAt(c)] = c;
|
|
8
|
+
f[45] = 62;
|
|
9
|
+
f[95] = 63;
|
|
10
|
+
function s(r) {
|
|
11
|
+
var e = r.length;
|
|
12
|
+
if (e % 4 > 0)
|
|
13
|
+
throw new Error("Invalid string. Length must be a multiple of 4");
|
|
14
|
+
var a = r.indexOf("=");
|
|
15
|
+
a === -1 && (a = e);
|
|
16
|
+
var o = a === e ? 0 : 4 - a % 4;
|
|
17
|
+
return [a, o];
|
|
18
|
+
}
|
|
19
|
+
function p(r) {
|
|
20
|
+
var e = s(r), a = e[0], o = e[1];
|
|
21
|
+
return (a + o) * 3 / 4 - o;
|
|
22
|
+
}
|
|
23
|
+
function y(r, e, a) {
|
|
24
|
+
return (e + a) * 3 / 4 - a;
|
|
25
|
+
}
|
|
26
|
+
function C(r) {
|
|
27
|
+
var e, a = s(r), o = a[0], n = a[1], t = new u(y(r, o, n)), v = 0, d = n > 0 ? o - 4 : o, h;
|
|
28
|
+
for (h = 0; h < d; h += 4)
|
|
29
|
+
e = f[r.charCodeAt(h)] << 18 | f[r.charCodeAt(h + 1)] << 12 | f[r.charCodeAt(h + 2)] << 6 | f[r.charCodeAt(h + 3)], t[v++] = e >> 16 & 255, t[v++] = e >> 8 & 255, t[v++] = e & 255;
|
|
30
|
+
return n === 2 && (e = f[r.charCodeAt(h)] << 2 | f[r.charCodeAt(h + 1)] >> 4, t[v++] = e & 255), n === 1 && (e = f[r.charCodeAt(h)] << 10 | f[r.charCodeAt(h + 1)] << 4 | f[r.charCodeAt(h + 2)] >> 2, t[v++] = e >> 8 & 255, t[v++] = e & 255), t;
|
|
31
|
+
}
|
|
32
|
+
function L(r) {
|
|
33
|
+
return F[r >> 18 & 63] + F[r >> 12 & 63] + F[r >> 6 & 63] + F[r & 63];
|
|
34
|
+
}
|
|
35
|
+
function g(r, e, a) {
|
|
36
|
+
for (var o, n = [], t = e; t < a; t += 3)
|
|
37
|
+
o = (r[t] << 16 & 16711680) + (r[t + 1] << 8 & 65280) + (r[t + 2] & 255), n.push(L(o));
|
|
38
|
+
return n.join("");
|
|
39
|
+
}
|
|
40
|
+
function i(r) {
|
|
41
|
+
for (var e, a = r.length, o = a % 3, n = [], t = 16383, v = 0, d = a - o; v < d; v += t)
|
|
42
|
+
n.push(g(r, v, v + t > d ? d : v + t));
|
|
43
|
+
return o === 1 ? (e = r[a - 1], n.push(
|
|
44
|
+
F[e >> 2] + F[e << 4 & 63] + "=="
|
|
45
|
+
)) : o === 2 && (e = (r[a - 2] << 8) + r[a - 1], n.push(
|
|
46
|
+
F[e >> 10] + F[e >> 4 & 63] + F[e << 2 & 63] + "="
|
|
47
|
+
)), n.join("");
|
|
48
|
+
}
|
|
2
49
|
export {
|
|
3
|
-
|
|
50
|
+
l as default
|
|
4
51
|
};
|
package/dist/index42.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";
|
|
1
|
+
"use strict";const d=require("./index44.cjs");/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */d.__exports.read=function(w,a,_,x,M){var t,r,h=M*8-x-1,s=(1<<h)-1,N=s>>1,i=-7,o=_?M-1:0,c=_?-1:1,p=w[a+o];for(o+=c,t=p&(1<<-i)-1,p>>=-i,i+=h;i>0;t=t*256+w[a+o],o+=c,i-=8);for(r=t&(1<<-i)-1,t>>=-i,i+=x;i>0;r=r*256+w[a+o],o+=c,i-=8);if(t===0)t=1-N;else{if(t===s)return r?NaN:(p?-1:1)*(1/0);r=r+Math.pow(2,x),t=t-N}return(p?-1:1)*r*Math.pow(2,t-x)};d.__exports.write=function(w,a,_,x,M,t){var r,h,s,N=t*8-M-1,i=(1<<N)-1,o=i>>1,c=M===23?Math.pow(2,-24)-Math.pow(2,-77):0,p=x?0:t-1,f=x?1:-1,n=a<0||a===0&&1/a<0?1:0;for(a=Math.abs(a),isNaN(a)||a===1/0?(h=isNaN(a)?1:0,r=i):(r=Math.floor(Math.log(a)/Math.LN2),a*(s=Math.pow(2,-r))<1&&(r--,s*=2),r+o>=1?a+=c/s:a+=c*Math.pow(2,1-o),a*s>=2&&(r++,s/=2),r+o>=i?(h=0,r=i):r+o>=1?(h=(a*s-1)*Math.pow(2,M),r=r+o):(h=a*Math.pow(2,o-1)*Math.pow(2,M),r=0));M>=8;w[_+p]=h&255,p+=f,h/=256,M-=8);for(r=r<<M|h,N+=M;N>0;w[_+p]=r&255,p+=f,r/=256,N-=8);w[_+p-f]|=n*128};module.exports=d.__exports;
|