@btc-vision/transaction 1.7.25 → 1.7.26

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/browser/index.js CHANGED
@@ -1,13 +1,26 @@
1
- import { z as Te, o as Jt, s as vi } from "./vendors.js";
2
- import { B as a, a as I } from "./polyfills.js";
3
- import { i as at, b as T, p as Li, a as dt, c as te, t as O, d as st, e as rt, f as k, g as ve, h as ee, j as St, k as Ie, l as ki, o as g, m as F, n as Dt, q as jt, r as Le, s as Ui, u as G, v as ft, w as _i, x as Ki, y as ke, z as xt, A as Yt, B as Ue, C as Di, D as _e, P as v, E as Ci, F as Pe, G as Ri, H as Ee, I as Fi, J as Wi, K as Mi, L as Ni, M as _, T as ie, N as Hi } from "./btc-vision-bitcoin.js";
4
- import { f as Q, s as Vi, d as Ct, g as Ft, b as zi, c as qi, e as $i } from "./bitcoin-utils.js";
5
- import { b as Ae, c as P } from "./btc-vision-bip32.js";
6
- import { s as Xi, m as Yi, e as Gi } from "./noble-curves.js";
7
- import { A as Qi, z as oe, x as ji, u as Zi } from "./noble-hashes.js";
8
- import { L as Ke } from "./btc-vision-logger.js";
9
- import { s as gt } from "./bip39.js";
10
- const Ji = "1.7.25";
1
+ import { B as a, g as Yt, h as Ie, j as P, k as Q, s as ki, l as te, a as I, L as ke, d as Dt, m as Ft, n as gt, c as Li, f as Ui, e as _i, o as Ki } from "./vendors.js";
2
+ import { i as at, b as T, p as Di, a as dt, c as ee, t as O, d as st, e as rt, f as L, g as Le, h as ie, j as St, k as Pe, l as Ci, o as g, m as F, n as Ct, q as Zt, r as Ue, s as Ri, u as G, v as ft, w as Fi, x as Wi, y as _e, z as xt, A as Gt, B as Ke, C as Mi, D as De, P as v, E as Ni, F as Ee, G as Hi, H as Ae, I as Vi, J as zi, K as qi, L as $i, M as _, T as re, N as Xi } from "./btc-vision-bitcoin.js";
3
+ import { s as Yi, m as Gi, f as Qi } from "./noble-curves.js";
4
+ import { C as ji, n as ae, l as Zi, g as Ji } from "./noble-hashes.js";
5
+ const tr = "1.7.24";
6
+ function er(n, t = {}) {
7
+ return a.from(Yt.gzip(n, { level: t.level || 6 }));
8
+ }
9
+ function ir(n) {
10
+ return a.from(Yt.ungzip(n));
11
+ }
12
+ function rr(n, t = {}) {
13
+ return a.from(Yt.deflate(n, { level: t.level || 6 }));
14
+ }
15
+ function sr(n) {
16
+ return a.from(Yt.inflate(n));
17
+ }
18
+ const Oe = {
19
+ gzipSync: er,
20
+ gunzipSync: ir,
21
+ deflateSync: rr,
22
+ inflateSync: sr
23
+ };
11
24
  class N {
12
25
  static {
13
26
  this.zlibOptions = {
@@ -22,7 +35,7 @@ class N {
22
35
  * @returns {Buffer} The compressed data.
23
36
  */
24
37
  static compress(t) {
25
- return Te.gzipSync(t, N.zlibOptions);
38
+ return Oe.gzipSync(t, N.zlibOptions);
26
39
  }
27
40
  /**
28
41
  * Decompresses the data using gunzip.
@@ -30,23 +43,23 @@ class N {
30
43
  * @returns {Buffer} The decompressed data.
31
44
  */
32
45
  static decompress(t) {
33
- return Te.gunzipSync(t, N.zlibOptions);
46
+ return Oe.gunzipSync(t, N.zlibOptions);
34
47
  }
35
48
  }
36
49
  at(Q);
37
- const De = typeof Ae == "function" ? Ae : P.BIP32Factory;
38
- if (!De)
50
+ const Ce = typeof Ie == "function" ? Ie : P.BIP32Factory;
51
+ if (!Ce)
39
52
  throw new Error("Failed to load BIP32 library");
40
- const ct = Xi.Point, tr = ct.Fn.ORDER, er = Qi("TapTweak"), Oe = oe(er);
41
- function ir(n) {
42
- return oe(Zi(Oe, Oe, n));
53
+ const ct = Yi.Point, nr = ct.Fn.ORDER, or = ji("TapTweak"), Be = ae(or);
54
+ function ar(n) {
55
+ return ae(Ji(Be, Be, n));
43
56
  }
44
57
  class A {
45
58
  static {
46
- this.BIP32 = De(Q);
59
+ this.BIP32 = Ce(Q);
47
60
  }
48
61
  static {
49
- this.ECPair = Vi.ECPairFactory(Q);
62
+ this.ECPair = ki.ECPairFactory(Q);
50
63
  }
51
64
  static {
52
65
  ct.BASE.precompute(8);
@@ -93,7 +106,7 @@ class A {
93
106
  static generateMultiSigAddress(t, e, i = T) {
94
107
  const r = this.verifyPubKeys(t, i);
95
108
  if (r.length !== t.length) throw new Error("Contains invalid public keys");
96
- const s = Li({
109
+ const s = Di({
97
110
  m: e,
98
111
  pubkeys: r,
99
112
  network: i
@@ -124,7 +137,7 @@ class A {
124
137
  * @returns {string} - The address
125
138
  */
126
139
  static getP2WPKHAddress(t, e = T) {
127
- const i = te({ pubkey: a.from(t.publicKey), network: e });
140
+ const i = ee({ pubkey: a.from(t.publicKey), network: e });
128
141
  if (!i.address)
129
142
  throw new Error("Failed to generate wallet");
130
143
  return i.address;
@@ -171,8 +184,8 @@ class A {
171
184
  ]);
172
185
  if (r.length < 2 || r.length > 40)
173
186
  throw new Error("Witness program must be 2-40 bytes.");
174
- const s = k([g.OP_16, r]);
175
- return ve(s, e);
187
+ const s = L([g.OP_16, r]);
188
+ return Le(s, e);
176
189
  }
177
190
  /**
178
191
  * Get the address of a xOnly tweaked public key
@@ -199,7 +212,7 @@ class A {
199
212
  */
200
213
  static tweakPublicKey(t) {
201
214
  typeof t == "string" && t.startsWith("0x") && (t = t.slice(2));
202
- const e = ct.fromHex(t), i = (e.y & 1n) === 0n ? e : e.negate(), r = a.from(i.toBytes(!0).subarray(1)), s = ir(r), o = Yi(Gi(s), tr), c = i.add(ct.BASE.multiply(o));
215
+ const e = ct.fromHex(t), i = (e.y & 1n) === 0n ? e : e.negate(), r = a.from(i.toBytes(!0).subarray(1)), s = ar(r), o = Gi(Qi(s), nr), c = i.add(ct.BASE.multiply(o));
203
216
  return a.from(c.toBytes(!0));
204
217
  }
205
218
  /**
@@ -248,7 +261,7 @@ class A {
248
261
  * @returns A random ML-DSA keypair
249
262
  */
250
263
  static generateQuantumKeyPair(t = P.MLDSASecurityLevel.LEVEL2, e = T) {
251
- const i = ji(64), r = P.QuantumBIP32Factory.fromSeed(
264
+ const i = Zi(64), r = P.QuantumBIP32Factory.fromSeed(
252
265
  a.from(i),
253
266
  e,
254
267
  t
@@ -267,7 +280,7 @@ class A {
267
280
  * @returns {boolean} - Whether the address is valid
268
281
  */
269
282
  static verifyContractAddress(t, e = T) {
270
- return !!ee(t, e);
283
+ return !!ie(t, e);
271
284
  }
272
285
  /**
273
286
  * Get the legacy segwit address from a keypair
@@ -277,7 +290,7 @@ class A {
277
290
  */
278
291
  static getLegacySegwitAddress(t, e = T) {
279
292
  const i = St({
280
- redeem: te({ pubkey: a.from(t.publicKey), network: e }),
293
+ redeem: ee({ pubkey: a.from(t.publicKey), network: e }),
281
294
  network: e
282
295
  });
283
296
  if (!i.address)
@@ -291,7 +304,7 @@ class A {
291
304
  * @returns {string} - The legacy address
292
305
  */
293
306
  static getLegacyAddress(t, e = T) {
294
- const i = Ie({ pubkey: a.from(t.publicKey), network: e });
307
+ const i = Pe({ pubkey: a.from(t.publicKey), network: e });
295
308
  if (!i.address)
296
309
  throw new Error("Failed to generate wallet");
297
310
  return i.address;
@@ -303,7 +316,7 @@ class A {
303
316
  * @returns {string} - The legacy address
304
317
  */
305
318
  static getP2PKH(t, e = T) {
306
- const i = Ie({ pubkey: a.from(t), network: e });
319
+ const i = Pe({ pubkey: a.from(t), network: e });
307
320
  if (!i.address)
308
321
  throw new Error("Failed to generate wallet");
309
322
  return i.address;
@@ -315,7 +328,7 @@ class A {
315
328
  * @returns {string} - The legacy address
316
329
  */
317
330
  static getP2PKAddress(t, e = T) {
318
- const i = ki({ pubkey: a.from(t.publicKey), network: e });
331
+ const i = Ci({ pubkey: a.from(t.publicKey), network: e });
319
332
  if (!i.output)
320
333
  throw new Error("Failed to generate wallet");
321
334
  return "0x" + i.output.toString("hex");
@@ -381,7 +394,7 @@ class A {
381
394
  return this.ECPair.fromPrivateKey(a.from(r), { network: e });
382
395
  }
383
396
  }
384
- const D = 32, rr = 4, Pt = 32, yt = 16, Wt = 8, lt = 4, Et = 2, Mt = 1, sr = 32, mt = 16, nr = 8, or = 4, ar = 2, cr = 1, ur = 1;
397
+ const D = 32, cr = 4, Pt = 32, yt = 16, Wt = 8, lt = 4, Et = 2, Mt = 1, ur = 32, mt = 16, hr = 8, lr = 4, dr = 2, fr = 1, pr = 1;
385
398
  class Y {
386
399
  static {
387
400
  this.EXPECTED_BUFFER_LENGTH = 32;
@@ -422,7 +435,7 @@ class Y {
422
435
  return BigInt(e ? "0x" + e : 0);
423
436
  }
424
437
  }
425
- const hr = /^[0-9a-fA-F]+$/;
438
+ const gr = /^[0-9a-fA-F]+$/;
426
439
  class K {
427
440
  /**
428
441
  * Converts satoshi to BTC
@@ -458,7 +471,7 @@ class K {
458
471
  );
459
472
  }
460
473
  static isValidHex(t) {
461
- return hr.test(t);
474
+ return gr.test(t);
462
475
  }
463
476
  /**
464
477
  * Hashes the given data
@@ -466,7 +479,7 @@ class K {
466
479
  * @returns {string} The hashed data
467
480
  */
468
481
  static opnetHash(t) {
469
- const e = Jt.createHash("sha512");
482
+ const e = te("sha512");
470
483
  e.update(t);
471
484
  const i = e.digest();
472
485
  return `0x${a.from(i).toString("hex")}`;
@@ -518,7 +531,7 @@ class q {
518
531
  static generateP2WDAAddress(t, e) {
519
532
  if (t.length !== 33)
520
533
  throw new Error("Public key must be 33 bytes (compressed)");
521
- const i = k([
534
+ const i = L([
522
535
  g.OP_2DROP,
523
536
  g.OP_2DROP,
524
537
  g.OP_2DROP,
@@ -616,7 +629,7 @@ class H {
616
629
  if (!t || t.length < 50) return !1;
617
630
  let i = !1;
618
631
  try {
619
- ee(t, e), i = Dt(t).version === 1;
632
+ ie(t, e), i = Ct(t).version === 1;
620
633
  } catch {
621
634
  }
622
635
  return i;
@@ -632,8 +645,8 @@ class H {
632
645
  if (!t || t.length < 20 || t.length > 50) return !1;
633
646
  let i = !1;
634
647
  try {
635
- const r = Dt(t);
636
- ee(t, e), i = r.version === 0 && r.data.length === 20;
648
+ const r = Ct(t);
649
+ ie(t, e), i = r.version === 0 && r.data.length === 20;
637
650
  } catch {
638
651
  }
639
652
  return i;
@@ -662,7 +675,7 @@ class H {
662
675
  */
663
676
  static isP2PKHOrP2SH(t, e) {
664
677
  try {
665
- const i = jt(t);
678
+ const i = Zt(t);
666
679
  return i.version === e.pubKeyHash ? !0 : i.version === e.scriptHash;
667
680
  } catch {
668
681
  return !1;
@@ -740,7 +753,7 @@ class H {
740
753
  static isValidP2OPAddress(t, e) {
741
754
  if (!t || t.length < 20) return !1;
742
755
  try {
743
- const i = Dt(t);
756
+ const i = Ct(t);
744
757
  return i.prefix === e.bech32 || i.prefix === e.bech32Opnet ? i.version === 16 && i.data.length === 21 : !1;
745
758
  } catch {
746
759
  return !1;
@@ -754,7 +767,7 @@ class H {
754
767
  */
755
768
  static requireRedeemScript(t, e) {
756
769
  try {
757
- const i = jt(t);
770
+ const i = Zt(t);
758
771
  return i.version === e.pubKeyHash ? !1 : i.version === e.scriptHash;
759
772
  } catch {
760
773
  return !1;
@@ -779,7 +792,7 @@ class H {
779
792
  if (H.isValidPublicKey(t, e))
780
793
  return "P2PK";
781
794
  try {
782
- const i = jt(t);
795
+ const i = Zt(t);
783
796
  if (i.version === e.pubKeyHash)
784
797
  return "P2PKH";
785
798
  if (i.version === e.scriptHash)
@@ -787,7 +800,7 @@ class H {
787
800
  } catch {
788
801
  }
789
802
  try {
790
- const i = Dt(t);
803
+ const i = Ct(t);
791
804
  if ((i.prefix === e.bech32Opnet || i.prefix === e.bech32) && i.version === 16 && i.data.length === 21)
792
805
  return "P2OP";
793
806
  if (i.prefix === e.bech32) {
@@ -885,7 +898,7 @@ class H {
885
898
  }
886
899
  }
887
900
  const ot = 0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffffc2fn;
888
- class Ce {
901
+ class Re {
889
902
  constructor(t = 1e4) {
890
903
  this.maxTries = t;
891
904
  }
@@ -987,9 +1000,9 @@ class Ce {
987
1000
  return e;
988
1001
  }
989
1002
  }
990
- class lr {
1003
+ class Sr {
991
1004
  constructor() {
992
- this.deriver = new Ce();
1005
+ this.deriver = new Re();
993
1006
  }
994
1007
  generateHybridKeyFromHash(t) {
995
1008
  const e = this.deriver.findOrDeriveValidPoint(this.cloneBuffer(t), !1), i = this.deriver.getCanonicalY(e.y1, e.y2);
@@ -999,7 +1012,7 @@ class lr {
999
1012
  return a.from(t);
1000
1013
  }
1001
1014
  }
1002
- const re = new lr();
1015
+ const se = new Sr();
1003
1016
  class M {
1004
1017
  static {
1005
1018
  this.UNSPENDABLE_INTERNAL_KEY = a.from(
@@ -1043,8 +1056,8 @@ class M {
1043
1056
  return s.address;
1044
1057
  }
1045
1058
  static generateTimeLockScript(t, e = M.CSV_BLOCKS) {
1046
- return k([
1047
- Le.encode(e),
1059
+ return L([
1060
+ Ue.encode(e),
1048
1061
  g.OP_CHECKSEQUENCEVERIFY,
1049
1062
  g.OP_DROP,
1050
1063
  t,
@@ -1052,7 +1065,7 @@ class M {
1052
1065
  ]);
1053
1066
  }
1054
1067
  }
1055
- class L extends Uint8Array {
1068
+ class k extends Uint8Array {
1056
1069
  #t;
1057
1070
  #e;
1058
1071
  #s;
@@ -1120,7 +1133,7 @@ class L extends Uint8Array {
1120
1133
  return this.#u;
1121
1134
  }
1122
1135
  static dead() {
1123
- return L.fromString(
1136
+ return k.fromString(
1124
1137
  "0x0000000000000000000000000000000000000000000000000000000000000000",
1125
1138
  // DEAD ADDRESS
1126
1139
  "0x04678afdb0fe5548271967f1a67130b7105cd6a828e03909a67962e0ea1f61deb649f6bc3f4cef38c4f35504e51ec112de5c384df7ba0b8d578a4c702b6bf11d5f"
@@ -1147,7 +1160,7 @@ class L extends Uint8Array {
1147
1160
  );
1148
1161
  i = a.from(e, "hex");
1149
1162
  }
1150
- return new L(a.from(t, "hex"), i);
1163
+ return new k(a.from(t, "hex"), i);
1151
1164
  }
1152
1165
  /**
1153
1166
  * Create an address from a public key
@@ -1155,7 +1168,7 @@ class L extends Uint8Array {
1155
1168
  * @param {ArrayLike<number>} bytes The public key
1156
1169
  */
1157
1170
  static wrap(t) {
1158
- return new L(t);
1171
+ return new k(t);
1159
1172
  }
1160
1173
  static uncompressedToCompressed(t) {
1161
1174
  const e = Uint8Array.from(t), i = e.slice(1, 33), r = e.slice(33), s = a.alloc(33);
@@ -1182,7 +1195,7 @@ class L extends Uint8Array {
1182
1195
  */
1183
1196
  static fromBigInt(t) {
1184
1197
  const e = new Uint8Array(32), i = new DataView(e.buffer);
1185
- return i.setBigUint64(0, t >> 192n & 0xffffffffffffffffn, !1), i.setBigUint64(8, t >> 128n & 0xffffffffffffffffn, !1), i.setBigUint64(16, t >> 64n & 0xffffffffffffffffn, !1), i.setBigUint64(24, t & 0xffffffffffffffffn, !1), new L(e);
1198
+ return i.setBigUint64(0, t >> 192n & 0xffffffffffffffffn, !1), i.setBigUint64(8, t >> 128n & 0xffffffffffffffffn, !1), i.setBigUint64(16, t >> 64n & 0xffffffffffffffffn, !1), i.setBigUint64(24, t & 0xffffffffffffffffn, !1), new k(e);
1186
1199
  }
1187
1200
  /**
1188
1201
  * Creates an Address instance from four 64-bit unsigned integers.
@@ -1212,7 +1225,7 @@ class L extends Uint8Array {
1212
1225
  */
1213
1226
  static fromUint64Array(t, e, i, r) {
1214
1227
  const s = new Uint8Array(32), o = new DataView(s.buffer);
1215
- return o.setBigUint64(0, t, !1), o.setBigUint64(8, e, !1), o.setBigUint64(16, i, !1), o.setBigUint64(24, r, !1), new L(s);
1228
+ return o.setBigUint64(0, t, !1), o.setBigUint64(8, e, !1), o.setBigUint64(16, i, !1), o.setBigUint64(24, r, !1), new k(s);
1216
1229
  }
1217
1230
  /**
1218
1231
  * Converts the address to four 64-bit unsigned integers.
@@ -1569,7 +1582,7 @@ class L extends Uint8Array {
1569
1582
  `Invalid ML-DSA public key length: ${t.length}. Expected 1312 (ML-DSA-44/LEVEL2), 1952 (ML-DSA-65/LEVEL3), or 2592 (ML-DSA-87/LEVEL5) bytes.`
1570
1583
  );
1571
1584
  this.#l = new Uint8Array(t.length), this.#l.set(t);
1572
- const i = oe(new Uint8Array(t)), r = new Uint8Array(D);
1585
+ const i = ae(new Uint8Array(t)), r = new Uint8Array(D);
1573
1586
  r.set(i), super.set(r);
1574
1587
  }
1575
1588
  }
@@ -1584,7 +1597,7 @@ class L extends Uint8Array {
1584
1597
  if (t)
1585
1598
  if (t.length === D) {
1586
1599
  const e = a.alloc(D);
1587
- e.set(t), this.#n = re.generateHybridKeyFromHash(e), this.#c = t;
1600
+ e.set(t), this.#n = se.generateHybridKeyFromHash(e), this.#c = t;
1588
1601
  } else
1589
1602
  this.autoFormat(t);
1590
1603
  }
@@ -1594,11 +1607,11 @@ class L extends Uint8Array {
1594
1607
  */
1595
1608
  autoFormat(t) {
1596
1609
  const e = t[0];
1597
- e === 3 || e === 2 || (e === 4 || e === 6 || e === 7) && (t = L.uncompressedToCompressed(t)), this.#i = Uint8Array.from(t), this.#u = A.fromPublicKey(this.#i), this.#r = Ui(this.#i);
1610
+ e === 3 || e === 2 || (e === 4 || e === 6 || e === 7) && (t = k.uncompressedToCompressed(t)), this.#i = Uint8Array.from(t), this.#u = A.fromPublicKey(this.#i), this.#r = Ri(this.#i);
1598
1611
  const i = O(
1599
1612
  A.tweakPublicKey(a.from(this.#i))
1600
1613
  );
1601
- this.#n = re.generateHybridKeyFromHash(i), this.#c = new Uint8Array(D), this.#c.set(i);
1614
+ this.#n = se.generateHybridKeyFromHash(i), this.#c = new Uint8Array(D), this.#c.set(i);
1602
1615
  }
1603
1616
  }
1604
1617
  class vt {
@@ -1665,7 +1678,7 @@ class vt {
1665
1678
  yield [t, this._values[t]];
1666
1679
  }
1667
1680
  }
1668
- class Re {
1681
+ class Fe {
1669
1682
  constructor(t) {
1670
1683
  if (this.items = new vt(), t)
1671
1684
  for (const [e, i] of t)
@@ -1699,11 +1712,11 @@ class Re {
1699
1712
  */
1700
1713
  *entries() {
1701
1714
  for (const [t, e] of this.items.entries())
1702
- yield [L.fromBigInt(t), e];
1715
+ yield [k.fromBigInt(t), e];
1703
1716
  }
1704
1717
  *keys() {
1705
1718
  for (const t of this.items.keys())
1706
- yield L.fromBigInt(t);
1719
+ yield k.fromBigInt(t);
1707
1720
  }
1708
1721
  *values() {
1709
1722
  for (const t of this.items.values())
@@ -1711,7 +1724,7 @@ class Re {
1711
1724
  }
1712
1725
  forEach(t, e) {
1713
1726
  for (const [i, r] of this.items.entries()) {
1714
- const s = L.fromBigInt(i);
1727
+ const s = k.fromBigInt(i);
1715
1728
  t.call(e, r, s, this);
1716
1729
  }
1717
1730
  }
@@ -1719,7 +1732,7 @@ class Re {
1719
1732
  yield* this.entries();
1720
1733
  }
1721
1734
  }
1722
- class Gt {
1735
+ class Qt {
1723
1736
  constructor(t) {
1724
1737
  this.currentOffset = 0, this.buffer = new DataView(t.buffer, t.byteOffset, t.byteLength);
1725
1738
  }
@@ -1859,7 +1872,7 @@ class Gt {
1859
1872
  */
1860
1873
  readAddress() {
1861
1874
  const t = Array.from(this.readBytes(D));
1862
- return new L(t);
1875
+ return new k(t);
1863
1876
  }
1864
1877
  /**
1865
1878
  * Reads bytes written as [u32 length][bytes].
@@ -1937,7 +1950,7 @@ class Gt {
1937
1950
  * Reads [u16 length][ (address, u256) pairs ].
1938
1951
  */
1939
1952
  readAddressValueTuple(t = !0) {
1940
- const e = this.readU16(t), i = new Re();
1953
+ const e = this.readU16(t), i = new Fe();
1941
1954
  for (let r = 0; r < e; r++) {
1942
1955
  const s = this.readAddress(), o = this.readU256(t);
1943
1956
  if (i.has(s))
@@ -2079,7 +2092,7 @@ class C {
2079
2092
  this.currentOffset = 0, this.buffer = this.getDefaultBuffer(4);
2080
2093
  }
2081
2094
  toBytesReader() {
2082
- return new Gt(this.getBuffer());
2095
+ return new Qt(this.getBuffer());
2083
2096
  }
2084
2097
  getOffset() {
2085
2098
  return this.currentOffset;
@@ -2240,7 +2253,7 @@ class $ {
2240
2253
  const i = new C();
2241
2254
  i.writeU16(Object.keys(t.data).length);
2242
2255
  for (const r in t.data) {
2243
- const s = L.fromString(r), o = t.data[r];
2256
+ const s = k.fromString(r), o = t.data[r];
2244
2257
  i.writeAddress(s), i.writeU32(o.length);
2245
2258
  for (const c of o) {
2246
2259
  const u = a.from(c, "base64");
@@ -2271,7 +2284,7 @@ class $ {
2271
2284
  r.writeBytes(i.legacySignature), e.writeBytesWithLength(r.getBuffer());
2272
2285
  }
2273
2286
  }
2274
- class ae extends $ {
2287
+ class ce extends $ {
2275
2288
  constructor(t, e, i = T) {
2276
2289
  super(t, e, i);
2277
2290
  }
@@ -2352,13 +2365,13 @@ class ae extends $ {
2352
2365
  g.OP_1,
2353
2366
  g.OP_ENDIF
2354
2367
  );
2355
- const l = h.flat(), d = k(l);
2368
+ const l = h.flat(), d = L(l);
2356
2369
  if (!F(d))
2357
2370
  throw new Error("Failed to decompile script??");
2358
2371
  return d;
2359
2372
  }
2360
2373
  }
2361
- class Fe extends $ {
2374
+ class We extends $ {
2362
2375
  constructor(t, e = T) {
2363
2376
  super(t, void 0, e);
2364
2377
  }
@@ -2369,13 +2382,13 @@ class Fe extends $ {
2369
2382
  * @throws {Error} - If something goes wrong
2370
2383
  */
2371
2384
  compile(t) {
2372
- const e = t.flat(), i = k(e);
2385
+ const e = t.flat(), i = L(e);
2373
2386
  if (!F(i))
2374
2387
  throw new Error("Failed to decompile script??");
2375
2388
  return i;
2376
2389
  }
2377
2390
  }
2378
- const We = 0, Me = a.from([We]);
2391
+ const Me = 0, Ne = a.from([Me]);
2379
2392
  class Nt extends $ {
2380
2393
  constructor(t, e, i = T) {
2381
2394
  super(t, e, i);
@@ -2398,7 +2411,7 @@ class Nt extends $ {
2398
2411
  r,
2399
2412
  s,
2400
2413
  o
2401
- ), u = k(c);
2414
+ ), u = L(c);
2402
2415
  if (!F(u))
2403
2416
  throw new Error("Failed to decompile script??");
2404
2417
  return u;
@@ -2451,7 +2464,7 @@ class Nt extends $ {
2451
2464
  ].flat();
2452
2465
  }
2453
2466
  }
2454
- class E extends Ke {
2467
+ class E extends ke {
2455
2468
  constructor(t, e = T) {
2456
2469
  if (super(), this.logColor = "#4a90d9", t.length !== 33)
2457
2470
  throw new Error("Public key must be 33 bytes (compressed)");
@@ -2681,7 +2694,7 @@ class E extends Ke {
2681
2694
  const e = [];
2682
2695
  for (let i = t.length - 1; i >= 0; i--)
2683
2696
  e.push(g.OP_HASH160), e.push(t[i]), e.push(g.OP_EQUALVERIFY);
2684
- return e.push(this.publicKey), e.push(g.OP_CHECKSIG), k(e);
2697
+ return e.push(this.publicKey), e.push(g.OP_CHECKSIG), L(e);
2685
2698
  }
2686
2699
  /**
2687
2700
  * Generate a P2WSH address from a witness script.
@@ -2747,7 +2760,7 @@ class E extends Ke {
2747
2760
  ), s;
2748
2761
  }
2749
2762
  }
2750
- class dr extends $ {
2763
+ class wr extends $ {
2751
2764
  constructor(t, e = T) {
2752
2765
  super(t, a.alloc(0), e);
2753
2766
  }
@@ -2822,7 +2835,7 @@ class dr extends $ {
2822
2835
  g.OP_1,
2823
2836
  g.OP_ENDIF
2824
2837
  );
2825
- const l = h.flat(), d = k(l);
2838
+ const l = h.flat(), d = L(l);
2826
2839
  if (!F(d))
2827
2840
  throw new Error("Failed to decompile script??");
2828
2841
  return d;
@@ -2865,7 +2878,7 @@ class At {
2865
2878
  r,
2866
2879
  g.OP_NUMEQUAL
2867
2880
  // Use NUMEQUALVERIFY to ensure the correct number of signatures
2868
- ].flat(), h = k(u);
2881
+ ].flat(), h = L(u);
2869
2882
  if (!F(h))
2870
2883
  throw new Error("Failed to decompile script.");
2871
2884
  return h;
@@ -2940,23 +2953,23 @@ class Ot extends $ {
2940
2953
  }
2941
2954
  }
2942
2955
  at(Q);
2943
- class ce {
2956
+ class ue {
2944
2957
  // Generate a valid SegWit address from random bytes
2945
2958
  static generatePKSH(t, e) {
2946
2959
  if (t.length !== 32) throw new Error("Invalid hash length");
2947
- const i = _i(t);
2960
+ const i = Fi(t);
2948
2961
  return this.toSegwitAddress(i, e);
2949
2962
  }
2950
2963
  // Generate a valid Taproot address from a public key
2951
2964
  static generateTaprootAddress(t, e) {
2952
2965
  if (t.length !== 32) throw new Error("Invalid public key length");
2953
- const i = Ct.bech32m.toWords(t);
2954
- return i.unshift(1), Ct.bech32m.encode(e.bech32, i);
2966
+ const i = Dt.bech32m.toWords(t);
2967
+ return i.unshift(1), Dt.bech32m.encode(e.bech32, i);
2955
2968
  }
2956
2969
  // Convert a hash to a SegWit address
2957
2970
  static toSegwitAddress(t, e) {
2958
- const i = Ct.bech32.toWords(t);
2959
- return i.unshift(0), Ct.bech32.encode(e.bech32, i);
2971
+ const i = Dt.bech32.toWords(t);
2972
+ return i.unshift(0), Dt.bech32.encode(e.bech32, i);
2960
2973
  }
2961
2974
  }
2962
2975
  class et {
@@ -2975,7 +2988,7 @@ class et {
2975
2988
  t.priorityFee,
2976
2989
  t.calldata,
2977
2990
  t.features
2978
- ), s = k([
2991
+ ), s = L([
2979
2992
  O(t.deployerPubKey),
2980
2993
  g.OP_CHECKSIG
2981
2994
  ]), o = [
@@ -3002,7 +3015,7 @@ class et {
3002
3015
  t.priorityFee,
3003
3016
  t.calldata,
3004
3017
  t.features
3005
- ), o = k([
3018
+ ), o = L([
3006
3019
  O(t.deployerPubKey),
3007
3020
  g.OP_CHECKSIG
3008
3021
  ]), c = [
@@ -3039,7 +3052,7 @@ class et {
3039
3052
  }
3040
3053
  }
3041
3054
  at(Q);
3042
- class ue {
3055
+ class he {
3043
3056
  /**
3044
3057
  * Tweak a signer
3045
3058
  * @param {Signer} signer - The signer to tweak
@@ -3053,19 +3066,19 @@ class ue {
3053
3066
  t.publicKey[0] === 3 && (i = Ft.privateNegate(i));
3054
3067
  const r = Ft.privateAdd(
3055
3068
  i,
3056
- Ki(O(a.from(t.publicKey)), e.tweakHash)
3069
+ Wi(O(a.from(t.publicKey)), e.tweakHash)
3057
3070
  );
3058
3071
  if (!r)
3059
3072
  throw new Error("Invalid tweaked private key!");
3060
3073
  return A.fromPrivateKey(a.from(r), e.network);
3061
3074
  }
3062
3075
  }
3063
- function Ne(n) {
3076
+ function He(n) {
3064
3077
  return typeof n == "object" && n !== null && "web3" in n && typeof n.web3 == "object" && "getMLDSAPublicKey" in n.web3 && "signMLDSAMessage" in n.web3;
3065
3078
  }
3066
- class fr {
3079
+ class yr {
3067
3080
  sha256(t) {
3068
- return ke(a.from(t));
3081
+ return _e(a.from(t));
3069
3082
  }
3070
3083
  /**
3071
3084
  * Attempts to sign a message using OP_WALLET if available in browser environment.
@@ -3193,7 +3206,7 @@ class fr {
3193
3206
  * @returns {SignedMessage} The Schnorr signature.
3194
3207
  */
3195
3208
  tweakAndSignMessage(t, e, i) {
3196
- const r = ue.tweakSigner(t, { network: i });
3209
+ const r = he.tweakSigner(t, { network: i });
3197
3210
  return this.signMessage(r, e);
3198
3211
  }
3199
3212
  /**
@@ -3279,10 +3292,10 @@ class fr {
3279
3292
  if (typeof window > "u")
3280
3293
  return null;
3281
3294
  const t = window;
3282
- return !t.opnet || !Ne(t.opnet) ? null : t.opnet;
3295
+ return !t.opnet || !He(t.opnet) ? null : t.opnet;
3283
3296
  }
3284
3297
  }
3285
- const nt = new fr();
3298
+ const nt = new yr();
3286
3299
  at(Q);
3287
3300
  class J {
3288
3301
  /**
@@ -3324,7 +3337,7 @@ class J {
3324
3337
  );
3325
3338
  } else
3326
3339
  this._mldsaKeypair = P.QuantumBIP32Factory.fromBase58(c), this._chainCode = a.from(this._mldsaKeypair.chainCode), this._securityLevel = this._mldsaKeypair.securityLevel;
3327
- this._bufferPubKey = this._keypair.publicKey, this._address = new L(this._mldsaKeypair.publicKey, this._keypair.publicKey), this._p2tr = this._address.p2tr(this.network), this._p2wpkh = this._address.p2wpkh(this.network), this._legacy = this._address.p2pkh(this.network), this._segwitLegacy = this._address.p2shp2wpkh(this.network), this._p2wda = this._address.p2wda(this.network), this._tweakedKey = this._address.tweakedPublicKeyToBuffer();
3340
+ this._bufferPubKey = this._keypair.publicKey, this._address = new k(this._mldsaKeypair.publicKey, this._keypair.publicKey), this._p2tr = this._address.p2tr(this.network), this._p2wpkh = this._address.p2wpkh(this.network), this._legacy = this._address.p2pkh(this.network), this._segwitLegacy = this._address.p2shp2wpkh(this.network), this._p2wda = this._address.p2wda(this.network), this._tweakedKey = this._address.tweakedPublicKeyToBuffer();
3328
3341
  }
3329
3342
  /**
3330
3343
  * Get the address for the wallet
@@ -3555,7 +3568,7 @@ class J {
3555
3568
  }
3556
3569
  }
3557
3570
  var Ht = /* @__PURE__ */ ((n) => (n[n.MINIMUM = 128] = "MINIMUM", n[n.LOW = 160] = "LOW", n[n.MEDIUM = 192] = "MEDIUM", n[n.HIGH = 224] = "HIGH", n[n.MAXIMUM = 256] = "MAXIMUM", n))(Ht || {}), bt = /* @__PURE__ */ ((n) => (n[n.BIP44 = 44] = "BIP44", n[n.BIP49 = 49] = "BIP49", n[n.BIP84 = 84] = "BIP84", n[n.BIP86 = 86] = "BIP86", n))(bt || {});
3558
- function pr(n) {
3571
+ function mr(n) {
3559
3572
  switch (n) {
3560
3573
  case 44:
3561
3574
  return "BIP44: Legacy addresses (P2PKH), widely used by Unisat and other wallets";
@@ -3569,12 +3582,12 @@ function pr(n) {
3569
3582
  return "Unknown BIP standard";
3570
3583
  }
3571
3584
  }
3572
- function He(n, t, e, i, r) {
3585
+ function Ve(n, t, e, i, r) {
3573
3586
  return `m/${n}'/${t}'/${e}'/${i}/${r}`;
3574
3587
  }
3575
3588
  at(Q);
3576
- const gr = P.BIP32Factory(Q);
3577
- class he {
3589
+ const br = P.BIP32Factory(Q);
3590
+ class le {
3578
3591
  /**
3579
3592
  * Create a new Mnemonic instance from an existing phrase
3580
3593
  *
@@ -3587,7 +3600,7 @@ class he {
3587
3600
  constructor(t, e = "", i = T, r = P.MLDSASecurityLevel.LEVEL2) {
3588
3601
  if (!gt.validateMnemonic(t))
3589
3602
  throw new Error("Invalid mnemonic phrase");
3590
- this._phrase = t, this._passphrase = e, this._network = i, this._securityLevel = r, this._seed = gt.mnemonicToSeedSync(this._phrase, this._passphrase), this._classicalRoot = gr.fromSeed(this._seed, this._network), this._quantumRoot = P.QuantumBIP32Factory.fromSeed(
3603
+ this._phrase = t, this._passphrase = e, this._network = i, this._securityLevel = r, this._seed = gt.mnemonicToSeedSync(this._phrase, this._passphrase), this._classicalRoot = br.fromSeed(this._seed, this._network), this._quantumRoot = P.QuantumBIP32Factory.fromSeed(
3591
3604
  this._seed,
3592
3605
  this._network,
3593
3606
  this._securityLevel
@@ -3647,7 +3660,7 @@ class he {
3647
3660
  */
3648
3661
  static generate(t = Ht.MAXIMUM, e = "", i = T, r = P.MLDSASecurityLevel.LEVEL2) {
3649
3662
  const s = gt.generateMnemonic(t);
3650
- return new he(s, e, i, r);
3663
+ return new le(s, e, i, r);
3651
3664
  }
3652
3665
  /**
3653
3666
  * Validate a mnemonic phrase
@@ -3824,7 +3837,7 @@ class he {
3824
3837
  */
3825
3838
  buildClassicalPath(t, e, i, r = bt.BIP84) {
3826
3839
  const s = this.getCoinType();
3827
- return He(r, s, t, i ? 1 : 0, e);
3840
+ return Ve(r, s, t, i ? 1 : 0, e);
3828
3841
  }
3829
3842
  /**
3830
3843
  * Build a quantum derivation path (BIP360)
@@ -3843,11 +3856,11 @@ class he {
3843
3856
  * @returns The coin type (0 for mainnet, 1 for testnet/regtest)
3844
3857
  */
3845
3858
  getCoinType() {
3846
- return this._network.bech32 === xt.bech32 || this._network.bech32 === Yt.bech32 ? 1 : 0;
3859
+ return this._network.bech32 === xt.bech32 || this._network.bech32 === Gt.bech32 ? 1 : 0;
3847
3860
  }
3848
3861
  }
3849
- var Ve = /* @__PURE__ */ ((n) => (n[n.MLDSA44 = 1312] = "MLDSA44", n[n.MLDSA65 = 1952] = "MLDSA65", n[n.MLDSA87 = 2592] = "MLDSA87", n))(Ve || {});
3850
- function se(n) {
3862
+ var ze = /* @__PURE__ */ ((n) => (n[n.MLDSA44 = 1312] = "MLDSA44", n[n.MLDSA65 = 1952] = "MLDSA65", n[n.MLDSA87 = 2592] = "MLDSA87", n))(ze || {});
3863
+ function ne(n) {
3851
3864
  switch (n) {
3852
3865
  case 1312:
3853
3866
  return P.MLDSASecurityLevel.LEVEL2;
@@ -3859,7 +3872,7 @@ function se(n) {
3859
3872
  throw new Error(`Invalid MLDSA public key length: ${n}`);
3860
3873
  }
3861
3874
  }
3862
- class Sr {
3875
+ class Tr {
3863
3876
  constructor(t = T) {
3864
3877
  this.network = t;
3865
3878
  }
@@ -3878,24 +3891,24 @@ class Sr {
3878
3891
  }
3879
3892
  }
3880
3893
  var Bt = /* @__PURE__ */ ((n) => (n[n.Bitcoin = 0] = "Bitcoin", n[n.Fractal = 1] = "Fractal", n))(Bt || {});
3881
- function ze(n) {
3894
+ function qe(n) {
3882
3895
  return new Map(n);
3883
3896
  }
3884
- function wr(n) {
3897
+ function Ir(n) {
3885
3898
  return {
3886
3899
  enabled: !0,
3887
- signerMap: n instanceof Map ? n : ze(n)
3900
+ signerMap: n instanceof Map ? n : qe(n)
3888
3901
  };
3889
3902
  }
3890
- function yr() {
3903
+ function Pr() {
3891
3904
  return {
3892
3905
  enabled: !1,
3893
3906
  signerMap: /* @__PURE__ */ new Map()
3894
3907
  };
3895
3908
  }
3896
- var y = /* @__PURE__ */ ((n) => (n[n.GENERIC = 0] = "GENERIC", n[n.FUNDING = 1] = "FUNDING", n[n.DEPLOYMENT = 2] = "DEPLOYMENT", n[n.INTERACTION = 3] = "INTERACTION", n[n.MULTI_SIG = 4] = "MULTI_SIG", n[n.CUSTOM_CODE = 5] = "CUSTOM_CODE", n[n.CANCEL = 6] = "CANCEL", n[n.CONSOLIDATED_SETUP = 7] = "CONSOLIDATED_SETUP", n[n.CONSOLIDATED_REVEAL = 8] = "CONSOLIDATED_REVEAL", n))(y || {}), Lt = /* @__PURE__ */ ((n) => (n[n.Roswell = 0] = "Roswell", n[n.Rachel = 1] = "Rachel", n[n.Kecksburg = 2] = "Kecksburg", n[n.Phoenix = 3] = "Phoenix", n[n.Aurora = 4] = "Aurora", n[n.Rendlesham = 5] = "Rendlesham", n[n.Lazar = 6] = "Lazar", n[n.ShagHarbor = 7] = "ShagHarbor", n[n.Exeter = 8] = "Exeter", n[n.Stephenville = 9] = "Stephenville", n[n.Valensole = 10] = "Valensole", n[n.Socorro = 11] = "Socorro", n[n.Pascagoula = 12] = "Pascagoula", n[n.Tehran = 13] = "Tehran", n[n.Westall = 14] = "Westall", n[n.Hopkinsville = 15] = "Hopkinsville", n[n.Belgium = 16] = "Belgium", n[n.Breeze = 17] = "Breeze", n[n.Flatwoods = 18] = "Flatwoods", n[n.Maury = 20] = "Maury", n[n.Varginha = 21] = "Varginha", n[n.Trindade = 22] = "Trindade", n[n.Levelland = 23] = "Levelland", n[n.Wanaque = 24] = "Wanaque", n[n.Coyame = 25] = "Coyame", n[n.Delphos = 26] = "Delphos", n))(Lt || {});
3897
- const qe = {
3898
- CONSENSUS: Lt.Roswell,
3909
+ var y = /* @__PURE__ */ ((n) => (n[n.GENERIC = 0] = "GENERIC", n[n.FUNDING = 1] = "FUNDING", n[n.DEPLOYMENT = 2] = "DEPLOYMENT", n[n.INTERACTION = 3] = "INTERACTION", n[n.MULTI_SIG = 4] = "MULTI_SIG", n[n.CUSTOM_CODE = 5] = "CUSTOM_CODE", n[n.CANCEL = 6] = "CANCEL", n[n.CONSOLIDATED_SETUP = 7] = "CONSOLIDATED_SETUP", n[n.CONSOLIDATED_REVEAL = 8] = "CONSOLIDATED_REVEAL", n))(y || {}), kt = /* @__PURE__ */ ((n) => (n[n.Roswell = 0] = "Roswell", n[n.Rachel = 1] = "Rachel", n[n.Kecksburg = 2] = "Kecksburg", n[n.Phoenix = 3] = "Phoenix", n[n.Aurora = 4] = "Aurora", n[n.Rendlesham = 5] = "Rendlesham", n[n.Lazar = 6] = "Lazar", n[n.ShagHarbor = 7] = "ShagHarbor", n[n.Exeter = 8] = "Exeter", n[n.Stephenville = 9] = "Stephenville", n[n.Valensole = 10] = "Valensole", n[n.Socorro = 11] = "Socorro", n[n.Pascagoula = 12] = "Pascagoula", n[n.Tehran = 13] = "Tehran", n[n.Westall = 14] = "Westall", n[n.Hopkinsville = 15] = "Hopkinsville", n[n.Belgium = 16] = "Belgium", n[n.Breeze = 17] = "Breeze", n[n.Flatwoods = 18] = "Flatwoods", n[n.Maury = 20] = "Maury", n[n.Varginha = 21] = "Varginha", n[n.Trindade = 22] = "Trindade", n[n.Levelland = 23] = "Levelland", n[n.Wanaque = 24] = "Wanaque", n[n.Coyame = 25] = "Coyame", n[n.Delphos = 26] = "Delphos", n))(kt || {});
3910
+ const $e = {
3911
+ CONSENSUS: kt.Roswell,
3899
3912
  CONSENSUS_NAME: "Roswell",
3900
3913
  // The block height at which this consensus was enabled.
3901
3914
  ENABLED_AT_BLOCK: 0n
@@ -3911,33 +3924,33 @@ const qe = {
3911
3924
  //UNWRAP_CONSOLIDATION_PREPAID_FEES: 250n,
3912
3925
  // Equivalent to 56500 satoshis, calculated from UNWRAP_CONSOLIDATION_PREPAID_FEES.
3913
3926
  //UNWRAP_CONSOLIDATION_PREPAID_FEES_SAT: 56500n,
3914
- }, $e = {
3915
- [Lt.Roswell]: qe
3916
- }, Qt = Lt.Roswell, mr = $e[Qt];
3917
- function le(n) {
3918
- return n && !!(n.tapInternalKey || n.tapMerkleRoot || n.tapLeafScript && n.tapLeafScript.length || n.tapBip32Derivation && n.tapBip32Derivation.length || n.witnessUtxo && Ue(n.witnessUtxo.script));
3927
+ }, Xe = {
3928
+ [kt.Roswell]: $e
3929
+ }, jt = kt.Roswell, Er = Xe[jt];
3930
+ function de(n) {
3931
+ return n && !!(n.tapInternalKey || n.tapMerkleRoot || n.tapLeafScript && n.tapLeafScript.length || n.tapBip32Derivation && n.tapBip32Derivation.length || n.witnessUtxo && Ke(n.witnessUtxo.script));
3919
3932
  }
3920
- function br(n) {
3933
+ function Ar(n) {
3921
3934
  return n.redeemScript ? n.redeemScript : n.witnessScript ? n.witnessScript : n.witnessUtxo ? n.witnessUtxo.script : (n.nonWitnessUtxo, null);
3922
3935
  }
3923
- function de(n, t) {
3936
+ function fe(n, t) {
3924
3937
  if (n.nonWitnessUtxo && !n.redeemScript && !n.witnessScript && !n.witnessUtxo || n.redeemScript)
3925
3938
  return !0;
3926
- const e = br(n);
3927
- return e ? fe(t, e) : !1;
3939
+ const e = Ar(n);
3940
+ return e ? pe(t, e) : !1;
3928
3941
  }
3929
- function fe(n, t) {
3930
- return Di(n, t) !== -1;
3942
+ function pe(n, t) {
3943
+ return Mi(n, t) !== -1;
3931
3944
  }
3932
- var Xe = /* @__PURE__ */ ((n) => (n[n.REPLACE_BY_FEE = 4294967293] = "REPLACE_BY_FEE", n[n.FINAL = 4294967295] = "FINAL", n))(Xe || {}), Ye = /* @__PURE__ */ ((n) => (n[n.BLOCKS = 0] = "BLOCKS", n[n.TIMESTAMPS = 1] = "TIMESTAMPS", n))(Ye || {});
3933
- class kt extends Ke {
3945
+ var Ye = /* @__PURE__ */ ((n) => (n[n.REPLACE_BY_FEE = 4294967293] = "REPLACE_BY_FEE", n[n.FINAL = 4294967295] = "FINAL", n))(Ye || {}), Ge = /* @__PURE__ */ ((n) => (n[n.BLOCKS = 0] = "BLOCKS", n[n.TIMESTAMPS = 1] = "TIMESTAMPS", n))(Ge || {});
3946
+ class Lt extends ke {
3934
3947
  constructor(t) {
3935
3948
  super(), this.logColor = "#00ffe1", this.finalized = !1, this.signed = !1, this.scriptData = null, this.tapData = null, this.inputs = [], this.sequence = 4294967293, this.tapLeafScript = null, this.isBrowser = !1, this.csvInputIndices = /* @__PURE__ */ new Set(), this.anchorInputIndices = /* @__PURE__ */ new Set(), this.regenerated = !1, this.ignoreSignatureErrors = !1, this.noSignatures = !1, this.txVersion = 2, this._mldsaSigner = null, this._hashedPublicKey = null, this.addressRotationEnabled = !1, this.signerMap = /* @__PURE__ */ new Map(), this.inputSignerMap = /* @__PURE__ */ new Map(), this.tweakedSignerCache = /* @__PURE__ */ new Map(), this.customFinalizerP2SH = (e, i, r, s, o, c) => {
3936
3949
  const u = this.inputs[e];
3937
3950
  if (o && i.partialSig && u && u.redeemScript) {
3938
3951
  const h = i.partialSig.map((d) => d.signature) || [];
3939
3952
  return {
3940
- finalScriptSig: k([...h, u.redeemScript]),
3953
+ finalScriptSig: L([...h, u.redeemScript]),
3941
3954
  finalScriptWitness: void 0
3942
3955
  };
3943
3956
  }
@@ -3959,7 +3972,7 @@ class kt extends Ke {
3959
3972
  };
3960
3973
  }
3961
3974
  }
3962
- return _e(
3975
+ return De(
3963
3976
  e,
3964
3977
  i,
3965
3978
  r,
@@ -4000,7 +4013,7 @@ class kt extends Ke {
4000
4013
  return e += c, u;
4001
4014
  }
4002
4015
  function r() {
4003
- const c = zi(t, e);
4016
+ const c = Li(t, e);
4004
4017
  return e += c.bytes, c.numberValue || 0;
4005
4018
  }
4006
4019
  function s() {
@@ -4213,7 +4226,7 @@ class kt extends Ke {
4213
4226
  async signInput(t, e, i, r, s = !1, o = !1) {
4214
4227
  if (this.anchorInputIndices.has(i)) return;
4215
4228
  const c = r.publicKey;
4216
- let u = le(e);
4229
+ let u = de(e);
4217
4230
  s && (u = !u);
4218
4231
  let h = !1, l = !1;
4219
4232
  if (u)
@@ -4224,7 +4237,7 @@ class kt extends Ke {
4224
4237
  `Failed to sign Taproot script path input ${i} (reverse: ${s}): ${d.message}`
4225
4238
  ), l = !0;
4226
4239
  }
4227
- else if (s || de(e, c))
4240
+ else if (s || fe(e, c))
4228
4241
  try {
4229
4242
  await this.signNonTaprootInput(r, t, i), h = !0;
4230
4243
  } catch (d) {
@@ -4313,7 +4326,7 @@ class kt extends Ke {
4313
4326
  network: this.network
4314
4327
  };
4315
4328
  if (t && (i.tweakHash = this.getTweakerHash()), "privateKey" in e)
4316
- return ue.tweakSigner(e, i);
4329
+ return he.tweakSigner(e, i);
4317
4330
  }
4318
4331
  generateP2SHRedeemScript(t) {
4319
4332
  const e = dt({
@@ -4326,13 +4339,13 @@ class kt extends Ke {
4326
4339
  }).output;
4327
4340
  }
4328
4341
  generateP2SHRedeemScriptLegacy(t) {
4329
- const e = ft(this.signer.publicKey), i = k([
4342
+ const e = ft(this.signer.publicKey), i = L([
4330
4343
  g.OP_DUP,
4331
4344
  g.OP_HASH160,
4332
4345
  e,
4333
4346
  g.OP_EQUALVERIFY,
4334
4347
  g.OP_CHECKSIG
4335
- ]), r = ft(i), s = k([
4348
+ ]), r = ft(i), s = L([
4336
4349
  g.OP_HASH160,
4337
4350
  r,
4338
4351
  g.OP_EQUAL
@@ -4345,14 +4358,14 @@ class kt extends Ke {
4345
4358
  // The P2WSH is wrapped inside the P2SH
4346
4359
  network: this.network
4347
4360
  });
4348
- if (ve(s, this.network) === t && c.redeem && c.redeem.output)
4361
+ if (Le(s, this.network) === t && c.redeem && c.redeem.output)
4349
4362
  return {
4350
4363
  redeemScript: i,
4351
4364
  outputScript: c.redeem.output
4352
4365
  };
4353
4366
  }
4354
4367
  generateP2SHP2PKHRedeemScript(t, e) {
4355
- const i = this.addressRotationEnabled && e !== void 0 ? this.getSignerForInput(e) : this.signer, r = I.isBuffer(i.publicKey) ? i.publicKey : I.from(i.publicKey, "hex"), s = te({
4368
+ const i = this.addressRotationEnabled && e !== void 0 ? this.getSignerForInput(e) : this.signer, r = I.isBuffer(i.publicKey) ? i.publicKey : I.from(i.publicKey, "hex"), s = ee({
4356
4369
  pubkey: r,
4357
4370
  network: this.network
4358
4371
  }), o = St({
@@ -4385,14 +4398,14 @@ class kt extends Ke {
4385
4398
  script: r
4386
4399
  }
4387
4400
  };
4388
- if (Ci(r))
4401
+ if (Ni(r))
4389
4402
  if (t.nonWitnessUtxo)
4390
4403
  s.nonWitnessUtxo = I.isBuffer(t.nonWitnessUtxo) ? t.nonWitnessUtxo : I.from(t.nonWitnessUtxo, "hex");
4391
4404
  else
4392
4405
  throw new Error("Missing nonWitnessUtxo for P2PKH UTXO");
4393
- else if (!(Pe(r) || Ri(r))) if (Ee(r))
4406
+ else if (!(Ee(r) || Hi(r))) if (Ae(r))
4394
4407
  this.processP2WSHInput(t, s, e);
4395
- else if (Fi(r)) {
4408
+ else if (Vi(r)) {
4396
4409
  let o;
4397
4410
  if (t.redeemScript)
4398
4411
  o = I.isBuffer(t.redeemScript) ? t.redeemScript : I.from(t.redeemScript, "hex");
@@ -4416,16 +4429,16 @@ class kt extends Ke {
4416
4429
  const u = c.redeem.output;
4417
4430
  if (!u)
4418
4431
  throw new Error("Failed to extract redeem output from P2SH UTXO");
4419
- t.nonWitnessUtxo && (s.nonWitnessUtxo = I.isBuffer(t.nonWitnessUtxo) ? t.nonWitnessUtxo : I.from(t.nonWitnessUtxo, "hex")), Pe(u) ? delete s.nonWitnessUtxo : Ee(u) ? (delete s.nonWitnessUtxo, this.processP2WSHInput(t, s, e)) : delete s.witnessUtxo;
4420
- } else if (Ue(r)) {
4432
+ t.nonWitnessUtxo && (s.nonWitnessUtxo = I.isBuffer(t.nonWitnessUtxo) ? t.nonWitnessUtxo : I.from(t.nonWitnessUtxo, "hex")), Ee(u) ? delete s.nonWitnessUtxo : Ae(u) ? (delete s.nonWitnessUtxo, this.processP2WSHInput(t, s, e)) : delete s.witnessUtxo;
4433
+ } else if (Ke(r)) {
4421
4434
  if (this.sighashTypes) {
4422
- const o = kt.calculateSignHash(this.sighashTypes);
4435
+ const o = Lt.calculateSignHash(this.sighashTypes);
4423
4436
  o && (s.sighashType = o);
4424
4437
  }
4425
4438
  this.addressRotationEnabled ? s.tapInternalKey = this.internalPubKeyToXOnlyForInput(e) : (this.tweakSigner(), s.tapInternalKey = this.internalPubKeyToXOnly());
4426
- } else if (Wi(r))
4439
+ } else if (zi(r))
4427
4440
  this.anchorInputIndices.add(e), s.isPayToAnchor = !0;
4428
- else if (Mi(r) || Ni(r))
4441
+ else if (qi(r) || $i(r))
4429
4442
  if (t.nonWitnessUtxo)
4430
4443
  s.nonWitnessUtxo = I.isBuffer(t.nonWitnessUtxo) ? t.nonWitnessUtxo : I.from(t.nonWitnessUtxo, "hex");
4431
4444
  else
@@ -4506,7 +4519,7 @@ class kt extends Ke {
4506
4519
  if (t[e] === g.OP_CHECKSEQUENCEVERIFY && e > 0) {
4507
4520
  const i = t[e - 1];
4508
4521
  if (I.isBuffer(i))
4509
- return Le.decode(i);
4522
+ return Ue.decode(i);
4510
4523
  if (typeof i == "number") {
4511
4524
  if (i === g.OP_0 || i === g.OP_FALSE)
4512
4525
  return 0;
@@ -4539,7 +4552,7 @@ class kt extends Ke {
4539
4552
  isTaprootScriptSpend(t, e) {
4540
4553
  if (t.tapLeafScript && t.tapLeafScript.length > 0) {
4541
4554
  for (const i of t.tapLeafScript)
4542
- if (fe(e, i.script))
4555
+ if (pe(e, i.script))
4543
4556
  return !0;
4544
4557
  }
4545
4558
  return !1;
@@ -4558,22 +4571,22 @@ class kt extends Ke {
4558
4571
  "signInput" in t ? await t.signInput(e, i) : e.signInput(i, t);
4559
4572
  }
4560
4573
  }
4561
- function Zt(n, t) {
4574
+ function Jt(n, t) {
4562
4575
  return JSON.stringify(n) === JSON.stringify(t);
4563
4576
  }
4564
- function Tr(n) {
4565
- if (Zt(n, T))
4577
+ function Or(n) {
4578
+ if (Jt(n, T))
4566
4579
  return "000000000019d6689c085ae165831e934ff763ae46a2a6c172b3f1b60a8ce26f";
4567
- if (Zt(n, xt))
4580
+ if (Jt(n, xt))
4568
4581
  return "000000000933ea01ad0ee984209779baaec3ced90fa3f408719526f8d77f4943";
4569
- if (Zt(n, Yt))
4582
+ if (Jt(n, Gt))
4570
4583
  return "0f9188f13cb7b2c71f2a335e3a4fc328bf5beb436012afca590b1a11466e2206";
4571
4584
  throw new Error("Unsupported network for chain ID retrieval");
4572
4585
  }
4573
- function Be(n) {
4574
- return Uint8Array.from(a.from(Tr(n), "hex"));
4586
+ function xe(n) {
4587
+ return Uint8Array.from(a.from(Or(n), "hex"));
4575
4588
  }
4576
- const xe = Uint8Array.from(
4589
+ const ve = Uint8Array.from(
4577
4590
  a.from(
4578
4591
  "e784995a412d773988c4b8e333d7b39dfb3cabf118d0d645411a916ca2407939",
4579
4592
  // sha256("OP_NET")
@@ -4581,8 +4594,8 @@ const xe = Uint8Array.from(
4581
4594
  )
4582
4595
  );
4583
4596
  at(Q);
4584
- const z = 330n, wt = 297n, ne = a.from("51024e73", "hex");
4585
- class m extends kt {
4597
+ const z = 330n, wt = 297n, oe = a.from("51024e73", "hex");
4598
+ class m extends Lt {
4586
4599
  constructor(t) {
4587
4600
  if (super(t), this.logColor = "#785def", this.debugFees = !1, this.overflowFees = 0n, this.transactionFee = 0n, this.estimatedFees = 0n, this.updateInputs = [], this.outputs = [], this.feeOutput = null, this._maximumFeeRate = 1e8, this.optionalOutputsAdded = !1, t.estimatedFees && (this.estimatedFees = t.estimatedFees), this.signer = t.signer, this.network = t.network, this.feeRate = t.feeRate, this.priorityFee = t.priorityFee ?? 0n, this.gasSatFee = t.gasSatFee ?? 0n, this.utxos = t.utxos, this.optionalInputs = t.optionalInputs || [], this.to = t.to || void 0, this.debugFees = t.debugFees || !1, this.LOCK_LEAF_SCRIPT = this.defineLockScript(), t.note && (typeof t.note == "string" ? this.note = a.from(t.note, "utf8") : this.note = t.note), this.anchor = t.anchor ?? !1, this.isPubKeyDestination = this.to ? H.isValidPublicKey(this.to, this.network) : !1, this.optionalOutputs = t.optionalOutputs, this.from = m.getFrom(t.from, this.signer, this.network), this.totalInputAmount = this.calculateTotalUTXOAmount(), this.calculateTotalVOutAmount() < this.totalInputAmount)
4588
4601
  throw new Error("Vout value is less than the value to send");
@@ -4609,8 +4622,8 @@ class m extends kt {
4609
4622
  e = a.concat([e, a.from(c)]);
4610
4623
  }
4611
4624
  function r(c) {
4612
- const u = e.length, h = qi(c);
4613
- e = a.concat([e, a.allocUnsafe(h)]), $i(c, e, u);
4625
+ const u = e.length, h = Ui(c);
4626
+ e = a.concat([e, a.allocUnsafe(h)]), _i(c, e, u);
4614
4627
  }
4615
4628
  function s(c) {
4616
4629
  r(c.length), i(c);
@@ -4621,7 +4634,7 @@ class m extends kt {
4621
4634
  return o(t), e;
4622
4635
  }
4623
4636
  addOPReturn(t) {
4624
- const e = k([g.OP_RETURN, t]);
4637
+ const e = L([g.OP_RETURN, t]);
4625
4638
  this.addOutput({
4626
4639
  value: 0,
4627
4640
  script: e
@@ -4630,7 +4643,7 @@ class m extends kt {
4630
4643
  addAnchor() {
4631
4644
  this.addOutput({
4632
4645
  value: 0,
4633
- script: ne
4646
+ script: oe
4634
4647
  });
4635
4648
  }
4636
4649
  async getFundingTransactionParameters() {
@@ -4736,7 +4749,7 @@ class m extends kt {
4736
4749
  throw new Error("Output value is 0 and no script provided");
4737
4750
  if (i.script.length < 2)
4738
4751
  throw new Error("Output script is too short");
4739
- if (i.script[0] !== g.OP_RETURN && !i.script.equals(ne))
4752
+ if (i.script[0] !== g.OP_RETURN && !i.script.equals(oe))
4740
4753
  throw new Error(
4741
4754
  "Output script must start with OP_RETURN or be an ANCHOR when value is 0"
4742
4755
  );
@@ -4891,7 +4904,7 @@ class m extends kt {
4891
4904
  s,
4892
4905
  o
4893
4906
  ])
4894
- } : _e(
4907
+ } : De(
4895
4908
  p,
4896
4909
  f,
4897
4910
  w,
@@ -4917,7 +4930,7 @@ class m extends kt {
4917
4930
  return this.transaction = _.fromBase64(t, {
4918
4931
  network: this.network,
4919
4932
  version: this.txVersion
4920
- }), this.signed = !1, this.sighashTypes = [ie.SIGHASH_ANYONECANPAY, ie.SIGHASH_ALL], await this.signPSBT();
4933
+ }), this.signed = !1, this.sighashTypes = [re.SIGHASH_ANYONECANPAY, re.SIGHASH_ALL], await this.signPSBT();
4921
4934
  }
4922
4935
  setPSBT(t) {
4923
4936
  this.transaction = t;
@@ -4964,7 +4977,7 @@ class m extends kt {
4964
4977
  tapInternalKey: this.internalPubKeyToXOnly()
4965
4978
  };
4966
4979
  else if (H.isValidPublicKey(this.from, this.network)) {
4967
- const h = k([
4980
+ const h = L([
4968
4981
  a.from(this.from.replace("0x", ""), "hex"),
4969
4982
  g.OP_CHECKSIG
4970
4983
  ]);
@@ -4998,7 +5011,7 @@ class m extends kt {
4998
5011
  );
4999
5012
  }
5000
5013
  defineLockScript() {
5001
- return k([O(a.from(this.signer.publicKey)), g.OP_CHECKSIG]);
5014
+ return L([O(a.from(this.signer.publicKey)), g.OP_CHECKSIG]);
5002
5015
  }
5003
5016
  /**
5004
5017
  * @description Adds the value to the output
@@ -5024,8 +5037,8 @@ class m extends kt {
5024
5037
  const t = O(this.tweakedSigner.publicKey), e = this.signer.publicKey;
5025
5038
  if (e.length !== 33)
5026
5039
  throw new Error("Original public key must be compressed (33 bytes)");
5027
- const i = Be(this.network), r = new C();
5028
- r.writeU8(P.MLDSASecurityLevel.LEVEL2), r.writeBytes(this.hashedPublicKey), r.writeBytes(t), r.writeBytes(e), r.writeBytes(xe), r.writeBytes(i);
5040
+ const i = xe(this.network), r = new C();
5041
+ r.writeU8(P.MLDSASecurityLevel.LEVEL2), r.writeBytes(this.hashedPublicKey), r.writeBytes(t), r.writeBytes(e), r.writeBytes(ve), r.writeBytes(i);
5029
5042
  const s = r.getBuffer(), o = nt.signMessage(this.tweakedSigner, s);
5030
5043
  if (!nt.verifySignature(t, s, o.signature))
5031
5044
  throw new Error("Could not verify generated legacy signature for MLDSA link request");
@@ -5039,11 +5052,11 @@ class m extends kt {
5039
5052
  const t = O(this.tweakedSigner.publicKey), e = this.signer.publicKey;
5040
5053
  if (e.length !== 33)
5041
5054
  throw new Error("Original public key must be compressed (33 bytes)");
5042
- const i = Be(this.network), r = se(this.mldsaSigner.publicKey.length);
5055
+ const i = xe(this.network), r = ne(this.mldsaSigner.publicKey.length);
5043
5056
  if (r !== P.MLDSASecurityLevel.LEVEL2)
5044
5057
  throw new Error("Only MLDSA level 2 is supported for link requests");
5045
5058
  const s = new C();
5046
- s.writeU8(r), s.writeBytes(this.hashedPublicKey), s.writeBytes(this.mldsaSigner.publicKey), s.writeBytes(t), s.writeBytes(e), s.writeBytes(xe), s.writeBytes(i);
5059
+ s.writeU8(r), s.writeBytes(this.hashedPublicKey), s.writeBytes(this.mldsaSigner.publicKey), s.writeBytes(t), s.writeBytes(e), s.writeBytes(ve), s.writeBytes(i);
5047
5060
  const o = s.getBuffer(), c = nt.signMLDSAMessage(this.mldsaSigner, o);
5048
5061
  if (!nt.verifyMLDSASignature(
5049
5062
  this.mldsaSigner,
@@ -5064,7 +5077,7 @@ class m extends kt {
5064
5077
  verifyRequest: !!t.revealMLDSAPublicKey,
5065
5078
  publicKey: i.publicKey,
5066
5079
  hashedPublicKey: this.hashedPublicKey,
5067
- level: se(i.publicKey.length),
5080
+ level: ne(i.publicKey.length),
5068
5081
  legacySignature: r,
5069
5082
  mldsaSignature: s
5070
5083
  }
@@ -5338,7 +5351,7 @@ class Vt extends m {
5338
5351
  };
5339
5352
  }, !t.script) throw new Error("Bitcoin script is required");
5340
5353
  if (!t.witnesses) throw new Error("Witness(es) are required");
5341
- this.witnesses = t.witnesses, this.randomBytes = t.randomBytes || K.rndBytes(), this.LOCK_LEAF_SCRIPT = this.defineLockScript(), this.scriptSeed = this.getContractSeed(), this.contractSigner = A.fromSeedKeyPair(this.scriptSeed, this.network), this.generator = new Fe(this.internalPubKeyToXOnly(), this.network), this.compiledTargetScript = this.generator.compile(t.script), this.scriptTree = this.getScriptTree(), this.internalInit(), this._scriptAddress = ce.generatePKSH(this.scriptSeed, this.network);
5354
+ this.witnesses = t.witnesses, this.randomBytes = t.randomBytes || K.rndBytes(), this.LOCK_LEAF_SCRIPT = this.defineLockScript(), this.scriptSeed = this.getContractSeed(), this.contractSigner = A.fromSeedKeyPair(this.scriptSeed, this.network), this.generator = new We(this.internalPubKeyToXOnly(), this.network), this.compiledTargetScript = this.generator.compile(t.script), this.scriptTree = this.getScriptTree(), this.internalInit(), this._scriptAddress = ue.generatePKSH(this.scriptSeed, this.network);
5342
5355
  }
5343
5356
  /**
5344
5357
  * @description Get the contract address (PKSH)
@@ -5508,7 +5521,7 @@ class Vt extends m {
5508
5521
  ];
5509
5522
  }
5510
5523
  }
5511
- class pe extends m {
5524
+ class ge extends m {
5512
5525
  constructor(t) {
5513
5526
  if (super(t), this.targetScriptRedeem = null, this.leftOverFundsScriptRedeem = null, this.customFinalizer = (e, i) => {
5514
5527
  if (!this.tapLeafScript)
@@ -5526,7 +5539,7 @@ class pe extends m {
5526
5539
  this.challenge = t.challenge, this.LOCK_LEAF_SCRIPT = this.defineLockScript(), this.disableAutoRefund = t.disableAutoRefund || !1, this.epochChallenge = M.generateTimeLockAddress(
5527
5540
  this.challenge.publicKey.originalPublicKeyBuffer(),
5528
5541
  this.network
5529
- ), this.calldata = N.compress(t.calldata), this.randomBytes = t.randomBytes || K.rndBytes(), this.scriptSigner = this.generateKeyPairFromSeed(), this.calldataGenerator = new ae(
5542
+ ), this.calldata = N.compress(t.calldata), this.randomBytes = t.randomBytes || K.rndBytes(), this.scriptSigner = this.generateKeyPairFromSeed(), this.calldataGenerator = new ce(
5530
5543
  a.from(this.signer.publicKey),
5531
5544
  this.scriptSignerXOnlyPubKey(),
5532
5545
  this.network
@@ -5756,7 +5769,7 @@ class pt extends m {
5756
5769
  };
5757
5770
  }, !this.hashedPublicKey)
5758
5771
  throw new Error("MLDSA signer must be defined to deploy a contract.");
5759
- if (this.bytecode = N.compress(a.concat([Me, t.bytecode])), this.verifyBytecode(), t.calldata && (this.calldata = t.calldata, this.verifyCalldata()), !t.challenge) throw new Error("Challenge solution is required");
5772
+ if (this.bytecode = N.compress(a.concat([Ne, t.bytecode])), this.verifyBytecode(), t.calldata && (this.calldata = t.calldata, this.verifyCalldata()), !t.challenge) throw new Error("Challenge solution is required");
5760
5773
  if (this.randomBytes = t.randomBytes || K.rndBytes(), this.challenge = t.challenge, this.LOCK_LEAF_SCRIPT = this.defineLockScript(), this.epochChallenge = M.generateTimeLockAddress(
5761
5774
  this.challenge.publicKey.originalPublicKeyBuffer(),
5762
5775
  this.network
@@ -5780,7 +5793,7 @@ class pt extends m {
5780
5793
  this.calldata,
5781
5794
  this.generateFeatures(t)
5782
5795
  );
5783
- this.scriptTree = this.getScriptTree(), this.internalInit(), this._contractPubKey = "0x" + this.contractSeed.toString("hex"), this._contractAddress = new L(this.contractSeed);
5796
+ this.scriptTree = this.getScriptTree(), this.internalInit(), this._contractPubKey = "0x" + this.contractSeed.toString("hex"), this._contractAddress = new k(this.contractSeed);
5784
5797
  }
5785
5798
  static {
5786
5799
  this.MAXIMUM_CONTRACT_SIZE = 128 * 1024;
@@ -5937,7 +5950,7 @@ class pt extends m {
5937
5950
  return t.linkMLDSAPublicKeyToAddress && this.generateMLDSALinkRequest(t, e), e;
5938
5951
  }
5939
5952
  verifyCalldata() {
5940
- if (this.calldata && this.calldata.length > pe.MAXIMUM_CALLDATA_SIZE)
5953
+ if (this.calldata && this.calldata.length > ge.MAXIMUM_CALLDATA_SIZE)
5941
5954
  throw new Error("Calldata size overflow.");
5942
5955
  }
5943
5956
  verifyBytecode() {
@@ -6016,7 +6029,7 @@ class zt extends m {
6016
6029
  if (this.addInputsFromUTXO(), this.splitInputsInto > 1)
6017
6030
  this.splitInputs(this.amount);
6018
6031
  else if (this.isPubKeyDestination) {
6019
- const e = k([
6032
+ const e = L([
6020
6033
  a.from(this.to.replace("0x", ""), "hex"),
6021
6034
  g.OP_CHECKSIG
6022
6035
  ]);
@@ -6049,7 +6062,7 @@ class zt extends m {
6049
6062
  return this.signer;
6050
6063
  }
6051
6064
  }
6052
- class qt extends pe {
6065
+ class qt extends ge {
6053
6066
  constructor(t) {
6054
6067
  if (super(t), this.type = y.INTERACTION, this.tapLeafScript = null, !t.contract)
6055
6068
  throw new Error("parameters.contract is required for interaction transaction.");
@@ -6275,7 +6288,7 @@ class Z extends m {
6275
6288
  return e;
6276
6289
  }
6277
6290
  }
6278
- class ge extends m {
6291
+ class Se extends m {
6279
6292
  constructor(t) {
6280
6293
  super({
6281
6294
  ...t,
@@ -6437,7 +6450,7 @@ class ge extends m {
6437
6450
  };
6438
6451
  }
6439
6452
  }
6440
- class Ge extends m {
6453
+ class Qe extends m {
6441
6454
  constructor(t) {
6442
6455
  if (super(t), this.type = y.INTERACTION, this.cachedValuePerOutput = null, !t.to)
6443
6456
  throw new Error("Contract address (to) is required");
@@ -6452,7 +6465,7 @@ class Ge extends m {
6452
6465
  if (this.calldata = N.compress(t.calldata), this.randomBytes = t.randomBytes || K.rndBytes(), this.scriptSigner = A.fromSeedKeyPair(this.randomBytes, this.network), this.challenge = t.challenge, this.epochChallenge = M.generateTimeLockAddress(
6453
6466
  this.challenge.publicKey.originalPublicKeyBuffer(),
6454
6467
  this.network
6455
- ), this.calldataGenerator = new ae(
6468
+ ), this.calldataGenerator = new ce(
6456
6469
  I.from(this.signer.publicKey),
6457
6470
  O(I.from(this.scriptSigner.publicKey)),
6458
6471
  this.network
@@ -6677,7 +6690,7 @@ class Ge extends m {
6677
6690
  * Get refund address.
6678
6691
  */
6679
6692
  getRefundAddress() {
6680
- return this.from ? this.from : ce.generatePKSH(this.signer.publicKey, this.network);
6693
+ return this.from ? this.from : ue.generatePKSH(this.signer.publicKey, this.network);
6681
6694
  }
6682
6695
  /**
6683
6696
  * Generate features (same as InteractionTransaction).
@@ -6713,7 +6726,7 @@ class Ge extends m {
6713
6726
  }
6714
6727
  }
6715
6728
  }
6716
- class Qe {
6729
+ class je {
6717
6730
  constructor() {
6718
6731
  this.debug = !1, this.DUMMY_PUBKEY = a.alloc(32, 1), this.P2TR_SCRIPT = a.concat([a.from([81, 32]), this.DUMMY_PUBKEY]), this.INITIAL_FUNDING_ESTIMATE = 2000n, this.MAX_ITERATIONS = 10;
6719
6732
  }
@@ -6734,7 +6747,7 @@ class Qe {
6734
6747
  return e;
6735
6748
  if (!("signer" in t))
6736
6749
  throw new Error('Field "signer" not provided, OP_WALLET not detected.');
6737
- const r = await new ge(t).signTransaction();
6750
+ const r = await new Se(t).signTransaction();
6738
6751
  return {
6739
6752
  transaction: r.toHex(),
6740
6753
  nextUTXOs: this.getUTXOAsTransaction(r, t.from, 0),
@@ -6900,7 +6913,7 @@ class Qe {
6900
6913
  throw new Error('Field "signer" not provided.');
6901
6914
  if (!t.challenge)
6902
6915
  throw new Error('Field "challenge" not provided.');
6903
- const e = this.parseOptionalInputs(t.optionalInputs), i = new Ge({
6916
+ const e = this.parseOptionalInputs(t.optionalInputs), i = new Qe({
6904
6917
  ...t,
6905
6918
  optionalInputs: e
6906
6919
  }), r = await i.build();
@@ -6932,8 +6945,8 @@ class Qe {
6932
6945
  { ...t, optionalInputs: i },
6933
6946
  pt,
6934
6947
  async (Ut) => {
6935
- const _t = await Ut.estimateTransactionFees(), Kt = this.getPriorityFee(t), xi = Ut.getOptionalOutputValue();
6936
- return _t + Kt + xi;
6948
+ const _t = await Ut.estimateTransactionFees(), Kt = this.getPriorityFee(t), vi = Ut.getOptionalOutputValue();
6949
+ return _t + Kt + vi;
6937
6950
  },
6938
6951
  "Deployment"
6939
6952
  );
@@ -7153,7 +7166,7 @@ class Qe {
7153
7166
  */
7154
7167
  writePSBTHeader(t, e) {
7155
7168
  const i = a.from(e, "base64"), r = a.alloc(2);
7156
- return r.writeUInt8(t, 0), r.writeUInt8(Qt, 1), a.concat([r, i]).toString("hex");
7169
+ return r.writeUInt8(t, 0), r.writeUInt8(jt, 1), a.concat([r, i]).toString("hex");
7157
7170
  }
7158
7171
  /**
7159
7172
  * Sign a P2WDA interaction transaction
@@ -7221,11 +7234,11 @@ class Qe {
7221
7234
  * @returns {Promise<{finalTransaction: T, estimatedAmount: bigint, challenge: ChallengeSolution | null}>} - The final transaction and estimated amount
7222
7235
  */
7223
7236
  async iterateFundingAmount(t, e, i, r) {
7224
- const s = "randomBytes" in t ? t.randomBytes ?? K.rndBytes() : K.rndBytes(), o = L.dead().p2tr(t.network);
7237
+ const s = "randomBytes" in t ? t.randomBytes ?? K.rndBytes() : K.rndBytes(), o = k.dead().p2tr(t.network);
7225
7238
  let c = this.INITIAL_FUNDING_ESTIMATE, u = 0n, h = 0, l = null, d = null;
7226
7239
  for (; h < this.MAX_ITERATIONS && c !== u; ) {
7227
7240
  u = c;
7228
- const p = new ie();
7241
+ const p = new re();
7229
7242
  p.addOutput(this.P2TR_SCRIPT, Number(c));
7230
7243
  const f = {
7231
7244
  transactionId: a.alloc(32, 0).toString("hex"),
@@ -7307,7 +7320,7 @@ class x extends m {
7307
7320
  if (super({
7308
7321
  ...t,
7309
7322
  signer: A.fromPrivateKey(
7310
- ke(a.from("aaaaaaaa", "utf-8"))
7323
+ _e(a.from("aaaaaaaa", "utf-8"))
7311
7324
  ),
7312
7325
  priorityFee: 0n,
7313
7326
  gasSatFee: 0n
@@ -7326,7 +7339,7 @@ class x extends m {
7326
7339
  ), this.scriptTree = this.getScriptTree(), this.internalInit();
7327
7340
  }
7328
7341
  static {
7329
- this.LOCK_LEAF_SCRIPT = k([
7342
+ this.LOCK_LEAF_SCRIPT = L([
7330
7343
  g.OP_XOR,
7331
7344
  g.OP_NOP,
7332
7345
  g.OP_CODESEPARATOR
@@ -7693,23 +7706,23 @@ class x extends m {
7693
7706
  };
7694
7707
  }
7695
7708
  }
7696
- const Se = 1, Rt = 66;
7697
- function je(n) {
7709
+ const we = 1, Rt = 66;
7710
+ function Ze(n) {
7698
7711
  return n.type === y.FUNDING;
7699
7712
  }
7700
- function Ze(n) {
7713
+ function Je(n) {
7701
7714
  return n.type === y.DEPLOYMENT;
7702
7715
  }
7703
- function Je(n) {
7716
+ function ti(n) {
7704
7717
  return n.type === y.INTERACTION;
7705
7718
  }
7706
7719
  function it(n) {
7707
7720
  return n.type === y.MULTI_SIG;
7708
7721
  }
7709
- function ti(n) {
7722
+ function ei(n) {
7710
7723
  return n.type === y.CUSTOM_CODE;
7711
7724
  }
7712
- function ei(n) {
7725
+ function ii(n) {
7713
7726
  return n.type === y.CANCEL;
7714
7727
  }
7715
7728
  class B {
@@ -7736,8 +7749,8 @@ class B {
7736
7749
  const e = t.subarray(-32), i = t.subarray(0, -32), r = this.calculateChecksum(i);
7737
7750
  if (!e.equals(r))
7738
7751
  throw new Error("Invalid checksum - data may be corrupted");
7739
- const s = new Gt(i), o = this.readHeader(s);
7740
- if (o.formatVersion > Se)
7752
+ const s = new Qt(i), o = this.readHeader(s);
7753
+ if (o.formatVersion > we)
7741
7754
  throw new Error(`Unsupported format version: ${o.formatVersion}`);
7742
7755
  const c = this.readBaseParams(s), u = this.readUTXOArray(s), h = this.readUTXOArray(s), l = this.readOutputArray(s), d = s.readBoolean(), p = this.readSignerMappings(s), f = this.readTypeSpecificData(s, o.transactionType), w = this.readPrecomputedData(s);
7743
7756
  return {
@@ -8126,8 +8139,8 @@ class B {
8126
8139
  * Calculate double SHA256 checksum (Bitcoin standard)
8127
8140
  */
8128
8141
  static calculateChecksum(t) {
8129
- const e = Jt.createHash("sha256").update(t).digest();
8130
- return Jt.createHash("sha256").update(e).digest();
8142
+ const e = te("sha256").update(t).digest();
8143
+ return te("sha256").update(e).digest();
8131
8144
  }
8132
8145
  static networkNameToU8(t) {
8133
8146
  switch (t) {
@@ -8237,8 +8250,8 @@ class X {
8237
8250
  */
8238
8251
  static createHeader(t, e, i) {
8239
8252
  return {
8240
- formatVersion: Se,
8241
- consensusVersion: Qt,
8253
+ formatVersion: we,
8254
+ consensusVersion: jt,
8242
8255
  transactionType: t,
8243
8256
  chainId: i ?? this.networkToChainId(e),
8244
8257
  timestamp: Date.now()
@@ -8451,7 +8464,7 @@ class ut {
8451
8464
  * Calculate SHA-1 hash
8452
8465
  */
8453
8466
  static sha1(t) {
8454
- return Hi(a.isBuffer(t) ? t : a.from(t));
8467
+ return Xi(a.isBuffer(t) ? t : a.from(t));
8455
8468
  }
8456
8469
  /**
8457
8470
  * Calculate mining preimage
@@ -8547,14 +8560,14 @@ class ut {
8547
8560
  };
8548
8561
  }
8549
8562
  }
8550
- class ii {
8563
+ class ri {
8551
8564
  constructor(t) {
8552
8565
  this.epochHash = V(t.epochHash), this.epochRoot = V(t.epochRoot), this.targetHash = V(t.targetHash), this.targetChecksum = V(t.targetChecksum), this.startBlock = BigInt(t.startBlock), this.endBlock = BigInt(t.endBlock), this.proofs = Object.freeze(t.proofs.map((e) => V(e)));
8553
8566
  }
8554
8567
  }
8555
- class ri {
8568
+ class si {
8556
8569
  constructor(t, e) {
8557
- this.epochNumber = e, this.publicKey = L.fromString(t.mldsaPublicKey, t.legacyPublicKey), this.solution = V(t.solution), this.graffiti = t.graffiti ? V(t.graffiti) : void 0, this.signature = V(t.signature);
8570
+ this.epochNumber = e, this.publicKey = k.fromString(t.mldsaPublicKey, t.legacyPublicKey), this.solution = V(t.solution), this.graffiti = t.graffiti ? V(t.graffiti) : void 0, this.signature = V(t.signature);
8558
8571
  }
8559
8572
  verifySignature() {
8560
8573
  const t = new C();
@@ -8569,7 +8582,7 @@ class ri {
8569
8582
  }
8570
8583
  class $t {
8571
8584
  constructor(t) {
8572
- this.epochNumber = BigInt(t.epochNumber), this.publicKey = L.fromString(t.mldsaPublicKey, t.legacyPublicKey), this.solution = V(t.solution), this.salt = V(t.salt), this.graffiti = V(t.graffiti), this.difficulty = t.difficulty, this.verification = new ii(t.verification), this.submission = t.submission ? new ri(t.submission, this.epochNumber + 2n) : t.submission;
8585
+ this.epochNumber = BigInt(t.epochNumber), this.publicKey = k.fromString(t.mldsaPublicKey, t.legacyPublicKey), this.solution = V(t.solution), this.salt = V(t.salt), this.graffiti = V(t.graffiti), this.difficulty = t.difficulty, this.verification = new ri(t.verification), this.submission = t.submission ? new si(t.submission, this.epochNumber + 2n) : t.submission;
8573
8586
  }
8574
8587
  /**
8575
8588
  * Static method to validate from raw data directly
@@ -8696,17 +8709,17 @@ class ht {
8696
8709
  estimatedFees: t.precomputedData.estimatedFees ? BigInt(t.precomputedData.estimatedFees) : void 0,
8697
8710
  compiledTargetScript: t.precomputedData.compiledTargetScript ? a.from(t.precomputedData.compiledTargetScript, "hex") : void 0
8698
8711
  }, p = t.typeSpecificData;
8699
- if (je(p))
8700
- return this.reconstructFunding(d, p);
8701
8712
  if (Ze(p))
8702
- return this.reconstructDeployment(d, p, t);
8713
+ return this.reconstructFunding(d, p);
8703
8714
  if (Je(p))
8715
+ return this.reconstructDeployment(d, p, t);
8716
+ if (ti(p))
8704
8717
  return this.reconstructInteraction(d, p, t);
8705
8718
  if (it(p))
8706
8719
  return this.reconstructMultiSig(d, p);
8707
- if (ti(p))
8708
- return this.reconstructCustomScript(d, p, t);
8709
8720
  if (ei(p))
8721
+ return this.reconstructCustomScript(d, p, t);
8722
+ if (ii(p))
8710
8723
  return this.reconstructCancel(d, p);
8711
8724
  throw new Error(`Unsupported transaction type: ${t.header.transactionType}`);
8712
8725
  }
@@ -8820,7 +8833,7 @@ class ht {
8820
8833
  ...t,
8821
8834
  compiledTargetScript: a.from(e.compiledTargetScript, "hex")
8822
8835
  };
8823
- return new ge(i);
8836
+ return new Se(i);
8824
8837
  }
8825
8838
  /**
8826
8839
  * Build address rotation config from options
@@ -8885,13 +8898,13 @@ class ht {
8885
8898
  case "testnet":
8886
8899
  return xt;
8887
8900
  case "regtest":
8888
- return Yt;
8901
+ return Gt;
8889
8902
  default:
8890
8903
  throw new Error(`Unknown network: ${t}`);
8891
8904
  }
8892
8905
  }
8893
8906
  }
8894
- class Ir {
8907
+ class Br {
8895
8908
  /**
8896
8909
  * Export a FundingTransaction for offline signing
8897
8910
  * @param params - Funding transaction parameters
@@ -9276,7 +9289,7 @@ class Ir {
9276
9289
  return B.toBase64(r);
9277
9290
  }
9278
9291
  }
9279
- class Pr {
9292
+ class xr {
9280
9293
  constructor(t) {
9281
9294
  this.opnetAPIUrl = t, this.utxoPath = "address/utxos", this.rpc = "json-rpc";
9282
9295
  }
@@ -9400,7 +9413,7 @@ class Pr {
9400
9413
  priorityFee: 0n,
9401
9414
  gasSatFee: 330n,
9402
9415
  mldsaSigner: null
9403
- }, l = await new Qe().createBTCTransfer(u), d = await this.broadcastTransaction(l.tx, !1);
9416
+ }, l = await new je().createBTCTransfer(u), d = await this.broadcastTransaction(l.tx, !1);
9404
9417
  return d || { error: "Could not broadcast transaction" };
9405
9418
  }
9406
9419
  /**
@@ -9487,7 +9500,7 @@ class Pr {
9487
9500
  return new UnwrapGeneration(result as UnwrappedGenerationParameters);
9488
9501
  }*/
9489
9502
  }
9490
- class Tt extends kt {
9503
+ class Tt extends Lt {
9491
9504
  constructor(t) {
9492
9505
  super(t), this.logColor = "#00ffe1", this.feesAddition = 10000n, this.sighashTypes = [], this.signer = t.signer, this.network = t.network, this.transaction = t.psbt, this.ignoreSignatureError(), this.tweakSigner(), this.internalInit();
9493
9506
  }
@@ -9579,8 +9592,8 @@ class Tt extends kt {
9579
9592
  return total;
9580
9593
  }*/
9581
9594
  }
9582
- var si = /* @__PURE__ */ ((n) => (n[n.UNWRAP = 0] = "UNWRAP", n))(si || {});
9583
- class Er {
9595
+ var ni = /* @__PURE__ */ ((n) => (n[n.UNWRAP = 0] = "UNWRAP", n))(ni || {});
9596
+ class vr {
9584
9597
  /**
9585
9598
  * Generate a multi-sig address
9586
9599
  * @param {Buffer[]} pubKeys - The public keys to use
@@ -9607,10 +9620,10 @@ class Er {
9607
9620
  return o;
9608
9621
  }
9609
9622
  }
9610
- var ni = /* @__PURE__ */ ((n) => (n.UINT8 = "UINT8", n.UINT16 = "UINT16", n.UINT32 = "UINT32", n.UINT64 = "UINT64", n.UINT128 = "UINT128", n.UINT256 = "UINT256", n.INT128 = "INT128", n.BOOL = "BOOL", n.ADDRESS = "ADDRESS", n.STRING = "STRING", n.BYTES4 = "BYTES4", n.BYTES32 = "BYTES32", n.BYTES = "BYTES", n.ADDRESS_UINT256_TUPLE = "ADDRESS_UINT256_TUPLE", n.ARRAY_OF_ADDRESSES = "ARRAY_OF_ADDRESSES", n.ARRAY_OF_UINT256 = "ARRAY_OF_UINT256", n.ARRAY_OF_UINT128 = "ARRAY_OF_UINT128", n.ARRAY_OF_UINT64 = "ARRAY_OF_UINT64", n.ARRAY_OF_UINT32 = "ARRAY_OF_UINT32", n.ARRAY_OF_UINT16 = "ARRAY_OF_UINT16", n.ARRAY_OF_UINT8 = "ARRAY_OF_UINT8", n.ARRAY_OF_STRING = "ARRAY_OF_STRING", n.ARRAY_OF_BYTES = "ARRAY_OF_BYTES", n.ARRAY_OF_BUFFERS = "ARRAY_OF_BUFFERS", n))(ni || {});
9611
- class Ar {
9623
+ var oi = /* @__PURE__ */ ((n) => (n.UINT8 = "UINT8", n.UINT16 = "UINT16", n.UINT32 = "UINT32", n.UINT64 = "UINT64", n.UINT128 = "UINT128", n.UINT256 = "UINT256", n.INT128 = "INT128", n.BOOL = "BOOL", n.ADDRESS = "ADDRESS", n.STRING = "STRING", n.BYTES4 = "BYTES4", n.BYTES32 = "BYTES32", n.BYTES = "BYTES", n.ADDRESS_UINT256_TUPLE = "ADDRESS_UINT256_TUPLE", n.ARRAY_OF_ADDRESSES = "ARRAY_OF_ADDRESSES", n.ARRAY_OF_UINT256 = "ARRAY_OF_UINT256", n.ARRAY_OF_UINT128 = "ARRAY_OF_UINT128", n.ARRAY_OF_UINT64 = "ARRAY_OF_UINT64", n.ARRAY_OF_UINT32 = "ARRAY_OF_UINT32", n.ARRAY_OF_UINT16 = "ARRAY_OF_UINT16", n.ARRAY_OF_UINT8 = "ARRAY_OF_UINT8", n.ARRAY_OF_STRING = "ARRAY_OF_STRING", n.ARRAY_OF_BYTES = "ARRAY_OF_BYTES", n.ARRAY_OF_BUFFERS = "ARRAY_OF_BUFFERS", n))(oi || {});
9624
+ class kr {
9612
9625
  decodeData(t, e) {
9613
- const i = new Gt(t), r = [];
9626
+ const i = new Qt(t), r = [];
9614
9627
  for (let s = 0; s < e.length; s++)
9615
9628
  switch (e[s]) {
9616
9629
  case "UINT8":
@@ -9702,10 +9715,10 @@ class Ar {
9702
9715
  return i;
9703
9716
  }
9704
9717
  sha256(t) {
9705
- return new vi.sha256().update(t).digest();
9718
+ return new Ki.sha256().update(t).digest();
9706
9719
  }
9707
9720
  }
9708
- class we {
9721
+ class ye {
9709
9722
  constructor(t = []) {
9710
9723
  this.items = /* @__PURE__ */ new Set(), this.keys = [];
9711
9724
  for (const e of t)
@@ -9726,7 +9739,7 @@ class we {
9726
9739
  this.items.delete(e) && (this.keys = this.keys.filter((i) => i.toBigInt() !== e));
9727
9740
  }
9728
9741
  clone() {
9729
- return new we(this.keys);
9742
+ return new ye(this.keys);
9730
9743
  }
9731
9744
  clear() {
9732
9745
  this.items.clear(), this.keys = [];
@@ -9741,7 +9754,7 @@ class we {
9741
9754
  yield* this.keys;
9742
9755
  }
9743
9756
  }
9744
- class ye {
9757
+ class me {
9745
9758
  constructor(t) {
9746
9759
  this.compareFn = t, this.map = new vt(), this.#t = [];
9747
9760
  }
@@ -9750,7 +9763,7 @@ class ye {
9750
9763
  return this.map.size;
9751
9764
  }
9752
9765
  static fromMap(t, e) {
9753
- const i = new ye(e);
9766
+ const i = new me(e);
9754
9767
  for (const [r, s] of t)
9755
9768
  i.set(r, s);
9756
9769
  return i;
@@ -9814,7 +9827,7 @@ class ye {
9814
9827
  yield [t, this.map.get(t)];
9815
9828
  }
9816
9829
  }
9817
- class me {
9830
+ class be {
9818
9831
  constructor(t) {
9819
9832
  this.compareFn = t, this.elements = [];
9820
9833
  }
@@ -9822,7 +9835,7 @@ class me {
9822
9835
  return this.elements.length;
9823
9836
  }
9824
9837
  static fromSet(t, e) {
9825
- const i = new me(e);
9838
+ const i = new be(e);
9826
9839
  for (const r of t)
9827
9840
  i.add(r);
9828
9841
  return i;
@@ -9862,17 +9875,17 @@ class me {
9862
9875
  return { found: !1, index: e };
9863
9876
  }
9864
9877
  }
9865
- class Or {
9878
+ class Lr {
9866
9879
  constructor(t, e) {
9867
9880
  this.type = t, this.data = e;
9868
9881
  }
9869
9882
  }
9870
- class be {
9883
+ class Te {
9871
9884
  constructor() {
9872
9885
  }
9873
9886
  }
9874
- var It = /* @__PURE__ */ ((n) => (n.testnet = "testnet", n.mainnet = "mainnet", n.regtest = "regtest", n))(It || {}), oi = /* @__PURE__ */ ((n) => (n.BITCOIN_MAINNET = "BITCOIN_MAINNET", n.BITCOIN_TESTNET = "BITCOIN_TESTNET", n.BITCOIN_TESTNET4 = "BITCOIN_TESTNET4", n.BITCOIN_REGTEST = "BITCOIN_REGTEST", n.BITCOIN_SIGNET = "BITCOIN_SIGNET", n.FRACTAL_BITCOIN_MAINNET = "FRACTAL_BITCOIN_MAINNET", n.FRACTAL_BITCOIN_TESTNET = "FRACTAL_BITCOIN_TESTNET", n))(oi || {}), ai = /* @__PURE__ */ ((n) => (n.ecdsa = "ecdsa", n.bip322 = "bip322-simple", n))(ai || {}), ci = /* @__PURE__ */ ((n) => (n.ecdsa = "ecdsa", n.schnorr = "schnorr", n))(ci || {});
9875
- class Br extends be {
9887
+ var It = /* @__PURE__ */ ((n) => (n.testnet = "testnet", n.mainnet = "mainnet", n.regtest = "regtest", n))(It || {}), ai = /* @__PURE__ */ ((n) => (n.BITCOIN_MAINNET = "BITCOIN_MAINNET", n.BITCOIN_TESTNET = "BITCOIN_TESTNET", n.BITCOIN_TESTNET4 = "BITCOIN_TESTNET4", n.BITCOIN_REGTEST = "BITCOIN_REGTEST", n.BITCOIN_SIGNET = "BITCOIN_SIGNET", n.FRACTAL_BITCOIN_MAINNET = "FRACTAL_BITCOIN_MAINNET", n.FRACTAL_BITCOIN_TESTNET = "FRACTAL_BITCOIN_TESTNET", n))(ai || {}), ci = /* @__PURE__ */ ((n) => (n.ecdsa = "ecdsa", n.bip322 = "bip322-simple", n))(ci || {}), ui = /* @__PURE__ */ ((n) => (n.ecdsa = "ecdsa", n.schnorr = "schnorr", n))(ui || {});
9888
+ class Ur extends Te {
9876
9889
  constructor() {
9877
9890
  if (super(), this.isInitialized = !1, !window)
9878
9891
  throw new Error("UnisatSigner can only be used in a browser environment");
@@ -9925,7 +9938,7 @@ class Br extends be {
9925
9938
  this._network = xt;
9926
9939
  break;
9927
9940
  case It.regtest:
9928
- this._network = Yt;
9941
+ this._network = Gt;
9929
9942
  break;
9930
9943
  default:
9931
9944
  throw new Error(`Invalid network: ${t}`);
@@ -9970,10 +9983,10 @@ class Br extends be {
9970
9983
  e.push(c);
9971
9984
  const u = o.data.inputs.map((h, l) => {
9972
9985
  let d = !1, p = !1;
9973
- if (le(h)) {
9986
+ if (de(h)) {
9974
9987
  if (h.tapLeafScript && h.tapLeafScript.length > 0) {
9975
9988
  for (const f of h.tapLeafScript)
9976
- if (xr(this.publicKey, f.script)) {
9989
+ if (_r(this.publicKey, f.script)) {
9977
9990
  d = !0, p = !1;
9978
9991
  break;
9979
9992
  }
@@ -9982,7 +9995,7 @@ class Br extends be {
9982
9995
  const f = h.tapInternalKey, w = O(this.publicKey);
9983
9996
  f.equals(w) && (d = !0, p = !0);
9984
9997
  }
9985
- } else de(h, this.publicKey) && (d = !0, p = !1);
9998
+ } else fe(h, this.publicKey) && (d = !0, p = !1);
9986
9999
  return d ? {
9987
10000
  index: l,
9988
10001
  publicKey: this.publicKey.toString("hex"),
@@ -10048,15 +10061,15 @@ class Br extends be {
10048
10061
  return i;
10049
10062
  }
10050
10063
  }
10051
- function xr(n, t) {
10052
- return vr(n, t) !== -1;
10064
+ function _r(n, t) {
10065
+ return Kr(n, t) !== -1;
10053
10066
  }
10054
- function vr(n, t) {
10067
+ function Kr(n, t) {
10055
10068
  const e = ft(n), i = O(n), r = F(t);
10056
10069
  if (r === null) throw new Error("Unknown script error");
10057
10070
  return r.findIndex((s) => typeof s == "number" ? !1 : a.isBuffer(s) && (s.equals(n) || s.equals(e) || s.equals(i)));
10058
10071
  }
10059
- class Lr extends be {
10072
+ class Dr extends Te {
10060
10073
  constructor() {
10061
10074
  if (super(), this.isInitialized = !1, !window)
10062
10075
  throw new Error("XverseSigner can only be used in a browser environment");
@@ -10154,10 +10167,10 @@ class Lr extends be {
10154
10167
  e.push(u);
10155
10168
  const h = c.data.inputs.map((l, d) => {
10156
10169
  let p = !1, f = !1;
10157
- if (le(l)) {
10170
+ if (de(l)) {
10158
10171
  if (l.tapLeafScript && l.tapLeafScript.length > 0) {
10159
10172
  for (const w of l.tapLeafScript)
10160
- if (fe(this.publicKey, w.script)) {
10173
+ if (pe(this.publicKey, w.script)) {
10161
10174
  p = !0, f = !1;
10162
10175
  break;
10163
10176
  }
@@ -10166,7 +10179,7 @@ class Lr extends be {
10166
10179
  const w = l.tapInternalKey, S = O(this.publicKey);
10167
10180
  w.equals(S) && (p = !0, f = !0);
10168
10181
  }
10169
- } else de(l, this.publicKey) && (p = !0, f = !1);
10182
+ } else fe(l, this.publicKey) && (p = !0, f = !1);
10170
10183
  return p ? {
10171
10184
  index: d,
10172
10185
  publicKey: this.publicKey.toString("hex"),
@@ -10244,38 +10257,38 @@ class Lr extends be {
10244
10257
  return i;
10245
10258
  }
10246
10259
  }
10247
- var ui = /* @__PURE__ */ ((n) => (n.mainnet = "mainnet", n.testnet = "testnet", n.signet = "Signet", n))(ui || {}), hi = /* @__PURE__ */ ((n) => (n.ECDSA = "ECDSA", n.BIP322 = "BIP322", n))(hi || {});
10260
+ var hi = /* @__PURE__ */ ((n) => (n.mainnet = "mainnet", n.testnet = "testnet", n.signet = "Signet", n))(hi || {}), li = /* @__PURE__ */ ((n) => (n.ECDSA = "ECDSA", n.BIP322 = "BIP322", n))(li || {});
10248
10261
  function R() {
10249
- return L.dead();
10262
+ return k.dead();
10250
10263
  }
10251
- const li = R(), di = R(), fi = R(), pi = R(), gi = R(), Si = R(), wi = R(), yi = R(), mi = R(), bi = R(), Ti = R(), Ii = R(), Pi = R(), Ei = R(), Ai = R();
10252
- var Oi = /* @__PURE__ */ ((n) => (n.Mainnet = "mainnet", n.Testnet = "testnet", n.Regtest = "regtest", n))(Oi || {});
10253
- class Bi {
10264
+ const di = R(), fi = R(), pi = R(), gi = R(), Si = R(), wi = R(), yi = R(), mi = R(), bi = R(), Ti = R(), Ii = R(), Pi = R(), Ei = R(), Ai = R(), Oi = R();
10265
+ var Bi = /* @__PURE__ */ ((n) => (n.Mainnet = "mainnet", n.Testnet = "testnet", n.Regtest = "regtest", n))(Bi || {});
10266
+ class xi {
10254
10267
  constructor() {
10255
10268
  this.metadata = {
10256
10269
  [Bt.Bitcoin]: {
10257
10270
  testnet: {
10258
- factory: Si,
10259
- pool: wi,
10260
- wbtc: yi,
10261
- moto: mi,
10262
- router: bi
10271
+ factory: wi,
10272
+ pool: yi,
10273
+ wbtc: mi,
10274
+ moto: bi,
10275
+ router: Ti
10263
10276
  },
10264
10277
  regtest: {
10265
- factory: li,
10266
- pool: di,
10267
- wbtc: fi,
10268
- moto: pi,
10269
- router: gi
10278
+ factory: di,
10279
+ pool: fi,
10280
+ wbtc: pi,
10281
+ moto: gi,
10282
+ router: Si
10270
10283
  }
10271
10284
  },
10272
10285
  [Bt.Fractal]: {
10273
10286
  mainnet: {
10274
- factory: Ti,
10275
- pool: Ii,
10276
- wbtc: Pi,
10277
- moto: Ei,
10278
- router: Ai
10287
+ factory: Ii,
10288
+ pool: Pi,
10289
+ wbtc: Ei,
10290
+ moto: Ai,
10291
+ router: Oi
10279
10292
  }
10280
10293
  }
10281
10294
  };
@@ -10321,7 +10334,7 @@ class Bi {
10321
10334
  return i;
10322
10335
  }
10323
10336
  }
10324
- const kr = new Bi();
10337
+ const Cr = new xi();
10325
10338
  class Xt {
10326
10339
  constructor() {
10327
10340
  this._size = 0, this.capacity = Xt.INITIAL_CAPACITY, this.#t = new Array(this.capacity), this.#e = new Array(this.capacity), this.deleted = new Array(this.capacity).fill(!1);
@@ -10484,47 +10497,47 @@ class Xt {
10484
10497
  }
10485
10498
  const Nr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
10486
10499
  __proto__: null,
10487
- ABICoder: Ar,
10488
- ABIDataTypes: ni,
10500
+ ABICoder: kr,
10501
+ ABIDataTypes: oi,
10489
10502
  ADDRESS_BYTE_LENGTH: D,
10490
- ANCHOR_SCRIPT: ne,
10491
- Address: L,
10492
- AddressGenerator: ce,
10493
- AddressMap: Re,
10494
- AddressSet: we,
10503
+ ANCHOR_SCRIPT: oe,
10504
+ Address: k,
10505
+ AddressGenerator: ue,
10506
+ AddressMap: Fe,
10507
+ AddressSet: ye,
10495
10508
  AddressTypes: tt,
10496
10509
  AddressVerificator: H,
10497
10510
  BIPStandard: bt,
10498
- BOOLEAN_BYTE_LENGTH: ur,
10499
- BinaryReader: Gt,
10511
+ BOOLEAN_BYTE_LENGTH: pr,
10512
+ BinaryReader: Qt,
10500
10513
  BinaryWriter: C,
10501
10514
  BitcoinUtils: K,
10502
10515
  BufferHelper: Y,
10503
- CSVModes: Ye,
10504
- CalldataGenerator: ae,
10505
- CancelTransaction: ge,
10516
+ CSVModes: Ge,
10517
+ CalldataGenerator: ce,
10518
+ CancelTransaction: Se,
10506
10519
  ChainId: Bt,
10507
10520
  ChallengeSolution: $t,
10508
- ChallengeSubmission: ri,
10509
- ChallengeVerification: ii,
10521
+ ChallengeSubmission: si,
10522
+ ChallengeVerification: ri,
10510
10523
  Compressor: N,
10511
- Consensus: Lt,
10512
- ConsolidatedInteractionTransaction: Ge,
10513
- ContractAddress: re,
10514
- ContractBaseMetadata: Sr,
10515
- CustomGenerator: Fe,
10516
- CustomKeypair: be,
10524
+ Consensus: kt,
10525
+ ConsolidatedInteractionTransaction: Qe,
10526
+ ContractAddress: se,
10527
+ ContractBaseMetadata: Tr,
10528
+ CustomGenerator: We,
10529
+ CustomKeypair: Te,
10517
10530
  CustomMap: Xt,
10518
10531
  CustomScriptTransaction: Vt,
10519
10532
  DeploymentGenerator: Nt,
10520
10533
  DeploymentTransaction: pt,
10521
- DeterministicMap: ye,
10522
- DeterministicSet: me,
10534
+ DeterministicMap: me,
10535
+ DeterministicSet: be,
10523
10536
  EcKeyPair: A,
10524
10537
  EpochValidator: ut,
10525
- FACTORY_ADDRESS_FRACTAL: Ti,
10526
- FACTORY_ADDRESS_REGTEST: li,
10527
- FACTORY_ADDRESS_TESTNET: Si,
10538
+ FACTORY_ADDRESS_FRACTAL: Ii,
10539
+ FACTORY_ADDRESS_REGTEST: di,
10540
+ FACTORY_ADDRESS_TESTNET: wi,
10528
10541
  FastMap: vt,
10529
10542
  FeaturePriority: j,
10530
10543
  Features: W,
@@ -10532,146 +10545,146 @@ const Nr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
10532
10545
  Generator: $,
10533
10546
  HashCommitmentGenerator: E,
10534
10547
  I128_BYTE_LENGTH: mt,
10535
- I16_BYTE_LENGTH: ar,
10536
- I256_BYTE_LENGTH: sr,
10537
- I64_BYTE_LENGTH: nr,
10538
- I8_BYTE_LENGTH: cr,
10548
+ I16_BYTE_LENGTH: dr,
10549
+ I256_BYTE_LENGTH: ur,
10550
+ I64_BYTE_LENGTH: hr,
10551
+ I8_BYTE_LENGTH: fr,
10539
10552
  InteractionTransaction: qt,
10540
10553
  InteractionTransactionP2WDA: Z,
10541
- LegacyCalldataGenerator: dr,
10554
+ LegacyCalldataGenerator: wr,
10542
10555
  MINIMUM_AMOUNT_CA: wt,
10543
10556
  MINIMUM_AMOUNT_REWARD: z,
10544
10557
  MLDSAKeyPair: P.MLDSAKeyPair,
10545
- MLDSAPublicKeyMetadata: Ve,
10558
+ MLDSAPublicKeyMetadata: ze,
10546
10559
  MLDSASecurityLevel: P.MLDSASecurityLevel,
10547
- MOTO_ADDRESS_FRACTAL: Ei,
10548
- MOTO_ADDRESS_REGTEST: pi,
10549
- MOTO_ADDRESS_TESTNET: mi,
10560
+ MOTO_ADDRESS_FRACTAL: Ai,
10561
+ MOTO_ADDRESS_REGTEST: gi,
10562
+ MOTO_ADDRESS_TESTNET: bi,
10550
10563
  MessageSigner: nt,
10551
- MessageType: ai,
10552
- Mnemonic: he,
10564
+ MessageType: ci,
10565
+ Mnemonic: le,
10553
10566
  MnemonicStrength: Ht,
10554
10567
  MultiSignGenerator: At,
10555
10568
  MultiSignTransaction: x,
10556
- NetEvent: Or,
10557
- OPNET_DEPLOYMENT_VERSION: We,
10558
- OPNetConsensusConfig: $e,
10559
- OPNetLimitedProvider: Pr,
10560
- OPNetMetadata: kr,
10561
- OPNetNetwork: Oi,
10562
- OPNetTokenAddressManager: Bi,
10563
- OfflineTransactionManager: Ir,
10564
- P2TR_MS: Er,
10569
+ NetEvent: Lr,
10570
+ OPNET_DEPLOYMENT_VERSION: Me,
10571
+ OPNetConsensusConfig: Xe,
10572
+ OPNetLimitedProvider: xr,
10573
+ OPNetMetadata: Cr,
10574
+ OPNetNetwork: Bi,
10575
+ OPNetTokenAddressManager: xi,
10576
+ OfflineTransactionManager: Br,
10577
+ P2TR_MS: vr,
10565
10578
  P2WDADetector: q,
10566
10579
  P2WDAGenerator: Ot,
10567
- POOL_ADDRESS_FRACTAL: Ii,
10568
- POOL_ADDRESS_REGTEST: di,
10569
- POOL_ADDRESS_TESTNET: wi,
10570
- PSBTTypes: si,
10580
+ POOL_ADDRESS_FRACTAL: Pi,
10581
+ POOL_ADDRESS_REGTEST: fi,
10582
+ POOL_ADDRESS_TESTNET: yi,
10583
+ PSBTTypes: ni,
10571
10584
  PsbtTransaction: Tt,
10572
10585
  QuantumBIP32API: P.QuantumBIP32API,
10573
10586
  QuantumBIP32Factory: P.QuantumBIP32Factory,
10574
10587
  QuantumBIP32Interface: P.QuantumBIP32Interface,
10575
10588
  QuantumDerivationPath: P.QuantumDerivationPath,
10576
10589
  QuantumSigner: P.QuantumSigner,
10577
- ROUTER_ADDRESS_FRACTAL: Ai,
10578
- ROUTER_ADDRESS_REGTEST: gi,
10579
- ROUTER_ADDRESS_TESTNET: bi,
10580
- RoswellConsensus: qe,
10581
- SELECTOR_BYTE_LENGTH: rr,
10582
- SERIALIZATION_FORMAT_VERSION: Se,
10590
+ ROUTER_ADDRESS_FRACTAL: Oi,
10591
+ ROUTER_ADDRESS_REGTEST: Si,
10592
+ ROUTER_ADDRESS_TESTNET: Ti,
10593
+ RoswellConsensus: $e,
10594
+ SELECTOR_BYTE_LENGTH: cr,
10595
+ SERIALIZATION_FORMAT_VERSION: we,
10583
10596
  SERIALIZATION_MAGIC_BYTE: Rt,
10584
- Secp256k1PointDeriver: Ce,
10585
- SharedInteractionTransaction: pe,
10586
- SignatureType: ci,
10587
- SigningProtocol: hi,
10597
+ Secp256k1PointDeriver: Re,
10598
+ SharedInteractionTransaction: ge,
10599
+ SignatureType: ui,
10600
+ SigningProtocol: li,
10588
10601
  TapscriptVerificator: et,
10589
10602
  TimeLockGenerator: M,
10590
10603
  TransactionBuilder: m,
10591
- TransactionFactory: Qe,
10604
+ TransactionFactory: je,
10592
10605
  TransactionReconstructor: ht,
10593
- TransactionSequence: Xe,
10606
+ TransactionSequence: Ye,
10594
10607
  TransactionSerializer: B,
10595
10608
  TransactionStateCapture: X,
10596
10609
  TransactionType: y,
10597
- TweakedSigner: ue,
10598
- TweakedTransaction: kt,
10610
+ TweakedSigner: he,
10611
+ TweakedTransaction: Lt,
10599
10612
  U128_BYTE_LENGTH: yt,
10600
10613
  U16_BYTE_LENGTH: Et,
10601
10614
  U256_BYTE_LENGTH: Pt,
10602
10615
  U32_BYTE_LENGTH: lt,
10603
10616
  U64_BYTE_LENGTH: Wt,
10604
10617
  U8_BYTE_LENGTH: Mt,
10605
- UnisatChainType: oi,
10618
+ UnisatChainType: ai,
10606
10619
  UnisatNetwork: It,
10607
- UnisatSigner: Br,
10608
- WBTC_ADDRESS_FRACTAL: Pi,
10609
- WBTC_ADDRESS_REGTEST: fi,
10610
- WBTC_ADDRESS_TESTNET: yi,
10620
+ UnisatSigner: Ur,
10621
+ WBTC_ADDRESS_FRACTAL: Ei,
10622
+ WBTC_ADDRESS_REGTEST: pi,
10623
+ WBTC_ADDRESS_TESTNET: mi,
10611
10624
  Wallet: J,
10612
- XverseNetwork: ui,
10613
- XverseSigner: Lr,
10614
- buildBIPPath: He,
10615
- createAddressRotation: wr,
10616
- createSignerMap: ze,
10617
- currentConsensus: Qt,
10618
- currentConsensusConfig: mr,
10619
- disabledAddressRotation: yr,
10620
- getBIPDescription: pr,
10621
- getLevelFromPublicKeyLength: se,
10622
- isCancelSpecificData: ei,
10623
- isCustomScriptSpecificData: ti,
10624
- isDeploymentSpecificData: Ze,
10625
- isFundingSpecificData: je,
10626
- isInteractionSpecificData: Je,
10625
+ XverseNetwork: hi,
10626
+ XverseSigner: Dr,
10627
+ buildBIPPath: Ve,
10628
+ createAddressRotation: Ir,
10629
+ createSignerMap: qe,
10630
+ currentConsensus: jt,
10631
+ currentConsensusConfig: Er,
10632
+ disabledAddressRotation: Pr,
10633
+ getBIPDescription: mr,
10634
+ getLevelFromPublicKeyLength: ne,
10635
+ isCancelSpecificData: ii,
10636
+ isCustomScriptSpecificData: ei,
10637
+ isDeploymentSpecificData: Je,
10638
+ isFundingSpecificData: Ze,
10639
+ isInteractionSpecificData: ti,
10627
10640
  isMultiSigSpecificData: it,
10628
- isOPWallet: Ne,
10629
- number_BYTE_LENGTH: or,
10630
- version: Ji,
10631
- versionBuffer: Me
10641
+ isOPWallet: He,
10642
+ number_BYTE_LENGTH: lr,
10643
+ version: tr,
10644
+ versionBuffer: Ne
10632
10645
  }, Symbol.toStringTag, { value: "Module" })), Hr = P.MLDSAKeyPair, Vr = P.MLDSASecurityLevel, zr = P.QuantumBIP32API, qr = P.QuantumBIP32Factory, $r = P.QuantumBIP32Interface, Xr = P.QuantumDerivationPath, Yr = P.QuantumSigner;
10633
10646
  export {
10634
- Ar as ABICoder,
10635
- ni as ABIDataTypes,
10647
+ kr as ABICoder,
10648
+ oi as ABIDataTypes,
10636
10649
  D as ADDRESS_BYTE_LENGTH,
10637
- ne as ANCHOR_SCRIPT,
10638
- L as Address,
10639
- ce as AddressGenerator,
10640
- Re as AddressMap,
10641
- we as AddressSet,
10650
+ oe as ANCHOR_SCRIPT,
10651
+ k as Address,
10652
+ ue as AddressGenerator,
10653
+ Fe as AddressMap,
10654
+ ye as AddressSet,
10642
10655
  tt as AddressTypes,
10643
10656
  H as AddressVerificator,
10644
10657
  bt as BIPStandard,
10645
- ur as BOOLEAN_BYTE_LENGTH,
10646
- Gt as BinaryReader,
10658
+ pr as BOOLEAN_BYTE_LENGTH,
10659
+ Qt as BinaryReader,
10647
10660
  C as BinaryWriter,
10648
10661
  K as BitcoinUtils,
10649
10662
  Y as BufferHelper,
10650
- Ye as CSVModes,
10651
- ae as CalldataGenerator,
10652
- ge as CancelTransaction,
10663
+ Ge as CSVModes,
10664
+ ce as CalldataGenerator,
10665
+ Se as CancelTransaction,
10653
10666
  Bt as ChainId,
10654
10667
  $t as ChallengeSolution,
10655
- ri as ChallengeSubmission,
10656
- ii as ChallengeVerification,
10668
+ si as ChallengeSubmission,
10669
+ ri as ChallengeVerification,
10657
10670
  N as Compressor,
10658
- Lt as Consensus,
10659
- Ge as ConsolidatedInteractionTransaction,
10660
- re as ContractAddress,
10661
- Sr as ContractBaseMetadata,
10662
- Fe as CustomGenerator,
10663
- be as CustomKeypair,
10671
+ kt as Consensus,
10672
+ Qe as ConsolidatedInteractionTransaction,
10673
+ se as ContractAddress,
10674
+ Tr as ContractBaseMetadata,
10675
+ We as CustomGenerator,
10676
+ Te as CustomKeypair,
10664
10677
  Xt as CustomMap,
10665
10678
  Vt as CustomScriptTransaction,
10666
10679
  Nt as DeploymentGenerator,
10667
10680
  pt as DeploymentTransaction,
10668
- ye as DeterministicMap,
10669
- me as DeterministicSet,
10681
+ me as DeterministicMap,
10682
+ be as DeterministicSet,
10670
10683
  A as EcKeyPair,
10671
10684
  ut as EpochValidator,
10672
- Ti as FACTORY_ADDRESS_FRACTAL,
10673
- li as FACTORY_ADDRESS_REGTEST,
10674
- Si as FACTORY_ADDRESS_TESTNET,
10685
+ Ii as FACTORY_ADDRESS_FRACTAL,
10686
+ di as FACTORY_ADDRESS_REGTEST,
10687
+ wi as FACTORY_ADDRESS_TESTNET,
10675
10688
  vt as FastMap,
10676
10689
  j as FeaturePriority,
10677
10690
  W as Features,
@@ -10679,102 +10692,102 @@ export {
10679
10692
  $ as Generator,
10680
10693
  E as HashCommitmentGenerator,
10681
10694
  mt as I128_BYTE_LENGTH,
10682
- ar as I16_BYTE_LENGTH,
10683
- sr as I256_BYTE_LENGTH,
10684
- nr as I64_BYTE_LENGTH,
10685
- cr as I8_BYTE_LENGTH,
10695
+ dr as I16_BYTE_LENGTH,
10696
+ ur as I256_BYTE_LENGTH,
10697
+ hr as I64_BYTE_LENGTH,
10698
+ fr as I8_BYTE_LENGTH,
10686
10699
  qt as InteractionTransaction,
10687
10700
  Z as InteractionTransactionP2WDA,
10688
- dr as LegacyCalldataGenerator,
10701
+ wr as LegacyCalldataGenerator,
10689
10702
  wt as MINIMUM_AMOUNT_CA,
10690
10703
  z as MINIMUM_AMOUNT_REWARD,
10691
10704
  Hr as MLDSAKeyPair,
10692
- Ve as MLDSAPublicKeyMetadata,
10705
+ ze as MLDSAPublicKeyMetadata,
10693
10706
  Vr as MLDSASecurityLevel,
10694
- Ei as MOTO_ADDRESS_FRACTAL,
10695
- pi as MOTO_ADDRESS_REGTEST,
10696
- mi as MOTO_ADDRESS_TESTNET,
10707
+ Ai as MOTO_ADDRESS_FRACTAL,
10708
+ gi as MOTO_ADDRESS_REGTEST,
10709
+ bi as MOTO_ADDRESS_TESTNET,
10697
10710
  nt as MessageSigner,
10698
- ai as MessageType,
10699
- he as Mnemonic,
10711
+ ci as MessageType,
10712
+ le as Mnemonic,
10700
10713
  Ht as MnemonicStrength,
10701
10714
  At as MultiSignGenerator,
10702
10715
  x as MultiSignTransaction,
10703
- Or as NetEvent,
10704
- We as OPNET_DEPLOYMENT_VERSION,
10705
- $e as OPNetConsensusConfig,
10706
- Pr as OPNetLimitedProvider,
10707
- kr as OPNetMetadata,
10708
- Oi as OPNetNetwork,
10709
- Bi as OPNetTokenAddressManager,
10710
- Ir as OfflineTransactionManager,
10711
- Er as P2TR_MS,
10716
+ Lr as NetEvent,
10717
+ Me as OPNET_DEPLOYMENT_VERSION,
10718
+ Xe as OPNetConsensusConfig,
10719
+ xr as OPNetLimitedProvider,
10720
+ Cr as OPNetMetadata,
10721
+ Bi as OPNetNetwork,
10722
+ xi as OPNetTokenAddressManager,
10723
+ Br as OfflineTransactionManager,
10724
+ vr as P2TR_MS,
10712
10725
  q as P2WDADetector,
10713
10726
  Ot as P2WDAGenerator,
10714
- Ii as POOL_ADDRESS_FRACTAL,
10715
- di as POOL_ADDRESS_REGTEST,
10716
- wi as POOL_ADDRESS_TESTNET,
10717
- si as PSBTTypes,
10727
+ Pi as POOL_ADDRESS_FRACTAL,
10728
+ fi as POOL_ADDRESS_REGTEST,
10729
+ yi as POOL_ADDRESS_TESTNET,
10730
+ ni as PSBTTypes,
10718
10731
  Tt as PsbtTransaction,
10719
10732
  zr as QuantumBIP32API,
10720
10733
  qr as QuantumBIP32Factory,
10721
10734
  $r as QuantumBIP32Interface,
10722
10735
  Xr as QuantumDerivationPath,
10723
10736
  Yr as QuantumSigner,
10724
- Ai as ROUTER_ADDRESS_FRACTAL,
10725
- gi as ROUTER_ADDRESS_REGTEST,
10726
- bi as ROUTER_ADDRESS_TESTNET,
10727
- qe as RoswellConsensus,
10728
- rr as SELECTOR_BYTE_LENGTH,
10729
- Se as SERIALIZATION_FORMAT_VERSION,
10737
+ Oi as ROUTER_ADDRESS_FRACTAL,
10738
+ Si as ROUTER_ADDRESS_REGTEST,
10739
+ Ti as ROUTER_ADDRESS_TESTNET,
10740
+ $e as RoswellConsensus,
10741
+ cr as SELECTOR_BYTE_LENGTH,
10742
+ we as SERIALIZATION_FORMAT_VERSION,
10730
10743
  Rt as SERIALIZATION_MAGIC_BYTE,
10731
- Ce as Secp256k1PointDeriver,
10732
- pe as SharedInteractionTransaction,
10733
- ci as SignatureType,
10734
- hi as SigningProtocol,
10744
+ Re as Secp256k1PointDeriver,
10745
+ ge as SharedInteractionTransaction,
10746
+ ui as SignatureType,
10747
+ li as SigningProtocol,
10735
10748
  et as TapscriptVerificator,
10736
10749
  M as TimeLockGenerator,
10737
10750
  m as TransactionBuilder,
10738
- Qe as TransactionFactory,
10751
+ je as TransactionFactory,
10739
10752
  ht as TransactionReconstructor,
10740
- Xe as TransactionSequence,
10753
+ Ye as TransactionSequence,
10741
10754
  B as TransactionSerializer,
10742
10755
  X as TransactionStateCapture,
10743
10756
  y as TransactionType,
10744
- ue as TweakedSigner,
10745
- kt as TweakedTransaction,
10757
+ he as TweakedSigner,
10758
+ Lt as TweakedTransaction,
10746
10759
  yt as U128_BYTE_LENGTH,
10747
10760
  Et as U16_BYTE_LENGTH,
10748
10761
  Pt as U256_BYTE_LENGTH,
10749
10762
  lt as U32_BYTE_LENGTH,
10750
10763
  Wt as U64_BYTE_LENGTH,
10751
10764
  Mt as U8_BYTE_LENGTH,
10752
- oi as UnisatChainType,
10765
+ ai as UnisatChainType,
10753
10766
  It as UnisatNetwork,
10754
- Br as UnisatSigner,
10755
- Pi as WBTC_ADDRESS_FRACTAL,
10756
- fi as WBTC_ADDRESS_REGTEST,
10757
- yi as WBTC_ADDRESS_TESTNET,
10767
+ Ur as UnisatSigner,
10768
+ Ei as WBTC_ADDRESS_FRACTAL,
10769
+ pi as WBTC_ADDRESS_REGTEST,
10770
+ mi as WBTC_ADDRESS_TESTNET,
10758
10771
  J as Wallet,
10759
- ui as XverseNetwork,
10760
- Lr as XverseSigner,
10761
- He as buildBIPPath,
10762
- wr as createAddressRotation,
10763
- ze as createSignerMap,
10764
- Qt as currentConsensus,
10765
- mr as currentConsensusConfig,
10766
- yr as disabledAddressRotation,
10767
- pr as getBIPDescription,
10768
- se as getLevelFromPublicKeyLength,
10769
- ei as isCancelSpecificData,
10770
- ti as isCustomScriptSpecificData,
10771
- Ze as isDeploymentSpecificData,
10772
- je as isFundingSpecificData,
10773
- Je as isInteractionSpecificData,
10772
+ hi as XverseNetwork,
10773
+ Dr as XverseSigner,
10774
+ Ve as buildBIPPath,
10775
+ Ir as createAddressRotation,
10776
+ qe as createSignerMap,
10777
+ jt as currentConsensus,
10778
+ Er as currentConsensusConfig,
10779
+ Pr as disabledAddressRotation,
10780
+ mr as getBIPDescription,
10781
+ ne as getLevelFromPublicKeyLength,
10782
+ ii as isCancelSpecificData,
10783
+ ei as isCustomScriptSpecificData,
10784
+ Je as isDeploymentSpecificData,
10785
+ Ze as isFundingSpecificData,
10786
+ ti as isInteractionSpecificData,
10774
10787
  it as isMultiSigSpecificData,
10775
- Ne as isOPWallet,
10776
- or as number_BYTE_LENGTH,
10788
+ He as isOPWallet,
10789
+ lr as number_BYTE_LENGTH,
10777
10790
  Nr as opnet,
10778
- Ji as version,
10779
- Me as versionBuffer
10791
+ tr as version,
10792
+ Ne as versionBuffer
10780
10793
  };