@gardenfi/core 0.2.0-beta.73 → 0.2.0-beta.75
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 +16 -15
- package/dist/index10.cjs +1 -1
- package/dist/index10.js +42 -31
- package/dist/index100.cjs +1 -1
- package/dist/index100.js +18 -32
- package/dist/index101.cjs +1 -1
- package/dist/index101.js +6 -366
- package/dist/index102.cjs +1 -1
- package/dist/index102.js +33 -21
- package/dist/index103.cjs +1 -1
- package/dist/index103.js +2 -56
- package/dist/index104.cjs +1 -1
- package/dist/index104.js +38 -3
- package/dist/index105.cjs +1 -1
- package/dist/index105.js +25 -45
- package/dist/index106.cjs +1 -1
- package/dist/index106.js +7 -26
- package/dist/index107.cjs +1 -1
- package/dist/index107.js +5 -2
- package/dist/index108.cjs +1 -1
- package/dist/index108.js +11 -2
- package/dist/index109.cjs +1 -1
- package/dist/index109.js +2 -62
- package/dist/index11.cjs +1 -1
- package/dist/index11.js +2 -2
- package/dist/index110.cjs +1 -1
- package/dist/index110.js +55 -32
- package/dist/index111.cjs +1 -1
- package/dist/index111.js +2 -5
- package/dist/index112.cjs +1 -1
- package/dist/index112.js +40 -2
- package/dist/index113.cjs +1 -1
- package/dist/index113.js +38 -53
- package/dist/index114.cjs +1 -1
- package/dist/index114.js +18 -2
- package/dist/index115.cjs +1 -1
- package/dist/index115.js +101 -32
- package/dist/index116.cjs +1 -1
- package/dist/index116.js +17 -39
- package/dist/index117.cjs +1 -1
- package/dist/index117.js +224 -16
- package/dist/index118.cjs +1 -1
- package/dist/index118.js +4 -109
- package/dist/index119.cjs +1 -1
- package/dist/index119.js +155 -18
- package/dist/index120.cjs +1 -1
- package/dist/index120.js +2 -226
- package/dist/index121.cjs +1 -1
- package/dist/index121.js +73 -4
- package/dist/index122.cjs +1 -1
- package/dist/index122.js +55 -151
- package/dist/index123.cjs +1 -1
- package/dist/index123.js +35 -2
- package/dist/index124.cjs +1 -1
- package/dist/index124.js +5 -73
- package/dist/index125.cjs +1 -1
- package/dist/index125.js +2 -2
- package/dist/index126.cjs +1 -1
- package/dist/index126.js +8 -8
- package/dist/index127.cjs +1 -1
- package/dist/index127.js +1 -1
- package/dist/index130.cjs +1 -1
- package/dist/index130.js +2 -19
- package/dist/index131.cjs +1 -1
- package/dist/index131.js +356 -2
- package/dist/index132.cjs +1 -1
- package/dist/index132.js +206 -323
- package/dist/index133.cjs +1 -1
- package/dist/index133.js +37 -208
- package/dist/index134.cjs +1 -1
- package/dist/index134.js +59 -65
- package/dist/index135.cjs +1 -1
- package/dist/index135.js +10 -60
- package/dist/index136.cjs +1 -1
- package/dist/index136.js +45 -12
- package/dist/index137.cjs +1 -1
- package/dist/index137.js +56 -38
- package/dist/index138.cjs +1 -1
- package/dist/index138.js +19 -63
- package/dist/index14.cjs +1 -1
- package/dist/index14.js +9 -4
- package/dist/index141.cjs +1 -1
- package/dist/index141.js +3 -3
- package/dist/index145.cjs +1 -1
- package/dist/index145.js +1 -1
- package/dist/index148.cjs +1 -1
- package/dist/index148.js +1 -1
- package/dist/index15.cjs +1 -1
- package/dist/index15.js +32 -2
- package/dist/index16.cjs +1 -1
- package/dist/index16.js +10 -17
- package/dist/index17.cjs +1 -1
- package/dist/index17.js +18 -12
- package/dist/index18.cjs +1 -1
- package/dist/index18.js +15 -16
- package/dist/index19.cjs +1 -1
- package/dist/index19.js +39 -16
- package/dist/index20.cjs +1 -1
- package/dist/index20.js +25 -52
- package/dist/index21.cjs +1 -1
- package/dist/index21.js +2 -9
- package/dist/index22.cjs +1 -1
- package/dist/index22.js +138 -9
- package/dist/index23.cjs +1 -1
- package/dist/index23.js +2 -138
- package/dist/index24.cjs +1 -1
- package/dist/index24.js +9 -2
- package/dist/index25.cjs +1 -1
- package/dist/index25.js +7 -11
- package/dist/index26.cjs +3 -1
- package/dist/index26.js +27 -36
- package/dist/index27.cjs +1 -1
- package/dist/index27.js +17 -44
- package/dist/index28.cjs +2 -1
- package/dist/index28.js +24 -27
- package/dist/index29.cjs +1 -1
- package/dist/index29.js +40 -14
- package/dist/index30.cjs +1 -1
- package/dist/index30.js +197 -22
- package/dist/index31.cjs +1 -1
- package/dist/index31.js +2 -26
- package/dist/index32.cjs +1 -1
- package/dist/index32.js +2 -55
- package/dist/index33.cjs +1 -1
- package/dist/index33.js +2 -28
- package/dist/index34.cjs +1 -3
- package/dist/index34.js +11 -26
- package/dist/index35.cjs +1 -1
- package/dist/index35.js +39 -17
- package/dist/index36.cjs +1 -2
- package/dist/index36.js +40 -23
- package/dist/index37.cjs +1 -1
- package/dist/index37.js +26 -39
- package/dist/index38.cjs +1 -1
- package/dist/index38.js +15 -199
- package/dist/index39.cjs +1 -1
- package/dist/index39.js +24 -2
- package/dist/index40.cjs +1 -1
- package/dist/index40.js +26 -2
- package/dist/index41.cjs +1 -1
- package/dist/index41.js +55 -2
- package/dist/index42.cjs +1 -1
- package/dist/index42.js +27 -12
- package/dist/index43.cjs +1 -1
- package/dist/index43.js +174 -11
- package/dist/index44.cjs +1 -1
- package/dist/index44.js +2 -4
- package/dist/index45.cjs +1 -1
- package/dist/index45.js +34 -45
- package/dist/index46.cjs +1 -1
- package/dist/index46.js +9 -43
- package/dist/index47.cjs +1 -1
- package/dist/index47.js +10 -169
- package/dist/index48.cjs +1 -1
- package/dist/index48.js +11 -12
- package/dist/index49.cjs +1 -1
- package/dist/index49.js +3 -4
- package/dist/index5.cjs +1 -1
- package/dist/index5.js +48 -59
- package/dist/index50.cjs +1 -1
- package/dist/index50.js +45 -16
- package/dist/index51.cjs +1 -1
- package/dist/index51.js +40 -9
- package/dist/index52.cjs +1 -1
- package/dist/index52.js +167 -170
- package/dist/index53.cjs +1 -1
- package/dist/index53.js +12 -21
- package/dist/index54.cjs +1 -1
- package/dist/index54.js +5 -2
- package/dist/index55.cjs +1 -1
- package/dist/index55.js +17 -35
- package/dist/index56.cjs +1 -1
- package/dist/index56.js +11 -8
- package/dist/index57.cjs +1 -1
- package/dist/index57.js +19 -34
- package/dist/index58.cjs +1 -1
- package/dist/index58.js +31 -55
- package/dist/index59.cjs +1 -2
- package/dist/index59.js +2 -60
- package/dist/index60.cjs +6 -1
- package/dist/index60.js +949 -6
- package/dist/index61.cjs +1 -1
- package/dist/index61.js +2 -128
- package/dist/index62.cjs +1 -2
- package/dist/index62.js +61 -42
- package/dist/index63.cjs +1 -1
- package/dist/index63.js +33 -9
- package/dist/index64.cjs +1 -1
- package/dist/index64.js +86 -10
- package/dist/index65.cjs +1 -1
- package/dist/index65.js +55 -11
- package/dist/index66.cjs +2 -1
- package/dist/index66.js +59 -13
- package/dist/index67.cjs +1 -1
- package/dist/index67.js +3 -6
- package/dist/index68.cjs +1 -1
- package/dist/index68.js +33 -16
- package/dist/index69.cjs +1 -1
- package/dist/index69.js +126 -77
- package/dist/index70.cjs +2 -1
- package/dist/index70.js +42 -14
- package/dist/index71.cjs +1 -1
- package/dist/index71.js +8 -18
- package/dist/index72.cjs +1 -1
- package/dist/index72.js +9 -5
- package/dist/index73.cjs +1 -1
- package/dist/index73.js +11 -21
- package/dist/index74.cjs +1 -1
- package/dist/index74.js +13 -13
- package/dist/index75.cjs +1 -1
- package/dist/index75.js +7 -2
- package/dist/index76.cjs +1 -1
- package/dist/index76.js +18 -2
- package/dist/index77.cjs +1 -2
- package/dist/index77.js +76 -32
- package/dist/index78.cjs +1 -1
- package/dist/index78.js +14 -5
- package/dist/index79.cjs +1 -1
- package/dist/index79.js +18 -19
- package/dist/index8.cjs +1 -1
- package/dist/index8.js +5 -6
- package/dist/index80.cjs +1 -1
- package/dist/index80.js +19 -29
- package/dist/index81.cjs +1 -1
- package/dist/index81.js +14 -2
- package/dist/index82.cjs +1 -6
- package/dist/index82.js +9 -949
- package/dist/index83.cjs +1 -1
- package/dist/index83.js +2 -2
- package/dist/index84.cjs +1 -1
- package/dist/index84.js +2 -62
- package/dist/index85.cjs +2 -1
- package/dist/index85.js +34 -32
- package/dist/index86.cjs +1 -1
- package/dist/index86.js +5 -86
- package/dist/index87.cjs +1 -1
- package/dist/index87.js +19 -12
- package/dist/index88.cjs +1 -1
- package/dist/index88.js +34 -6
- package/dist/index89.cjs +1 -1
- package/dist/index89.js +365 -111
- package/dist/index90.cjs +1 -1
- package/dist/index90.js +21 -7
- package/dist/index91.cjs +1 -1
- package/dist/index91.js +55 -32
- package/dist/index92.cjs +1 -1
- package/dist/index92.js +3 -2
- package/dist/index93.cjs +1 -1
- package/dist/index93.js +45 -34
- package/dist/index94.cjs +1 -1
- package/dist/index94.js +26 -29
- package/dist/index95.cjs +1 -1
- package/dist/index95.js +2 -21
- package/dist/index96.cjs +1 -1
- package/dist/index96.js +2 -7
- package/dist/index97.cjs +1 -1
- package/dist/index97.js +13 -5
- package/dist/index98.cjs +1 -1
- package/dist/index98.js +6 -10
- package/dist/index99.cjs +1 -1
- package/dist/index99.js +111 -18
- package/dist/src/index.d.ts +1 -1
- package/dist/src/lib/evm/relay/evmRelay.d.ts +1 -1
- package/dist/src/lib/evm/relay/evmRelay.types.d.ts +1 -1
- package/dist/src/lib/utils.d.ts +2 -0
- package/package.json +2 -2
package/dist/index112.js
CHANGED
|
@@ -1,4 +1,42 @@
|
|
|
1
|
-
|
|
1
|
+
import { i as u } from "./index87.js";
|
|
2
|
+
import { h as p } from "./index127.js";
|
|
3
|
+
import { s as x } from "./index45.js";
|
|
4
|
+
var d = u, c = p, w = x.Buffer, B = [
|
|
5
|
+
1518500249,
|
|
6
|
+
1859775393,
|
|
7
|
+
-1894007588,
|
|
8
|
+
-899497514
|
|
9
|
+
], b = new Array(80);
|
|
10
|
+
function h() {
|
|
11
|
+
this.init(), this._w = b, c.call(this, 64, 56);
|
|
12
|
+
}
|
|
13
|
+
d(h, c);
|
|
14
|
+
h.prototype.init = function() {
|
|
15
|
+
return this._a = 1732584193, this._b = 4023233417, this._c = 2562383102, this._d = 271733878, this._e = 3285377520, this;
|
|
16
|
+
};
|
|
17
|
+
function E(t) {
|
|
18
|
+
return t << 5 | t >>> 27;
|
|
19
|
+
}
|
|
20
|
+
function l(t) {
|
|
21
|
+
return t << 30 | t >>> 2;
|
|
22
|
+
}
|
|
23
|
+
function I(t, r, s, a) {
|
|
24
|
+
return t === 0 ? r & s | ~r & a : t === 2 ? r & s | r & a | s & a : r ^ s ^ a;
|
|
25
|
+
}
|
|
26
|
+
h.prototype._update = function(t) {
|
|
27
|
+
for (var r = this._w, s = this._a | 0, a = this._b | 0, e = this._c | 0, n = this._d | 0, o = this._e | 0, i = 0; i < 16; ++i) r[i] = t.readInt32BE(i * 4);
|
|
28
|
+
for (; i < 80; ++i) r[i] = r[i - 3] ^ r[i - 8] ^ r[i - 14] ^ r[i - 16];
|
|
29
|
+
for (var _ = 0; _ < 80; ++_) {
|
|
30
|
+
var f = ~~(_ / 20), v = E(s) + I(f, a, e, n) + o + r[_] + B[f] | 0;
|
|
31
|
+
o = n, n = e, e = l(a), a = s, s = v;
|
|
32
|
+
}
|
|
33
|
+
this._a = s + this._a | 0, this._b = a + this._b | 0, this._c = e + this._c | 0, this._d = n + this._d | 0, this._e = o + this._e | 0;
|
|
34
|
+
};
|
|
35
|
+
h.prototype._hash = function() {
|
|
36
|
+
var t = w.allocUnsafe(20);
|
|
37
|
+
return t.writeInt32BE(this._a | 0, 0), t.writeInt32BE(this._b | 0, 4), t.writeInt32BE(this._c | 0, 8), t.writeInt32BE(this._d | 0, 12), t.writeInt32BE(this._e | 0, 16), t;
|
|
38
|
+
};
|
|
39
|
+
var W = h;
|
|
2
40
|
export {
|
|
3
|
-
|
|
41
|
+
W as s
|
|
4
42
|
};
|
package/dist/index113.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 v=require("./index87.cjs"),d=require("./index127.cjs"),x=require("./index45.cjs");var b=v.inherits_browserExports,c=d.hash,l=x.safeBufferExports.Buffer,p=[1518500249,1859775393,-1894007588,-899497514],w=new Array(80);function a(){this.init(),this._w=w,c.call(this,64,56)}b(a,c);a.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this};function B(t){return t<<1|t>>>31}function E(t){return t<<5|t>>>27}function y(t){return t<<30|t>>>2}function I(t,r,i,s){return t===0?r&i|~r&s:t===2?r&i|r&s|i&s:r^i^s}a.prototype._update=function(t){for(var r=this._w,i=this._a|0,s=this._b|0,h=this._c|0,n=this._d|0,_=this._e|0,e=0;e<16;++e)r[e]=t.readInt32BE(e*4);for(;e<80;++e)r[e]=B(r[e-3]^r[e-8]^r[e-14]^r[e-16]);for(var o=0;o<80;++o){var f=~~(o/20),u=E(i)+I(f,s,h,n)+_+r[o]+p[f]|0;_=n,n=h,h=y(s),s=i,i=u}this._a=i+this._a|0,this._b=s+this._b|0,this._c=h+this._c|0,this._d=n+this._d|0,this._e=_+this._e|0};a.prototype._hash=function(){var t=l.allocUnsafe(20);return t.writeInt32BE(this._a|0,0),t.writeInt32BE(this._b|0,4),t.writeInt32BE(this._c|0,8),t.writeInt32BE(this._d|0,12),t.writeInt32BE(this._e|0,16),t};var q=a;exports.sha1=q;
|
package/dist/index113.js
CHANGED
|
@@ -1,60 +1,45 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
var
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
1
|
+
import { i as v } from "./index87.js";
|
|
2
|
+
import { h as p } from "./index127.js";
|
|
3
|
+
import { s as x } from "./index45.js";
|
|
4
|
+
var d = v, c = p, w = x.Buffer, B = [
|
|
5
|
+
1518500249,
|
|
6
|
+
1859775393,
|
|
7
|
+
-1894007588,
|
|
8
|
+
-899497514
|
|
9
|
+
], b = new Array(80);
|
|
10
|
+
function h() {
|
|
11
|
+
this.init(), this._w = b, c.call(this, 64, 56);
|
|
8
12
|
}
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
u(i, l);
|
|
13
|
-
i.prototype._transform = function(t, r, e) {
|
|
14
|
-
var s = null;
|
|
15
|
-
try {
|
|
16
|
-
this.update(t, r);
|
|
17
|
-
} catch (f) {
|
|
18
|
-
s = f;
|
|
19
|
-
}
|
|
20
|
-
e(s);
|
|
13
|
+
d(h, c);
|
|
14
|
+
h.prototype.init = function() {
|
|
15
|
+
return this._a = 1732584193, this._b = 4023233417, this._c = 2562383102, this._d = 271733878, this._e = 3285377520, this;
|
|
21
16
|
};
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
t
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
17
|
+
function E(t) {
|
|
18
|
+
return t << 1 | t >>> 31;
|
|
19
|
+
}
|
|
20
|
+
function l(t) {
|
|
21
|
+
return t << 5 | t >>> 27;
|
|
22
|
+
}
|
|
23
|
+
function I(t) {
|
|
24
|
+
return t << 30 | t >>> 2;
|
|
25
|
+
}
|
|
26
|
+
function y(t, r, s, a) {
|
|
27
|
+
return t === 0 ? r & s | ~r & a : t === 2 ? r & s | r & a | s & a : r ^ s ^ a;
|
|
28
|
+
}
|
|
29
|
+
h.prototype._update = function(t) {
|
|
30
|
+
for (var r = this._w, s = this._a | 0, a = this._b | 0, e = this._c | 0, n = this._d | 0, _ = this._e | 0, i = 0; i < 16; ++i) r[i] = t.readInt32BE(i * 4);
|
|
31
|
+
for (; i < 80; ++i) r[i] = E(r[i - 3] ^ r[i - 8] ^ r[i - 14] ^ r[i - 16]);
|
|
32
|
+
for (var o = 0; o < 80; ++o) {
|
|
33
|
+
var f = ~~(o / 20), u = l(s) + y(f, a, e, n) + _ + r[o] + B[f] | 0;
|
|
34
|
+
_ = n, n = e, e = I(a), a = s, s = u;
|
|
37
35
|
}
|
|
38
|
-
|
|
39
|
-
for (var h = 0, o = t.length * 8; o > 0; ++h)
|
|
40
|
-
this._length[h] += o, o = this._length[h] / 4294967296 | 0, o > 0 && (this._length[h] -= 4294967296 * o);
|
|
41
|
-
return this;
|
|
42
|
-
};
|
|
43
|
-
i.prototype._update = function() {
|
|
44
|
-
throw new Error("_update is not implemented");
|
|
45
|
-
};
|
|
46
|
-
i.prototype.digest = function(t) {
|
|
47
|
-
if (this._finalized) throw new Error("Digest already called");
|
|
48
|
-
this._finalized = !0;
|
|
49
|
-
var r = this._digest();
|
|
50
|
-
t !== void 0 && (r = r.toString(t)), this._block.fill(0), this._blockOffset = 0;
|
|
51
|
-
for (var e = 0; e < 4; ++e) this._length[e] = 0;
|
|
52
|
-
return r;
|
|
36
|
+
this._a = s + this._a | 0, this._b = a + this._b | 0, this._c = e + this._c | 0, this._d = n + this._d | 0, this._e = _ + this._e | 0;
|
|
53
37
|
};
|
|
54
|
-
|
|
55
|
-
|
|
38
|
+
h.prototype._hash = function() {
|
|
39
|
+
var t = w.allocUnsafe(20);
|
|
40
|
+
return t.writeInt32BE(this._a | 0, 0), t.writeInt32BE(this._b | 0, 4), t.writeInt32BE(this._c | 0, 8), t.writeInt32BE(this._d | 0, 12), t.writeInt32BE(this._e | 0, 16), t;
|
|
56
41
|
};
|
|
57
|
-
var
|
|
42
|
+
var A = h;
|
|
58
43
|
export {
|
|
59
|
-
|
|
44
|
+
A as s
|
|
60
45
|
};
|
package/dist/index114.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 r=require("./index87.cjs"),e=require("./index115.cjs"),s=require("./index127.cjs"),h=require("./index45.cjs");var a=r.inherits_browserExports,n=e.sha256,f=s.hash,o=h.safeBufferExports.Buffer,_=new Array(64);function i(){this.init(),this._w=_,f.call(this,64,56)}a(i,n);i.prototype.init=function(){return this._a=3238371032,this._b=914150663,this._c=812702999,this._d=4144912697,this._e=4290775857,this._f=1750603025,this._g=1694076839,this._h=3204075428,this};i.prototype._hash=function(){var t=o.allocUnsafe(28);return t.writeInt32BE(this._a,0),t.writeInt32BE(this._b,4),t.writeInt32BE(this._c,8),t.writeInt32BE(this._d,12),t.writeInt32BE(this._e,16),t.writeInt32BE(this._f,20),t.writeInt32BE(this._g,24),t};var c=i;exports.sha224=c;
|
package/dist/index114.js
CHANGED
|
@@ -1,4 +1,20 @@
|
|
|
1
|
-
|
|
1
|
+
import { i as r } from "./index87.js";
|
|
2
|
+
import { s } from "./index115.js";
|
|
3
|
+
import { h } from "./index127.js";
|
|
4
|
+
import { s as a } from "./index45.js";
|
|
5
|
+
var e = r, f = s, n = h, o = a.Buffer, _ = new Array(64);
|
|
6
|
+
function i() {
|
|
7
|
+
this.init(), this._w = _, n.call(this, 64, 56);
|
|
8
|
+
}
|
|
9
|
+
e(i, f);
|
|
10
|
+
i.prototype.init = function() {
|
|
11
|
+
return this._a = 3238371032, this._b = 914150663, this._c = 812702999, this._d = 4144912697, this._e = 4290775857, this._f = 1750603025, this._g = 1694076839, this._h = 3204075428, this;
|
|
12
|
+
};
|
|
13
|
+
i.prototype._hash = function() {
|
|
14
|
+
var t = o.allocUnsafe(28);
|
|
15
|
+
return t.writeInt32BE(this._a, 0), t.writeInt32BE(this._b, 4), t.writeInt32BE(this._c, 8), t.writeInt32BE(this._d, 12), t.writeInt32BE(this._e, 16), t.writeInt32BE(this._f, 20), t.writeInt32BE(this._g, 24), t;
|
|
16
|
+
};
|
|
17
|
+
var B = i;
|
|
2
18
|
export {
|
|
3
|
-
|
|
19
|
+
B as s
|
|
4
20
|
};
|
package/dist/index115.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 F=require("./index87.cjs"),u=require("./index127.cjs"),c=require("./index45.cjs");var v=F.inherits_browserExports,f=u.hash,D=c.safeBufferExports.Buffer,b=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],d=new Array(64);function e(){this.init(),this._w=d,f.call(this,64,56)}v(e,f);e.prototype.init=function(){return this._a=1779033703,this._b=3144134277,this._c=1013904242,this._d=2773480762,this._e=1359893119,this._f=2600822924,this._g=528734635,this._h=1541459225,this};function w(t,r,s){return s^t&(r^s)}function g(t,r,s){return t&r|s&(t|r)}function p(t){return(t>>>2|t<<30)^(t>>>13|t<<19)^(t>>>22|t<<10)}function I(t){return(t>>>6|t<<26)^(t>>>11|t<<21)^(t>>>25|t<<7)}function m(t){return(t>>>7|t<<25)^(t>>>18|t<<14)^t>>>3}function l(t){return(t>>>17|t<<15)^(t>>>19|t<<13)^t>>>10}e.prototype._update=function(t){for(var r=this._w,s=this._a|0,x=this._b|0,a=this._c|0,C=this._d|0,h=this._e|0,n=this._f|0,B=this._g|0,A=this._h|0,i=0;i<16;++i)r[i]=t.readInt32BE(i*4);for(;i<64;++i)r[i]=l(r[i-2])+r[i-7]+m(r[i-15])+r[i-16]|0;for(var _=0;_<64;++_){var E=A+I(h)+w(h,n,B)+b[_]+r[_]|0,o=p(s)+g(s,x,a)|0;A=B,B=n,n=h,h=C+E|0,C=a,a=x,x=s,s=E+o|0}this._a=s+this._a|0,this._b=x+this._b|0,this._c=a+this._c|0,this._d=C+this._d|0,this._e=h+this._e|0,this._f=n+this._f|0,this._g=B+this._g|0,this._h=A+this._h|0};e.prototype._hash=function(){var t=D.allocUnsafe(32);return t.writeInt32BE(this._a,0),t.writeInt32BE(this._b,4),t.writeInt32BE(this._c,8),t.writeInt32BE(this._d,12),t.writeInt32BE(this._e,16),t.writeInt32BE(this._f,20),t.writeInt32BE(this._g,24),t.writeInt32BE(this._h,28),t};var y=e;exports.sha256=y;
|
package/dist/index115.js
CHANGED
|
@@ -1,42 +1,111 @@
|
|
|
1
|
-
import { i as
|
|
2
|
-
import { h as
|
|
3
|
-
import { s as
|
|
4
|
-
var
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
1
|
+
import { i as F } from "./index87.js";
|
|
2
|
+
import { h as c } from "./index127.js";
|
|
3
|
+
import { s as u } from "./index45.js";
|
|
4
|
+
var v = F, f = c, D = u.Buffer, m = [
|
|
5
|
+
1116352408,
|
|
6
|
+
1899447441,
|
|
7
|
+
3049323471,
|
|
8
|
+
3921009573,
|
|
9
|
+
961987163,
|
|
10
|
+
1508970993,
|
|
11
|
+
2453635748,
|
|
12
|
+
2870763221,
|
|
13
|
+
3624381080,
|
|
14
|
+
310598401,
|
|
15
|
+
607225278,
|
|
16
|
+
1426881987,
|
|
17
|
+
1925078388,
|
|
18
|
+
2162078206,
|
|
19
|
+
2614888103,
|
|
20
|
+
3248222580,
|
|
21
|
+
3835390401,
|
|
22
|
+
4022224774,
|
|
23
|
+
264347078,
|
|
24
|
+
604807628,
|
|
25
|
+
770255983,
|
|
26
|
+
1249150122,
|
|
27
|
+
1555081692,
|
|
28
|
+
1996064986,
|
|
29
|
+
2554220882,
|
|
30
|
+
2821834349,
|
|
31
|
+
2952996808,
|
|
32
|
+
3210313671,
|
|
33
|
+
3336571891,
|
|
34
|
+
3584528711,
|
|
35
|
+
113926993,
|
|
36
|
+
338241895,
|
|
37
|
+
666307205,
|
|
38
|
+
773529912,
|
|
39
|
+
1294757372,
|
|
40
|
+
1396182291,
|
|
41
|
+
1695183700,
|
|
42
|
+
1986661051,
|
|
43
|
+
2177026350,
|
|
44
|
+
2456956037,
|
|
45
|
+
2730485921,
|
|
46
|
+
2820302411,
|
|
47
|
+
3259730800,
|
|
48
|
+
3345764771,
|
|
49
|
+
3516065817,
|
|
50
|
+
3600352804,
|
|
51
|
+
4094571909,
|
|
52
|
+
275423344,
|
|
53
|
+
430227734,
|
|
54
|
+
506948616,
|
|
55
|
+
659060556,
|
|
56
|
+
883997877,
|
|
57
|
+
958139571,
|
|
58
|
+
1322822218,
|
|
59
|
+
1537002063,
|
|
60
|
+
1747873779,
|
|
61
|
+
1955562222,
|
|
62
|
+
2024104815,
|
|
63
|
+
2227730452,
|
|
64
|
+
2361852424,
|
|
65
|
+
2428436474,
|
|
66
|
+
2756734187,
|
|
67
|
+
3204031479,
|
|
68
|
+
3329325298
|
|
69
|
+
], p = new Array(64);
|
|
70
|
+
function x() {
|
|
71
|
+
this.init(), this._w = p, f.call(this, 64, 56);
|
|
12
72
|
}
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
return this._a =
|
|
73
|
+
v(x, f);
|
|
74
|
+
x.prototype.init = function() {
|
|
75
|
+
return this._a = 1779033703, this._b = 3144134277, this._c = 1013904242, this._d = 2773480762, this._e = 1359893119, this._f = 2600822924, this._g = 528734635, this._h = 1541459225, this;
|
|
16
76
|
};
|
|
17
|
-
function
|
|
18
|
-
return
|
|
77
|
+
function b(t, r, s) {
|
|
78
|
+
return s ^ t & (r ^ s);
|
|
19
79
|
}
|
|
20
|
-
function
|
|
21
|
-
return t
|
|
80
|
+
function w(t, r, s) {
|
|
81
|
+
return t & r | s & (t | r);
|
|
82
|
+
}
|
|
83
|
+
function d(t) {
|
|
84
|
+
return (t >>> 2 | t << 30) ^ (t >>> 13 | t << 19) ^ (t >>> 22 | t << 10);
|
|
85
|
+
}
|
|
86
|
+
function g(t) {
|
|
87
|
+
return (t >>> 6 | t << 26) ^ (t >>> 11 | t << 21) ^ (t >>> 25 | t << 7);
|
|
22
88
|
}
|
|
23
|
-
function I(t
|
|
24
|
-
return t
|
|
89
|
+
function I(t) {
|
|
90
|
+
return (t >>> 7 | t << 25) ^ (t >>> 18 | t << 14) ^ t >>> 3;
|
|
91
|
+
}
|
|
92
|
+
function l(t) {
|
|
93
|
+
return (t >>> 17 | t << 15) ^ (t >>> 19 | t << 13) ^ t >>> 10;
|
|
25
94
|
}
|
|
26
|
-
|
|
27
|
-
for (var r = this._w, s = this._a | 0, a = this._b | 0,
|
|
28
|
-
for (; i <
|
|
29
|
-
for (var
|
|
30
|
-
var
|
|
31
|
-
|
|
95
|
+
x.prototype._update = function(t) {
|
|
96
|
+
for (var r = this._w, s = this._a | 0, a = this._b | 0, B = this._c | 0, e = this._d | 0, h = this._e | 0, _ = this._f | 0, n = this._g | 0, A = this._h | 0, i = 0; i < 16; ++i) r[i] = t.readInt32BE(i * 4);
|
|
97
|
+
for (; i < 64; ++i) r[i] = l(r[i - 2]) + r[i - 7] + I(r[i - 15]) + r[i - 16] | 0;
|
|
98
|
+
for (var C = 0; C < 64; ++C) {
|
|
99
|
+
var E = A + g(h) + b(h, _, n) + m[C] + r[C] | 0, o = d(s) + w(s, a, B) | 0;
|
|
100
|
+
A = n, n = _, _ = h, h = e + E | 0, e = B, B = a, a = s, s = E + o | 0;
|
|
32
101
|
}
|
|
33
|
-
this._a = s + this._a | 0, this._b = a + this._b | 0, this._c =
|
|
102
|
+
this._a = s + this._a | 0, this._b = a + this._b | 0, this._c = B + this._c | 0, this._d = e + this._d | 0, this._e = h + this._e | 0, this._f = _ + this._f | 0, this._g = n + this._g | 0, this._h = A + this._h | 0;
|
|
34
103
|
};
|
|
35
|
-
|
|
36
|
-
var t =
|
|
37
|
-
return t.writeInt32BE(this._a
|
|
104
|
+
x.prototype._hash = function() {
|
|
105
|
+
var t = D.allocUnsafe(32);
|
|
106
|
+
return t.writeInt32BE(this._a, 0), t.writeInt32BE(this._b, 4), t.writeInt32BE(this._c, 8), t.writeInt32BE(this._d, 12), t.writeInt32BE(this._e, 16), t.writeInt32BE(this._f, 20), t.writeInt32BE(this._g, 24), t.writeInt32BE(this._h, 28), t;
|
|
38
107
|
};
|
|
39
|
-
var
|
|
108
|
+
var K = x;
|
|
40
109
|
export {
|
|
41
|
-
|
|
110
|
+
K as s
|
|
42
111
|
};
|
package/dist/index116.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 a=require("./index87.cjs"),_=require("./index117.cjs"),n=require("./index127.cjs"),f=require("./index45.cjs");var c=a.inherits_browserExports,l=_.sha512,o=n.hash,x=f.safeBufferExports.Buffer,d=new Array(160);function h(){this.init(),this._w=d,o.call(this,128,112)}c(h,l);h.prototype.init=function(){return this._ah=3418070365,this._bh=1654270250,this._ch=2438529370,this._dh=355462360,this._eh=1731405415,this._fh=2394180231,this._gh=3675008525,this._hh=1203062813,this._al=3238371032,this._bl=914150663,this._cl=812702999,this._dl=4144912697,this._el=4290775857,this._fl=1750603025,this._gl=1694076839,this._hl=3204075428,this};h.prototype._hash=function(){var i=x.allocUnsafe(48);function t(e,r,s){i.writeInt32BE(e,s),i.writeInt32BE(r,s+4)}return t(this._ah,this._al,0),t(this._bh,this._bl,8),t(this._ch,this._cl,16),t(this._dh,this._dl,24),t(this._eh,this._el,32),t(this._fh,this._fl,40),i};var b=h;exports.sha384=b;
|
package/dist/index116.js
CHANGED
|
@@ -1,45 +1,23 @@
|
|
|
1
|
-
import { i as
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
-899497514
|
|
9
|
-
], b = new Array(80);
|
|
10
|
-
function h() {
|
|
11
|
-
this.init(), this._w = b, c.call(this, 64, 56);
|
|
1
|
+
import { i as _ } from "./index87.js";
|
|
2
|
+
import { s as e } from "./index117.js";
|
|
3
|
+
import { h as f } from "./index127.js";
|
|
4
|
+
import { s as o } from "./index45.js";
|
|
5
|
+
var n = _, x = e, l = f, c = o.Buffer, d = new Array(160);
|
|
6
|
+
function t() {
|
|
7
|
+
this.init(), this._w = d, l.call(this, 128, 112);
|
|
12
8
|
}
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
return this.
|
|
9
|
+
n(t, x);
|
|
10
|
+
t.prototype.init = function() {
|
|
11
|
+
return this._ah = 3418070365, this._bh = 1654270250, this._ch = 2438529370, this._dh = 355462360, this._eh = 1731405415, this._fh = 2394180231, this._gh = 3675008525, this._hh = 1203062813, this._al = 3238371032, this._bl = 914150663, this._cl = 812702999, this._dl = 4144912697, this._el = 4290775857, this._fl = 1750603025, this._gl = 1694076839, this._hl = 3204075428, this;
|
|
16
12
|
};
|
|
17
|
-
function
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
return t << 5 | t >>> 27;
|
|
22
|
-
}
|
|
23
|
-
function I(t) {
|
|
24
|
-
return t << 30 | t >>> 2;
|
|
25
|
-
}
|
|
26
|
-
function y(t, r, s, a) {
|
|
27
|
-
return t === 0 ? r & s | ~r & a : t === 2 ? r & s | r & a | s & a : r ^ s ^ a;
|
|
28
|
-
}
|
|
29
|
-
h.prototype._update = function(t) {
|
|
30
|
-
for (var r = this._w, s = this._a | 0, a = this._b | 0, e = this._c | 0, n = this._d | 0, _ = this._e | 0, i = 0; i < 16; ++i) r[i] = t.readInt32BE(i * 4);
|
|
31
|
-
for (; i < 80; ++i) r[i] = E(r[i - 3] ^ r[i - 8] ^ r[i - 14] ^ r[i - 16]);
|
|
32
|
-
for (var o = 0; o < 80; ++o) {
|
|
33
|
-
var f = ~~(o / 20), u = l(s) + y(f, a, e, n) + _ + r[o] + B[f] | 0;
|
|
34
|
-
_ = n, n = e, e = I(a), a = s, s = u;
|
|
13
|
+
t.prototype._hash = function() {
|
|
14
|
+
var i = c.allocUnsafe(48);
|
|
15
|
+
function h(r, a, s) {
|
|
16
|
+
i.writeInt32BE(r, s), i.writeInt32BE(a, s + 4);
|
|
35
17
|
}
|
|
36
|
-
this.
|
|
37
|
-
};
|
|
38
|
-
h.prototype._hash = function() {
|
|
39
|
-
var t = w.allocUnsafe(20);
|
|
40
|
-
return t.writeInt32BE(this._a | 0, 0), t.writeInt32BE(this._b | 0, 4), t.writeInt32BE(this._c | 0, 8), t.writeInt32BE(this._d | 0, 12), t.writeInt32BE(this._e | 0, 16), t;
|
|
18
|
+
return h(this._ah, this._al, 0), h(this._bh, this._bl, 8), h(this._ch, this._cl, 16), h(this._dh, this._dl, 24), h(this._eh, this._el, 32), h(this._fh, this._fl, 40), i;
|
|
41
19
|
};
|
|
42
|
-
var
|
|
20
|
+
var v = t;
|
|
43
21
|
export {
|
|
44
|
-
|
|
22
|
+
v as s
|
|
45
23
|
};
|
package/dist/index117.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 a0=require("./index87.cjs"),h0=require("./index127.cjs"),e0=require("./index45.cjs");var x0=a0.inherits_browserExports,K=h0.hash,c0=e0.safeBufferExports.Buffer,U=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591],t0=new Array(160);function E(){this.init(),this._w=t0,K.call(this,128,112)}x0(E,K);E.prototype.init=function(){return this._ah=1779033703,this._bh=3144134277,this._ch=1013904242,this._dh=2773480762,this._eh=1359893119,this._fh=2600822924,this._gh=528734635,this._hh=1541459225,this._al=4089235720,this._bl=2227873595,this._cl=4271175723,this._dl=1595750129,this._el=2917565137,this._fl=725511199,this._gl=4215389547,this._hl=327033209,this};function k(h,a,c){return c^h&(a^c)}function D(h,a,c){return h&a|c&(h|a)}function F(h,a){return(h>>>28|a<<4)^(a>>>2|h<<30)^(a>>>7|h<<25)}function J(h,a){return(h>>>14|a<<18)^(h>>>18|a<<14)^(a>>>9|h<<23)}function b0(h,a){return(h>>>1|a<<31)^(h>>>8|a<<24)^h>>>7}function f0(h,a){return(h>>>1|a<<31)^(h>>>8|a<<24)^(h>>>7|a<<25)}function s0(h,a){return(h>>>19|a<<13)^(a>>>29|h<<3)^h>>>6}function r0(h,a){return(h>>>19|a<<13)^(a>>>29|h<<3)^(h>>>6|a<<26)}function x(h,a){return h>>>0<a>>>0?1:0}E.prototype._update=function(h){for(var a=this._w,c=this._ah|0,d=this._bh|0,_=this._ch|0,G=this._dh|0,n=this._eh|0,y=this._fh|0,I=this._gh|0,q=this._hh|0,f=this._al|0,u=this._bl|0,o=this._cl|0,l=this._dl|0,s=this._el|0,g=this._fl|0,p=this._gl|0,w=this._hl|0,e=0;e<32;e+=2)a[e]=h.readInt32BE(e*4),a[e+1]=h.readInt32BE(e*4+4);for(;e<160;e+=2){var B=a[e-30],m=a[e-15*2+1],L=b0(B,m),S=f0(m,B);B=a[e-2*2],m=a[e-2*2+1];var M=s0(B,m),C=r0(m,B),N=a[e-7*2],Q=a[e-7*2+1],R=a[e-16*2],H=a[e-16*2+1],b=S+Q|0,i=L+N+x(b,S)|0;b=b+C|0,i=i+M+x(b,C)|0,b=b+H|0,i=i+R+x(b,H)|0,a[e]=i,a[e+1]=b}for(var v=0;v<160;v+=2){i=a[v],b=a[v+1];var V=D(c,d,_),X=D(f,u,o),Y=F(c,f),A=F(f,c),Z=J(n,s),$=J(s,n),z=U[v],O=U[v+1],j=k(n,y,I),P=k(s,g,p),t=w+$|0,r=q+Z+x(t,w)|0;t=t+P|0,r=r+j+x(t,P)|0,t=t+O|0,r=r+z+x(t,O)|0,t=t+b|0,r=r+i+x(t,b)|0;var T=A+X|0,W=Y+V+x(T,A)|0;q=I,w=p,I=y,p=g,y=n,g=s,s=l+t|0,n=G+r+x(s,l)|0,G=_,l=o,_=d,o=u,d=c,u=f,f=t+T|0,c=r+W+x(f,t)|0}this._al=this._al+f|0,this._bl=this._bl+u|0,this._cl=this._cl+o|0,this._dl=this._dl+l|0,this._el=this._el+s|0,this._fl=this._fl+g|0,this._gl=this._gl+p|0,this._hl=this._hl+w|0,this._ah=this._ah+c+x(this._al,f)|0,this._bh=this._bh+d+x(this._bl,u)|0,this._ch=this._ch+_+x(this._cl,o)|0,this._dh=this._dh+G+x(this._dl,l)|0,this._eh=this._eh+n+x(this._el,s)|0,this._fh=this._fh+y+x(this._fl,g)|0,this._gh=this._gh+I+x(this._gl,p)|0,this._hh=this._hh+q+x(this._hl,w)|0};E.prototype._hash=function(){var h=c0.allocUnsafe(64);function a(c,d,_){h.writeInt32BE(c,_),h.writeInt32BE(d,_+4)}return a(this._ah,this._al,0),a(this._bh,this._bl,8),a(this._ch,this._cl,16),a(this._dh,this._dl,24),a(this._eh,this._el,32),a(this._fh,this._fl,40),a(this._gh,this._gl,48),a(this._hh,this._hl,56),h};var _0=E;exports.sha512=_0;
|