@ledgerhq/live-cli 24.26.1-nightly.5 → 24.27.0-nightly.6
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/lib/cli.js +1168 -973
- package/package.json +2 -2
package/lib/cli.js
CHANGED
|
@@ -285377,855 +285377,13 @@ var require_key4 = __commonJS({
|
|
|
285377
285377
|
}
|
|
285378
285378
|
});
|
|
285379
285379
|
|
|
285380
|
-
// ../../node_modules/.pnpm/sha.js@2.4.11/node_modules/sha.js/hash.js
|
|
285381
|
-
var require_hash7 = __commonJS({
|
|
285382
|
-
"../../node_modules/.pnpm/sha.js@2.4.11/node_modules/sha.js/hash.js"(exports2, module2) {
|
|
285383
|
-
"use strict";
|
|
285384
|
-
var Buffer7 = require_safe_buffer().Buffer;
|
|
285385
|
-
function Hash4(blockSize, finalSize) {
|
|
285386
|
-
this._block = Buffer7.alloc(blockSize);
|
|
285387
|
-
this._finalSize = finalSize;
|
|
285388
|
-
this._blockSize = blockSize;
|
|
285389
|
-
this._len = 0;
|
|
285390
|
-
}
|
|
285391
|
-
Hash4.prototype.update = function(data12, enc) {
|
|
285392
|
-
if (typeof data12 === "string") {
|
|
285393
|
-
enc = enc || "utf8";
|
|
285394
|
-
data12 = Buffer7.from(data12, enc);
|
|
285395
|
-
}
|
|
285396
|
-
var block2 = this._block;
|
|
285397
|
-
var blockSize = this._blockSize;
|
|
285398
|
-
var length2 = data12.length;
|
|
285399
|
-
var accum = this._len;
|
|
285400
|
-
for (var offset2 = 0; offset2 < length2; ) {
|
|
285401
|
-
var assigned = accum % blockSize;
|
|
285402
|
-
var remainder = Math.min(length2 - offset2, blockSize - assigned);
|
|
285403
|
-
for (var i57 = 0; i57 < remainder; i57++) {
|
|
285404
|
-
block2[assigned + i57] = data12[offset2 + i57];
|
|
285405
|
-
}
|
|
285406
|
-
accum += remainder;
|
|
285407
|
-
offset2 += remainder;
|
|
285408
|
-
if (accum % blockSize === 0) {
|
|
285409
|
-
this._update(block2);
|
|
285410
|
-
}
|
|
285411
|
-
}
|
|
285412
|
-
this._len += length2;
|
|
285413
|
-
return this;
|
|
285414
|
-
};
|
|
285415
|
-
Hash4.prototype.digest = function(enc) {
|
|
285416
|
-
var rem = this._len % this._blockSize;
|
|
285417
|
-
this._block[rem] = 128;
|
|
285418
|
-
this._block.fill(0, rem + 1);
|
|
285419
|
-
if (rem >= this._finalSize) {
|
|
285420
|
-
this._update(this._block);
|
|
285421
|
-
this._block.fill(0);
|
|
285422
|
-
}
|
|
285423
|
-
var bits2 = this._len * 8;
|
|
285424
|
-
if (bits2 <= 4294967295) {
|
|
285425
|
-
this._block.writeUInt32BE(bits2, this._blockSize - 4);
|
|
285426
|
-
} else {
|
|
285427
|
-
var lowBits = (bits2 & 4294967295) >>> 0;
|
|
285428
|
-
var highBits = (bits2 - lowBits) / 4294967296;
|
|
285429
|
-
this._block.writeUInt32BE(highBits, this._blockSize - 8);
|
|
285430
|
-
this._block.writeUInt32BE(lowBits, this._blockSize - 4);
|
|
285431
|
-
}
|
|
285432
|
-
this._update(this._block);
|
|
285433
|
-
var hash9 = this._hash();
|
|
285434
|
-
return enc ? hash9.toString(enc) : hash9;
|
|
285435
|
-
};
|
|
285436
|
-
Hash4.prototype._update = function() {
|
|
285437
|
-
throw new Error("_update must be implemented by subclass");
|
|
285438
|
-
};
|
|
285439
|
-
module2.exports = Hash4;
|
|
285440
|
-
}
|
|
285441
|
-
});
|
|
285442
|
-
|
|
285443
|
-
// ../../node_modules/.pnpm/sha.js@2.4.11/node_modules/sha.js/sha.js
|
|
285444
|
-
var require_sha7 = __commonJS({
|
|
285445
|
-
"../../node_modules/.pnpm/sha.js@2.4.11/node_modules/sha.js/sha.js"(exports2, module2) {
|
|
285446
|
-
"use strict";
|
|
285447
|
-
var inherits4 = require_inherits();
|
|
285448
|
-
var Hash4 = require_hash7();
|
|
285449
|
-
var Buffer7 = require_safe_buffer().Buffer;
|
|
285450
|
-
var K10 = [
|
|
285451
|
-
1518500249,
|
|
285452
|
-
1859775393,
|
|
285453
|
-
2400959708 | 0,
|
|
285454
|
-
3395469782 | 0
|
|
285455
|
-
];
|
|
285456
|
-
var W11 = new Array(80);
|
|
285457
|
-
function Sha() {
|
|
285458
|
-
this.init();
|
|
285459
|
-
this._w = W11;
|
|
285460
|
-
Hash4.call(this, 64, 56);
|
|
285461
|
-
}
|
|
285462
|
-
inherits4(Sha, Hash4);
|
|
285463
|
-
Sha.prototype.init = function() {
|
|
285464
|
-
this._a = 1732584193;
|
|
285465
|
-
this._b = 4023233417;
|
|
285466
|
-
this._c = 2562383102;
|
|
285467
|
-
this._d = 271733878;
|
|
285468
|
-
this._e = 3285377520;
|
|
285469
|
-
return this;
|
|
285470
|
-
};
|
|
285471
|
-
function rotl52(num) {
|
|
285472
|
-
return num << 5 | num >>> 27;
|
|
285473
|
-
}
|
|
285474
|
-
function rotl30(num) {
|
|
285475
|
-
return num << 30 | num >>> 2;
|
|
285476
|
-
}
|
|
285477
|
-
function ft3(s54, b21, c59, d58) {
|
|
285478
|
-
if (s54 === 0)
|
|
285479
|
-
return b21 & c59 | ~b21 & d58;
|
|
285480
|
-
if (s54 === 2)
|
|
285481
|
-
return b21 & c59 | b21 & d58 | c59 & d58;
|
|
285482
|
-
return b21 ^ c59 ^ d58;
|
|
285483
|
-
}
|
|
285484
|
-
Sha.prototype._update = function(M14) {
|
|
285485
|
-
var W12 = this._w;
|
|
285486
|
-
var a67 = this._a | 0;
|
|
285487
|
-
var b21 = this._b | 0;
|
|
285488
|
-
var c59 = this._c | 0;
|
|
285489
|
-
var d58 = this._d | 0;
|
|
285490
|
-
var e35 = this._e | 0;
|
|
285491
|
-
for (var i57 = 0; i57 < 16; ++i57)
|
|
285492
|
-
W12[i57] = M14.readInt32BE(i57 * 4);
|
|
285493
|
-
for (; i57 < 80; ++i57)
|
|
285494
|
-
W12[i57] = W12[i57 - 3] ^ W12[i57 - 8] ^ W12[i57 - 14] ^ W12[i57 - 16];
|
|
285495
|
-
for (var j10 = 0; j10 < 80; ++j10) {
|
|
285496
|
-
var s54 = ~~(j10 / 20);
|
|
285497
|
-
var t45 = rotl52(a67) + ft3(s54, b21, c59, d58) + e35 + W12[j10] + K10[s54] | 0;
|
|
285498
|
-
e35 = d58;
|
|
285499
|
-
d58 = c59;
|
|
285500
|
-
c59 = rotl30(b21);
|
|
285501
|
-
b21 = a67;
|
|
285502
|
-
a67 = t45;
|
|
285503
|
-
}
|
|
285504
|
-
this._a = a67 + this._a | 0;
|
|
285505
|
-
this._b = b21 + this._b | 0;
|
|
285506
|
-
this._c = c59 + this._c | 0;
|
|
285507
|
-
this._d = d58 + this._d | 0;
|
|
285508
|
-
this._e = e35 + this._e | 0;
|
|
285509
|
-
};
|
|
285510
|
-
Sha.prototype._hash = function() {
|
|
285511
|
-
var H13 = Buffer7.allocUnsafe(20);
|
|
285512
|
-
H13.writeInt32BE(this._a | 0, 0);
|
|
285513
|
-
H13.writeInt32BE(this._b | 0, 4);
|
|
285514
|
-
H13.writeInt32BE(this._c | 0, 8);
|
|
285515
|
-
H13.writeInt32BE(this._d | 0, 12);
|
|
285516
|
-
H13.writeInt32BE(this._e | 0, 16);
|
|
285517
|
-
return H13;
|
|
285518
|
-
};
|
|
285519
|
-
module2.exports = Sha;
|
|
285520
|
-
}
|
|
285521
|
-
});
|
|
285522
|
-
|
|
285523
|
-
// ../../node_modules/.pnpm/sha.js@2.4.11/node_modules/sha.js/sha1.js
|
|
285524
|
-
var require_sha13 = __commonJS({
|
|
285525
|
-
"../../node_modules/.pnpm/sha.js@2.4.11/node_modules/sha.js/sha1.js"(exports2, module2) {
|
|
285526
|
-
"use strict";
|
|
285527
|
-
var inherits4 = require_inherits();
|
|
285528
|
-
var Hash4 = require_hash7();
|
|
285529
|
-
var Buffer7 = require_safe_buffer().Buffer;
|
|
285530
|
-
var K10 = [
|
|
285531
|
-
1518500249,
|
|
285532
|
-
1859775393,
|
|
285533
|
-
2400959708 | 0,
|
|
285534
|
-
3395469782 | 0
|
|
285535
|
-
];
|
|
285536
|
-
var W11 = new Array(80);
|
|
285537
|
-
function Sha1() {
|
|
285538
|
-
this.init();
|
|
285539
|
-
this._w = W11;
|
|
285540
|
-
Hash4.call(this, 64, 56);
|
|
285541
|
-
}
|
|
285542
|
-
inherits4(Sha1, Hash4);
|
|
285543
|
-
Sha1.prototype.init = function() {
|
|
285544
|
-
this._a = 1732584193;
|
|
285545
|
-
this._b = 4023233417;
|
|
285546
|
-
this._c = 2562383102;
|
|
285547
|
-
this._d = 271733878;
|
|
285548
|
-
this._e = 3285377520;
|
|
285549
|
-
return this;
|
|
285550
|
-
};
|
|
285551
|
-
function rotl1(num) {
|
|
285552
|
-
return num << 1 | num >>> 31;
|
|
285553
|
-
}
|
|
285554
|
-
function rotl52(num) {
|
|
285555
|
-
return num << 5 | num >>> 27;
|
|
285556
|
-
}
|
|
285557
|
-
function rotl30(num) {
|
|
285558
|
-
return num << 30 | num >>> 2;
|
|
285559
|
-
}
|
|
285560
|
-
function ft3(s54, b21, c59, d58) {
|
|
285561
|
-
if (s54 === 0)
|
|
285562
|
-
return b21 & c59 | ~b21 & d58;
|
|
285563
|
-
if (s54 === 2)
|
|
285564
|
-
return b21 & c59 | b21 & d58 | c59 & d58;
|
|
285565
|
-
return b21 ^ c59 ^ d58;
|
|
285566
|
-
}
|
|
285567
|
-
Sha1.prototype._update = function(M14) {
|
|
285568
|
-
var W12 = this._w;
|
|
285569
|
-
var a67 = this._a | 0;
|
|
285570
|
-
var b21 = this._b | 0;
|
|
285571
|
-
var c59 = this._c | 0;
|
|
285572
|
-
var d58 = this._d | 0;
|
|
285573
|
-
var e35 = this._e | 0;
|
|
285574
|
-
for (var i57 = 0; i57 < 16; ++i57)
|
|
285575
|
-
W12[i57] = M14.readInt32BE(i57 * 4);
|
|
285576
|
-
for (; i57 < 80; ++i57)
|
|
285577
|
-
W12[i57] = rotl1(W12[i57 - 3] ^ W12[i57 - 8] ^ W12[i57 - 14] ^ W12[i57 - 16]);
|
|
285578
|
-
for (var j10 = 0; j10 < 80; ++j10) {
|
|
285579
|
-
var s54 = ~~(j10 / 20);
|
|
285580
|
-
var t45 = rotl52(a67) + ft3(s54, b21, c59, d58) + e35 + W12[j10] + K10[s54] | 0;
|
|
285581
|
-
e35 = d58;
|
|
285582
|
-
d58 = c59;
|
|
285583
|
-
c59 = rotl30(b21);
|
|
285584
|
-
b21 = a67;
|
|
285585
|
-
a67 = t45;
|
|
285586
|
-
}
|
|
285587
|
-
this._a = a67 + this._a | 0;
|
|
285588
|
-
this._b = b21 + this._b | 0;
|
|
285589
|
-
this._c = c59 + this._c | 0;
|
|
285590
|
-
this._d = d58 + this._d | 0;
|
|
285591
|
-
this._e = e35 + this._e | 0;
|
|
285592
|
-
};
|
|
285593
|
-
Sha1.prototype._hash = function() {
|
|
285594
|
-
var H13 = Buffer7.allocUnsafe(20);
|
|
285595
|
-
H13.writeInt32BE(this._a | 0, 0);
|
|
285596
|
-
H13.writeInt32BE(this._b | 0, 4);
|
|
285597
|
-
H13.writeInt32BE(this._c | 0, 8);
|
|
285598
|
-
H13.writeInt32BE(this._d | 0, 12);
|
|
285599
|
-
H13.writeInt32BE(this._e | 0, 16);
|
|
285600
|
-
return H13;
|
|
285601
|
-
};
|
|
285602
|
-
module2.exports = Sha1;
|
|
285603
|
-
}
|
|
285604
|
-
});
|
|
285605
|
-
|
|
285606
|
-
// ../../node_modules/.pnpm/sha.js@2.4.11/node_modules/sha.js/sha256.js
|
|
285607
|
-
var require_sha25610 = __commonJS({
|
|
285608
|
-
"../../node_modules/.pnpm/sha.js@2.4.11/node_modules/sha.js/sha256.js"(exports2, module2) {
|
|
285609
|
-
"use strict";
|
|
285610
|
-
var inherits4 = require_inherits();
|
|
285611
|
-
var Hash4 = require_hash7();
|
|
285612
|
-
var Buffer7 = require_safe_buffer().Buffer;
|
|
285613
|
-
var K10 = [
|
|
285614
|
-
1116352408,
|
|
285615
|
-
1899447441,
|
|
285616
|
-
3049323471,
|
|
285617
|
-
3921009573,
|
|
285618
|
-
961987163,
|
|
285619
|
-
1508970993,
|
|
285620
|
-
2453635748,
|
|
285621
|
-
2870763221,
|
|
285622
|
-
3624381080,
|
|
285623
|
-
310598401,
|
|
285624
|
-
607225278,
|
|
285625
|
-
1426881987,
|
|
285626
|
-
1925078388,
|
|
285627
|
-
2162078206,
|
|
285628
|
-
2614888103,
|
|
285629
|
-
3248222580,
|
|
285630
|
-
3835390401,
|
|
285631
|
-
4022224774,
|
|
285632
|
-
264347078,
|
|
285633
|
-
604807628,
|
|
285634
|
-
770255983,
|
|
285635
|
-
1249150122,
|
|
285636
|
-
1555081692,
|
|
285637
|
-
1996064986,
|
|
285638
|
-
2554220882,
|
|
285639
|
-
2821834349,
|
|
285640
|
-
2952996808,
|
|
285641
|
-
3210313671,
|
|
285642
|
-
3336571891,
|
|
285643
|
-
3584528711,
|
|
285644
|
-
113926993,
|
|
285645
|
-
338241895,
|
|
285646
|
-
666307205,
|
|
285647
|
-
773529912,
|
|
285648
|
-
1294757372,
|
|
285649
|
-
1396182291,
|
|
285650
|
-
1695183700,
|
|
285651
|
-
1986661051,
|
|
285652
|
-
2177026350,
|
|
285653
|
-
2456956037,
|
|
285654
|
-
2730485921,
|
|
285655
|
-
2820302411,
|
|
285656
|
-
3259730800,
|
|
285657
|
-
3345764771,
|
|
285658
|
-
3516065817,
|
|
285659
|
-
3600352804,
|
|
285660
|
-
4094571909,
|
|
285661
|
-
275423344,
|
|
285662
|
-
430227734,
|
|
285663
|
-
506948616,
|
|
285664
|
-
659060556,
|
|
285665
|
-
883997877,
|
|
285666
|
-
958139571,
|
|
285667
|
-
1322822218,
|
|
285668
|
-
1537002063,
|
|
285669
|
-
1747873779,
|
|
285670
|
-
1955562222,
|
|
285671
|
-
2024104815,
|
|
285672
|
-
2227730452,
|
|
285673
|
-
2361852424,
|
|
285674
|
-
2428436474,
|
|
285675
|
-
2756734187,
|
|
285676
|
-
3204031479,
|
|
285677
|
-
3329325298
|
|
285678
|
-
];
|
|
285679
|
-
var W11 = new Array(64);
|
|
285680
|
-
function Sha2562() {
|
|
285681
|
-
this.init();
|
|
285682
|
-
this._w = W11;
|
|
285683
|
-
Hash4.call(this, 64, 56);
|
|
285684
|
-
}
|
|
285685
|
-
inherits4(Sha2562, Hash4);
|
|
285686
|
-
Sha2562.prototype.init = function() {
|
|
285687
|
-
this._a = 1779033703;
|
|
285688
|
-
this._b = 3144134277;
|
|
285689
|
-
this._c = 1013904242;
|
|
285690
|
-
this._d = 2773480762;
|
|
285691
|
-
this._e = 1359893119;
|
|
285692
|
-
this._f = 2600822924;
|
|
285693
|
-
this._g = 528734635;
|
|
285694
|
-
this._h = 1541459225;
|
|
285695
|
-
return this;
|
|
285696
|
-
};
|
|
285697
|
-
function ch(x22, y43, z11) {
|
|
285698
|
-
return z11 ^ x22 & (y43 ^ z11);
|
|
285699
|
-
}
|
|
285700
|
-
function maj(x22, y43, z11) {
|
|
285701
|
-
return x22 & y43 | z11 & (x22 | y43);
|
|
285702
|
-
}
|
|
285703
|
-
function sigma0(x22) {
|
|
285704
|
-
return (x22 >>> 2 | x22 << 30) ^ (x22 >>> 13 | x22 << 19) ^ (x22 >>> 22 | x22 << 10);
|
|
285705
|
-
}
|
|
285706
|
-
function sigma1(x22) {
|
|
285707
|
-
return (x22 >>> 6 | x22 << 26) ^ (x22 >>> 11 | x22 << 21) ^ (x22 >>> 25 | x22 << 7);
|
|
285708
|
-
}
|
|
285709
|
-
function gamma0(x22) {
|
|
285710
|
-
return (x22 >>> 7 | x22 << 25) ^ (x22 >>> 18 | x22 << 14) ^ x22 >>> 3;
|
|
285711
|
-
}
|
|
285712
|
-
function gamma1(x22) {
|
|
285713
|
-
return (x22 >>> 17 | x22 << 15) ^ (x22 >>> 19 | x22 << 13) ^ x22 >>> 10;
|
|
285714
|
-
}
|
|
285715
|
-
Sha2562.prototype._update = function(M14) {
|
|
285716
|
-
var W12 = this._w;
|
|
285717
|
-
var a67 = this._a | 0;
|
|
285718
|
-
var b21 = this._b | 0;
|
|
285719
|
-
var c59 = this._c | 0;
|
|
285720
|
-
var d58 = this._d | 0;
|
|
285721
|
-
var e35 = this._e | 0;
|
|
285722
|
-
var f48 = this._f | 0;
|
|
285723
|
-
var g54 = this._g | 0;
|
|
285724
|
-
var h40 = this._h | 0;
|
|
285725
|
-
for (var i57 = 0; i57 < 16; ++i57)
|
|
285726
|
-
W12[i57] = M14.readInt32BE(i57 * 4);
|
|
285727
|
-
for (; i57 < 64; ++i57)
|
|
285728
|
-
W12[i57] = gamma1(W12[i57 - 2]) + W12[i57 - 7] + gamma0(W12[i57 - 15]) + W12[i57 - 16] | 0;
|
|
285729
|
-
for (var j10 = 0; j10 < 64; ++j10) {
|
|
285730
|
-
var T110 = h40 + sigma1(e35) + ch(e35, f48, g54) + K10[j10] + W12[j10] | 0;
|
|
285731
|
-
var T29 = sigma0(a67) + maj(a67, b21, c59) | 0;
|
|
285732
|
-
h40 = g54;
|
|
285733
|
-
g54 = f48;
|
|
285734
|
-
f48 = e35;
|
|
285735
|
-
e35 = d58 + T110 | 0;
|
|
285736
|
-
d58 = c59;
|
|
285737
|
-
c59 = b21;
|
|
285738
|
-
b21 = a67;
|
|
285739
|
-
a67 = T110 + T29 | 0;
|
|
285740
|
-
}
|
|
285741
|
-
this._a = a67 + this._a | 0;
|
|
285742
|
-
this._b = b21 + this._b | 0;
|
|
285743
|
-
this._c = c59 + this._c | 0;
|
|
285744
|
-
this._d = d58 + this._d | 0;
|
|
285745
|
-
this._e = e35 + this._e | 0;
|
|
285746
|
-
this._f = f48 + this._f | 0;
|
|
285747
|
-
this._g = g54 + this._g | 0;
|
|
285748
|
-
this._h = h40 + this._h | 0;
|
|
285749
|
-
};
|
|
285750
|
-
Sha2562.prototype._hash = function() {
|
|
285751
|
-
var H13 = Buffer7.allocUnsafe(32);
|
|
285752
|
-
H13.writeInt32BE(this._a, 0);
|
|
285753
|
-
H13.writeInt32BE(this._b, 4);
|
|
285754
|
-
H13.writeInt32BE(this._c, 8);
|
|
285755
|
-
H13.writeInt32BE(this._d, 12);
|
|
285756
|
-
H13.writeInt32BE(this._e, 16);
|
|
285757
|
-
H13.writeInt32BE(this._f, 20);
|
|
285758
|
-
H13.writeInt32BE(this._g, 24);
|
|
285759
|
-
H13.writeInt32BE(this._h, 28);
|
|
285760
|
-
return H13;
|
|
285761
|
-
};
|
|
285762
|
-
module2.exports = Sha2562;
|
|
285763
|
-
}
|
|
285764
|
-
});
|
|
285765
|
-
|
|
285766
|
-
// ../../node_modules/.pnpm/sha.js@2.4.11/node_modules/sha.js/sha224.js
|
|
285767
|
-
var require_sha2243 = __commonJS({
|
|
285768
|
-
"../../node_modules/.pnpm/sha.js@2.4.11/node_modules/sha.js/sha224.js"(exports2, module2) {
|
|
285769
|
-
"use strict";
|
|
285770
|
-
var inherits4 = require_inherits();
|
|
285771
|
-
var Sha2562 = require_sha25610();
|
|
285772
|
-
var Hash4 = require_hash7();
|
|
285773
|
-
var Buffer7 = require_safe_buffer().Buffer;
|
|
285774
|
-
var W11 = new Array(64);
|
|
285775
|
-
function Sha224() {
|
|
285776
|
-
this.init();
|
|
285777
|
-
this._w = W11;
|
|
285778
|
-
Hash4.call(this, 64, 56);
|
|
285779
|
-
}
|
|
285780
|
-
inherits4(Sha224, Sha2562);
|
|
285781
|
-
Sha224.prototype.init = function() {
|
|
285782
|
-
this._a = 3238371032;
|
|
285783
|
-
this._b = 914150663;
|
|
285784
|
-
this._c = 812702999;
|
|
285785
|
-
this._d = 4144912697;
|
|
285786
|
-
this._e = 4290775857;
|
|
285787
|
-
this._f = 1750603025;
|
|
285788
|
-
this._g = 1694076839;
|
|
285789
|
-
this._h = 3204075428;
|
|
285790
|
-
return this;
|
|
285791
|
-
};
|
|
285792
|
-
Sha224.prototype._hash = function() {
|
|
285793
|
-
var H13 = Buffer7.allocUnsafe(28);
|
|
285794
|
-
H13.writeInt32BE(this._a, 0);
|
|
285795
|
-
H13.writeInt32BE(this._b, 4);
|
|
285796
|
-
H13.writeInt32BE(this._c, 8);
|
|
285797
|
-
H13.writeInt32BE(this._d, 12);
|
|
285798
|
-
H13.writeInt32BE(this._e, 16);
|
|
285799
|
-
H13.writeInt32BE(this._f, 20);
|
|
285800
|
-
H13.writeInt32BE(this._g, 24);
|
|
285801
|
-
return H13;
|
|
285802
|
-
};
|
|
285803
|
-
module2.exports = Sha224;
|
|
285804
|
-
}
|
|
285805
|
-
});
|
|
285806
|
-
|
|
285807
|
-
// ../../node_modules/.pnpm/sha.js@2.4.11/node_modules/sha.js/sha512.js
|
|
285808
|
-
var require_sha5127 = __commonJS({
|
|
285809
|
-
"../../node_modules/.pnpm/sha.js@2.4.11/node_modules/sha.js/sha512.js"(exports2, module2) {
|
|
285810
|
-
"use strict";
|
|
285811
|
-
var inherits4 = require_inherits();
|
|
285812
|
-
var Hash4 = require_hash7();
|
|
285813
|
-
var Buffer7 = require_safe_buffer().Buffer;
|
|
285814
|
-
var K10 = [
|
|
285815
|
-
1116352408,
|
|
285816
|
-
3609767458,
|
|
285817
|
-
1899447441,
|
|
285818
|
-
602891725,
|
|
285819
|
-
3049323471,
|
|
285820
|
-
3964484399,
|
|
285821
|
-
3921009573,
|
|
285822
|
-
2173295548,
|
|
285823
|
-
961987163,
|
|
285824
|
-
4081628472,
|
|
285825
|
-
1508970993,
|
|
285826
|
-
3053834265,
|
|
285827
|
-
2453635748,
|
|
285828
|
-
2937671579,
|
|
285829
|
-
2870763221,
|
|
285830
|
-
3664609560,
|
|
285831
|
-
3624381080,
|
|
285832
|
-
2734883394,
|
|
285833
|
-
310598401,
|
|
285834
|
-
1164996542,
|
|
285835
|
-
607225278,
|
|
285836
|
-
1323610764,
|
|
285837
|
-
1426881987,
|
|
285838
|
-
3590304994,
|
|
285839
|
-
1925078388,
|
|
285840
|
-
4068182383,
|
|
285841
|
-
2162078206,
|
|
285842
|
-
991336113,
|
|
285843
|
-
2614888103,
|
|
285844
|
-
633803317,
|
|
285845
|
-
3248222580,
|
|
285846
|
-
3479774868,
|
|
285847
|
-
3835390401,
|
|
285848
|
-
2666613458,
|
|
285849
|
-
4022224774,
|
|
285850
|
-
944711139,
|
|
285851
|
-
264347078,
|
|
285852
|
-
2341262773,
|
|
285853
|
-
604807628,
|
|
285854
|
-
2007800933,
|
|
285855
|
-
770255983,
|
|
285856
|
-
1495990901,
|
|
285857
|
-
1249150122,
|
|
285858
|
-
1856431235,
|
|
285859
|
-
1555081692,
|
|
285860
|
-
3175218132,
|
|
285861
|
-
1996064986,
|
|
285862
|
-
2198950837,
|
|
285863
|
-
2554220882,
|
|
285864
|
-
3999719339,
|
|
285865
|
-
2821834349,
|
|
285866
|
-
766784016,
|
|
285867
|
-
2952996808,
|
|
285868
|
-
2566594879,
|
|
285869
|
-
3210313671,
|
|
285870
|
-
3203337956,
|
|
285871
|
-
3336571891,
|
|
285872
|
-
1034457026,
|
|
285873
|
-
3584528711,
|
|
285874
|
-
2466948901,
|
|
285875
|
-
113926993,
|
|
285876
|
-
3758326383,
|
|
285877
|
-
338241895,
|
|
285878
|
-
168717936,
|
|
285879
|
-
666307205,
|
|
285880
|
-
1188179964,
|
|
285881
|
-
773529912,
|
|
285882
|
-
1546045734,
|
|
285883
|
-
1294757372,
|
|
285884
|
-
1522805485,
|
|
285885
|
-
1396182291,
|
|
285886
|
-
2643833823,
|
|
285887
|
-
1695183700,
|
|
285888
|
-
2343527390,
|
|
285889
|
-
1986661051,
|
|
285890
|
-
1014477480,
|
|
285891
|
-
2177026350,
|
|
285892
|
-
1206759142,
|
|
285893
|
-
2456956037,
|
|
285894
|
-
344077627,
|
|
285895
|
-
2730485921,
|
|
285896
|
-
1290863460,
|
|
285897
|
-
2820302411,
|
|
285898
|
-
3158454273,
|
|
285899
|
-
3259730800,
|
|
285900
|
-
3505952657,
|
|
285901
|
-
3345764771,
|
|
285902
|
-
106217008,
|
|
285903
|
-
3516065817,
|
|
285904
|
-
3606008344,
|
|
285905
|
-
3600352804,
|
|
285906
|
-
1432725776,
|
|
285907
|
-
4094571909,
|
|
285908
|
-
1467031594,
|
|
285909
|
-
275423344,
|
|
285910
|
-
851169720,
|
|
285911
|
-
430227734,
|
|
285912
|
-
3100823752,
|
|
285913
|
-
506948616,
|
|
285914
|
-
1363258195,
|
|
285915
|
-
659060556,
|
|
285916
|
-
3750685593,
|
|
285917
|
-
883997877,
|
|
285918
|
-
3785050280,
|
|
285919
|
-
958139571,
|
|
285920
|
-
3318307427,
|
|
285921
|
-
1322822218,
|
|
285922
|
-
3812723403,
|
|
285923
|
-
1537002063,
|
|
285924
|
-
2003034995,
|
|
285925
|
-
1747873779,
|
|
285926
|
-
3602036899,
|
|
285927
|
-
1955562222,
|
|
285928
|
-
1575990012,
|
|
285929
|
-
2024104815,
|
|
285930
|
-
1125592928,
|
|
285931
|
-
2227730452,
|
|
285932
|
-
2716904306,
|
|
285933
|
-
2361852424,
|
|
285934
|
-
442776044,
|
|
285935
|
-
2428436474,
|
|
285936
|
-
593698344,
|
|
285937
|
-
2756734187,
|
|
285938
|
-
3733110249,
|
|
285939
|
-
3204031479,
|
|
285940
|
-
2999351573,
|
|
285941
|
-
3329325298,
|
|
285942
|
-
3815920427,
|
|
285943
|
-
3391569614,
|
|
285944
|
-
3928383900,
|
|
285945
|
-
3515267271,
|
|
285946
|
-
566280711,
|
|
285947
|
-
3940187606,
|
|
285948
|
-
3454069534,
|
|
285949
|
-
4118630271,
|
|
285950
|
-
4000239992,
|
|
285951
|
-
116418474,
|
|
285952
|
-
1914138554,
|
|
285953
|
-
174292421,
|
|
285954
|
-
2731055270,
|
|
285955
|
-
289380356,
|
|
285956
|
-
3203993006,
|
|
285957
|
-
460393269,
|
|
285958
|
-
320620315,
|
|
285959
|
-
685471733,
|
|
285960
|
-
587496836,
|
|
285961
|
-
852142971,
|
|
285962
|
-
1086792851,
|
|
285963
|
-
1017036298,
|
|
285964
|
-
365543100,
|
|
285965
|
-
1126000580,
|
|
285966
|
-
2618297676,
|
|
285967
|
-
1288033470,
|
|
285968
|
-
3409855158,
|
|
285969
|
-
1501505948,
|
|
285970
|
-
4234509866,
|
|
285971
|
-
1607167915,
|
|
285972
|
-
987167468,
|
|
285973
|
-
1816402316,
|
|
285974
|
-
1246189591
|
|
285975
|
-
];
|
|
285976
|
-
var W11 = new Array(160);
|
|
285977
|
-
function Sha512() {
|
|
285978
|
-
this.init();
|
|
285979
|
-
this._w = W11;
|
|
285980
|
-
Hash4.call(this, 128, 112);
|
|
285981
|
-
}
|
|
285982
|
-
inherits4(Sha512, Hash4);
|
|
285983
|
-
Sha512.prototype.init = function() {
|
|
285984
|
-
this._ah = 1779033703;
|
|
285985
|
-
this._bh = 3144134277;
|
|
285986
|
-
this._ch = 1013904242;
|
|
285987
|
-
this._dh = 2773480762;
|
|
285988
|
-
this._eh = 1359893119;
|
|
285989
|
-
this._fh = 2600822924;
|
|
285990
|
-
this._gh = 528734635;
|
|
285991
|
-
this._hh = 1541459225;
|
|
285992
|
-
this._al = 4089235720;
|
|
285993
|
-
this._bl = 2227873595;
|
|
285994
|
-
this._cl = 4271175723;
|
|
285995
|
-
this._dl = 1595750129;
|
|
285996
|
-
this._el = 2917565137;
|
|
285997
|
-
this._fl = 725511199;
|
|
285998
|
-
this._gl = 4215389547;
|
|
285999
|
-
this._hl = 327033209;
|
|
286000
|
-
return this;
|
|
286001
|
-
};
|
|
286002
|
-
function Ch(x22, y43, z11) {
|
|
286003
|
-
return z11 ^ x22 & (y43 ^ z11);
|
|
286004
|
-
}
|
|
286005
|
-
function maj(x22, y43, z11) {
|
|
286006
|
-
return x22 & y43 | z11 & (x22 | y43);
|
|
286007
|
-
}
|
|
286008
|
-
function sigma0(x22, xl) {
|
|
286009
|
-
return (x22 >>> 28 | xl << 4) ^ (xl >>> 2 | x22 << 30) ^ (xl >>> 7 | x22 << 25);
|
|
286010
|
-
}
|
|
286011
|
-
function sigma1(x22, xl) {
|
|
286012
|
-
return (x22 >>> 14 | xl << 18) ^ (x22 >>> 18 | xl << 14) ^ (xl >>> 9 | x22 << 23);
|
|
286013
|
-
}
|
|
286014
|
-
function Gamma0(x22, xl) {
|
|
286015
|
-
return (x22 >>> 1 | xl << 31) ^ (x22 >>> 8 | xl << 24) ^ x22 >>> 7;
|
|
286016
|
-
}
|
|
286017
|
-
function Gamma0l(x22, xl) {
|
|
286018
|
-
return (x22 >>> 1 | xl << 31) ^ (x22 >>> 8 | xl << 24) ^ (x22 >>> 7 | xl << 25);
|
|
286019
|
-
}
|
|
286020
|
-
function Gamma1(x22, xl) {
|
|
286021
|
-
return (x22 >>> 19 | xl << 13) ^ (xl >>> 29 | x22 << 3) ^ x22 >>> 6;
|
|
286022
|
-
}
|
|
286023
|
-
function Gamma1l(x22, xl) {
|
|
286024
|
-
return (x22 >>> 19 | xl << 13) ^ (xl >>> 29 | x22 << 3) ^ (x22 >>> 6 | xl << 26);
|
|
286025
|
-
}
|
|
286026
|
-
function getCarry(a67, b21) {
|
|
286027
|
-
return a67 >>> 0 < b21 >>> 0 ? 1 : 0;
|
|
286028
|
-
}
|
|
286029
|
-
Sha512.prototype._update = function(M14) {
|
|
286030
|
-
var W12 = this._w;
|
|
286031
|
-
var ah = this._ah | 0;
|
|
286032
|
-
var bh = this._bh | 0;
|
|
286033
|
-
var ch = this._ch | 0;
|
|
286034
|
-
var dh = this._dh | 0;
|
|
286035
|
-
var eh = this._eh | 0;
|
|
286036
|
-
var fh = this._fh | 0;
|
|
286037
|
-
var gh = this._gh | 0;
|
|
286038
|
-
var hh = this._hh | 0;
|
|
286039
|
-
var al = this._al | 0;
|
|
286040
|
-
var bl = this._bl | 0;
|
|
286041
|
-
var cl = this._cl | 0;
|
|
286042
|
-
var dl = this._dl | 0;
|
|
286043
|
-
var el = this._el | 0;
|
|
286044
|
-
var fl2 = this._fl | 0;
|
|
286045
|
-
var gl = this._gl | 0;
|
|
286046
|
-
var hl = this._hl | 0;
|
|
286047
|
-
for (var i57 = 0; i57 < 32; i57 += 2) {
|
|
286048
|
-
W12[i57] = M14.readInt32BE(i57 * 4);
|
|
286049
|
-
W12[i57 + 1] = M14.readInt32BE(i57 * 4 + 4);
|
|
286050
|
-
}
|
|
286051
|
-
for (; i57 < 160; i57 += 2) {
|
|
286052
|
-
var xh = W12[i57 - 15 * 2];
|
|
286053
|
-
var xl = W12[i57 - 15 * 2 + 1];
|
|
286054
|
-
var gamma0 = Gamma0(xh, xl);
|
|
286055
|
-
var gamma0l = Gamma0l(xl, xh);
|
|
286056
|
-
xh = W12[i57 - 2 * 2];
|
|
286057
|
-
xl = W12[i57 - 2 * 2 + 1];
|
|
286058
|
-
var gamma1 = Gamma1(xh, xl);
|
|
286059
|
-
var gamma1l = Gamma1l(xl, xh);
|
|
286060
|
-
var Wi7h = W12[i57 - 7 * 2];
|
|
286061
|
-
var Wi7l = W12[i57 - 7 * 2 + 1];
|
|
286062
|
-
var Wi16h = W12[i57 - 16 * 2];
|
|
286063
|
-
var Wi16l = W12[i57 - 16 * 2 + 1];
|
|
286064
|
-
var Wil = gamma0l + Wi7l | 0;
|
|
286065
|
-
var Wih = gamma0 + Wi7h + getCarry(Wil, gamma0l) | 0;
|
|
286066
|
-
Wil = Wil + gamma1l | 0;
|
|
286067
|
-
Wih = Wih + gamma1 + getCarry(Wil, gamma1l) | 0;
|
|
286068
|
-
Wil = Wil + Wi16l | 0;
|
|
286069
|
-
Wih = Wih + Wi16h + getCarry(Wil, Wi16l) | 0;
|
|
286070
|
-
W12[i57] = Wih;
|
|
286071
|
-
W12[i57 + 1] = Wil;
|
|
286072
|
-
}
|
|
286073
|
-
for (var j10 = 0; j10 < 160; j10 += 2) {
|
|
286074
|
-
Wih = W12[j10];
|
|
286075
|
-
Wil = W12[j10 + 1];
|
|
286076
|
-
var majh = maj(ah, bh, ch);
|
|
286077
|
-
var majl = maj(al, bl, cl);
|
|
286078
|
-
var sigma0h = sigma0(ah, al);
|
|
286079
|
-
var sigma0l = sigma0(al, ah);
|
|
286080
|
-
var sigma1h = sigma1(eh, el);
|
|
286081
|
-
var sigma1l = sigma1(el, eh);
|
|
286082
|
-
var Kih = K10[j10];
|
|
286083
|
-
var Kil = K10[j10 + 1];
|
|
286084
|
-
var chh = Ch(eh, fh, gh);
|
|
286085
|
-
var chl = Ch(el, fl2, gl);
|
|
286086
|
-
var t1l = hl + sigma1l | 0;
|
|
286087
|
-
var t1h = hh + sigma1h + getCarry(t1l, hl) | 0;
|
|
286088
|
-
t1l = t1l + chl | 0;
|
|
286089
|
-
t1h = t1h + chh + getCarry(t1l, chl) | 0;
|
|
286090
|
-
t1l = t1l + Kil | 0;
|
|
286091
|
-
t1h = t1h + Kih + getCarry(t1l, Kil) | 0;
|
|
286092
|
-
t1l = t1l + Wil | 0;
|
|
286093
|
-
t1h = t1h + Wih + getCarry(t1l, Wil) | 0;
|
|
286094
|
-
var t2l = sigma0l + majl | 0;
|
|
286095
|
-
var t2h = sigma0h + majh + getCarry(t2l, sigma0l) | 0;
|
|
286096
|
-
hh = gh;
|
|
286097
|
-
hl = gl;
|
|
286098
|
-
gh = fh;
|
|
286099
|
-
gl = fl2;
|
|
286100
|
-
fh = eh;
|
|
286101
|
-
fl2 = el;
|
|
286102
|
-
el = dl + t1l | 0;
|
|
286103
|
-
eh = dh + t1h + getCarry(el, dl) | 0;
|
|
286104
|
-
dh = ch;
|
|
286105
|
-
dl = cl;
|
|
286106
|
-
ch = bh;
|
|
286107
|
-
cl = bl;
|
|
286108
|
-
bh = ah;
|
|
286109
|
-
bl = al;
|
|
286110
|
-
al = t1l + t2l | 0;
|
|
286111
|
-
ah = t1h + t2h + getCarry(al, t1l) | 0;
|
|
286112
|
-
}
|
|
286113
|
-
this._al = this._al + al | 0;
|
|
286114
|
-
this._bl = this._bl + bl | 0;
|
|
286115
|
-
this._cl = this._cl + cl | 0;
|
|
286116
|
-
this._dl = this._dl + dl | 0;
|
|
286117
|
-
this._el = this._el + el | 0;
|
|
286118
|
-
this._fl = this._fl + fl2 | 0;
|
|
286119
|
-
this._gl = this._gl + gl | 0;
|
|
286120
|
-
this._hl = this._hl + hl | 0;
|
|
286121
|
-
this._ah = this._ah + ah + getCarry(this._al, al) | 0;
|
|
286122
|
-
this._bh = this._bh + bh + getCarry(this._bl, bl) | 0;
|
|
286123
|
-
this._ch = this._ch + ch + getCarry(this._cl, cl) | 0;
|
|
286124
|
-
this._dh = this._dh + dh + getCarry(this._dl, dl) | 0;
|
|
286125
|
-
this._eh = this._eh + eh + getCarry(this._el, el) | 0;
|
|
286126
|
-
this._fh = this._fh + fh + getCarry(this._fl, fl2) | 0;
|
|
286127
|
-
this._gh = this._gh + gh + getCarry(this._gl, gl) | 0;
|
|
286128
|
-
this._hh = this._hh + hh + getCarry(this._hl, hl) | 0;
|
|
286129
|
-
};
|
|
286130
|
-
Sha512.prototype._hash = function() {
|
|
286131
|
-
var H13 = Buffer7.allocUnsafe(64);
|
|
286132
|
-
function writeInt64BE(h40, l69, offset2) {
|
|
286133
|
-
H13.writeInt32BE(h40, offset2);
|
|
286134
|
-
H13.writeInt32BE(l69, offset2 + 4);
|
|
286135
|
-
}
|
|
286136
|
-
writeInt64BE(this._ah, this._al, 0);
|
|
286137
|
-
writeInt64BE(this._bh, this._bl, 8);
|
|
286138
|
-
writeInt64BE(this._ch, this._cl, 16);
|
|
286139
|
-
writeInt64BE(this._dh, this._dl, 24);
|
|
286140
|
-
writeInt64BE(this._eh, this._el, 32);
|
|
286141
|
-
writeInt64BE(this._fh, this._fl, 40);
|
|
286142
|
-
writeInt64BE(this._gh, this._gl, 48);
|
|
286143
|
-
writeInt64BE(this._hh, this._hl, 56);
|
|
286144
|
-
return H13;
|
|
286145
|
-
};
|
|
286146
|
-
module2.exports = Sha512;
|
|
286147
|
-
}
|
|
286148
|
-
});
|
|
286149
|
-
|
|
286150
|
-
// ../../node_modules/.pnpm/sha.js@2.4.11/node_modules/sha.js/sha384.js
|
|
286151
|
-
var require_sha3843 = __commonJS({
|
|
286152
|
-
"../../node_modules/.pnpm/sha.js@2.4.11/node_modules/sha.js/sha384.js"(exports2, module2) {
|
|
286153
|
-
"use strict";
|
|
286154
|
-
var inherits4 = require_inherits();
|
|
286155
|
-
var SHA5123 = require_sha5127();
|
|
286156
|
-
var Hash4 = require_hash7();
|
|
286157
|
-
var Buffer7 = require_safe_buffer().Buffer;
|
|
286158
|
-
var W11 = new Array(160);
|
|
286159
|
-
function Sha384() {
|
|
286160
|
-
this.init();
|
|
286161
|
-
this._w = W11;
|
|
286162
|
-
Hash4.call(this, 128, 112);
|
|
286163
|
-
}
|
|
286164
|
-
inherits4(Sha384, SHA5123);
|
|
286165
|
-
Sha384.prototype.init = function() {
|
|
286166
|
-
this._ah = 3418070365;
|
|
286167
|
-
this._bh = 1654270250;
|
|
286168
|
-
this._ch = 2438529370;
|
|
286169
|
-
this._dh = 355462360;
|
|
286170
|
-
this._eh = 1731405415;
|
|
286171
|
-
this._fh = 2394180231;
|
|
286172
|
-
this._gh = 3675008525;
|
|
286173
|
-
this._hh = 1203062813;
|
|
286174
|
-
this._al = 3238371032;
|
|
286175
|
-
this._bl = 914150663;
|
|
286176
|
-
this._cl = 812702999;
|
|
286177
|
-
this._dl = 4144912697;
|
|
286178
|
-
this._el = 4290775857;
|
|
286179
|
-
this._fl = 1750603025;
|
|
286180
|
-
this._gl = 1694076839;
|
|
286181
|
-
this._hl = 3204075428;
|
|
286182
|
-
return this;
|
|
286183
|
-
};
|
|
286184
|
-
Sha384.prototype._hash = function() {
|
|
286185
|
-
var H13 = Buffer7.allocUnsafe(48);
|
|
286186
|
-
function writeInt64BE(h40, l69, offset2) {
|
|
286187
|
-
H13.writeInt32BE(h40, offset2);
|
|
286188
|
-
H13.writeInt32BE(l69, offset2 + 4);
|
|
286189
|
-
}
|
|
286190
|
-
writeInt64BE(this._ah, this._al, 0);
|
|
286191
|
-
writeInt64BE(this._bh, this._bl, 8);
|
|
286192
|
-
writeInt64BE(this._ch, this._cl, 16);
|
|
286193
|
-
writeInt64BE(this._dh, this._dl, 24);
|
|
286194
|
-
writeInt64BE(this._eh, this._el, 32);
|
|
286195
|
-
writeInt64BE(this._fh, this._fl, 40);
|
|
286196
|
-
return H13;
|
|
286197
|
-
};
|
|
286198
|
-
module2.exports = Sha384;
|
|
286199
|
-
}
|
|
286200
|
-
});
|
|
286201
|
-
|
|
286202
|
-
// ../../node_modules/.pnpm/sha.js@2.4.11/node_modules/sha.js/index.js
|
|
286203
|
-
var require_sha8 = __commonJS({
|
|
286204
|
-
"../../node_modules/.pnpm/sha.js@2.4.11/node_modules/sha.js/index.js"(exports2, module2) {
|
|
286205
|
-
"use strict";
|
|
286206
|
-
var exports2 = module2.exports = function SHA(algorithm2) {
|
|
286207
|
-
algorithm2 = algorithm2.toLowerCase();
|
|
286208
|
-
var Algorithm = exports2[algorithm2];
|
|
286209
|
-
if (!Algorithm)
|
|
286210
|
-
throw new Error(algorithm2 + " is not supported (we accept pull requests)");
|
|
286211
|
-
return new Algorithm();
|
|
286212
|
-
};
|
|
286213
|
-
exports2.sha = require_sha7();
|
|
286214
|
-
exports2.sha1 = require_sha13();
|
|
286215
|
-
exports2.sha224 = require_sha2243();
|
|
286216
|
-
exports2.sha256 = require_sha25610();
|
|
286217
|
-
exports2.sha384 = require_sha3843();
|
|
286218
|
-
exports2.sha512 = require_sha5127();
|
|
286219
|
-
}
|
|
286220
|
-
});
|
|
286221
|
-
|
|
286222
285380
|
// ../../node_modules/.pnpm/@keplr-wallet+crypto@0.9.10/node_modules/@keplr-wallet/crypto/build/hash.js
|
|
286223
|
-
var
|
|
285381
|
+
var require_hash7 = __commonJS({
|
|
286224
285382
|
"../../node_modules/.pnpm/@keplr-wallet+crypto@0.9.10/node_modules/@keplr-wallet/crypto/build/hash.js"(exports2) {
|
|
286225
285383
|
"use strict";
|
|
286226
285384
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
286227
285385
|
exports2.Hash = void 0;
|
|
286228
|
-
var sha_js_1 =
|
|
285386
|
+
var sha_js_1 = require_sha5();
|
|
286229
285387
|
var Hash4 = class {
|
|
286230
285388
|
static sha256(data12) {
|
|
286231
285389
|
return new Uint8Array(new sha_js_1.sha256().update(data12).digest());
|
|
@@ -286261,7 +285419,7 @@ var require_build7 = __commonJS({
|
|
|
286261
285419
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
286262
285420
|
__exportStar(require_mnemonic2(), exports2);
|
|
286263
285421
|
__exportStar(require_key4(), exports2);
|
|
286264
|
-
__exportStar(
|
|
285422
|
+
__exportStar(require_hash7(), exports2);
|
|
286265
285423
|
}
|
|
286266
285424
|
});
|
|
286267
285425
|
|
|
@@ -289061,7 +288219,7 @@ var require_utils25 = __commonJS({
|
|
|
289061
288219
|
});
|
|
289062
288220
|
|
|
289063
288221
|
// ../../node_modules/.pnpm/@cosmjs+crypto@0.31.3/node_modules/@cosmjs/crypto/build/sha.js
|
|
289064
|
-
var
|
|
288222
|
+
var require_sha7 = __commonJS({
|
|
289065
288223
|
"../../node_modules/.pnpm/@cosmjs+crypto@0.31.3/node_modules/@cosmjs/crypto/build/sha.js"(exports2) {
|
|
289066
288224
|
"use strict";
|
|
289067
288225
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
@@ -289122,7 +288280,7 @@ var require_bip392 = __commonJS({
|
|
|
289122
288280
|
exports2.Bip39 = exports2.EnglishMnemonic = exports2.mnemonicToEntropy = exports2.entropyToMnemonic = void 0;
|
|
289123
288281
|
var encoding_1 = require_build9();
|
|
289124
288282
|
var pbkdf2_1 = require_pbkdf24();
|
|
289125
|
-
var sha_1 =
|
|
288283
|
+
var sha_1 = require_sha7();
|
|
289126
288284
|
var wordlist26 = [
|
|
289127
288285
|
"abandon",
|
|
289128
288286
|
"ability",
|
|
@@ -299754,7 +298912,7 @@ var require_slip102 = __commonJS({
|
|
|
299754
298912
|
var bn_js_1 = __importDefault(require_bn3());
|
|
299755
298913
|
var elliptic_12 = __importDefault(require_elliptic());
|
|
299756
298914
|
var hmac_1 = require_hmac7();
|
|
299757
|
-
var sha_1 =
|
|
298915
|
+
var sha_1 = require_sha7();
|
|
299758
298916
|
var Slip10Curve;
|
|
299759
298917
|
(function(Slip10Curve2) {
|
|
299760
298918
|
Slip10Curve2["Secp256k1"] = "Bitcoin seed";
|
|
@@ -299971,7 +299129,7 @@ var require_build12 = __commonJS({
|
|
|
299971
299129
|
Object.defineProperty(exports2, "Secp256k1Signature", { enumerable: true, get: function() {
|
|
299972
299130
|
return secp256k1signature_1.Secp256k1Signature;
|
|
299973
299131
|
} });
|
|
299974
|
-
var sha_1 =
|
|
299132
|
+
var sha_1 = require_sha7();
|
|
299975
299133
|
Object.defineProperty(exports2, "Sha256", { enumerable: true, get: function() {
|
|
299976
299134
|
return sha_1.Sha256;
|
|
299977
299135
|
} });
|
|
@@ -352008,7 +351166,7 @@ var require_tokens = __commonJS({
|
|
|
352008
351166
|
});
|
|
352009
351167
|
|
|
352010
351168
|
// ../../node_modules/.pnpm/@multiversx+sdk-core@13.17.1_bignumber.js@9.1.2_protobufjs@7.3.2/node_modules/@multiversx/sdk-core/out/hash.js
|
|
352011
|
-
var
|
|
351169
|
+
var require_hash8 = __commonJS({
|
|
352012
351170
|
"../../node_modules/.pnpm/@multiversx+sdk-core@13.17.1_bignumber.js@9.1.2_protobufjs@7.3.2/node_modules/@multiversx/sdk-core/out/hash.js"(exports2) {
|
|
352013
351171
|
"use strict";
|
|
352014
351172
|
var __createBinding = exports2 && exports2.__createBinding || (Object.create ? function(o41, m61, k16, k22) {
|
|
@@ -354135,7 +353293,7 @@ var require_transaction3 = __commonJS({
|
|
|
354135
353293
|
var address_1 = require_address11();
|
|
354136
353294
|
var constants_1 = require_constants18();
|
|
354137
353295
|
var transactionsConverter_1 = require_transactionsConverter();
|
|
354138
|
-
var hash_1 =
|
|
353296
|
+
var hash_1 = require_hash8();
|
|
354139
353297
|
var networkParams_1 = require_networkParams();
|
|
354140
353298
|
var signature_1 = require_signature9();
|
|
354141
353299
|
var transactionComputer_1 = require_transactionComputer();
|
|
@@ -362994,7 +362152,7 @@ var require_u644 = __commonJS({
|
|
|
362994
362152
|
});
|
|
362995
362153
|
|
|
362996
362154
|
// ../../node_modules/.pnpm/@noble+hashes@1.3.0/node_modules/@noble/hashes/sha512.js
|
|
362997
|
-
var
|
|
362155
|
+
var require_sha5127 = __commonJS({
|
|
362998
362156
|
"../../node_modules/.pnpm/@noble+hashes@1.3.0/node_modules/@noble/hashes/sha512.js"(exports2) {
|
|
362999
362157
|
"use strict";
|
|
363000
362158
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
@@ -364882,7 +364040,7 @@ var require_userKeys = __commonJS({
|
|
|
364882
364040
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
364883
364041
|
exports2.UserPublicKey = exports2.UserSecretKey = exports2.USER_PUBKEY_LENGTH = exports2.USER_SEED_LENGTH = void 0;
|
|
364884
364042
|
var ed = __importStar(require_lib3());
|
|
364885
|
-
var sha512_1 =
|
|
364043
|
+
var sha512_1 = require_sha5127();
|
|
364886
364044
|
var address_1 = require_address11();
|
|
364887
364045
|
var assertions_1 = require_assertions();
|
|
364888
364046
|
var pem_1 = require_pem3();
|
|
@@ -368424,7 +367582,7 @@ var require_u645 = __commonJS({
|
|
|
368424
367582
|
});
|
|
368425
367583
|
|
|
368426
367584
|
// ../../node_modules/.pnpm/@noble+hashes@1.3.2/node_modules/@noble/hashes/sha512.js
|
|
368427
|
-
var
|
|
367585
|
+
var require_sha5128 = __commonJS({
|
|
368428
367586
|
"../../node_modules/.pnpm/@noble+hashes@1.3.2/node_modules/@noble/hashes/sha512.js"(exports2) {
|
|
368429
367587
|
"use strict";
|
|
368430
367588
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
@@ -370063,7 +369221,7 @@ var require_ed255192 = __commonJS({
|
|
|
370063
369221
|
"use strict";
|
|
370064
369222
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
370065
369223
|
exports2.hash_to_ristretto255 = exports2.hashToRistretto255 = exports2.RistrettoPoint = exports2.encodeToCurve = exports2.hashToCurve = exports2.edwardsToMontgomeryPriv = exports2.edwardsToMontgomery = exports2.edwardsToMontgomeryPub = exports2.x25519 = exports2.ed25519ph = exports2.ed25519ctx = exports2.ed25519 = exports2.ED25519_TORSION_SUBGROUP = void 0;
|
|
370066
|
-
var sha512_1 =
|
|
369224
|
+
var sha512_1 = require_sha5128();
|
|
370067
369225
|
var utils_12 = require_utils34();
|
|
370068
369226
|
var edwards_js_1 = require_edwards2();
|
|
370069
369227
|
var montgomery_js_1 = require_montgomery();
|
|
@@ -404803,7 +403961,7 @@ var require_ripemd1604 = __commonJS({
|
|
|
404803
403961
|
});
|
|
404804
403962
|
|
|
404805
403963
|
// ../../node_modules/.pnpm/@noble+hashes@1.1.5/node_modules/@noble/hashes/sha256.js
|
|
404806
|
-
var
|
|
403964
|
+
var require_sha25610 = __commonJS({
|
|
404807
403965
|
"../../node_modules/.pnpm/@noble+hashes@1.1.5/node_modules/@noble/hashes/sha256.js"(exports2) {
|
|
404808
403966
|
"use strict";
|
|
404809
403967
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
@@ -405056,7 +404214,7 @@ var require_u646 = __commonJS({
|
|
|
405056
404214
|
});
|
|
405057
404215
|
|
|
405058
404216
|
// ../../node_modules/.pnpm/@noble+hashes@1.1.5/node_modules/@noble/hashes/sha512.js
|
|
405059
|
-
var
|
|
404217
|
+
var require_sha5129 = __commonJS({
|
|
405060
404218
|
"../../node_modules/.pnpm/@noble+hashes@1.1.5/node_modules/@noble/hashes/sha512.js"(exports2) {
|
|
405061
404219
|
"use strict";
|
|
405062
404220
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
@@ -406921,7 +406079,7 @@ var require_keys3 = __commonJS({
|
|
|
406921
406079
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
406922
406080
|
exports2.publicKeyToAddress = exports2.privateKeyToString = exports2.getPublicKey = exports2.signMessageHashRsv = exports2.signWithKey = exports2.makeRandomPrivKey = exports2.createStacksPrivateKey = exports2.deserializePublicKey = exports2.uncompressPublicKey = exports2.compressPublicKey = exports2.pubKeyfromPrivKey = exports2.serializePublicKey = exports2.publicKeyToString = exports2.isCompressed = exports2.publicKeyFromBytes = exports2.publicKeyFromSignatureRsv = exports2.publicKeyFromSignatureVrs = exports2.createStacksPublicKey = exports2.getAddressFromPublicKey = exports2.getAddressFromPrivateKey = void 0;
|
|
406923
406081
|
var hmac_1 = require_hmac8();
|
|
406924
|
-
var sha256_1 =
|
|
406082
|
+
var sha256_1 = require_sha25610();
|
|
406925
406083
|
var secp256k1_1 = require_lib4();
|
|
406926
406084
|
var common_1 = (init_esm2(), __toCommonJS(esm_exports4));
|
|
406927
406085
|
var c32check_1 = require_lib58();
|
|
@@ -408192,8 +407350,8 @@ var require_utils40 = __commonJS({
|
|
|
408192
407350
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
408193
407351
|
exports2.validateTxId = exports2.validateStacksAddress = exports2.parseReadOnlyResponse = exports2.hexToCV = exports2.cvToHex = exports2.isClarityName = exports2.hashP2WSH = exports2.hashP2SH = exports2.hashP2WPKH = exports2.hashP2PKH = exports2.txidFromBytes = exports2.txidFromData = exports2.hash160 = exports2.omit = exports2.cloneDeep = exports2.exceedsMaxLengthBytes = exports2.rightPadHexToLength = exports2.leftPadHexToLength = exports2.leftPadHex = exports2.randomBytes = exports2.verifySignature = void 0;
|
|
408194
407352
|
var ripemd160_1 = require_ripemd1604();
|
|
408195
|
-
var sha256_1 =
|
|
408196
|
-
var sha512_1 =
|
|
407353
|
+
var sha256_1 = require_sha25610();
|
|
407354
|
+
var sha512_1 = require_sha5129();
|
|
408197
407355
|
var secp256k1_1 = require_lib4();
|
|
408198
407356
|
var common_1 = (init_esm2(), __toCommonJS(esm_exports4));
|
|
408199
407357
|
var c32check_1 = require_lib58();
|
|
@@ -410715,7 +409873,7 @@ var require_structuredDataSignature = __commonJS({
|
|
|
410715
409873
|
"use strict";
|
|
410716
409874
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
410717
409875
|
exports2.signStructuredData = exports2.decodeStructuredDataSignature = exports2.encodeStructuredData = exports2.hashStructuredData = exports2.STRUCTURED_DATA_PREFIX = void 0;
|
|
410718
|
-
var sha256_1 =
|
|
409876
|
+
var sha256_1 = require_sha25610();
|
|
410719
409877
|
var common_1 = (init_esm2(), __toCommonJS(esm_exports4));
|
|
410720
409878
|
var clarity_1 = require_clarity();
|
|
410721
409879
|
var constants_1 = require_constants26();
|
|
@@ -456033,7 +455191,7 @@ var init_decodeFunctionData = __esm({
|
|
|
456033
455191
|
});
|
|
456034
455192
|
|
|
456035
455193
|
// ../../node_modules/.pnpm/fast-sha256@1.3.0/node_modules/fast-sha256/sha256.js
|
|
456036
|
-
var
|
|
455194
|
+
var require_sha25611 = __commonJS({
|
|
456037
455195
|
"../../node_modules/.pnpm/fast-sha256@1.3.0/node_modules/fast-sha256/sha256.js"(exports2, module2) {
|
|
456038
455196
|
"use strict";
|
|
456039
455197
|
(function(root5, factory2) {
|
|
@@ -490938,7 +490096,7 @@ var require_random4 = __commonJS({
|
|
|
490938
490096
|
});
|
|
490939
490097
|
|
|
490940
490098
|
// ../../node_modules/.pnpm/@stablelib+sha512@1.0.1/node_modules/@stablelib/sha512/lib/sha512.js
|
|
490941
|
-
var
|
|
490099
|
+
var require_sha51210 = __commonJS({
|
|
490942
490100
|
"../../node_modules/.pnpm/@stablelib+sha512@1.0.1/node_modules/@stablelib/sha512/lib/sha512.js"(exports2) {
|
|
490943
490101
|
"use strict";
|
|
490944
490102
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
@@ -491563,7 +490721,7 @@ var require_ed255194 = __commonJS({
|
|
|
491563
490721
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
491564
490722
|
exports2.convertSecretKeyToX25519 = exports2.convertPublicKeyToX25519 = exports2.verify = exports2.sign = exports2.extractPublicKeyFromSecretKey = exports2.generateKeyPair = exports2.generateKeyPairFromSeed = exports2.SEED_LENGTH = exports2.SECRET_KEY_LENGTH = exports2.PUBLIC_KEY_LENGTH = exports2.SIGNATURE_LENGTH = void 0;
|
|
491565
490723
|
var random_1 = require_random4();
|
|
491566
|
-
var sha512_1 =
|
|
490724
|
+
var sha512_1 = require_sha51210();
|
|
491567
490725
|
var wipe_1 = require_wipe();
|
|
491568
490726
|
exports2.SIGNATURE_LENGTH = 64;
|
|
491569
490727
|
exports2.PUBLIC_KEY_LENGTH = 32;
|
|
@@ -496266,7 +495424,7 @@ var require_dist33 = __commonJS({
|
|
|
496266
495424
|
});
|
|
496267
495425
|
|
|
496268
495426
|
// ../../node_modules/.pnpm/ripple-binary-codec@1.11.0/node_modules/ripple-binary-codec/dist/types/hash.js
|
|
496269
|
-
var
|
|
495427
|
+
var require_hash9 = __commonJS({
|
|
496270
495428
|
"../../node_modules/.pnpm/ripple-binary-codec@1.11.0/node_modules/ripple-binary-codec/dist/types/hash.js"(exports2) {
|
|
496271
495429
|
"use strict";
|
|
496272
495430
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
@@ -496344,7 +495502,7 @@ var require_hash_160 = __commonJS({
|
|
|
496344
495502
|
"use strict";
|
|
496345
495503
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
496346
495504
|
exports2.Hash160 = void 0;
|
|
496347
|
-
var hash_1 =
|
|
495505
|
+
var hash_1 = require_hash9();
|
|
496348
495506
|
var buffer_1 = require_buffer();
|
|
496349
495507
|
var Hash160 = class _Hash160 extends hash_1.Hash {
|
|
496350
495508
|
constructor(bytes5) {
|
|
@@ -499337,7 +498495,7 @@ var require_hash_128 = __commonJS({
|
|
|
499337
498495
|
"use strict";
|
|
499338
498496
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
499339
498497
|
exports2.Hash128 = void 0;
|
|
499340
|
-
var hash_1 =
|
|
498498
|
+
var hash_1 = require_hash9();
|
|
499341
498499
|
var buffer_1 = require_buffer();
|
|
499342
498500
|
var Hash128 = class _Hash128 extends hash_1.Hash {
|
|
499343
498501
|
constructor(bytes5) {
|
|
@@ -499371,7 +498529,7 @@ var require_hash_256 = __commonJS({
|
|
|
499371
498529
|
"use strict";
|
|
499372
498530
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
499373
498531
|
exports2.Hash256 = void 0;
|
|
499374
|
-
var hash_1 =
|
|
498532
|
+
var hash_1 = require_hash9();
|
|
499375
498533
|
var buffer_1 = require_buffer();
|
|
499376
498534
|
var Hash256 = class _Hash256 extends hash_1.Hash {
|
|
499377
498535
|
constructor(bytes5) {
|
|
@@ -501725,7 +500883,7 @@ var require_wrapCryptoCreateHash = __commonJS({
|
|
|
501725
500883
|
});
|
|
501726
500884
|
|
|
501727
500885
|
// ../../node_modules/.pnpm/@xrplf+isomorphic@1.0.0/node_modules/@xrplf/isomorphic/dist/sha256/index.js
|
|
501728
|
-
var
|
|
500886
|
+
var require_sha25612 = __commonJS({
|
|
501729
500887
|
"../../node_modules/.pnpm/@xrplf+isomorphic@1.0.0/node_modules/@xrplf/isomorphic/dist/sha256/index.js"(exports2) {
|
|
501730
500888
|
"use strict";
|
|
501731
500889
|
var __importDefault = exports2 && exports2.__importDefault || function(mod5) {
|
|
@@ -501771,7 +500929,7 @@ var require_xrp_codec2 = __commonJS({
|
|
|
501771
500929
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
501772
500930
|
exports2.isValidClassicAddress = exports2.decodeAccountPublic = exports2.encodeAccountPublic = exports2.encodeNodePublic = exports2.decodeNodePublic = exports2.decodeAddress = exports2.decodeAccountID = exports2.encodeAddress = exports2.encodeAccountID = exports2.decodeSeed = exports2.encodeSeed = exports2.codec = void 0;
|
|
501773
500931
|
var base_1 = require_lib62();
|
|
501774
|
-
var sha256_1 =
|
|
500932
|
+
var sha256_1 = require_sha25612();
|
|
501775
500933
|
var utils_12 = require_utils46();
|
|
501776
500934
|
var Codec2 = class {
|
|
501777
500935
|
constructor(options24) {
|
|
@@ -516458,6 +515616,848 @@ var require_constants32 = __commonJS({
|
|
|
516458
515616
|
}
|
|
516459
515617
|
});
|
|
516460
515618
|
|
|
515619
|
+
// ../../node_modules/.pnpm/sha.js@2.4.11/node_modules/sha.js/hash.js
|
|
515620
|
+
var require_hash10 = __commonJS({
|
|
515621
|
+
"../../node_modules/.pnpm/sha.js@2.4.11/node_modules/sha.js/hash.js"(exports2, module2) {
|
|
515622
|
+
"use strict";
|
|
515623
|
+
var Buffer7 = require_safe_buffer().Buffer;
|
|
515624
|
+
function Hash4(blockSize, finalSize) {
|
|
515625
|
+
this._block = Buffer7.alloc(blockSize);
|
|
515626
|
+
this._finalSize = finalSize;
|
|
515627
|
+
this._blockSize = blockSize;
|
|
515628
|
+
this._len = 0;
|
|
515629
|
+
}
|
|
515630
|
+
Hash4.prototype.update = function(data12, enc) {
|
|
515631
|
+
if (typeof data12 === "string") {
|
|
515632
|
+
enc = enc || "utf8";
|
|
515633
|
+
data12 = Buffer7.from(data12, enc);
|
|
515634
|
+
}
|
|
515635
|
+
var block2 = this._block;
|
|
515636
|
+
var blockSize = this._blockSize;
|
|
515637
|
+
var length2 = data12.length;
|
|
515638
|
+
var accum = this._len;
|
|
515639
|
+
for (var offset2 = 0; offset2 < length2; ) {
|
|
515640
|
+
var assigned = accum % blockSize;
|
|
515641
|
+
var remainder = Math.min(length2 - offset2, blockSize - assigned);
|
|
515642
|
+
for (var i57 = 0; i57 < remainder; i57++) {
|
|
515643
|
+
block2[assigned + i57] = data12[offset2 + i57];
|
|
515644
|
+
}
|
|
515645
|
+
accum += remainder;
|
|
515646
|
+
offset2 += remainder;
|
|
515647
|
+
if (accum % blockSize === 0) {
|
|
515648
|
+
this._update(block2);
|
|
515649
|
+
}
|
|
515650
|
+
}
|
|
515651
|
+
this._len += length2;
|
|
515652
|
+
return this;
|
|
515653
|
+
};
|
|
515654
|
+
Hash4.prototype.digest = function(enc) {
|
|
515655
|
+
var rem = this._len % this._blockSize;
|
|
515656
|
+
this._block[rem] = 128;
|
|
515657
|
+
this._block.fill(0, rem + 1);
|
|
515658
|
+
if (rem >= this._finalSize) {
|
|
515659
|
+
this._update(this._block);
|
|
515660
|
+
this._block.fill(0);
|
|
515661
|
+
}
|
|
515662
|
+
var bits2 = this._len * 8;
|
|
515663
|
+
if (bits2 <= 4294967295) {
|
|
515664
|
+
this._block.writeUInt32BE(bits2, this._blockSize - 4);
|
|
515665
|
+
} else {
|
|
515666
|
+
var lowBits = (bits2 & 4294967295) >>> 0;
|
|
515667
|
+
var highBits = (bits2 - lowBits) / 4294967296;
|
|
515668
|
+
this._block.writeUInt32BE(highBits, this._blockSize - 8);
|
|
515669
|
+
this._block.writeUInt32BE(lowBits, this._blockSize - 4);
|
|
515670
|
+
}
|
|
515671
|
+
this._update(this._block);
|
|
515672
|
+
var hash9 = this._hash();
|
|
515673
|
+
return enc ? hash9.toString(enc) : hash9;
|
|
515674
|
+
};
|
|
515675
|
+
Hash4.prototype._update = function() {
|
|
515676
|
+
throw new Error("_update must be implemented by subclass");
|
|
515677
|
+
};
|
|
515678
|
+
module2.exports = Hash4;
|
|
515679
|
+
}
|
|
515680
|
+
});
|
|
515681
|
+
|
|
515682
|
+
// ../../node_modules/.pnpm/sha.js@2.4.11/node_modules/sha.js/sha.js
|
|
515683
|
+
var require_sha8 = __commonJS({
|
|
515684
|
+
"../../node_modules/.pnpm/sha.js@2.4.11/node_modules/sha.js/sha.js"(exports2, module2) {
|
|
515685
|
+
"use strict";
|
|
515686
|
+
var inherits4 = require_inherits();
|
|
515687
|
+
var Hash4 = require_hash10();
|
|
515688
|
+
var Buffer7 = require_safe_buffer().Buffer;
|
|
515689
|
+
var K10 = [
|
|
515690
|
+
1518500249,
|
|
515691
|
+
1859775393,
|
|
515692
|
+
2400959708 | 0,
|
|
515693
|
+
3395469782 | 0
|
|
515694
|
+
];
|
|
515695
|
+
var W11 = new Array(80);
|
|
515696
|
+
function Sha() {
|
|
515697
|
+
this.init();
|
|
515698
|
+
this._w = W11;
|
|
515699
|
+
Hash4.call(this, 64, 56);
|
|
515700
|
+
}
|
|
515701
|
+
inherits4(Sha, Hash4);
|
|
515702
|
+
Sha.prototype.init = function() {
|
|
515703
|
+
this._a = 1732584193;
|
|
515704
|
+
this._b = 4023233417;
|
|
515705
|
+
this._c = 2562383102;
|
|
515706
|
+
this._d = 271733878;
|
|
515707
|
+
this._e = 3285377520;
|
|
515708
|
+
return this;
|
|
515709
|
+
};
|
|
515710
|
+
function rotl52(num) {
|
|
515711
|
+
return num << 5 | num >>> 27;
|
|
515712
|
+
}
|
|
515713
|
+
function rotl30(num) {
|
|
515714
|
+
return num << 30 | num >>> 2;
|
|
515715
|
+
}
|
|
515716
|
+
function ft3(s54, b21, c59, d58) {
|
|
515717
|
+
if (s54 === 0)
|
|
515718
|
+
return b21 & c59 | ~b21 & d58;
|
|
515719
|
+
if (s54 === 2)
|
|
515720
|
+
return b21 & c59 | b21 & d58 | c59 & d58;
|
|
515721
|
+
return b21 ^ c59 ^ d58;
|
|
515722
|
+
}
|
|
515723
|
+
Sha.prototype._update = function(M14) {
|
|
515724
|
+
var W12 = this._w;
|
|
515725
|
+
var a67 = this._a | 0;
|
|
515726
|
+
var b21 = this._b | 0;
|
|
515727
|
+
var c59 = this._c | 0;
|
|
515728
|
+
var d58 = this._d | 0;
|
|
515729
|
+
var e35 = this._e | 0;
|
|
515730
|
+
for (var i57 = 0; i57 < 16; ++i57)
|
|
515731
|
+
W12[i57] = M14.readInt32BE(i57 * 4);
|
|
515732
|
+
for (; i57 < 80; ++i57)
|
|
515733
|
+
W12[i57] = W12[i57 - 3] ^ W12[i57 - 8] ^ W12[i57 - 14] ^ W12[i57 - 16];
|
|
515734
|
+
for (var j10 = 0; j10 < 80; ++j10) {
|
|
515735
|
+
var s54 = ~~(j10 / 20);
|
|
515736
|
+
var t45 = rotl52(a67) + ft3(s54, b21, c59, d58) + e35 + W12[j10] + K10[s54] | 0;
|
|
515737
|
+
e35 = d58;
|
|
515738
|
+
d58 = c59;
|
|
515739
|
+
c59 = rotl30(b21);
|
|
515740
|
+
b21 = a67;
|
|
515741
|
+
a67 = t45;
|
|
515742
|
+
}
|
|
515743
|
+
this._a = a67 + this._a | 0;
|
|
515744
|
+
this._b = b21 + this._b | 0;
|
|
515745
|
+
this._c = c59 + this._c | 0;
|
|
515746
|
+
this._d = d58 + this._d | 0;
|
|
515747
|
+
this._e = e35 + this._e | 0;
|
|
515748
|
+
};
|
|
515749
|
+
Sha.prototype._hash = function() {
|
|
515750
|
+
var H13 = Buffer7.allocUnsafe(20);
|
|
515751
|
+
H13.writeInt32BE(this._a | 0, 0);
|
|
515752
|
+
H13.writeInt32BE(this._b | 0, 4);
|
|
515753
|
+
H13.writeInt32BE(this._c | 0, 8);
|
|
515754
|
+
H13.writeInt32BE(this._d | 0, 12);
|
|
515755
|
+
H13.writeInt32BE(this._e | 0, 16);
|
|
515756
|
+
return H13;
|
|
515757
|
+
};
|
|
515758
|
+
module2.exports = Sha;
|
|
515759
|
+
}
|
|
515760
|
+
});
|
|
515761
|
+
|
|
515762
|
+
// ../../node_modules/.pnpm/sha.js@2.4.11/node_modules/sha.js/sha1.js
|
|
515763
|
+
var require_sha13 = __commonJS({
|
|
515764
|
+
"../../node_modules/.pnpm/sha.js@2.4.11/node_modules/sha.js/sha1.js"(exports2, module2) {
|
|
515765
|
+
"use strict";
|
|
515766
|
+
var inherits4 = require_inherits();
|
|
515767
|
+
var Hash4 = require_hash10();
|
|
515768
|
+
var Buffer7 = require_safe_buffer().Buffer;
|
|
515769
|
+
var K10 = [
|
|
515770
|
+
1518500249,
|
|
515771
|
+
1859775393,
|
|
515772
|
+
2400959708 | 0,
|
|
515773
|
+
3395469782 | 0
|
|
515774
|
+
];
|
|
515775
|
+
var W11 = new Array(80);
|
|
515776
|
+
function Sha1() {
|
|
515777
|
+
this.init();
|
|
515778
|
+
this._w = W11;
|
|
515779
|
+
Hash4.call(this, 64, 56);
|
|
515780
|
+
}
|
|
515781
|
+
inherits4(Sha1, Hash4);
|
|
515782
|
+
Sha1.prototype.init = function() {
|
|
515783
|
+
this._a = 1732584193;
|
|
515784
|
+
this._b = 4023233417;
|
|
515785
|
+
this._c = 2562383102;
|
|
515786
|
+
this._d = 271733878;
|
|
515787
|
+
this._e = 3285377520;
|
|
515788
|
+
return this;
|
|
515789
|
+
};
|
|
515790
|
+
function rotl1(num) {
|
|
515791
|
+
return num << 1 | num >>> 31;
|
|
515792
|
+
}
|
|
515793
|
+
function rotl52(num) {
|
|
515794
|
+
return num << 5 | num >>> 27;
|
|
515795
|
+
}
|
|
515796
|
+
function rotl30(num) {
|
|
515797
|
+
return num << 30 | num >>> 2;
|
|
515798
|
+
}
|
|
515799
|
+
function ft3(s54, b21, c59, d58) {
|
|
515800
|
+
if (s54 === 0)
|
|
515801
|
+
return b21 & c59 | ~b21 & d58;
|
|
515802
|
+
if (s54 === 2)
|
|
515803
|
+
return b21 & c59 | b21 & d58 | c59 & d58;
|
|
515804
|
+
return b21 ^ c59 ^ d58;
|
|
515805
|
+
}
|
|
515806
|
+
Sha1.prototype._update = function(M14) {
|
|
515807
|
+
var W12 = this._w;
|
|
515808
|
+
var a67 = this._a | 0;
|
|
515809
|
+
var b21 = this._b | 0;
|
|
515810
|
+
var c59 = this._c | 0;
|
|
515811
|
+
var d58 = this._d | 0;
|
|
515812
|
+
var e35 = this._e | 0;
|
|
515813
|
+
for (var i57 = 0; i57 < 16; ++i57)
|
|
515814
|
+
W12[i57] = M14.readInt32BE(i57 * 4);
|
|
515815
|
+
for (; i57 < 80; ++i57)
|
|
515816
|
+
W12[i57] = rotl1(W12[i57 - 3] ^ W12[i57 - 8] ^ W12[i57 - 14] ^ W12[i57 - 16]);
|
|
515817
|
+
for (var j10 = 0; j10 < 80; ++j10) {
|
|
515818
|
+
var s54 = ~~(j10 / 20);
|
|
515819
|
+
var t45 = rotl52(a67) + ft3(s54, b21, c59, d58) + e35 + W12[j10] + K10[s54] | 0;
|
|
515820
|
+
e35 = d58;
|
|
515821
|
+
d58 = c59;
|
|
515822
|
+
c59 = rotl30(b21);
|
|
515823
|
+
b21 = a67;
|
|
515824
|
+
a67 = t45;
|
|
515825
|
+
}
|
|
515826
|
+
this._a = a67 + this._a | 0;
|
|
515827
|
+
this._b = b21 + this._b | 0;
|
|
515828
|
+
this._c = c59 + this._c | 0;
|
|
515829
|
+
this._d = d58 + this._d | 0;
|
|
515830
|
+
this._e = e35 + this._e | 0;
|
|
515831
|
+
};
|
|
515832
|
+
Sha1.prototype._hash = function() {
|
|
515833
|
+
var H13 = Buffer7.allocUnsafe(20);
|
|
515834
|
+
H13.writeInt32BE(this._a | 0, 0);
|
|
515835
|
+
H13.writeInt32BE(this._b | 0, 4);
|
|
515836
|
+
H13.writeInt32BE(this._c | 0, 8);
|
|
515837
|
+
H13.writeInt32BE(this._d | 0, 12);
|
|
515838
|
+
H13.writeInt32BE(this._e | 0, 16);
|
|
515839
|
+
return H13;
|
|
515840
|
+
};
|
|
515841
|
+
module2.exports = Sha1;
|
|
515842
|
+
}
|
|
515843
|
+
});
|
|
515844
|
+
|
|
515845
|
+
// ../../node_modules/.pnpm/sha.js@2.4.11/node_modules/sha.js/sha256.js
|
|
515846
|
+
var require_sha25613 = __commonJS({
|
|
515847
|
+
"../../node_modules/.pnpm/sha.js@2.4.11/node_modules/sha.js/sha256.js"(exports2, module2) {
|
|
515848
|
+
"use strict";
|
|
515849
|
+
var inherits4 = require_inherits();
|
|
515850
|
+
var Hash4 = require_hash10();
|
|
515851
|
+
var Buffer7 = require_safe_buffer().Buffer;
|
|
515852
|
+
var K10 = [
|
|
515853
|
+
1116352408,
|
|
515854
|
+
1899447441,
|
|
515855
|
+
3049323471,
|
|
515856
|
+
3921009573,
|
|
515857
|
+
961987163,
|
|
515858
|
+
1508970993,
|
|
515859
|
+
2453635748,
|
|
515860
|
+
2870763221,
|
|
515861
|
+
3624381080,
|
|
515862
|
+
310598401,
|
|
515863
|
+
607225278,
|
|
515864
|
+
1426881987,
|
|
515865
|
+
1925078388,
|
|
515866
|
+
2162078206,
|
|
515867
|
+
2614888103,
|
|
515868
|
+
3248222580,
|
|
515869
|
+
3835390401,
|
|
515870
|
+
4022224774,
|
|
515871
|
+
264347078,
|
|
515872
|
+
604807628,
|
|
515873
|
+
770255983,
|
|
515874
|
+
1249150122,
|
|
515875
|
+
1555081692,
|
|
515876
|
+
1996064986,
|
|
515877
|
+
2554220882,
|
|
515878
|
+
2821834349,
|
|
515879
|
+
2952996808,
|
|
515880
|
+
3210313671,
|
|
515881
|
+
3336571891,
|
|
515882
|
+
3584528711,
|
|
515883
|
+
113926993,
|
|
515884
|
+
338241895,
|
|
515885
|
+
666307205,
|
|
515886
|
+
773529912,
|
|
515887
|
+
1294757372,
|
|
515888
|
+
1396182291,
|
|
515889
|
+
1695183700,
|
|
515890
|
+
1986661051,
|
|
515891
|
+
2177026350,
|
|
515892
|
+
2456956037,
|
|
515893
|
+
2730485921,
|
|
515894
|
+
2820302411,
|
|
515895
|
+
3259730800,
|
|
515896
|
+
3345764771,
|
|
515897
|
+
3516065817,
|
|
515898
|
+
3600352804,
|
|
515899
|
+
4094571909,
|
|
515900
|
+
275423344,
|
|
515901
|
+
430227734,
|
|
515902
|
+
506948616,
|
|
515903
|
+
659060556,
|
|
515904
|
+
883997877,
|
|
515905
|
+
958139571,
|
|
515906
|
+
1322822218,
|
|
515907
|
+
1537002063,
|
|
515908
|
+
1747873779,
|
|
515909
|
+
1955562222,
|
|
515910
|
+
2024104815,
|
|
515911
|
+
2227730452,
|
|
515912
|
+
2361852424,
|
|
515913
|
+
2428436474,
|
|
515914
|
+
2756734187,
|
|
515915
|
+
3204031479,
|
|
515916
|
+
3329325298
|
|
515917
|
+
];
|
|
515918
|
+
var W11 = new Array(64);
|
|
515919
|
+
function Sha2562() {
|
|
515920
|
+
this.init();
|
|
515921
|
+
this._w = W11;
|
|
515922
|
+
Hash4.call(this, 64, 56);
|
|
515923
|
+
}
|
|
515924
|
+
inherits4(Sha2562, Hash4);
|
|
515925
|
+
Sha2562.prototype.init = function() {
|
|
515926
|
+
this._a = 1779033703;
|
|
515927
|
+
this._b = 3144134277;
|
|
515928
|
+
this._c = 1013904242;
|
|
515929
|
+
this._d = 2773480762;
|
|
515930
|
+
this._e = 1359893119;
|
|
515931
|
+
this._f = 2600822924;
|
|
515932
|
+
this._g = 528734635;
|
|
515933
|
+
this._h = 1541459225;
|
|
515934
|
+
return this;
|
|
515935
|
+
};
|
|
515936
|
+
function ch(x22, y43, z11) {
|
|
515937
|
+
return z11 ^ x22 & (y43 ^ z11);
|
|
515938
|
+
}
|
|
515939
|
+
function maj(x22, y43, z11) {
|
|
515940
|
+
return x22 & y43 | z11 & (x22 | y43);
|
|
515941
|
+
}
|
|
515942
|
+
function sigma0(x22) {
|
|
515943
|
+
return (x22 >>> 2 | x22 << 30) ^ (x22 >>> 13 | x22 << 19) ^ (x22 >>> 22 | x22 << 10);
|
|
515944
|
+
}
|
|
515945
|
+
function sigma1(x22) {
|
|
515946
|
+
return (x22 >>> 6 | x22 << 26) ^ (x22 >>> 11 | x22 << 21) ^ (x22 >>> 25 | x22 << 7);
|
|
515947
|
+
}
|
|
515948
|
+
function gamma0(x22) {
|
|
515949
|
+
return (x22 >>> 7 | x22 << 25) ^ (x22 >>> 18 | x22 << 14) ^ x22 >>> 3;
|
|
515950
|
+
}
|
|
515951
|
+
function gamma1(x22) {
|
|
515952
|
+
return (x22 >>> 17 | x22 << 15) ^ (x22 >>> 19 | x22 << 13) ^ x22 >>> 10;
|
|
515953
|
+
}
|
|
515954
|
+
Sha2562.prototype._update = function(M14) {
|
|
515955
|
+
var W12 = this._w;
|
|
515956
|
+
var a67 = this._a | 0;
|
|
515957
|
+
var b21 = this._b | 0;
|
|
515958
|
+
var c59 = this._c | 0;
|
|
515959
|
+
var d58 = this._d | 0;
|
|
515960
|
+
var e35 = this._e | 0;
|
|
515961
|
+
var f48 = this._f | 0;
|
|
515962
|
+
var g54 = this._g | 0;
|
|
515963
|
+
var h40 = this._h | 0;
|
|
515964
|
+
for (var i57 = 0; i57 < 16; ++i57)
|
|
515965
|
+
W12[i57] = M14.readInt32BE(i57 * 4);
|
|
515966
|
+
for (; i57 < 64; ++i57)
|
|
515967
|
+
W12[i57] = gamma1(W12[i57 - 2]) + W12[i57 - 7] + gamma0(W12[i57 - 15]) + W12[i57 - 16] | 0;
|
|
515968
|
+
for (var j10 = 0; j10 < 64; ++j10) {
|
|
515969
|
+
var T110 = h40 + sigma1(e35) + ch(e35, f48, g54) + K10[j10] + W12[j10] | 0;
|
|
515970
|
+
var T29 = sigma0(a67) + maj(a67, b21, c59) | 0;
|
|
515971
|
+
h40 = g54;
|
|
515972
|
+
g54 = f48;
|
|
515973
|
+
f48 = e35;
|
|
515974
|
+
e35 = d58 + T110 | 0;
|
|
515975
|
+
d58 = c59;
|
|
515976
|
+
c59 = b21;
|
|
515977
|
+
b21 = a67;
|
|
515978
|
+
a67 = T110 + T29 | 0;
|
|
515979
|
+
}
|
|
515980
|
+
this._a = a67 + this._a | 0;
|
|
515981
|
+
this._b = b21 + this._b | 0;
|
|
515982
|
+
this._c = c59 + this._c | 0;
|
|
515983
|
+
this._d = d58 + this._d | 0;
|
|
515984
|
+
this._e = e35 + this._e | 0;
|
|
515985
|
+
this._f = f48 + this._f | 0;
|
|
515986
|
+
this._g = g54 + this._g | 0;
|
|
515987
|
+
this._h = h40 + this._h | 0;
|
|
515988
|
+
};
|
|
515989
|
+
Sha2562.prototype._hash = function() {
|
|
515990
|
+
var H13 = Buffer7.allocUnsafe(32);
|
|
515991
|
+
H13.writeInt32BE(this._a, 0);
|
|
515992
|
+
H13.writeInt32BE(this._b, 4);
|
|
515993
|
+
H13.writeInt32BE(this._c, 8);
|
|
515994
|
+
H13.writeInt32BE(this._d, 12);
|
|
515995
|
+
H13.writeInt32BE(this._e, 16);
|
|
515996
|
+
H13.writeInt32BE(this._f, 20);
|
|
515997
|
+
H13.writeInt32BE(this._g, 24);
|
|
515998
|
+
H13.writeInt32BE(this._h, 28);
|
|
515999
|
+
return H13;
|
|
516000
|
+
};
|
|
516001
|
+
module2.exports = Sha2562;
|
|
516002
|
+
}
|
|
516003
|
+
});
|
|
516004
|
+
|
|
516005
|
+
// ../../node_modules/.pnpm/sha.js@2.4.11/node_modules/sha.js/sha224.js
|
|
516006
|
+
var require_sha2243 = __commonJS({
|
|
516007
|
+
"../../node_modules/.pnpm/sha.js@2.4.11/node_modules/sha.js/sha224.js"(exports2, module2) {
|
|
516008
|
+
"use strict";
|
|
516009
|
+
var inherits4 = require_inherits();
|
|
516010
|
+
var Sha2562 = require_sha25613();
|
|
516011
|
+
var Hash4 = require_hash10();
|
|
516012
|
+
var Buffer7 = require_safe_buffer().Buffer;
|
|
516013
|
+
var W11 = new Array(64);
|
|
516014
|
+
function Sha224() {
|
|
516015
|
+
this.init();
|
|
516016
|
+
this._w = W11;
|
|
516017
|
+
Hash4.call(this, 64, 56);
|
|
516018
|
+
}
|
|
516019
|
+
inherits4(Sha224, Sha2562);
|
|
516020
|
+
Sha224.prototype.init = function() {
|
|
516021
|
+
this._a = 3238371032;
|
|
516022
|
+
this._b = 914150663;
|
|
516023
|
+
this._c = 812702999;
|
|
516024
|
+
this._d = 4144912697;
|
|
516025
|
+
this._e = 4290775857;
|
|
516026
|
+
this._f = 1750603025;
|
|
516027
|
+
this._g = 1694076839;
|
|
516028
|
+
this._h = 3204075428;
|
|
516029
|
+
return this;
|
|
516030
|
+
};
|
|
516031
|
+
Sha224.prototype._hash = function() {
|
|
516032
|
+
var H13 = Buffer7.allocUnsafe(28);
|
|
516033
|
+
H13.writeInt32BE(this._a, 0);
|
|
516034
|
+
H13.writeInt32BE(this._b, 4);
|
|
516035
|
+
H13.writeInt32BE(this._c, 8);
|
|
516036
|
+
H13.writeInt32BE(this._d, 12);
|
|
516037
|
+
H13.writeInt32BE(this._e, 16);
|
|
516038
|
+
H13.writeInt32BE(this._f, 20);
|
|
516039
|
+
H13.writeInt32BE(this._g, 24);
|
|
516040
|
+
return H13;
|
|
516041
|
+
};
|
|
516042
|
+
module2.exports = Sha224;
|
|
516043
|
+
}
|
|
516044
|
+
});
|
|
516045
|
+
|
|
516046
|
+
// ../../node_modules/.pnpm/sha.js@2.4.11/node_modules/sha.js/sha512.js
|
|
516047
|
+
var require_sha51211 = __commonJS({
|
|
516048
|
+
"../../node_modules/.pnpm/sha.js@2.4.11/node_modules/sha.js/sha512.js"(exports2, module2) {
|
|
516049
|
+
"use strict";
|
|
516050
|
+
var inherits4 = require_inherits();
|
|
516051
|
+
var Hash4 = require_hash10();
|
|
516052
|
+
var Buffer7 = require_safe_buffer().Buffer;
|
|
516053
|
+
var K10 = [
|
|
516054
|
+
1116352408,
|
|
516055
|
+
3609767458,
|
|
516056
|
+
1899447441,
|
|
516057
|
+
602891725,
|
|
516058
|
+
3049323471,
|
|
516059
|
+
3964484399,
|
|
516060
|
+
3921009573,
|
|
516061
|
+
2173295548,
|
|
516062
|
+
961987163,
|
|
516063
|
+
4081628472,
|
|
516064
|
+
1508970993,
|
|
516065
|
+
3053834265,
|
|
516066
|
+
2453635748,
|
|
516067
|
+
2937671579,
|
|
516068
|
+
2870763221,
|
|
516069
|
+
3664609560,
|
|
516070
|
+
3624381080,
|
|
516071
|
+
2734883394,
|
|
516072
|
+
310598401,
|
|
516073
|
+
1164996542,
|
|
516074
|
+
607225278,
|
|
516075
|
+
1323610764,
|
|
516076
|
+
1426881987,
|
|
516077
|
+
3590304994,
|
|
516078
|
+
1925078388,
|
|
516079
|
+
4068182383,
|
|
516080
|
+
2162078206,
|
|
516081
|
+
991336113,
|
|
516082
|
+
2614888103,
|
|
516083
|
+
633803317,
|
|
516084
|
+
3248222580,
|
|
516085
|
+
3479774868,
|
|
516086
|
+
3835390401,
|
|
516087
|
+
2666613458,
|
|
516088
|
+
4022224774,
|
|
516089
|
+
944711139,
|
|
516090
|
+
264347078,
|
|
516091
|
+
2341262773,
|
|
516092
|
+
604807628,
|
|
516093
|
+
2007800933,
|
|
516094
|
+
770255983,
|
|
516095
|
+
1495990901,
|
|
516096
|
+
1249150122,
|
|
516097
|
+
1856431235,
|
|
516098
|
+
1555081692,
|
|
516099
|
+
3175218132,
|
|
516100
|
+
1996064986,
|
|
516101
|
+
2198950837,
|
|
516102
|
+
2554220882,
|
|
516103
|
+
3999719339,
|
|
516104
|
+
2821834349,
|
|
516105
|
+
766784016,
|
|
516106
|
+
2952996808,
|
|
516107
|
+
2566594879,
|
|
516108
|
+
3210313671,
|
|
516109
|
+
3203337956,
|
|
516110
|
+
3336571891,
|
|
516111
|
+
1034457026,
|
|
516112
|
+
3584528711,
|
|
516113
|
+
2466948901,
|
|
516114
|
+
113926993,
|
|
516115
|
+
3758326383,
|
|
516116
|
+
338241895,
|
|
516117
|
+
168717936,
|
|
516118
|
+
666307205,
|
|
516119
|
+
1188179964,
|
|
516120
|
+
773529912,
|
|
516121
|
+
1546045734,
|
|
516122
|
+
1294757372,
|
|
516123
|
+
1522805485,
|
|
516124
|
+
1396182291,
|
|
516125
|
+
2643833823,
|
|
516126
|
+
1695183700,
|
|
516127
|
+
2343527390,
|
|
516128
|
+
1986661051,
|
|
516129
|
+
1014477480,
|
|
516130
|
+
2177026350,
|
|
516131
|
+
1206759142,
|
|
516132
|
+
2456956037,
|
|
516133
|
+
344077627,
|
|
516134
|
+
2730485921,
|
|
516135
|
+
1290863460,
|
|
516136
|
+
2820302411,
|
|
516137
|
+
3158454273,
|
|
516138
|
+
3259730800,
|
|
516139
|
+
3505952657,
|
|
516140
|
+
3345764771,
|
|
516141
|
+
106217008,
|
|
516142
|
+
3516065817,
|
|
516143
|
+
3606008344,
|
|
516144
|
+
3600352804,
|
|
516145
|
+
1432725776,
|
|
516146
|
+
4094571909,
|
|
516147
|
+
1467031594,
|
|
516148
|
+
275423344,
|
|
516149
|
+
851169720,
|
|
516150
|
+
430227734,
|
|
516151
|
+
3100823752,
|
|
516152
|
+
506948616,
|
|
516153
|
+
1363258195,
|
|
516154
|
+
659060556,
|
|
516155
|
+
3750685593,
|
|
516156
|
+
883997877,
|
|
516157
|
+
3785050280,
|
|
516158
|
+
958139571,
|
|
516159
|
+
3318307427,
|
|
516160
|
+
1322822218,
|
|
516161
|
+
3812723403,
|
|
516162
|
+
1537002063,
|
|
516163
|
+
2003034995,
|
|
516164
|
+
1747873779,
|
|
516165
|
+
3602036899,
|
|
516166
|
+
1955562222,
|
|
516167
|
+
1575990012,
|
|
516168
|
+
2024104815,
|
|
516169
|
+
1125592928,
|
|
516170
|
+
2227730452,
|
|
516171
|
+
2716904306,
|
|
516172
|
+
2361852424,
|
|
516173
|
+
442776044,
|
|
516174
|
+
2428436474,
|
|
516175
|
+
593698344,
|
|
516176
|
+
2756734187,
|
|
516177
|
+
3733110249,
|
|
516178
|
+
3204031479,
|
|
516179
|
+
2999351573,
|
|
516180
|
+
3329325298,
|
|
516181
|
+
3815920427,
|
|
516182
|
+
3391569614,
|
|
516183
|
+
3928383900,
|
|
516184
|
+
3515267271,
|
|
516185
|
+
566280711,
|
|
516186
|
+
3940187606,
|
|
516187
|
+
3454069534,
|
|
516188
|
+
4118630271,
|
|
516189
|
+
4000239992,
|
|
516190
|
+
116418474,
|
|
516191
|
+
1914138554,
|
|
516192
|
+
174292421,
|
|
516193
|
+
2731055270,
|
|
516194
|
+
289380356,
|
|
516195
|
+
3203993006,
|
|
516196
|
+
460393269,
|
|
516197
|
+
320620315,
|
|
516198
|
+
685471733,
|
|
516199
|
+
587496836,
|
|
516200
|
+
852142971,
|
|
516201
|
+
1086792851,
|
|
516202
|
+
1017036298,
|
|
516203
|
+
365543100,
|
|
516204
|
+
1126000580,
|
|
516205
|
+
2618297676,
|
|
516206
|
+
1288033470,
|
|
516207
|
+
3409855158,
|
|
516208
|
+
1501505948,
|
|
516209
|
+
4234509866,
|
|
516210
|
+
1607167915,
|
|
516211
|
+
987167468,
|
|
516212
|
+
1816402316,
|
|
516213
|
+
1246189591
|
|
516214
|
+
];
|
|
516215
|
+
var W11 = new Array(160);
|
|
516216
|
+
function Sha512() {
|
|
516217
|
+
this.init();
|
|
516218
|
+
this._w = W11;
|
|
516219
|
+
Hash4.call(this, 128, 112);
|
|
516220
|
+
}
|
|
516221
|
+
inherits4(Sha512, Hash4);
|
|
516222
|
+
Sha512.prototype.init = function() {
|
|
516223
|
+
this._ah = 1779033703;
|
|
516224
|
+
this._bh = 3144134277;
|
|
516225
|
+
this._ch = 1013904242;
|
|
516226
|
+
this._dh = 2773480762;
|
|
516227
|
+
this._eh = 1359893119;
|
|
516228
|
+
this._fh = 2600822924;
|
|
516229
|
+
this._gh = 528734635;
|
|
516230
|
+
this._hh = 1541459225;
|
|
516231
|
+
this._al = 4089235720;
|
|
516232
|
+
this._bl = 2227873595;
|
|
516233
|
+
this._cl = 4271175723;
|
|
516234
|
+
this._dl = 1595750129;
|
|
516235
|
+
this._el = 2917565137;
|
|
516236
|
+
this._fl = 725511199;
|
|
516237
|
+
this._gl = 4215389547;
|
|
516238
|
+
this._hl = 327033209;
|
|
516239
|
+
return this;
|
|
516240
|
+
};
|
|
516241
|
+
function Ch(x22, y43, z11) {
|
|
516242
|
+
return z11 ^ x22 & (y43 ^ z11);
|
|
516243
|
+
}
|
|
516244
|
+
function maj(x22, y43, z11) {
|
|
516245
|
+
return x22 & y43 | z11 & (x22 | y43);
|
|
516246
|
+
}
|
|
516247
|
+
function sigma0(x22, xl) {
|
|
516248
|
+
return (x22 >>> 28 | xl << 4) ^ (xl >>> 2 | x22 << 30) ^ (xl >>> 7 | x22 << 25);
|
|
516249
|
+
}
|
|
516250
|
+
function sigma1(x22, xl) {
|
|
516251
|
+
return (x22 >>> 14 | xl << 18) ^ (x22 >>> 18 | xl << 14) ^ (xl >>> 9 | x22 << 23);
|
|
516252
|
+
}
|
|
516253
|
+
function Gamma0(x22, xl) {
|
|
516254
|
+
return (x22 >>> 1 | xl << 31) ^ (x22 >>> 8 | xl << 24) ^ x22 >>> 7;
|
|
516255
|
+
}
|
|
516256
|
+
function Gamma0l(x22, xl) {
|
|
516257
|
+
return (x22 >>> 1 | xl << 31) ^ (x22 >>> 8 | xl << 24) ^ (x22 >>> 7 | xl << 25);
|
|
516258
|
+
}
|
|
516259
|
+
function Gamma1(x22, xl) {
|
|
516260
|
+
return (x22 >>> 19 | xl << 13) ^ (xl >>> 29 | x22 << 3) ^ x22 >>> 6;
|
|
516261
|
+
}
|
|
516262
|
+
function Gamma1l(x22, xl) {
|
|
516263
|
+
return (x22 >>> 19 | xl << 13) ^ (xl >>> 29 | x22 << 3) ^ (x22 >>> 6 | xl << 26);
|
|
516264
|
+
}
|
|
516265
|
+
function getCarry(a67, b21) {
|
|
516266
|
+
return a67 >>> 0 < b21 >>> 0 ? 1 : 0;
|
|
516267
|
+
}
|
|
516268
|
+
Sha512.prototype._update = function(M14) {
|
|
516269
|
+
var W12 = this._w;
|
|
516270
|
+
var ah = this._ah | 0;
|
|
516271
|
+
var bh = this._bh | 0;
|
|
516272
|
+
var ch = this._ch | 0;
|
|
516273
|
+
var dh = this._dh | 0;
|
|
516274
|
+
var eh = this._eh | 0;
|
|
516275
|
+
var fh = this._fh | 0;
|
|
516276
|
+
var gh = this._gh | 0;
|
|
516277
|
+
var hh = this._hh | 0;
|
|
516278
|
+
var al = this._al | 0;
|
|
516279
|
+
var bl = this._bl | 0;
|
|
516280
|
+
var cl = this._cl | 0;
|
|
516281
|
+
var dl = this._dl | 0;
|
|
516282
|
+
var el = this._el | 0;
|
|
516283
|
+
var fl2 = this._fl | 0;
|
|
516284
|
+
var gl = this._gl | 0;
|
|
516285
|
+
var hl = this._hl | 0;
|
|
516286
|
+
for (var i57 = 0; i57 < 32; i57 += 2) {
|
|
516287
|
+
W12[i57] = M14.readInt32BE(i57 * 4);
|
|
516288
|
+
W12[i57 + 1] = M14.readInt32BE(i57 * 4 + 4);
|
|
516289
|
+
}
|
|
516290
|
+
for (; i57 < 160; i57 += 2) {
|
|
516291
|
+
var xh = W12[i57 - 15 * 2];
|
|
516292
|
+
var xl = W12[i57 - 15 * 2 + 1];
|
|
516293
|
+
var gamma0 = Gamma0(xh, xl);
|
|
516294
|
+
var gamma0l = Gamma0l(xl, xh);
|
|
516295
|
+
xh = W12[i57 - 2 * 2];
|
|
516296
|
+
xl = W12[i57 - 2 * 2 + 1];
|
|
516297
|
+
var gamma1 = Gamma1(xh, xl);
|
|
516298
|
+
var gamma1l = Gamma1l(xl, xh);
|
|
516299
|
+
var Wi7h = W12[i57 - 7 * 2];
|
|
516300
|
+
var Wi7l = W12[i57 - 7 * 2 + 1];
|
|
516301
|
+
var Wi16h = W12[i57 - 16 * 2];
|
|
516302
|
+
var Wi16l = W12[i57 - 16 * 2 + 1];
|
|
516303
|
+
var Wil = gamma0l + Wi7l | 0;
|
|
516304
|
+
var Wih = gamma0 + Wi7h + getCarry(Wil, gamma0l) | 0;
|
|
516305
|
+
Wil = Wil + gamma1l | 0;
|
|
516306
|
+
Wih = Wih + gamma1 + getCarry(Wil, gamma1l) | 0;
|
|
516307
|
+
Wil = Wil + Wi16l | 0;
|
|
516308
|
+
Wih = Wih + Wi16h + getCarry(Wil, Wi16l) | 0;
|
|
516309
|
+
W12[i57] = Wih;
|
|
516310
|
+
W12[i57 + 1] = Wil;
|
|
516311
|
+
}
|
|
516312
|
+
for (var j10 = 0; j10 < 160; j10 += 2) {
|
|
516313
|
+
Wih = W12[j10];
|
|
516314
|
+
Wil = W12[j10 + 1];
|
|
516315
|
+
var majh = maj(ah, bh, ch);
|
|
516316
|
+
var majl = maj(al, bl, cl);
|
|
516317
|
+
var sigma0h = sigma0(ah, al);
|
|
516318
|
+
var sigma0l = sigma0(al, ah);
|
|
516319
|
+
var sigma1h = sigma1(eh, el);
|
|
516320
|
+
var sigma1l = sigma1(el, eh);
|
|
516321
|
+
var Kih = K10[j10];
|
|
516322
|
+
var Kil = K10[j10 + 1];
|
|
516323
|
+
var chh = Ch(eh, fh, gh);
|
|
516324
|
+
var chl = Ch(el, fl2, gl);
|
|
516325
|
+
var t1l = hl + sigma1l | 0;
|
|
516326
|
+
var t1h = hh + sigma1h + getCarry(t1l, hl) | 0;
|
|
516327
|
+
t1l = t1l + chl | 0;
|
|
516328
|
+
t1h = t1h + chh + getCarry(t1l, chl) | 0;
|
|
516329
|
+
t1l = t1l + Kil | 0;
|
|
516330
|
+
t1h = t1h + Kih + getCarry(t1l, Kil) | 0;
|
|
516331
|
+
t1l = t1l + Wil | 0;
|
|
516332
|
+
t1h = t1h + Wih + getCarry(t1l, Wil) | 0;
|
|
516333
|
+
var t2l = sigma0l + majl | 0;
|
|
516334
|
+
var t2h = sigma0h + majh + getCarry(t2l, sigma0l) | 0;
|
|
516335
|
+
hh = gh;
|
|
516336
|
+
hl = gl;
|
|
516337
|
+
gh = fh;
|
|
516338
|
+
gl = fl2;
|
|
516339
|
+
fh = eh;
|
|
516340
|
+
fl2 = el;
|
|
516341
|
+
el = dl + t1l | 0;
|
|
516342
|
+
eh = dh + t1h + getCarry(el, dl) | 0;
|
|
516343
|
+
dh = ch;
|
|
516344
|
+
dl = cl;
|
|
516345
|
+
ch = bh;
|
|
516346
|
+
cl = bl;
|
|
516347
|
+
bh = ah;
|
|
516348
|
+
bl = al;
|
|
516349
|
+
al = t1l + t2l | 0;
|
|
516350
|
+
ah = t1h + t2h + getCarry(al, t1l) | 0;
|
|
516351
|
+
}
|
|
516352
|
+
this._al = this._al + al | 0;
|
|
516353
|
+
this._bl = this._bl + bl | 0;
|
|
516354
|
+
this._cl = this._cl + cl | 0;
|
|
516355
|
+
this._dl = this._dl + dl | 0;
|
|
516356
|
+
this._el = this._el + el | 0;
|
|
516357
|
+
this._fl = this._fl + fl2 | 0;
|
|
516358
|
+
this._gl = this._gl + gl | 0;
|
|
516359
|
+
this._hl = this._hl + hl | 0;
|
|
516360
|
+
this._ah = this._ah + ah + getCarry(this._al, al) | 0;
|
|
516361
|
+
this._bh = this._bh + bh + getCarry(this._bl, bl) | 0;
|
|
516362
|
+
this._ch = this._ch + ch + getCarry(this._cl, cl) | 0;
|
|
516363
|
+
this._dh = this._dh + dh + getCarry(this._dl, dl) | 0;
|
|
516364
|
+
this._eh = this._eh + eh + getCarry(this._el, el) | 0;
|
|
516365
|
+
this._fh = this._fh + fh + getCarry(this._fl, fl2) | 0;
|
|
516366
|
+
this._gh = this._gh + gh + getCarry(this._gl, gl) | 0;
|
|
516367
|
+
this._hh = this._hh + hh + getCarry(this._hl, hl) | 0;
|
|
516368
|
+
};
|
|
516369
|
+
Sha512.prototype._hash = function() {
|
|
516370
|
+
var H13 = Buffer7.allocUnsafe(64);
|
|
516371
|
+
function writeInt64BE(h40, l69, offset2) {
|
|
516372
|
+
H13.writeInt32BE(h40, offset2);
|
|
516373
|
+
H13.writeInt32BE(l69, offset2 + 4);
|
|
516374
|
+
}
|
|
516375
|
+
writeInt64BE(this._ah, this._al, 0);
|
|
516376
|
+
writeInt64BE(this._bh, this._bl, 8);
|
|
516377
|
+
writeInt64BE(this._ch, this._cl, 16);
|
|
516378
|
+
writeInt64BE(this._dh, this._dl, 24);
|
|
516379
|
+
writeInt64BE(this._eh, this._el, 32);
|
|
516380
|
+
writeInt64BE(this._fh, this._fl, 40);
|
|
516381
|
+
writeInt64BE(this._gh, this._gl, 48);
|
|
516382
|
+
writeInt64BE(this._hh, this._hl, 56);
|
|
516383
|
+
return H13;
|
|
516384
|
+
};
|
|
516385
|
+
module2.exports = Sha512;
|
|
516386
|
+
}
|
|
516387
|
+
});
|
|
516388
|
+
|
|
516389
|
+
// ../../node_modules/.pnpm/sha.js@2.4.11/node_modules/sha.js/sha384.js
|
|
516390
|
+
var require_sha3843 = __commonJS({
|
|
516391
|
+
"../../node_modules/.pnpm/sha.js@2.4.11/node_modules/sha.js/sha384.js"(exports2, module2) {
|
|
516392
|
+
"use strict";
|
|
516393
|
+
var inherits4 = require_inherits();
|
|
516394
|
+
var SHA5123 = require_sha51211();
|
|
516395
|
+
var Hash4 = require_hash10();
|
|
516396
|
+
var Buffer7 = require_safe_buffer().Buffer;
|
|
516397
|
+
var W11 = new Array(160);
|
|
516398
|
+
function Sha384() {
|
|
516399
|
+
this.init();
|
|
516400
|
+
this._w = W11;
|
|
516401
|
+
Hash4.call(this, 128, 112);
|
|
516402
|
+
}
|
|
516403
|
+
inherits4(Sha384, SHA5123);
|
|
516404
|
+
Sha384.prototype.init = function() {
|
|
516405
|
+
this._ah = 3418070365;
|
|
516406
|
+
this._bh = 1654270250;
|
|
516407
|
+
this._ch = 2438529370;
|
|
516408
|
+
this._dh = 355462360;
|
|
516409
|
+
this._eh = 1731405415;
|
|
516410
|
+
this._fh = 2394180231;
|
|
516411
|
+
this._gh = 3675008525;
|
|
516412
|
+
this._hh = 1203062813;
|
|
516413
|
+
this._al = 3238371032;
|
|
516414
|
+
this._bl = 914150663;
|
|
516415
|
+
this._cl = 812702999;
|
|
516416
|
+
this._dl = 4144912697;
|
|
516417
|
+
this._el = 4290775857;
|
|
516418
|
+
this._fl = 1750603025;
|
|
516419
|
+
this._gl = 1694076839;
|
|
516420
|
+
this._hl = 3204075428;
|
|
516421
|
+
return this;
|
|
516422
|
+
};
|
|
516423
|
+
Sha384.prototype._hash = function() {
|
|
516424
|
+
var H13 = Buffer7.allocUnsafe(48);
|
|
516425
|
+
function writeInt64BE(h40, l69, offset2) {
|
|
516426
|
+
H13.writeInt32BE(h40, offset2);
|
|
516427
|
+
H13.writeInt32BE(l69, offset2 + 4);
|
|
516428
|
+
}
|
|
516429
|
+
writeInt64BE(this._ah, this._al, 0);
|
|
516430
|
+
writeInt64BE(this._bh, this._bl, 8);
|
|
516431
|
+
writeInt64BE(this._ch, this._cl, 16);
|
|
516432
|
+
writeInt64BE(this._dh, this._dl, 24);
|
|
516433
|
+
writeInt64BE(this._eh, this._el, 32);
|
|
516434
|
+
writeInt64BE(this._fh, this._fl, 40);
|
|
516435
|
+
return H13;
|
|
516436
|
+
};
|
|
516437
|
+
module2.exports = Sha384;
|
|
516438
|
+
}
|
|
516439
|
+
});
|
|
516440
|
+
|
|
516441
|
+
// ../../node_modules/.pnpm/sha.js@2.4.11/node_modules/sha.js/index.js
|
|
516442
|
+
var require_sha9 = __commonJS({
|
|
516443
|
+
"../../node_modules/.pnpm/sha.js@2.4.11/node_modules/sha.js/index.js"(exports2, module2) {
|
|
516444
|
+
"use strict";
|
|
516445
|
+
var exports2 = module2.exports = function SHA(algorithm2) {
|
|
516446
|
+
algorithm2 = algorithm2.toLowerCase();
|
|
516447
|
+
var Algorithm = exports2[algorithm2];
|
|
516448
|
+
if (!Algorithm)
|
|
516449
|
+
throw new Error(algorithm2 + " is not supported (we accept pull requests)");
|
|
516450
|
+
return new Algorithm();
|
|
516451
|
+
};
|
|
516452
|
+
exports2.sha = require_sha8();
|
|
516453
|
+
exports2.sha1 = require_sha13();
|
|
516454
|
+
exports2.sha224 = require_sha2243();
|
|
516455
|
+
exports2.sha256 = require_sha25613();
|
|
516456
|
+
exports2.sha384 = require_sha3843();
|
|
516457
|
+
exports2.sha512 = require_sha51211();
|
|
516458
|
+
}
|
|
516459
|
+
});
|
|
516460
|
+
|
|
516461
516461
|
// ../../node_modules/.pnpm/@blooo+hw-app-acre@1.1.1/node_modules/@blooo/hw-app-acre/lib/hashPublicKey.js
|
|
516462
516462
|
var require_hashPublicKey = __commonJS({
|
|
516463
516463
|
"../../node_modules/.pnpm/@blooo+hw-app-acre@1.1.1/node_modules/@blooo/hw-app-acre/lib/hashPublicKey.js"(exports2) {
|
|
@@ -516468,7 +516468,7 @@ var require_hashPublicKey = __commonJS({
|
|
|
516468
516468
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
516469
516469
|
exports2.hashPublicKey = hashPublicKey2;
|
|
516470
516470
|
var ripemd160_1 = __importDefault(require_ripemd160());
|
|
516471
|
-
var sha_js_1 = __importDefault(
|
|
516471
|
+
var sha_js_1 = __importDefault(require_sha9());
|
|
516472
516472
|
function hashPublicKey2(buffer2) {
|
|
516473
516473
|
return new ripemd160_1.default().update((0, sha_js_1.default)("sha256").update(buffer2).digest()).digest();
|
|
516474
516474
|
}
|
|
@@ -518315,7 +518315,7 @@ var require_getTrustedInputBIP143 = __commonJS({
|
|
|
518315
518315
|
};
|
|
518316
518316
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
518317
518317
|
exports2.getTrustedInputBIP143 = getTrustedInputBIP1432;
|
|
518318
|
-
var sha_js_1 = __importDefault(
|
|
518318
|
+
var sha_js_1 = __importDefault(require_sha9());
|
|
518319
518319
|
var serializeTransaction_1 = require_serializeTransaction();
|
|
518320
518320
|
function getTrustedInputBIP1432(transport, indexLookup, transaction, additionals = []) {
|
|
518321
518321
|
if (!transaction) {
|
|
@@ -518941,7 +518941,7 @@ var require_AcreBtcOld = __commonJS({
|
|
|
518941
518941
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
518942
518942
|
var bs58_1 = __importDefault(require_bs58());
|
|
518943
518943
|
var ripemd160_1 = __importDefault(require_ripemd160());
|
|
518944
|
-
var sha_js_1 = __importDefault(
|
|
518944
|
+
var sha_js_1 = __importDefault(require_sha9());
|
|
518945
518945
|
var createTransaction_1 = require_createTransaction();
|
|
518946
518946
|
var getWalletPublicKey_1 = require_getWalletPublicKey();
|
|
518947
518947
|
var bip32_1 = require_bip325();
|
|
@@ -520291,7 +520291,7 @@ var require_package7 = __commonJS({
|
|
|
520291
520291
|
module2.exports = {
|
|
520292
520292
|
name: "@ledgerhq/live-common",
|
|
520293
520293
|
description: "Common ground for the Ledger Live apps",
|
|
520294
|
-
version: "34.52.0-nightly.
|
|
520294
|
+
version: "34.52.0-nightly.6",
|
|
520295
520295
|
repository: {
|
|
520296
520296
|
type: "git",
|
|
520297
520297
|
url: "https://github.com/LedgerHQ/ledger-live.git"
|
|
@@ -520495,7 +520495,7 @@ var require_package7 = __commonJS({
|
|
|
520495
520495
|
"@ledgerhq/wallet-api-server": "^1.13.3",
|
|
520496
520496
|
"@noble/curves": "^1.9.7",
|
|
520497
520497
|
"@noble/hashes": "1.8.0",
|
|
520498
|
-
"@reduxjs/toolkit": "
|
|
520498
|
+
"@reduxjs/toolkit": "catalog:",
|
|
520499
520499
|
"@stellar/stellar-sdk": "^14.0.0",
|
|
520500
520500
|
"@stricahq/typhonjs": "^3.0.0",
|
|
520501
520501
|
"@taquito/ledger-signer": "^23.0.0-RC.0",
|
|
@@ -520547,7 +520547,8 @@ var require_package7 = __commonJS({
|
|
|
520547
520547
|
winston: "^3.4.0",
|
|
520548
520548
|
xstate: "^5.19.2",
|
|
520549
520549
|
yargs: "^17.0.0",
|
|
520550
|
-
zod: "^3.22.4"
|
|
520550
|
+
zod: "^3.22.4",
|
|
520551
|
+
"react-redux": "^7.2.9"
|
|
520551
520552
|
},
|
|
520552
520553
|
devDependencies: {
|
|
520553
520554
|
"@ledgerhq/device-react": "workspace:^",
|
|
@@ -520567,6 +520568,7 @@ var require_package7 = __commonJS({
|
|
|
520567
520568
|
"@types/lodash": "^4.14.179",
|
|
520568
520569
|
"@types/node": "^22.10.10",
|
|
520569
520570
|
"@types/react": "^18.2.21",
|
|
520571
|
+
"@types/react-redux": "^7.1.33",
|
|
520570
520572
|
"@types/uuid": "^8.3.4",
|
|
520571
520573
|
benchmark: "^2.1.4",
|
|
520572
520574
|
buffer: "6.0.3",
|
|
@@ -520589,7 +520591,6 @@ var require_package7 = __commonJS({
|
|
|
520589
520591
|
"react-dom": "catalog:",
|
|
520590
520592
|
"react-native": "0.77.2",
|
|
520591
520593
|
"react-native-svg": "15.11.2",
|
|
520592
|
-
"react-redux": "^7.2.9",
|
|
520593
520594
|
"react-test-renderer": "catalog:",
|
|
520594
520595
|
"redux-actions": "2.6.5",
|
|
520595
520596
|
timemachine: "^0.3.2",
|
|
@@ -520625,7 +520626,7 @@ var require_package8 = __commonJS({
|
|
|
520625
520626
|
"package.json"(exports2, module2) {
|
|
520626
520627
|
module2.exports = {
|
|
520627
520628
|
name: "@ledgerhq/live-cli",
|
|
520628
|
-
version: "24.
|
|
520629
|
+
version: "24.27.0-nightly.6",
|
|
520629
520630
|
description: "ledger-live CLI version",
|
|
520630
520631
|
repository: {
|
|
520631
520632
|
type: "git",
|
|
@@ -525630,6 +525631,11 @@ var envDefinitions = {
|
|
|
525630
525631
|
parser: stringParser,
|
|
525631
525632
|
desc: "Ledger generic explorer API"
|
|
525632
525633
|
},
|
|
525634
|
+
EXPLORER_REGTEST: {
|
|
525635
|
+
def: "http://localhost:9876",
|
|
525636
|
+
parser: stringParser,
|
|
525637
|
+
desc: "Ledger regtest Bitcoin explorer API"
|
|
525638
|
+
},
|
|
525633
525639
|
EXPLORER_SATSTACK: {
|
|
525634
525640
|
def: "http://localhost:20000",
|
|
525635
525641
|
parser: stringParser,
|
|
@@ -526051,6 +526057,11 @@ var envDefinitions = {
|
|
|
526051
526057
|
parser: stringParser,
|
|
526052
526058
|
desc: "Cryptoassets list service url"
|
|
526053
526059
|
},
|
|
526060
|
+
CAL_SERVICE_URL_STAGING: {
|
|
526061
|
+
def: "https://crypto-assets-service.api.ledger-test.com",
|
|
526062
|
+
parser: stringParser,
|
|
526063
|
+
desc: "Cryptoassets list service url (staging)"
|
|
526064
|
+
},
|
|
526054
526065
|
FEATURE_FLAGS: {
|
|
526055
526066
|
def: "{}",
|
|
526056
526067
|
parser: jsonParser,
|
|
@@ -529938,6 +529949,37 @@ var cryptocurrenciesById = {
|
|
|
529938
529949
|
],
|
|
529939
529950
|
explorerId: "btc_testnet"
|
|
529940
529951
|
},
|
|
529952
|
+
bitcoin_regtest: {
|
|
529953
|
+
type: "CryptoCurrency",
|
|
529954
|
+
id: "bitcoin_regtest",
|
|
529955
|
+
coinType: CoinType.BTC_TESTNET,
|
|
529956
|
+
name: "Bitcoin Regtest",
|
|
529957
|
+
managerAppName: "Bitcoin Test",
|
|
529958
|
+
ticker: "BTC",
|
|
529959
|
+
scheme: "regtest",
|
|
529960
|
+
color: "#00ff00",
|
|
529961
|
+
symbol: "\u0243",
|
|
529962
|
+
units: bitcoinUnits.map(makeTestnetUnit),
|
|
529963
|
+
deviceTicker: "TEST",
|
|
529964
|
+
supportsSegwit: true,
|
|
529965
|
+
supportsNativeSegwit: true,
|
|
529966
|
+
isTestnetFor: "bitcoin",
|
|
529967
|
+
disableCountervalue: true,
|
|
529968
|
+
family: "bitcoin",
|
|
529969
|
+
blockAvgTime: 15 * 60,
|
|
529970
|
+
bitcoinLikeInfo: {
|
|
529971
|
+
P2PKH: 111,
|
|
529972
|
+
P2SH: 196,
|
|
529973
|
+
XPUBVersion: 70617039
|
|
529974
|
+
},
|
|
529975
|
+
explorerViews: [
|
|
529976
|
+
{
|
|
529977
|
+
tx: "https://live.blockcypher.com/btc-testnet/tx/$hash",
|
|
529978
|
+
address: "https://live.blockcypher.com/btc-testnet/address/$address"
|
|
529979
|
+
}
|
|
529980
|
+
],
|
|
529981
|
+
explorerId: "btc_testnet"
|
|
529982
|
+
},
|
|
529941
529983
|
ethereum_sepolia: {
|
|
529942
529984
|
type: "CryptoCurrency",
|
|
529943
529985
|
id: "ethereum_sepolia",
|
|
@@ -531238,6 +531280,27 @@ var cryptocurrenciesById = {
|
|
|
531238
531280
|
address: "https://www.mintscan.io/babylon/validators/$address"
|
|
531239
531281
|
}
|
|
531240
531282
|
]
|
|
531283
|
+
},
|
|
531284
|
+
monad: {
|
|
531285
|
+
type: "CryptoCurrency",
|
|
531286
|
+
id: "monad",
|
|
531287
|
+
coinType: CoinType.ETH,
|
|
531288
|
+
name: "Monad",
|
|
531289
|
+
managerAppName: "Ethereum",
|
|
531290
|
+
ticker: "MON",
|
|
531291
|
+
scheme: "monad",
|
|
531292
|
+
color: "#836EF9",
|
|
531293
|
+
family: "evm",
|
|
531294
|
+
units: ethereumUnits("MON", "MON"),
|
|
531295
|
+
ethereumLikeInfo: {
|
|
531296
|
+
chainId: 143
|
|
531297
|
+
},
|
|
531298
|
+
explorerViews: [
|
|
531299
|
+
{
|
|
531300
|
+
tx: "https://monadexplorer.com/tx/$hash",
|
|
531301
|
+
address: "https://monadexplorer.com/address/$address"
|
|
531302
|
+
}
|
|
531303
|
+
]
|
|
531241
531304
|
}
|
|
531242
531305
|
};
|
|
531243
531306
|
var cryptocurrenciesByScheme = {};
|
|
@@ -531992,7 +532055,8 @@ var abandonSeedAddresses = {
|
|
|
531992
532055
|
berachain: EVM_DEAD_ADDRESS,
|
|
531993
532056
|
canton_network: "ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff",
|
|
531994
532057
|
canton_network_devnet: "ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff",
|
|
531995
|
-
canton_network_testnet: "ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff"
|
|
532058
|
+
canton_network_testnet: "ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff",
|
|
532059
|
+
monad: EVM_DEAD_ADDRESS
|
|
531996
532060
|
};
|
|
531997
532061
|
var getAbandonSeedAddress = (currencyId) => {
|
|
531998
532062
|
(0, import_invariant.default)(abandonSeedAddresses[currencyId] !== void 0, `No abandonseed available for ${currencyId}`);
|
|
@@ -542622,6 +542686,7 @@ setSupportedCurrencies([
|
|
|
542622
542686
|
"komodo",
|
|
542623
542687
|
"zencash",
|
|
542624
542688
|
"bitcoin_testnet",
|
|
542689
|
+
"bitcoin_regtest",
|
|
542625
542690
|
"ethereum_sepolia",
|
|
542626
542691
|
"ethereum_holesky",
|
|
542627
542692
|
"ethereum_hoodi",
|
|
@@ -542705,7 +542770,8 @@ setSupportedCurrencies([
|
|
|
542705
542770
|
"canton_network",
|
|
542706
542771
|
"canton_network_devnet",
|
|
542707
542772
|
"canton_network_testnet",
|
|
542708
|
-
"kaspa"
|
|
542773
|
+
"kaspa",
|
|
542774
|
+
"monad"
|
|
542709
542775
|
]);
|
|
542710
542776
|
for (const k16 in process.env)
|
|
542711
542777
|
setEnvUnsafe(k16, process.env[k16]);
|
|
@@ -544087,7 +544153,7 @@ var getDerivationModesForCurrency = (currency24) => {
|
|
|
544087
544153
|
all7.push("native_segwit");
|
|
544088
544154
|
}
|
|
544089
544155
|
if (currency24.family === "bitcoin") {
|
|
544090
|
-
if (currency24.id === "bitcoin" || currency24.id === "bitcoin_testnet") {
|
|
544156
|
+
if (currency24.id === "bitcoin" || currency24.id === "bitcoin_testnet" || currency24.id === "bitcoin_regtest") {
|
|
544091
544157
|
all7.push("taproot");
|
|
544092
544158
|
}
|
|
544093
544159
|
}
|
|
@@ -583224,6 +583290,7 @@ var Btc = class {
|
|
|
583224
583290
|
switch (currency24) {
|
|
583225
583291
|
case "bitcoin":
|
|
583226
583292
|
case "bitcoin_testnet":
|
|
583293
|
+
case "bitcoin_regtest":
|
|
583227
583294
|
case "qtum":
|
|
583228
583295
|
return new BtcNew(new AppClient(this._transport));
|
|
583229
583296
|
default:
|
|
@@ -584876,6 +584943,11 @@ function cryptoFactory(currency24) {
|
|
|
584876
584943
|
res = new bitcoin_default({ network });
|
|
584877
584944
|
break;
|
|
584878
584945
|
}
|
|
584946
|
+
case "bitcoin_regtest": {
|
|
584947
|
+
const network = import_coininfo.default.bitcoin.regtest.toBitcoinJS();
|
|
584948
|
+
res = new bitcoin_default({ network });
|
|
584949
|
+
break;
|
|
584950
|
+
}
|
|
584879
584951
|
case "decred": {
|
|
584880
584952
|
const network = import_coininfo.default.decred.main.toBitcoinJS();
|
|
584881
584953
|
res = new decred_default({ network });
|
|
@@ -584999,8 +585071,8 @@ function isValidAddress2(address3, currency24) {
|
|
|
584999
585071
|
function isTaprootAddress(address3, currency24) {
|
|
585000
585072
|
if (currency24 === "bitcoin") {
|
|
585001
585073
|
return cryptoFactory("bitcoin").isTaprootAddress(address3);
|
|
585002
|
-
} else if (currency24 === "bitcoin_testnet") {
|
|
585003
|
-
return cryptoFactory(
|
|
585074
|
+
} else if (currency24 === "bitcoin_testnet" || currency24 === "bitcoin_regtest") {
|
|
585075
|
+
return cryptoFactory(currency24).isTaprootAddress(address3);
|
|
585004
585076
|
} else {
|
|
585005
585077
|
return false;
|
|
585006
585078
|
}
|
|
@@ -585542,6 +585614,13 @@ var findCurrencyExplorer = (currency24) => {
|
|
|
585542
585614
|
if (!currency24.explorerId) {
|
|
585543
585615
|
console.warn("no explorerId for", currency24.id);
|
|
585544
585616
|
}
|
|
585617
|
+
if (currency24.id === "bitcoin_regtest") {
|
|
585618
|
+
return {
|
|
585619
|
+
endpoint: getEnv("EXPLORER_REGTEST"),
|
|
585620
|
+
id: "btc_regtest",
|
|
585621
|
+
version: "v4"
|
|
585622
|
+
};
|
|
585623
|
+
}
|
|
585545
585624
|
return {
|
|
585546
585625
|
endpoint: getEnv("EXPLORER"),
|
|
585547
585626
|
id: currency24.explorerId ?? currency24.id,
|
|
@@ -587128,7 +587207,7 @@ var getNetworkParameters = (networkName) => {
|
|
|
587128
587207
|
sigHash: BitcoinLikeSigHashType.SIGHASH_ALL,
|
|
587129
587208
|
additionalBIPs: []
|
|
587130
587209
|
};
|
|
587131
|
-
} else if (networkName === "bitcoin_testnet") {
|
|
587210
|
+
} else if (networkName === "bitcoin_testnet" || networkName === "bitcoin_regtest") {
|
|
587132
587211
|
return {
|
|
587133
587212
|
identifier: "btc_testnet",
|
|
587134
587213
|
P2PKHVersion: Buffer.from([111]),
|
|
@@ -590740,7 +590819,7 @@ function combine2(serialized, signature4) {
|
|
|
590740
590819
|
async function craftTransaction(currency24, account3, transaction) {
|
|
590741
590820
|
const params = {
|
|
590742
590821
|
recipient: transaction.recipient || "",
|
|
590743
|
-
amount: transaction.amount.
|
|
590822
|
+
amount: transaction.amount.toFixed(),
|
|
590744
590823
|
type: "token-transfer-request",
|
|
590745
590824
|
execute_before_secs: transaction.expireInSeconds,
|
|
590746
590825
|
instrument_id: transaction.tokenId
|
|
@@ -592155,9 +592234,30 @@ var getTransactionChallenge = ({ challenge_nonce, challenge_deadline }) => {
|
|
|
592155
592234
|
}
|
|
592156
592235
|
};
|
|
592157
592236
|
|
|
592237
|
+
// ../../libs/coin-modules/coin-canton/lib-es/common-logic/account/getBalance.js
|
|
592238
|
+
var useGateway2 = (currency24) => config_default3.getCoinConfig(currency24).useGateway === true;
|
|
592239
|
+
var getNativeId = (currency24) => config_default3.getCoinConfig(currency24).nativeInstrumentId;
|
|
592240
|
+
function adaptInstrument(currency24, instrument) {
|
|
592241
|
+
return {
|
|
592242
|
+
value: BigInt(instrument.amount),
|
|
592243
|
+
locked: instrument.locked === true ? BigInt(instrument.amount) : BigInt(0),
|
|
592244
|
+
asset: getNativeId(currency24) === instrument.instrument_id ? { type: "native" } : { type: "token", assetReference: instrument.instrument_id },
|
|
592245
|
+
utxoCount: instrument.utxo_count,
|
|
592246
|
+
instrumentId: instrument.instrument_id
|
|
592247
|
+
};
|
|
592248
|
+
}
|
|
592249
|
+
async function getBalance2(currency24, partyId) {
|
|
592250
|
+
if (useGateway2(currency24))
|
|
592251
|
+
return (await getBalance(currency24, partyId)).map((instrument) => adaptInstrument(currency24, instrument));
|
|
592252
|
+
else
|
|
592253
|
+
throw new Error("Not implemented");
|
|
592254
|
+
}
|
|
592255
|
+
|
|
592158
592256
|
// ../../libs/coin-modules/coin-canton/lib-es/types/errors.js
|
|
592159
592257
|
init_lib_es();
|
|
592160
592258
|
var SimulationError = createCustomErrorClass("SimulationError");
|
|
592259
|
+
var TooManyUtxosCritical = createCustomErrorClass("TooManyUtxosCritical");
|
|
592260
|
+
var TooManyUtxosWarning = createCustomErrorClass("TooManyUtxosWarning");
|
|
592161
592261
|
|
|
592162
592262
|
// ../../libs/coin-modules/coin-canton/lib-es/common-logic/utils.js
|
|
592163
592263
|
var import_bignumber112 = __toESM(require("bignumber.js"));
|
|
@@ -592196,6 +592296,30 @@ var import_bignumber116 = __toESM(require("bignumber.js"));
|
|
|
592196
592296
|
// ../../libs/coin-modules/coin-canton/lib-es/bridge/getTransactionStatus.js
|
|
592197
592297
|
init_lib_es();
|
|
592198
592298
|
var import_bignumber114 = __toESM(require("bignumber.js"));
|
|
592299
|
+
|
|
592300
|
+
// ../../libs/coin-modules/coin-canton/lib-es/types/onboard.js
|
|
592301
|
+
var OnboardStatus;
|
|
592302
|
+
(function(OnboardStatus2) {
|
|
592303
|
+
OnboardStatus2[OnboardStatus2["INIT"] = 0] = "INIT";
|
|
592304
|
+
OnboardStatus2[OnboardStatus2["PREPARE"] = 1] = "PREPARE";
|
|
592305
|
+
OnboardStatus2[OnboardStatus2["SIGN"] = 2] = "SIGN";
|
|
592306
|
+
OnboardStatus2[OnboardStatus2["SUBMIT"] = 3] = "SUBMIT";
|
|
592307
|
+
OnboardStatus2[OnboardStatus2["SUCCESS"] = 4] = "SUCCESS";
|
|
592308
|
+
OnboardStatus2[OnboardStatus2["ERROR"] = 5] = "ERROR";
|
|
592309
|
+
})(OnboardStatus || (OnboardStatus = {}));
|
|
592310
|
+
var AuthorizeStatus;
|
|
592311
|
+
(function(AuthorizeStatus2) {
|
|
592312
|
+
AuthorizeStatus2[AuthorizeStatus2["INIT"] = 0] = "INIT";
|
|
592313
|
+
AuthorizeStatus2[AuthorizeStatus2["PREPARE"] = 1] = "PREPARE";
|
|
592314
|
+
AuthorizeStatus2[AuthorizeStatus2["SIGN"] = 2] = "SIGN";
|
|
592315
|
+
AuthorizeStatus2[AuthorizeStatus2["SUBMIT"] = 3] = "SUBMIT";
|
|
592316
|
+
AuthorizeStatus2[AuthorizeStatus2["SUCCESS"] = 4] = "SUCCESS";
|
|
592317
|
+
AuthorizeStatus2[AuthorizeStatus2["ERROR"] = 5] = "ERROR";
|
|
592318
|
+
})(AuthorizeStatus || (AuthorizeStatus = {}));
|
|
592319
|
+
|
|
592320
|
+
// ../../libs/coin-modules/coin-canton/lib-es/bridge/getTransactionStatus.js
|
|
592321
|
+
var TO_MANY_UTXOS_CRITICAL_COUNT = 100;
|
|
592322
|
+
var TO_MANY_UTXOS_WARNING_COUNT = 10;
|
|
592199
592323
|
var getTransactionStatus6 = async (account3, transaction) => {
|
|
592200
592324
|
const errors = {};
|
|
592201
592325
|
const warnings3 = {};
|
|
@@ -592229,8 +592353,6 @@ var getTransactionStatus6 = async (account3, transaction) => {
|
|
|
592229
592353
|
}
|
|
592230
592354
|
if (!transaction.recipient) {
|
|
592231
592355
|
errors.recipient = new RecipientRequired("");
|
|
592232
|
-
} else if (account3.freshAddress === transaction.recipient) {
|
|
592233
|
-
errors.recipient = new InvalidAddressBecauseDestinationIsAlsoSource();
|
|
592234
592356
|
} else if (!isRecipientValid(transaction.recipient)) {
|
|
592235
592357
|
errors.recipient = new InvalidAddress("", {
|
|
592236
592358
|
currencyName: account3.currency.name
|
|
@@ -592239,6 +592361,7 @@ var getTransactionStatus6 = async (account3, transaction) => {
|
|
|
592239
592361
|
if (!errors.amount && amount.eq(0)) {
|
|
592240
592362
|
errors.amount = new AmountRequired();
|
|
592241
592363
|
}
|
|
592364
|
+
validateUtxoCount(account3, transaction, warnings3);
|
|
592242
592365
|
return {
|
|
592243
592366
|
errors,
|
|
592244
592367
|
warnings: warnings3,
|
|
@@ -592247,6 +592370,19 @@ var getTransactionStatus6 = async (account3, transaction) => {
|
|
|
592247
592370
|
totalSpent
|
|
592248
592371
|
};
|
|
592249
592372
|
};
|
|
592373
|
+
function validateUtxoCount(account3, transaction, warnings3) {
|
|
592374
|
+
const abandonSeedAddress = getAbandonSeedAddress(account3.currency.id);
|
|
592375
|
+
const isAbandonSeedAddress = transaction.recipient?.includes(abandonSeedAddress);
|
|
592376
|
+
if (account3?.cantonResources?.instrumentUtxoCounts && transaction.recipient && isRecipientValid(transaction.recipient) && account3.xpub !== transaction.recipient && !isAbandonSeedAddress) {
|
|
592377
|
+
const { instrumentUtxoCounts } = account3.cantonResources;
|
|
592378
|
+
const instrumentUtxoCount = instrumentUtxoCounts[transaction.tokenId] || 0;
|
|
592379
|
+
if (instrumentUtxoCount > TO_MANY_UTXOS_CRITICAL_COUNT) {
|
|
592380
|
+
warnings3.tooManyUtxos = new TooManyUtxosCritical();
|
|
592381
|
+
} else if (instrumentUtxoCount > TO_MANY_UTXOS_WARNING_COUNT) {
|
|
592382
|
+
warnings3.tooManyUtxos = new TooManyUtxosWarning("families.canton.tooManyUtxos.warning");
|
|
592383
|
+
}
|
|
592384
|
+
}
|
|
592385
|
+
}
|
|
592250
592386
|
|
|
592251
592387
|
// ../../libs/coin-modules/coin-canton/lib-es/bridge/prepareTransaction.js
|
|
592252
592388
|
var import_bignumber115 = __toESM(require("bignumber.js"));
|
|
@@ -592259,7 +592395,7 @@ var updateTransaction3 = (tx, patch) => {
|
|
|
592259
592395
|
// ../../libs/coin-modules/coin-canton/lib-es/bridge/prepareTransaction.js
|
|
592260
592396
|
var prepareTransaction6 = async (account3, transaction) => {
|
|
592261
592397
|
const amount = transaction.amount || (0, import_bignumber115.default)(0);
|
|
592262
|
-
const fee = (0, import_bignumber115.default)((await estimateFees(account3.currency, BigInt(amount.
|
|
592398
|
+
const fee = (0, import_bignumber115.default)((await estimateFees(account3.currency, BigInt(amount.toFixed()))).toString());
|
|
592263
592399
|
if (!transaction.tokenId) {
|
|
592264
592400
|
transaction.tokenId = config_default3.getCoinConfig(account3.currency).nativeInstrumentId;
|
|
592265
592401
|
}
|
|
@@ -592272,8 +592408,7 @@ var estimateMaxSpendable6 = async ({ account: account3, parentAccount, transacti
|
|
|
592272
592408
|
const newTransaction = await prepareTransaction6(mainAccount, {
|
|
592273
592409
|
...createTransaction7(account3),
|
|
592274
592410
|
...transaction,
|
|
592275
|
-
|
|
592276
|
-
recipient: transaction?.recipient || getAbandonSeedAddress("boilerplate"),
|
|
592411
|
+
recipient: transaction?.recipient || getAbandonSeedAddress("canton_network"),
|
|
592277
592412
|
amount: new import_bignumber116.default(0)
|
|
592278
592413
|
});
|
|
592279
592414
|
const status = await getTransactionStatus6(mainAccount, newTransaction);
|
|
@@ -592357,28 +592492,6 @@ var import_bignumber117 = __toESM(require("bignumber.js"));
|
|
|
592357
592492
|
var import_rxjs17 = require("rxjs");
|
|
592358
592493
|
init_lib_es2();
|
|
592359
592494
|
init_lib_es();
|
|
592360
|
-
|
|
592361
|
-
// ../../libs/coin-modules/coin-canton/lib-es/types/onboard.js
|
|
592362
|
-
var OnboardStatus;
|
|
592363
|
-
(function(OnboardStatus2) {
|
|
592364
|
-
OnboardStatus2[OnboardStatus2["INIT"] = 0] = "INIT";
|
|
592365
|
-
OnboardStatus2[OnboardStatus2["PREPARE"] = 1] = "PREPARE";
|
|
592366
|
-
OnboardStatus2[OnboardStatus2["SIGN"] = 2] = "SIGN";
|
|
592367
|
-
OnboardStatus2[OnboardStatus2["SUBMIT"] = 3] = "SUBMIT";
|
|
592368
|
-
OnboardStatus2[OnboardStatus2["SUCCESS"] = 4] = "SUCCESS";
|
|
592369
|
-
OnboardStatus2[OnboardStatus2["ERROR"] = 5] = "ERROR";
|
|
592370
|
-
})(OnboardStatus || (OnboardStatus = {}));
|
|
592371
|
-
var AuthorizeStatus;
|
|
592372
|
-
(function(AuthorizeStatus2) {
|
|
592373
|
-
AuthorizeStatus2[AuthorizeStatus2["INIT"] = 0] = "INIT";
|
|
592374
|
-
AuthorizeStatus2[AuthorizeStatus2["PREPARE"] = 1] = "PREPARE";
|
|
592375
|
-
AuthorizeStatus2[AuthorizeStatus2["SIGN"] = 2] = "SIGN";
|
|
592376
|
-
AuthorizeStatus2[AuthorizeStatus2["SUBMIT"] = 3] = "SUBMIT";
|
|
592377
|
-
AuthorizeStatus2[AuthorizeStatus2["SUCCESS"] = 4] = "SUCCESS";
|
|
592378
|
-
AuthorizeStatus2[AuthorizeStatus2["ERROR"] = 5] = "ERROR";
|
|
592379
|
-
})(AuthorizeStatus || (AuthorizeStatus = {}));
|
|
592380
|
-
|
|
592381
|
-
// ../../libs/coin-modules/coin-canton/lib-es/bridge/onboard.js
|
|
592382
592495
|
var isAccountOnboarded = async (currency24, publicKey3) => {
|
|
592383
592496
|
try {
|
|
592384
592497
|
const { party_id } = await getPartyByPubKey(currency24, publicKey3);
|
|
@@ -592564,16 +592677,20 @@ function makeGetAccountShape3(signerContext4) {
|
|
|
592564
592677
|
derivationMode
|
|
592565
592678
|
});
|
|
592566
592679
|
const { nativeInstrumentId } = config_default3.getCoinConfig(currency24);
|
|
592567
|
-
const balances = xpubOrAddress ? await
|
|
592568
|
-
const balancesData = (balances || []).reduce((acc,
|
|
592569
|
-
acc[
|
|
592680
|
+
const balances = xpubOrAddress ? await getBalance2(currency24, xpubOrAddress) : [];
|
|
592681
|
+
const balancesData = (balances || []).reduce((acc, balance2) => {
|
|
592682
|
+
acc[balance2.instrumentId] = balance2;
|
|
592570
592683
|
return acc;
|
|
592571
592684
|
}, {});
|
|
592572
|
-
const unlockedAmount = new import_bignumber117.default(balancesData[nativeInstrumentId]?.
|
|
592573
|
-
const lockedAmount = new import_bignumber117.default(balancesData[`Locked${nativeInstrumentId}`]?.
|
|
592685
|
+
const unlockedAmount = new import_bignumber117.default(balancesData[nativeInstrumentId]?.value.toString() || "0");
|
|
592686
|
+
const lockedAmount = new import_bignumber117.default(balancesData[`Locked${nativeInstrumentId}`]?.value.toString() || "0");
|
|
592574
592687
|
const totalBalance = unlockedAmount.plus(lockedAmount);
|
|
592575
592688
|
const reserveMin = new import_bignumber117.default(config_default3.getCoinConfig(currency24).minReserve || 0);
|
|
592576
592689
|
const spendableBalance = import_bignumber117.default.max(0, unlockedAmount.minus(reserveMin));
|
|
592690
|
+
const instrumentUtxoCounts = {};
|
|
592691
|
+
for (const [instrumentId, balance2] of Object.entries(balancesData)) {
|
|
592692
|
+
instrumentUtxoCounts[instrumentId] = balance2.utxoCount;
|
|
592693
|
+
}
|
|
592577
592694
|
let operations4 = [];
|
|
592578
592695
|
if (xpubOrAddress) {
|
|
592579
592696
|
const oldOperations = initialAccount?.operations || [];
|
|
@@ -592602,12 +592719,48 @@ function makeGetAccountShape3(signerContext4) {
|
|
|
592602
592719
|
operationsCount: operations4.length,
|
|
592603
592720
|
spendableBalance,
|
|
592604
592721
|
xpub: xpubOrAddress,
|
|
592605
|
-
used
|
|
592722
|
+
used,
|
|
592723
|
+
cantonResources: {
|
|
592724
|
+
instrumentUtxoCounts
|
|
592725
|
+
}
|
|
592606
592726
|
};
|
|
592607
592727
|
return shape;
|
|
592608
592728
|
};
|
|
592609
592729
|
}
|
|
592610
592730
|
|
|
592731
|
+
// ../../libs/coin-modules/coin-canton/lib-es/bridge/serialization.js
|
|
592732
|
+
function isCantonAccount(account3) {
|
|
592733
|
+
return "cantonResources" in account3;
|
|
592734
|
+
}
|
|
592735
|
+
function isCantonAccountRaw(accountRaw) {
|
|
592736
|
+
return "cantonResources" in accountRaw;
|
|
592737
|
+
}
|
|
592738
|
+
function toResourcesRaw2(r30) {
|
|
592739
|
+
const { instrumentUtxoCounts } = r30;
|
|
592740
|
+
return {
|
|
592741
|
+
instrumentUtxoCounts
|
|
592742
|
+
};
|
|
592743
|
+
}
|
|
592744
|
+
function fromResourcesRaw2(r30) {
|
|
592745
|
+
return {
|
|
592746
|
+
instrumentUtxoCounts: r30.instrumentUtxoCounts
|
|
592747
|
+
};
|
|
592748
|
+
}
|
|
592749
|
+
function assignToAccountRaw5(account3, accountRaw) {
|
|
592750
|
+
if (isCantonAccount(account3) && isCantonAccountRaw(accountRaw)) {
|
|
592751
|
+
if (account3.cantonResources) {
|
|
592752
|
+
accountRaw.cantonResources = toResourcesRaw2(account3.cantonResources);
|
|
592753
|
+
}
|
|
592754
|
+
}
|
|
592755
|
+
}
|
|
592756
|
+
function assignFromAccountRaw5(accountRaw, account3) {
|
|
592757
|
+
if (isCantonAccountRaw(accountRaw) && isCantonAccount(account3)) {
|
|
592758
|
+
if (accountRaw.cantonResources) {
|
|
592759
|
+
account3.cantonResources = fromResourcesRaw2(accountRaw.cantonResources);
|
|
592760
|
+
}
|
|
592761
|
+
}
|
|
592762
|
+
}
|
|
592763
|
+
|
|
592611
592764
|
// ../../libs/coin-modules/coin-canton/lib-es/bridge/index.js
|
|
592612
592765
|
function createBridges6(signerContext4, coinConfig19) {
|
|
592613
592766
|
config_default3.setCoinConfig(coinConfig19);
|
|
@@ -592633,8 +592786,6 @@ function createBridges6(signerContext4, coinConfig19) {
|
|
|
592633
592786
|
broadcast: broadcast8,
|
|
592634
592787
|
createTransaction: createTransaction7,
|
|
592635
592788
|
updateTransaction: updateTransaction3,
|
|
592636
|
-
// NOTE: use updateTransaction: defaultUpdateTransaction<Transaction>,
|
|
592637
|
-
// if you don't need to update the transaction patch object
|
|
592638
592789
|
prepareTransaction: prepareTransaction6,
|
|
592639
592790
|
getTransactionStatus: getTransactionStatus6,
|
|
592640
592791
|
estimateMaxSpendable: estimateMaxSpendable6,
|
|
@@ -592644,6 +592795,8 @@ function createBridges6(signerContext4, coinConfig19) {
|
|
|
592644
592795
|
signRawOperation: () => {
|
|
592645
592796
|
throw new Error("signRawOperation is not supported");
|
|
592646
592797
|
},
|
|
592798
|
+
assignToAccountRaw: assignToAccountRaw5,
|
|
592799
|
+
assignFromAccountRaw: assignFromAccountRaw5,
|
|
592647
592800
|
getSerializedAddressParameters
|
|
592648
592801
|
};
|
|
592649
592802
|
return {
|
|
@@ -593219,7 +593372,10 @@ var scanAccounts = () => {
|
|
|
593219
593372
|
blockHeight: 0,
|
|
593220
593373
|
lastSyncDate: /* @__PURE__ */ new Date(),
|
|
593221
593374
|
operations: [],
|
|
593222
|
-
pendingOperations: []
|
|
593375
|
+
pendingOperations: [],
|
|
593376
|
+
cantonResources: {
|
|
593377
|
+
instrumentUtxoCounts: {}
|
|
593378
|
+
}
|
|
593223
593379
|
}
|
|
593224
593380
|
});
|
|
593225
593381
|
observer.complete();
|
|
@@ -594049,12 +594205,12 @@ function fromCeloResourcesRaw(r30) {
|
|
|
594049
594205
|
maxNumGroupsVotedFor: new import_bignumber134.BigNumber(r30.maxNumGroupsVotedFor)
|
|
594050
594206
|
};
|
|
594051
594207
|
}
|
|
594052
|
-
function
|
|
594208
|
+
function assignToAccountRaw6(account3, accountRaw) {
|
|
594053
594209
|
const celoAccount = account3;
|
|
594054
594210
|
if (celoAccount.celoResources)
|
|
594055
594211
|
accountRaw.celoResources = toCeloResourcesRaw(celoAccount.celoResources);
|
|
594056
594212
|
}
|
|
594057
|
-
function
|
|
594213
|
+
function assignFromAccountRaw6(accountRaw, account3) {
|
|
594058
594214
|
const celoResourcesRaw = accountRaw.celoResources;
|
|
594059
594215
|
if (celoResourcesRaw)
|
|
594060
594216
|
account3.celoResources = fromCeloResourcesRaw(celoResourcesRaw);
|
|
@@ -621549,8 +621705,8 @@ function buildAccountBridge6(signerContext4) {
|
|
|
621549
621705
|
},
|
|
621550
621706
|
broadcast: broadcast10,
|
|
621551
621707
|
getSerializedAddressParameters,
|
|
621552
|
-
assignFromAccountRaw:
|
|
621553
|
-
assignToAccountRaw:
|
|
621708
|
+
assignFromAccountRaw: assignFromAccountRaw6,
|
|
621709
|
+
assignToAccountRaw: assignToAccountRaw6,
|
|
621554
621710
|
toOperationExtraRaw: toOperationExtraRaw2,
|
|
621555
621711
|
fromOperationExtraRaw: fromOperationExtraRaw2
|
|
621556
621712
|
};
|
|
@@ -626599,13 +626755,13 @@ function fromCosmosResourcesRaw(r30) {
|
|
|
626599
626755
|
sequence
|
|
626600
626756
|
};
|
|
626601
626757
|
}
|
|
626602
|
-
function
|
|
626758
|
+
function assignToAccountRaw7(account3, accountRaw) {
|
|
626603
626759
|
const cosmosAccount = account3;
|
|
626604
626760
|
if (cosmosAccount.cosmosResources) {
|
|
626605
626761
|
accountRaw.cosmosResources = toCosmosResourcesRaw(cosmosAccount.cosmosResources);
|
|
626606
626762
|
}
|
|
626607
626763
|
}
|
|
626608
|
-
function
|
|
626764
|
+
function assignFromAccountRaw7(accountRaw, account3) {
|
|
626609
626765
|
const cosmosResourcesRaw = accountRaw.cosmosResources;
|
|
626610
626766
|
if (cosmosResourcesRaw)
|
|
626611
626767
|
account3.cosmosResources = fromCosmosResourcesRaw(cosmosResourcesRaw);
|
|
@@ -627165,8 +627321,8 @@ function buildAccountBridge7(signerContext4) {
|
|
|
627165
627321
|
signRawOperation: () => {
|
|
627166
627322
|
throw new Error("signRawOperation is not supported");
|
|
627167
627323
|
},
|
|
627168
|
-
assignFromAccountRaw:
|
|
627169
|
-
assignToAccountRaw:
|
|
627324
|
+
assignFromAccountRaw: assignFromAccountRaw7,
|
|
627325
|
+
assignToAccountRaw: assignToAccountRaw7,
|
|
627170
627326
|
broadcast: async ({ account: account3, signedOperation }) => {
|
|
627171
627327
|
return new CosmosAPI(account3.currency.id).broadcast({
|
|
627172
627328
|
signedOperation
|
|
@@ -702418,14 +702574,14 @@ function fromHederaResourcesRaw(rawResources) {
|
|
|
702418
702574
|
isAutoTokenAssociationEnabled: isAutoTokenAssociationEnabled2
|
|
702419
702575
|
};
|
|
702420
702576
|
}
|
|
702421
|
-
function
|
|
702577
|
+
function assignToAccountRaw8(account3, accountRaw) {
|
|
702422
702578
|
const hederaAccount = account3;
|
|
702423
702579
|
const hederaAccountRaw = accountRaw;
|
|
702424
702580
|
if (hederaAccount.hederaResources) {
|
|
702425
702581
|
hederaAccountRaw.hederaResources = toHederaResourcesRaw(hederaAccount.hederaResources);
|
|
702426
702582
|
}
|
|
702427
702583
|
}
|
|
702428
|
-
function
|
|
702584
|
+
function assignFromAccountRaw8(accountRaw, account3) {
|
|
702429
702585
|
const hederaAccount = account3;
|
|
702430
702586
|
const hederaAccountRaw = accountRaw;
|
|
702431
702587
|
if (hederaAccountRaw.hederaResources) {
|
|
@@ -702477,8 +702633,8 @@ function buildAccountBridge9(signerContext4) {
|
|
|
702477
702633
|
updateTransaction,
|
|
702478
702634
|
getTransactionStatus: getTransactionStatus10,
|
|
702479
702635
|
prepareTransaction: prepareTransaction11,
|
|
702480
|
-
assignToAccountRaw:
|
|
702481
|
-
assignFromAccountRaw:
|
|
702636
|
+
assignToAccountRaw: assignToAccountRaw8,
|
|
702637
|
+
assignFromAccountRaw: assignFromAccountRaw8,
|
|
702482
702638
|
sync: sync8,
|
|
702483
702639
|
receive: receive2(getAddressWrapper_default(getAddress15)),
|
|
702484
702640
|
signOperation: signOperation3,
|
|
@@ -712591,13 +712747,13 @@ function fromIconResourcesRaw(rawResources) {
|
|
|
712591
712747
|
totalDelegated: new import_bignumber208.BigNumber(totalDelegated || 0)
|
|
712592
712748
|
};
|
|
712593
712749
|
}
|
|
712594
|
-
function
|
|
712750
|
+
function assignToAccountRaw9(account3, accountRaw) {
|
|
712595
712751
|
const iconAccount = account3;
|
|
712596
712752
|
if (iconAccount.iconResources) {
|
|
712597
712753
|
accountRaw.iconResources = toIconResourcesRaw(iconAccount.iconResources);
|
|
712598
712754
|
}
|
|
712599
712755
|
}
|
|
712600
|
-
function
|
|
712756
|
+
function assignFromAccountRaw9(accountRaw, account3) {
|
|
712601
712757
|
const iconResourcesRaw = accountRaw.iconResources;
|
|
712602
712758
|
if (iconResourcesRaw)
|
|
712603
712759
|
account3.iconResources = fromIconResourcesRaw(iconResourcesRaw);
|
|
@@ -712629,8 +712785,8 @@ function buildAccountBridge12(signerContext4) {
|
|
|
712629
712785
|
getTransactionStatus: getTransactionStatus13,
|
|
712630
712786
|
sync: sync22,
|
|
712631
712787
|
receive: receive16,
|
|
712632
|
-
assignToAccountRaw:
|
|
712633
|
-
assignFromAccountRaw:
|
|
712788
|
+
assignToAccountRaw: assignToAccountRaw9,
|
|
712789
|
+
assignFromAccountRaw: assignFromAccountRaw9,
|
|
712634
712790
|
initAccount: initAccount2,
|
|
712635
712791
|
signOperation: signOperation3,
|
|
712636
712792
|
signRawOperation: () => {
|
|
@@ -715246,13 +715402,13 @@ function fromMultiversXResourcesRaw(r30) {
|
|
|
715246
715402
|
isGuarded
|
|
715247
715403
|
};
|
|
715248
715404
|
}
|
|
715249
|
-
function
|
|
715405
|
+
function assignToAccountRaw10(account3, accountRaw) {
|
|
715250
715406
|
const multiversxAccount = account3;
|
|
715251
715407
|
if (multiversxAccount.multiversxResources) {
|
|
715252
715408
|
accountRaw.multiversxResources = toMultiversXResourcesRaw(multiversxAccount.multiversxResources);
|
|
715253
715409
|
}
|
|
715254
715410
|
}
|
|
715255
|
-
function
|
|
715411
|
+
function assignFromAccountRaw10(accountRaw, account3) {
|
|
715256
715412
|
const multiversxResourcesRaw = accountRaw.multiversxResources;
|
|
715257
715413
|
if (multiversxResourcesRaw)
|
|
715258
715414
|
account3.multiversxResources = fromMultiversXResourcesRaw(multiversxResourcesRaw);
|
|
@@ -715683,8 +715839,8 @@ function buildAccountBridge14(signerContext4) {
|
|
|
715683
715839
|
throw new Error("signRawOperation is not supported");
|
|
715684
715840
|
},
|
|
715685
715841
|
broadcast: broadcast19,
|
|
715686
|
-
assignFromAccountRaw:
|
|
715687
|
-
assignToAccountRaw:
|
|
715842
|
+
assignFromAccountRaw: assignFromAccountRaw10,
|
|
715843
|
+
assignToAccountRaw: assignToAccountRaw10,
|
|
715688
715844
|
fromOperationExtraRaw: fromOperationExtraRaw4,
|
|
715689
715845
|
toOperationExtraRaw: toOperationExtraRaw4,
|
|
715690
715846
|
formatAccountSpecifics: formatters_default4.formatAccountSpecifics,
|
|
@@ -715927,13 +716083,13 @@ function fromNearResourcesRaw(r30) {
|
|
|
715927
716083
|
}))
|
|
715928
716084
|
};
|
|
715929
716085
|
}
|
|
715930
|
-
function
|
|
716086
|
+
function assignToAccountRaw11(account3, accountRaw) {
|
|
715931
716087
|
const nearAccount = account3;
|
|
715932
716088
|
if (nearAccount.nearResources) {
|
|
715933
716089
|
accountRaw.nearResources = toNearResourcesRaw(nearAccount.nearResources);
|
|
715934
716090
|
}
|
|
715935
716091
|
}
|
|
715936
|
-
function
|
|
716092
|
+
function assignFromAccountRaw11(accountRaw, account3) {
|
|
715937
716093
|
const nearResourcesRaw = accountRaw.nearResources;
|
|
715938
716094
|
if (nearResourcesRaw)
|
|
715939
716095
|
account3.nearResources = fromNearResourcesRaw(nearResourcesRaw);
|
|
@@ -716858,8 +717014,8 @@ function buildAccountBridge15(signerContext4) {
|
|
|
716858
717014
|
throw new Error("signRawOperation is not supported");
|
|
716859
717015
|
},
|
|
716860
717016
|
broadcast: broadcast20,
|
|
716861
|
-
assignToAccountRaw:
|
|
716862
|
-
assignFromAccountRaw:
|
|
717017
|
+
assignToAccountRaw: assignToAccountRaw11,
|
|
717018
|
+
assignFromAccountRaw: assignFromAccountRaw11,
|
|
716863
717019
|
getSerializedAddressParameters
|
|
716864
717020
|
};
|
|
716865
717021
|
}
|
|
@@ -763652,13 +763808,13 @@ function fromPolkadotResourcesRaw(r30) {
|
|
|
763652
763808
|
numSlashingSpans: Number(r30.numSlashingSpans) || 0
|
|
763653
763809
|
};
|
|
763654
763810
|
}
|
|
763655
|
-
function
|
|
763811
|
+
function assignToAccountRaw12(account3, accountRaw) {
|
|
763656
763812
|
const polkadotAccount = account3;
|
|
763657
763813
|
if (polkadotAccount.polkadotResources) {
|
|
763658
763814
|
accountRaw.polkadotResources = toPolkadotResourcesRaw(polkadotAccount.polkadotResources);
|
|
763659
763815
|
}
|
|
763660
763816
|
}
|
|
763661
|
-
function
|
|
763817
|
+
function assignFromAccountRaw12(accountRaw, account3) {
|
|
763662
763818
|
const polkadotResourcesRaw = accountRaw.polkadotResources;
|
|
763663
763819
|
if (polkadotResourcesRaw)
|
|
763664
763820
|
account3.polkadotResources = fromPolkadotResourcesRaw(polkadotResourcesRaw);
|
|
@@ -763741,8 +763897,8 @@ function buildAccountBridge16(signerContext4) {
|
|
|
763741
763897
|
throw new Error("signRawOperation is not supported");
|
|
763742
763898
|
},
|
|
763743
763899
|
broadcast: broadcast22,
|
|
763744
|
-
assignFromAccountRaw:
|
|
763745
|
-
assignToAccountRaw:
|
|
763900
|
+
assignFromAccountRaw: assignFromAccountRaw12,
|
|
763901
|
+
assignToAccountRaw: assignToAccountRaw12,
|
|
763746
763902
|
fromOperationExtraRaw: fromOperationExtraRaw5,
|
|
763747
763903
|
toOperationExtraRaw: toOperationExtraRaw5,
|
|
763748
763904
|
formatAccountSpecifics: formatters_default5.formatAccountSpecifics,
|
|
@@ -780104,13 +780260,13 @@ function fromSolanaResourcesRaw(resourcesRaw) {
|
|
|
780104
780260
|
unstakeReserve: new import_bignumber268.BigNumber(resourcesRaw.unstakeReserve)
|
|
780105
780261
|
};
|
|
780106
780262
|
}
|
|
780107
|
-
function
|
|
780263
|
+
function assignToAccountRaw13(account3, accountRaw) {
|
|
780108
780264
|
const solanaAccount = account3;
|
|
780109
780265
|
if (solanaAccount.solanaResources) {
|
|
780110
780266
|
accountRaw.solanaResources = toSolanaResourcesRaw(solanaAccount.solanaResources);
|
|
780111
780267
|
}
|
|
780112
780268
|
}
|
|
780113
|
-
function
|
|
780269
|
+
function assignFromAccountRaw13(accountRaw, account3) {
|
|
780114
780270
|
const solanaResourcesRaw = accountRaw.solanaResources;
|
|
780115
780271
|
if (solanaResourcesRaw)
|
|
780116
780272
|
account3.solanaResources = fromSolanaResourcesRaw(solanaResourcesRaw);
|
|
@@ -780321,8 +780477,8 @@ function makeBridges({ getAPI: getAPI2, getQueuedAPI: getQueuedAPI2, getQueuedAn
|
|
|
780321
780477
|
signRawOperation: () => {
|
|
780322
780478
|
throw new Error("signRawOperation is not supported");
|
|
780323
780479
|
},
|
|
780324
|
-
assignFromAccountRaw:
|
|
780325
|
-
assignToAccountRaw:
|
|
780480
|
+
assignFromAccountRaw: assignFromAccountRaw13,
|
|
780481
|
+
assignToAccountRaw: assignToAccountRaw13,
|
|
780326
780482
|
toOperationExtraRaw: toOperationExtraRaw6,
|
|
780327
780483
|
fromOperationExtraRaw: fromOperationExtraRaw6,
|
|
780328
780484
|
getSerializedAddressParameters,
|
|
@@ -780877,7 +781033,7 @@ var DEFAULT_OPTION = {
|
|
|
780877
781033
|
ref: getEnv("CAL_REF") || void 0
|
|
780878
781034
|
};
|
|
780879
781035
|
function getCALDomain(env3) {
|
|
780880
|
-
return env3 === "prod" ? getEnv("CAL_SERVICE_URL") : "
|
|
781036
|
+
return env3 === "prod" ? getEnv("CAL_SERVICE_URL") : getEnv("CAL_SERVICE_URL_STAGING");
|
|
780881
781037
|
}
|
|
780882
781038
|
|
|
780883
781039
|
// ../../libs/ledger-services/cal/lib-es/certificate.js
|
|
@@ -788611,13 +788767,13 @@ var fromTronResourcesRaw = ({ frozen, unFrozen, delegatedFrozen, legacyFrozen, v
|
|
|
788611
788767
|
cacheTransactionInfoById
|
|
788612
788768
|
};
|
|
788613
788769
|
};
|
|
788614
|
-
function
|
|
788770
|
+
function assignToAccountRaw14(account3, accountRaw) {
|
|
788615
788771
|
const tronAccount = account3;
|
|
788616
788772
|
if (tronAccount.tronResources) {
|
|
788617
788773
|
accountRaw.tronResources = toTronResourcesRaw(tronAccount.tronResources);
|
|
788618
788774
|
}
|
|
788619
788775
|
}
|
|
788620
|
-
function
|
|
788776
|
+
function assignFromAccountRaw14(accountRaw, account3) {
|
|
788621
788777
|
const tronResourcesRaw = accountRaw.tronResources;
|
|
788622
788778
|
if (tronResourcesRaw)
|
|
788623
788779
|
account3.tronResources = fromTronResourcesRaw(tronResourcesRaw);
|
|
@@ -789006,8 +789162,8 @@ function buildAccountBridge19(signerContext4) {
|
|
|
789006
789162
|
throw new Error("signRawOperation is not supported");
|
|
789007
789163
|
},
|
|
789008
789164
|
broadcast: broadcast_default4,
|
|
789009
|
-
assignFromAccountRaw:
|
|
789010
|
-
assignToAccountRaw:
|
|
789165
|
+
assignFromAccountRaw: assignFromAccountRaw14,
|
|
789166
|
+
assignToAccountRaw: assignToAccountRaw14,
|
|
789011
789167
|
fromOperationExtraRaw: fromOperationExtraRaw7,
|
|
789012
789168
|
toOperationExtraRaw: toOperationExtraRaw7,
|
|
789013
789169
|
getSerializedAddressParameters
|
|
@@ -824781,8 +824937,15 @@ var getOperationRecipients2 = (transaction) => {
|
|
|
824781
824937
|
recipients.push(String(input.value));
|
|
824782
824938
|
}
|
|
824783
824939
|
});
|
|
824784
|
-
if (
|
|
824940
|
+
if (isStaking(transaction.transaction)) {
|
|
824941
|
+
const address3 = transaction.transaction.inputs.find((input) => "valueType" in input && input.valueType === "address");
|
|
824942
|
+
if (address3 && address3.type === "pure" && address3.valueType === "address") {
|
|
824943
|
+
recipients.push(address3.value);
|
|
824944
|
+
}
|
|
824945
|
+
}
|
|
824946
|
+
if (isUnstaking(transaction.transaction)) {
|
|
824785
824947
|
return [];
|
|
824948
|
+
}
|
|
824786
824949
|
return recipients;
|
|
824787
824950
|
}
|
|
824788
824951
|
return [];
|
|
@@ -825586,14 +825749,14 @@ function toSuiResourcesRaw(_resources) {
|
|
|
825586
825749
|
function fromSuiResourcesRaw(_resources) {
|
|
825587
825750
|
return {};
|
|
825588
825751
|
}
|
|
825589
|
-
function
|
|
825752
|
+
function assignToAccountRaw15(account3, accountRaw) {
|
|
825590
825753
|
const suiAccount = account3;
|
|
825591
825754
|
const suiAccountRaw = accountRaw;
|
|
825592
825755
|
if (suiAccount.suiResources) {
|
|
825593
825756
|
suiAccountRaw.suiResources = toSuiResourcesRaw(suiAccount.suiResources);
|
|
825594
825757
|
}
|
|
825595
825758
|
}
|
|
825596
|
-
function
|
|
825759
|
+
function assignFromAccountRaw15(accountRaw, account3) {
|
|
825597
825760
|
const suiResourcesRaw = accountRaw.suiResources;
|
|
825598
825761
|
if (suiResourcesRaw) {
|
|
825599
825762
|
account3.suiResources = fromSuiResourcesRaw(suiResourcesRaw);
|
|
@@ -825950,8 +826113,8 @@ function buildAccountBridge21(signerContext4) {
|
|
|
825950
826113
|
throw new Error("signRawOperation is not supported");
|
|
825951
826114
|
},
|
|
825952
826115
|
broadcast: broadcast29,
|
|
825953
|
-
assignFromAccountRaw:
|
|
825954
|
-
assignToAccountRaw:
|
|
826116
|
+
assignFromAccountRaw: assignFromAccountRaw15,
|
|
826117
|
+
assignToAccountRaw: assignToAccountRaw15,
|
|
825955
826118
|
fromOperationExtraRaw: fromOperationExtraRaw8,
|
|
825956
826119
|
toOperationExtraRaw: toOperationExtraRaw8,
|
|
825957
826120
|
getSerializedAddressParameters
|
|
@@ -825966,7 +826129,7 @@ function createBridges23(signerContext4, coinConfig19) {
|
|
|
825966
826129
|
}
|
|
825967
826130
|
|
|
825968
826131
|
// ../../node_modules/.pnpm/@mysten+ledgerjs-hw-app-sui@0.6.0/node_modules/@mysten/ledgerjs-hw-app-sui/dist/esm/Sui.js
|
|
825969
|
-
var import_fast_sha256 = __toESM(
|
|
826132
|
+
var import_fast_sha256 = __toESM(require_sha25611(), 1);
|
|
825970
826133
|
var __typeError9 = (msg) => {
|
|
825971
826134
|
throw TypeError(msg);
|
|
825972
826135
|
};
|
|
@@ -830242,8 +830405,8 @@ var accountBridge6 = {
|
|
|
830242
830405
|
signOperation: signOperation2,
|
|
830243
830406
|
signRawOperation,
|
|
830244
830407
|
broadcast: broadcast31,
|
|
830245
|
-
assignFromAccountRaw:
|
|
830246
|
-
assignToAccountRaw:
|
|
830408
|
+
assignFromAccountRaw: assignFromAccountRaw7,
|
|
830409
|
+
assignToAccountRaw: assignToAccountRaw7,
|
|
830247
830410
|
getSerializedAddressParameters
|
|
830248
830411
|
};
|
|
830249
830412
|
var currencyBridge6 = {
|
|
@@ -830502,8 +830665,8 @@ var accountBridge9 = {
|
|
|
830502
830665
|
prepareTransaction: prepareTransaction33,
|
|
830503
830666
|
sync: sync21,
|
|
830504
830667
|
receive: receive10,
|
|
830505
|
-
assignToAccountRaw:
|
|
830506
|
-
assignFromAccountRaw:
|
|
830668
|
+
assignToAccountRaw: assignToAccountRaw10,
|
|
830669
|
+
assignFromAccountRaw: assignFromAccountRaw10,
|
|
830507
830670
|
signOperation: signOperation2,
|
|
830508
830671
|
signRawOperation,
|
|
830509
830672
|
broadcast: broadcast31,
|
|
@@ -830587,8 +830750,8 @@ var accountBridge10 = {
|
|
|
830587
830750
|
prepareTransaction: prepareTransaction34,
|
|
830588
830751
|
sync: sync21,
|
|
830589
830752
|
receive: receive11,
|
|
830590
|
-
assignToAccountRaw:
|
|
830591
|
-
assignFromAccountRaw:
|
|
830753
|
+
assignToAccountRaw: assignToAccountRaw12,
|
|
830754
|
+
assignFromAccountRaw: assignFromAccountRaw12,
|
|
830592
830755
|
signOperation: signOperation2,
|
|
830593
830756
|
signRawOperation,
|
|
830594
830757
|
broadcast: broadcast31,
|
|
@@ -858607,7 +858770,7 @@ var toTransactionRaw7 = (t45) => {
|
|
|
858607
858770
|
return {
|
|
858608
858771
|
...common,
|
|
858609
858772
|
family: t45.family,
|
|
858610
|
-
fee: t45.fee ? t45.fee.
|
|
858773
|
+
fee: t45.fee ? t45.fee.toFixed() : null,
|
|
858611
858774
|
tokenId: t45.tokenId
|
|
858612
858775
|
};
|
|
858613
858776
|
};
|
|
@@ -862409,6 +862572,23 @@ var evmConfig = {
|
|
|
862409
862572
|
explorer: { type: "blockscout", uri: "https://zksync-sepolia.blockscout.com/api" },
|
|
862410
862573
|
showNfts: false
|
|
862411
862574
|
}
|
|
862575
|
+
},
|
|
862576
|
+
config_currency_monad: {
|
|
862577
|
+
type: "object",
|
|
862578
|
+
default: {
|
|
862579
|
+
status: {
|
|
862580
|
+
type: "active"
|
|
862581
|
+
},
|
|
862582
|
+
node: {
|
|
862583
|
+
type: "external",
|
|
862584
|
+
uri: "https://rpc.monad.xyz"
|
|
862585
|
+
},
|
|
862586
|
+
explorer: {
|
|
862587
|
+
type: "etherscan",
|
|
862588
|
+
uri: "https://proxyetherscan.api.live.ledger.com/v2/api/143"
|
|
862589
|
+
},
|
|
862590
|
+
showNfts: false
|
|
862591
|
+
}
|
|
862412
862592
|
}
|
|
862413
862593
|
};
|
|
862414
862594
|
|
|
@@ -863617,7 +863797,7 @@ var acceptTransaction3 = deviceActionFlow({
|
|
|
863617
863797
|
expectedValue: ({ transaction, account: account3 }, prevSteps) => {
|
|
863618
863798
|
const perCoin = perCoinLogic[account3.currency.id];
|
|
863619
863799
|
if (prevSteps.find((step) => step.title === "Address")) {
|
|
863620
|
-
if (account3.currency.id === "bitcoin" || account3.currency.id === "bitcoin_testnet") {
|
|
863800
|
+
if (account3.currency.id === "bitcoin" || account3.currency.id === "bitcoin_testnet" || account3.currency.id === "bitcoin_regtest") {
|
|
863621
863801
|
return `OP_RETURN 0x${transaction.opReturnData?.toString("hex")}`;
|
|
863622
863802
|
} else if (transaction?.opReturnData && transaction.opReturnData.length > 0) {
|
|
863623
863803
|
return transaction.recipient;
|
|
@@ -863905,6 +864085,19 @@ var bitcoinTestnet = {
|
|
|
863905
864085
|
mutations: bitcoinLikeMutations({ targetAccountSize: 8 }),
|
|
863906
864086
|
minViableAmount: genericMinimalAmount
|
|
863907
864087
|
};
|
|
864088
|
+
var bitcoinRegtest = {
|
|
864089
|
+
name: "Bitcoin Regtest",
|
|
864090
|
+
currency: getCryptoCurrencyById("bitcoin_regtest"),
|
|
864091
|
+
appQuery: {
|
|
864092
|
+
model: DeviceModelId.nanoS,
|
|
864093
|
+
appName: "Bitcoin Test",
|
|
864094
|
+
appVersion: "2.1.1"
|
|
864095
|
+
},
|
|
864096
|
+
genericDeviceAction: acceptTransaction3,
|
|
864097
|
+
test: genericTest,
|
|
864098
|
+
mutations: bitcoinLikeMutations({ targetAccountSize: 8 }),
|
|
864099
|
+
minViableAmount: genericMinimalAmount
|
|
864100
|
+
};
|
|
863908
864101
|
var bitcoinGold = {
|
|
863909
864102
|
name: "Bitcoin Gold",
|
|
863910
864103
|
currency: getCryptoCurrencyById("bitcoin_gold"),
|
|
@@ -864102,6 +864295,7 @@ var litecoin = {
|
|
|
864102
864295
|
var specs_default2 = {
|
|
864103
864296
|
bitcoin,
|
|
864104
864297
|
bitcoinTestnet,
|
|
864298
|
+
bitcoinRegtest,
|
|
864105
864299
|
bitcoinCash,
|
|
864106
864300
|
bitcoinGold,
|
|
864107
864301
|
dash,
|
|
@@ -865705,7 +865899,8 @@ var minBalancePerCurrencyId = {
|
|
|
865705
865899
|
blast_sepolia: 1e-3,
|
|
865706
865900
|
hyperevm: 1e-3,
|
|
865707
865901
|
berachain: 1e-3,
|
|
865708
|
-
sei_network_evm: 1e-3
|
|
865902
|
+
sei_network_evm: 1e-3,
|
|
865903
|
+
monad: 0.05
|
|
865709
865904
|
};
|
|
865710
865905
|
var testCoinDestination = (args3) => {
|
|
865711
865906
|
const { sendingAccount } = args3;
|