@btc-vision/transaction 1.8.0-beta.1 → 1.8.0-beta.3
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/btc-vision-bitcoin.js +1862 -2431
- package/browser/index.js +90 -90
- package/browser/noble-curves.js +2006 -2150
- package/browser/noble-hashes.js +2761 -1003
- package/browser/vendors.js +5354 -5123
- package/build/keypair/Address.js +1 -1
- package/build/keypair/EcKeyPair.js +7 -7
- package/build/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +8 -8
- package/src/crypto/crypto-browser.js +3 -4
- package/src/keypair/Address.ts +1 -1
- package/src/keypair/EcKeyPair.ts +7 -7
package/browser/index.js
CHANGED
|
@@ -1,25 +1,25 @@
|
|
|
1
|
-
import { B as c, f as Gt,
|
|
1
|
+
import { B as c, f as Gt, a as S, h as G, s as bi, j as E, k as xe, l as re, L as Ce, d as Rt, m as Mt, n as wt, c as Ii, e as Ti, b as Ei, o as Pi } from "./vendors.js";
|
|
2
2
|
import { i as ot, b as T, p as Ai, a as pt, c as se, t as O, d as rt, e as it, f as L, g as Re, h as ne, j as mt, k as ve, l as Oi, o as g, m as F, n as Ft, q as te, r as Fe, s as Bi, u as Y, v as gt, w as xi, x as vi, y as Ne, z as Lt, A as Qt, B as Me, C as ki, D as We, P as U, E as Ui, F as ke, G as Li, H as Ue, I as _i, J as Ki, K as Di, L as Ci, M as R, T as oe, N as Ri } from "./btc-vision-bitcoin.js";
|
|
3
3
|
import { s as Fi, m as Ni, e as Mi } from "./noble-curves.js";
|
|
4
|
-
import {
|
|
5
|
-
const
|
|
6
|
-
function
|
|
4
|
+
import { k as de, d as ee, f as Wi } from "./noble-hashes.js";
|
|
5
|
+
const Hi = "1.8.0-beta.1";
|
|
6
|
+
function Vi(n, t = {}) {
|
|
7
7
|
return c.from(Gt.gzip(n, { level: t.level || 6 }));
|
|
8
8
|
}
|
|
9
|
-
function
|
|
9
|
+
function zi(n) {
|
|
10
10
|
return c.from(Gt.ungzip(n));
|
|
11
11
|
}
|
|
12
|
-
function
|
|
12
|
+
function qi(n, t = {}) {
|
|
13
13
|
return c.from(Gt.deflate(n, { level: t.level || 6 }));
|
|
14
14
|
}
|
|
15
|
-
function
|
|
15
|
+
function $i(n) {
|
|
16
16
|
return c.from(Gt.inflate(n));
|
|
17
17
|
}
|
|
18
18
|
const Le = {
|
|
19
|
-
gzipSync:
|
|
20
|
-
gunzipSync:
|
|
21
|
-
deflateSync:
|
|
22
|
-
inflateSync:
|
|
19
|
+
gzipSync: Vi,
|
|
20
|
+
gunzipSync: zi,
|
|
21
|
+
deflateSync: qi,
|
|
22
|
+
inflateSync: $i
|
|
23
23
|
};
|
|
24
24
|
class W {
|
|
25
25
|
static {
|
|
@@ -50,9 +50,9 @@ ot(G);
|
|
|
50
50
|
const He = typeof xe == "function" ? xe : E.BIP32Factory;
|
|
51
51
|
if (!He)
|
|
52
52
|
throw new Error("Failed to load BIP32 library");
|
|
53
|
-
const at = Fi.Point,
|
|
54
|
-
function
|
|
55
|
-
return de(
|
|
53
|
+
const at = Fi.Point, Xi = at.Fn.ORDER, Yi = S.from("TapTweak", "utf-8"), _e = de(Yi);
|
|
54
|
+
function Gi(n) {
|
|
55
|
+
return de(Wi(_e, _e, n));
|
|
56
56
|
}
|
|
57
57
|
class A {
|
|
58
58
|
static {
|
|
@@ -212,7 +212,7 @@ class A {
|
|
|
212
212
|
*/
|
|
213
213
|
static tweakPublicKey(t) {
|
|
214
214
|
typeof t == "string" && t.startsWith("0x") && (t = t.slice(2));
|
|
215
|
-
const e = at.fromHex(t), i = (e.y & 1n) === 0n ? e : e.negate(), r = S.from(i.toBytes(!0).subarray(1)), s =
|
|
215
|
+
const e = at.fromHex(S.from(t).toString("hex")), i = (e.y & 1n) === 0n ? e : e.negate(), r = S.from(i.toBytes(!0).subarray(1)), s = Gi(r), o = Ni(Mi(s), Xi), a = i.add(at.BASE.multiply(o));
|
|
216
216
|
return S.from(a.toBytes(!0));
|
|
217
217
|
}
|
|
218
218
|
/**
|
|
@@ -224,7 +224,7 @@ class A {
|
|
|
224
224
|
static tweakBatchSharedT(t, e) {
|
|
225
225
|
const i = at.BASE.multiply(e);
|
|
226
226
|
return t.map((r) => {
|
|
227
|
-
const s = at.fromHex(r);
|
|
227
|
+
const s = at.fromHex(S.from(r).toString("hex"));
|
|
228
228
|
return (s.y % 2n === 0n ? s : s.negate()).add(i).toBytes(!0);
|
|
229
229
|
});
|
|
230
230
|
}
|
|
@@ -402,7 +402,7 @@ class A {
|
|
|
402
402
|
return this.ECPair.fromPrivateKey(S.from(r), { network: e });
|
|
403
403
|
}
|
|
404
404
|
}
|
|
405
|
-
const k = 32, ht = 64, lt = 64,
|
|
405
|
+
const k = 32, ht = 64, lt = 64, Qi = 4, At = 32, It = 16, Wt = 8, dt = 4, ft = 2, Ht = 1, ji = 32, Tt = 16, Ot = 8, Bt = 4, xt = 2, vt = 1, Zi = 1;
|
|
406
406
|
class X {
|
|
407
407
|
static {
|
|
408
408
|
this.EXPECTED_BUFFER_LENGTH = 32;
|
|
@@ -443,7 +443,7 @@ class X {
|
|
|
443
443
|
return BigInt(e ? "0x" + e : 0);
|
|
444
444
|
}
|
|
445
445
|
}
|
|
446
|
-
const
|
|
446
|
+
const Ji = /^[0-9a-fA-F]+$/;
|
|
447
447
|
class D {
|
|
448
448
|
/**
|
|
449
449
|
* Converts satoshi to BTC
|
|
@@ -479,7 +479,7 @@ class D {
|
|
|
479
479
|
);
|
|
480
480
|
}
|
|
481
481
|
static isValidHex(t) {
|
|
482
|
-
return
|
|
482
|
+
return Ji.test(t);
|
|
483
483
|
}
|
|
484
484
|
/**
|
|
485
485
|
* Hashes the given data
|
|
@@ -1008,7 +1008,7 @@ class Ve {
|
|
|
1008
1008
|
return e;
|
|
1009
1009
|
}
|
|
1010
1010
|
}
|
|
1011
|
-
class
|
|
1011
|
+
class tr {
|
|
1012
1012
|
constructor() {
|
|
1013
1013
|
this.deriver = new Ve();
|
|
1014
1014
|
}
|
|
@@ -1020,7 +1020,7 @@ class er {
|
|
|
1020
1020
|
return c.from(t);
|
|
1021
1021
|
}
|
|
1022
1022
|
}
|
|
1023
|
-
const ae = new
|
|
1023
|
+
const ae = new tr();
|
|
1024
1024
|
class M {
|
|
1025
1025
|
static {
|
|
1026
1026
|
this.UNSPENDABLE_INTERNAL_KEY = c.from(
|
|
@@ -3065,7 +3065,7 @@ class P extends Ce {
|
|
|
3065
3065
|
), s;
|
|
3066
3066
|
}
|
|
3067
3067
|
}
|
|
3068
|
-
class
|
|
3068
|
+
class er extends q {
|
|
3069
3069
|
constructor(t, e = T) {
|
|
3070
3070
|
super(t, c.alloc(0), e);
|
|
3071
3071
|
}
|
|
@@ -3381,7 +3381,7 @@ class ge {
|
|
|
3381
3381
|
function Ge(n) {
|
|
3382
3382
|
return typeof n == "object" && n !== null && "web3" in n && typeof n.web3 == "object" && "getMLDSAPublicKey" in n.web3 && "signMLDSAMessage" in n.web3;
|
|
3383
3383
|
}
|
|
3384
|
-
class
|
|
3384
|
+
class ir {
|
|
3385
3385
|
sha256(t) {
|
|
3386
3386
|
return Ne(c.from(t));
|
|
3387
3387
|
}
|
|
@@ -3600,7 +3600,7 @@ class rr {
|
|
|
3600
3600
|
return !t.opnet || !Ge(t.opnet) ? null : t.opnet;
|
|
3601
3601
|
}
|
|
3602
3602
|
}
|
|
3603
|
-
const st = new
|
|
3603
|
+
const st = new ir();
|
|
3604
3604
|
ot(G);
|
|
3605
3605
|
class Z {
|
|
3606
3606
|
/**
|
|
@@ -3873,7 +3873,7 @@ class Z {
|
|
|
3873
3873
|
}
|
|
3874
3874
|
}
|
|
3875
3875
|
var zt = /* @__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))(zt || {}), Et = /* @__PURE__ */ ((n) => (n[n.BIP44 = 44] = "BIP44", n[n.BIP49 = 49] = "BIP49", n[n.BIP84 = 84] = "BIP84", n[n.BIP86 = 86] = "BIP86", n))(Et || {});
|
|
3876
|
-
function
|
|
3876
|
+
function rr(n) {
|
|
3877
3877
|
switch (n) {
|
|
3878
3878
|
case 44:
|
|
3879
3879
|
return "BIP44: Legacy addresses (P2PKH), widely used by Unisat and other wallets";
|
|
@@ -3891,7 +3891,7 @@ function Qe(n, t, e, i, r) {
|
|
|
3891
3891
|
return `m/${n}'/${t}'/${e}'/${i}/${r}`;
|
|
3892
3892
|
}
|
|
3893
3893
|
ot(G);
|
|
3894
|
-
const
|
|
3894
|
+
const sr = E.BIP32Factory(G);
|
|
3895
3895
|
class Se {
|
|
3896
3896
|
/**
|
|
3897
3897
|
* Create a new Mnemonic instance from an existing phrase
|
|
@@ -3905,7 +3905,7 @@ class Se {
|
|
|
3905
3905
|
constructor(t, e = "", i = T, r = E.MLDSASecurityLevel.LEVEL2) {
|
|
3906
3906
|
if (!wt.validateMnemonic(t))
|
|
3907
3907
|
throw new Error("Invalid mnemonic phrase");
|
|
3908
|
-
this._phrase = t, this._passphrase = e, this._network = i, this._securityLevel = r, this._seed = wt.mnemonicToSeedSync(this._phrase, this._passphrase), this._classicalRoot =
|
|
3908
|
+
this._phrase = t, this._passphrase = e, this._network = i, this._securityLevel = r, this._seed = wt.mnemonicToSeedSync(this._phrase, this._passphrase), this._classicalRoot = sr.fromSeed(this._seed, this._network), this._quantumRoot = E.QuantumBIP32Factory.fromSeed(
|
|
3909
3909
|
this._seed,
|
|
3910
3910
|
this._network,
|
|
3911
3911
|
this._securityLevel
|
|
@@ -4177,7 +4177,7 @@ function ce(n) {
|
|
|
4177
4177
|
throw new Error(`Invalid MLDSA public key length: ${n}`);
|
|
4178
4178
|
}
|
|
4179
4179
|
}
|
|
4180
|
-
class
|
|
4180
|
+
class nr {
|
|
4181
4181
|
constructor(t = T) {
|
|
4182
4182
|
this.network = t;
|
|
4183
4183
|
}
|
|
@@ -4199,13 +4199,13 @@ var ye = /* @__PURE__ */ ((n) => (n[n.Bitcoin = 0] = "Bitcoin", n[n.Fractal = 1]
|
|
|
4199
4199
|
function Ze(n) {
|
|
4200
4200
|
return new Map(n);
|
|
4201
4201
|
}
|
|
4202
|
-
function
|
|
4202
|
+
function or(n) {
|
|
4203
4203
|
return {
|
|
4204
4204
|
enabled: !0,
|
|
4205
4205
|
signerMap: n instanceof Map ? n : Ze(n)
|
|
4206
4206
|
};
|
|
4207
4207
|
}
|
|
4208
|
-
function
|
|
4208
|
+
function ar() {
|
|
4209
4209
|
return {
|
|
4210
4210
|
enabled: !1,
|
|
4211
4211
|
signerMap: /* @__PURE__ */ new Map()
|
|
@@ -4231,7 +4231,7 @@ const Je = {
|
|
|
4231
4231
|
//UNWRAP_CONSOLIDATION_PREPAID_FEES_SAT: 56500n,
|
|
4232
4232
|
}, ti = {
|
|
4233
4233
|
[_t.Roswell]: Je
|
|
4234
|
-
}, Zt = _t.Roswell,
|
|
4234
|
+
}, Zt = _t.Roswell, cr = ti[Zt];
|
|
4235
4235
|
function ue(n) {
|
|
4236
4236
|
let t = c.allocUnsafe(0);
|
|
4237
4237
|
function e(o) {
|
|
@@ -4252,13 +4252,13 @@ function ue(n) {
|
|
|
4252
4252
|
function we(n) {
|
|
4253
4253
|
return n && !!(n.tapInternalKey || n.tapMerkleRoot || n.tapLeafScript && n.tapLeafScript.length || n.tapBip32Derivation && n.tapBip32Derivation.length || n.witnessUtxo && Me(n.witnessUtxo.script));
|
|
4254
4254
|
}
|
|
4255
|
-
function
|
|
4255
|
+
function ur(n) {
|
|
4256
4256
|
return n.redeemScript ? n.redeemScript : n.witnessScript ? n.witnessScript : n.witnessUtxo ? n.witnessUtxo.script : (n.nonWitnessUtxo, null);
|
|
4257
4257
|
}
|
|
4258
4258
|
function me(n, t) {
|
|
4259
4259
|
if (n.nonWitnessUtxo && !n.redeemScript && !n.witnessScript && !n.witnessUtxo || n.redeemScript)
|
|
4260
4260
|
return !0;
|
|
4261
|
-
const e =
|
|
4261
|
+
const e = ur(n);
|
|
4262
4262
|
return e ? be(t, e) : !1;
|
|
4263
4263
|
}
|
|
4264
4264
|
function be(n, t) {
|
|
@@ -4896,7 +4896,7 @@ class Jt extends Ce {
|
|
|
4896
4896
|
function ie(n, t) {
|
|
4897
4897
|
return JSON.stringify(n) === JSON.stringify(t);
|
|
4898
4898
|
}
|
|
4899
|
-
function
|
|
4899
|
+
function hr(n) {
|
|
4900
4900
|
if (ie(n, T))
|
|
4901
4901
|
return "000000000019d6689c085ae165831e934ff763ae46a2a6c172b3f1b60a8ce26f";
|
|
4902
4902
|
if (ie(n, Lt))
|
|
@@ -4906,7 +4906,7 @@ function lr(n) {
|
|
|
4906
4906
|
throw new Error("Unsupported network for chain ID retrieval");
|
|
4907
4907
|
}
|
|
4908
4908
|
function Ke(n) {
|
|
4909
|
-
return Uint8Array.from(c.from(
|
|
4909
|
+
return Uint8Array.from(c.from(hr(n), "hex"));
|
|
4910
4910
|
}
|
|
4911
4911
|
const De = Uint8Array.from(
|
|
4912
4912
|
c.from(
|
|
@@ -9237,7 +9237,7 @@ class ut {
|
|
|
9237
9237
|
}
|
|
9238
9238
|
}
|
|
9239
9239
|
}
|
|
9240
|
-
class
|
|
9240
|
+
class lr {
|
|
9241
9241
|
/**
|
|
9242
9242
|
* Export a FundingTransaction for offline signing
|
|
9243
9243
|
* @param params - Funding transaction parameters
|
|
@@ -9622,7 +9622,7 @@ class dr {
|
|
|
9622
9622
|
return B.toBase64(r);
|
|
9623
9623
|
}
|
|
9624
9624
|
}
|
|
9625
|
-
class
|
|
9625
|
+
class dr {
|
|
9626
9626
|
constructor(t) {
|
|
9627
9627
|
this.opnetAPIUrl = t, this.utxoPath = "address/utxos", this.rpc = "json-rpc";
|
|
9628
9628
|
}
|
|
@@ -9834,7 +9834,7 @@ class fr {
|
|
|
9834
9834
|
}*/
|
|
9835
9835
|
}
|
|
9836
9836
|
var di = /* @__PURE__ */ ((n) => (n[n.UNWRAP = 0] = "UNWRAP", n))(di || {});
|
|
9837
|
-
class
|
|
9837
|
+
class fr {
|
|
9838
9838
|
/**
|
|
9839
9839
|
* Generate a multi-sig address
|
|
9840
9840
|
* @param {Buffer[]} pubKeys - The public keys to use
|
|
@@ -9862,7 +9862,7 @@ class pr {
|
|
|
9862
9862
|
}
|
|
9863
9863
|
}
|
|
9864
9864
|
var fi = /* @__PURE__ */ ((n) => (n.UINT8 = "UINT8", n.UINT16 = "UINT16", n.UINT32 = "UINT32", n.UINT64 = "UINT64", n.UINT128 = "UINT128", n.UINT256 = "UINT256", n.INT8 = "INT8", n.INT16 = "INT16", n.INT32 = "INT32", n.INT64 = "INT64", n.INT128 = "INT128", n.BOOL = "BOOL", n.ADDRESS = "ADDRESS", n.EXTENDED_ADDRESS = "EXTENDED_ADDRESS", n.STRING = "STRING", n.BYTES4 = "BYTES4", n.BYTES32 = "BYTES32", n.BYTES = "BYTES", n.ADDRESS_UINT256_TUPLE = "ADDRESS_UINT256_TUPLE", n.EXTENDED_ADDRESS_UINT256_TUPLE = "EXTENDED_ADDRESS_UINT256_TUPLE", n.SCHNORR_SIGNATURE = "SCHNORR_SIGNATURE", n.ARRAY_OF_ADDRESSES = "ARRAY_OF_ADDRESSES", n.ARRAY_OF_EXTENDED_ADDRESSES = "ARRAY_OF_EXTENDED_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))(fi || {});
|
|
9865
|
-
class
|
|
9865
|
+
class pr {
|
|
9866
9866
|
decodeData(t, e) {
|
|
9867
9867
|
const i = new jt(t), r = [];
|
|
9868
9868
|
for (let s = 0; s < e.length; s++)
|
|
@@ -10140,7 +10140,7 @@ class Oe {
|
|
|
10140
10140
|
return { found: !1, index: e };
|
|
10141
10141
|
}
|
|
10142
10142
|
}
|
|
10143
|
-
class
|
|
10143
|
+
class gr {
|
|
10144
10144
|
constructor(t, e) {
|
|
10145
10145
|
this.type = t, this.data = e;
|
|
10146
10146
|
}
|
|
@@ -10150,7 +10150,7 @@ class Be {
|
|
|
10150
10150
|
}
|
|
10151
10151
|
}
|
|
10152
10152
|
var Pt = /* @__PURE__ */ ((n) => (n.Mainnet = "mainnet", n.Testnet = "testnet", n.Regtest = "regtest", n))(Pt || {}), pi = /* @__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))(pi || {});
|
|
10153
|
-
class
|
|
10153
|
+
class Sr extends Be {
|
|
10154
10154
|
constructor() {
|
|
10155
10155
|
if (super(), this.isInitialized = !1, !window)
|
|
10156
10156
|
throw new Error("UnisatSigner can only be used in a browser environment");
|
|
@@ -10251,7 +10251,7 @@ class yr extends Be {
|
|
|
10251
10251
|
if (we(h)) {
|
|
10252
10252
|
if (h.tapLeafScript && h.tapLeafScript.length > 0) {
|
|
10253
10253
|
for (const f of h.tapLeafScript)
|
|
10254
|
-
if (
|
|
10254
|
+
if (yr(this.publicKey, f.script)) {
|
|
10255
10255
|
d = !0, p = !1;
|
|
10256
10256
|
break;
|
|
10257
10257
|
}
|
|
@@ -10326,15 +10326,15 @@ class yr extends Be {
|
|
|
10326
10326
|
return i;
|
|
10327
10327
|
}
|
|
10328
10328
|
}
|
|
10329
|
-
function
|
|
10330
|
-
return
|
|
10329
|
+
function yr(n, t) {
|
|
10330
|
+
return wr(n, t) !== -1;
|
|
10331
10331
|
}
|
|
10332
|
-
function
|
|
10332
|
+
function wr(n, t) {
|
|
10333
10333
|
const e = gt(n), i = O(n), r = F(t);
|
|
10334
10334
|
if (r === null) throw new Error("Unknown script error");
|
|
10335
10335
|
return r.findIndex((s) => typeof s == "number" ? !1 : c.isBuffer(s) && (s.equals(n) || s.equals(e) || s.equals(i)));
|
|
10336
10336
|
}
|
|
10337
|
-
class
|
|
10337
|
+
class mr extends Be {
|
|
10338
10338
|
constructor() {
|
|
10339
10339
|
if (super(), this.isInitialized = !1, !window)
|
|
10340
10340
|
throw new Error("XverseSigner can only be used in a browser environment");
|
|
@@ -10683,9 +10683,9 @@ class Yt {
|
|
|
10683
10683
|
t[i] !== void 0 && !this.deleted[i] && this.set(t[i], e[i]);
|
|
10684
10684
|
}
|
|
10685
10685
|
}
|
|
10686
|
-
const
|
|
10686
|
+
const Pr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
10687
10687
|
__proto__: null,
|
|
10688
|
-
ABICoder:
|
|
10688
|
+
ABICoder: pr,
|
|
10689
10689
|
ABIDataTypes: fi,
|
|
10690
10690
|
ADDRESS_BYTE_LENGTH: k,
|
|
10691
10691
|
ANCHOR_SCRIPT: he,
|
|
@@ -10696,7 +10696,7 @@ const Ar = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
10696
10696
|
AddressTypes: J,
|
|
10697
10697
|
AddressVerificator: H,
|
|
10698
10698
|
BIPStandard: Et,
|
|
10699
|
-
BOOLEAN_BYTE_LENGTH:
|
|
10699
|
+
BOOLEAN_BYTE_LENGTH: Zi,
|
|
10700
10700
|
BinaryReader: jt,
|
|
10701
10701
|
BinaryWriter: C,
|
|
10702
10702
|
BitcoinUtils: D,
|
|
@@ -10712,7 +10712,7 @@ const Ar = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
10712
10712
|
Consensus: _t,
|
|
10713
10713
|
ConsolidatedInteractionTransaction: ri,
|
|
10714
10714
|
ContractAddress: ae,
|
|
10715
|
-
ContractBaseMetadata:
|
|
10715
|
+
ContractBaseMetadata: nr,
|
|
10716
10716
|
CustomGenerator: $e,
|
|
10717
10717
|
CustomKeypair: Be,
|
|
10718
10718
|
CustomMap: Yt,
|
|
@@ -10733,13 +10733,13 @@ const Ar = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
10733
10733
|
HashCommitmentGenerator: P,
|
|
10734
10734
|
I128_BYTE_LENGTH: Tt,
|
|
10735
10735
|
I16_BYTE_LENGTH: xt,
|
|
10736
|
-
I256_BYTE_LENGTH:
|
|
10736
|
+
I256_BYTE_LENGTH: ji,
|
|
10737
10737
|
I32_BYTE_LENGTH: Bt,
|
|
10738
10738
|
I64_BYTE_LENGTH: Ot,
|
|
10739
10739
|
I8_BYTE_LENGTH: vt,
|
|
10740
10740
|
InteractionTransaction: Xt,
|
|
10741
10741
|
InteractionTransactionP2WDA: j,
|
|
10742
|
-
LegacyCalldataGenerator:
|
|
10742
|
+
LegacyCalldataGenerator: er,
|
|
10743
10743
|
MINIMUM_AMOUNT_CA: bt,
|
|
10744
10744
|
MINIMUM_AMOUNT_REWARD: V,
|
|
10745
10745
|
MLDSAKeyPair: E.MLDSAKeyPair,
|
|
@@ -10751,12 +10751,12 @@ const Ar = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
10751
10751
|
MnemonicStrength: zt,
|
|
10752
10752
|
MultiSignGenerator: kt,
|
|
10753
10753
|
MultiSignTransaction: x,
|
|
10754
|
-
NetEvent:
|
|
10754
|
+
NetEvent: gr,
|
|
10755
10755
|
OPNET_DEPLOYMENT_VERSION: Xe,
|
|
10756
10756
|
OPNetConsensusConfig: ti,
|
|
10757
|
-
OPNetLimitedProvider:
|
|
10758
|
-
OfflineTransactionManager:
|
|
10759
|
-
P2TR_MS:
|
|
10757
|
+
OPNetLimitedProvider: dr,
|
|
10758
|
+
OfflineTransactionManager: lr,
|
|
10759
|
+
P2TR_MS: fr,
|
|
10760
10760
|
P2WDADetector: z,
|
|
10761
10761
|
P2WDAGenerator: Ut,
|
|
10762
10762
|
PSBTTypes: di,
|
|
@@ -10767,7 +10767,7 @@ const Ar = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
10767
10767
|
QuantumSigner: E.QuantumSigner,
|
|
10768
10768
|
RoswellConsensus: Je,
|
|
10769
10769
|
SCHNORR_SIGNATURE_BYTE_LENGTH: lt,
|
|
10770
|
-
SELECTOR_BYTE_LENGTH:
|
|
10770
|
+
SELECTOR_BYTE_LENGTH: Qi,
|
|
10771
10771
|
SERIALIZATION_FORMAT_VERSION: Ee,
|
|
10772
10772
|
SERIALIZATION_MAGIC_BYTE: Nt,
|
|
10773
10773
|
Secp256k1PointDeriver: Ve,
|
|
@@ -10792,18 +10792,18 @@ const Ar = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
10792
10792
|
U64_BYTE_LENGTH: Wt,
|
|
10793
10793
|
U8_BYTE_LENGTH: Ht,
|
|
10794
10794
|
UnisatChainType: pi,
|
|
10795
|
-
UnisatSigner:
|
|
10795
|
+
UnisatSigner: Sr,
|
|
10796
10796
|
Wallet: Z,
|
|
10797
10797
|
WalletNetworks: Pt,
|
|
10798
10798
|
XverseNetwork: yi,
|
|
10799
|
-
XverseSigner:
|
|
10799
|
+
XverseSigner: mr,
|
|
10800
10800
|
buildBIPPath: Qe,
|
|
10801
|
-
createAddressRotation:
|
|
10801
|
+
createAddressRotation: or,
|
|
10802
10802
|
createSignerMap: Ze,
|
|
10803
10803
|
currentConsensus: Zt,
|
|
10804
|
-
currentConsensusConfig:
|
|
10805
|
-
disabledAddressRotation:
|
|
10806
|
-
getBIPDescription:
|
|
10804
|
+
currentConsensusConfig: cr,
|
|
10805
|
+
disabledAddressRotation: ar,
|
|
10806
|
+
getBIPDescription: rr,
|
|
10807
10807
|
getLevelFromPublicKeyLength: ce,
|
|
10808
10808
|
isCancelSpecificData: ui,
|
|
10809
10809
|
isCustomScriptSpecificData: ci,
|
|
@@ -10812,11 +10812,11 @@ const Ar = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
10812
10812
|
isInteractionSpecificData: ai,
|
|
10813
10813
|
isMultiSigSpecificData: et,
|
|
10814
10814
|
isOPWallet: Ge,
|
|
10815
|
-
version:
|
|
10815
|
+
version: Hi,
|
|
10816
10816
|
versionBuffer: Ye
|
|
10817
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
10817
|
+
}, Symbol.toStringTag, { value: "Module" })), Ar = E.MLDSAKeyPair, Or = E.MLDSASecurityLevel, Br = E.QuantumBIP32API, xr = E.QuantumBIP32Factory, vr = E.QuantumBIP32Interface, kr = E.QuantumDerivationPath, Ur = E.QuantumSigner;
|
|
10818
10818
|
export {
|
|
10819
|
-
|
|
10819
|
+
pr as ABICoder,
|
|
10820
10820
|
fi as ABIDataTypes,
|
|
10821
10821
|
k as ADDRESS_BYTE_LENGTH,
|
|
10822
10822
|
he as ANCHOR_SCRIPT,
|
|
@@ -10827,7 +10827,7 @@ export {
|
|
|
10827
10827
|
J as AddressTypes,
|
|
10828
10828
|
H as AddressVerificator,
|
|
10829
10829
|
Et as BIPStandard,
|
|
10830
|
-
|
|
10830
|
+
Zi as BOOLEAN_BYTE_LENGTH,
|
|
10831
10831
|
jt as BinaryReader,
|
|
10832
10832
|
C as BinaryWriter,
|
|
10833
10833
|
D as BitcoinUtils,
|
|
@@ -10843,7 +10843,7 @@ export {
|
|
|
10843
10843
|
_t as Consensus,
|
|
10844
10844
|
ri as ConsolidatedInteractionTransaction,
|
|
10845
10845
|
ae as ContractAddress,
|
|
10846
|
-
|
|
10846
|
+
nr as ContractBaseMetadata,
|
|
10847
10847
|
$e as CustomGenerator,
|
|
10848
10848
|
Be as CustomKeypair,
|
|
10849
10849
|
Yt as CustomMap,
|
|
@@ -10864,41 +10864,41 @@ export {
|
|
|
10864
10864
|
P as HashCommitmentGenerator,
|
|
10865
10865
|
Tt as I128_BYTE_LENGTH,
|
|
10866
10866
|
xt as I16_BYTE_LENGTH,
|
|
10867
|
-
|
|
10867
|
+
ji as I256_BYTE_LENGTH,
|
|
10868
10868
|
Bt as I32_BYTE_LENGTH,
|
|
10869
10869
|
Ot as I64_BYTE_LENGTH,
|
|
10870
10870
|
vt as I8_BYTE_LENGTH,
|
|
10871
10871
|
Xt as InteractionTransaction,
|
|
10872
10872
|
j as InteractionTransactionP2WDA,
|
|
10873
|
-
|
|
10873
|
+
er as LegacyCalldataGenerator,
|
|
10874
10874
|
bt as MINIMUM_AMOUNT_CA,
|
|
10875
10875
|
V as MINIMUM_AMOUNT_REWARD,
|
|
10876
|
-
|
|
10876
|
+
Ar as MLDSAKeyPair,
|
|
10877
10877
|
je as MLDSAPublicKeyMetadata,
|
|
10878
|
-
|
|
10878
|
+
Or as MLDSASecurityLevel,
|
|
10879
10879
|
st as MessageSigner,
|
|
10880
10880
|
gi as MessageType,
|
|
10881
10881
|
Se as Mnemonic,
|
|
10882
10882
|
zt as MnemonicStrength,
|
|
10883
10883
|
kt as MultiSignGenerator,
|
|
10884
10884
|
x as MultiSignTransaction,
|
|
10885
|
-
|
|
10885
|
+
gr as NetEvent,
|
|
10886
10886
|
Xe as OPNET_DEPLOYMENT_VERSION,
|
|
10887
10887
|
ti as OPNetConsensusConfig,
|
|
10888
|
-
|
|
10889
|
-
|
|
10890
|
-
|
|
10888
|
+
dr as OPNetLimitedProvider,
|
|
10889
|
+
lr as OfflineTransactionManager,
|
|
10890
|
+
fr as P2TR_MS,
|
|
10891
10891
|
z as P2WDADetector,
|
|
10892
10892
|
Ut as P2WDAGenerator,
|
|
10893
10893
|
di as PSBTTypes,
|
|
10894
|
-
|
|
10895
|
-
|
|
10896
|
-
|
|
10897
|
-
|
|
10898
|
-
|
|
10894
|
+
Br as QuantumBIP32API,
|
|
10895
|
+
xr as QuantumBIP32Factory,
|
|
10896
|
+
vr as QuantumBIP32Interface,
|
|
10897
|
+
kr as QuantumDerivationPath,
|
|
10898
|
+
Ur as QuantumSigner,
|
|
10899
10899
|
Je as RoswellConsensus,
|
|
10900
10900
|
lt as SCHNORR_SIGNATURE_BYTE_LENGTH,
|
|
10901
|
-
|
|
10901
|
+
Qi as SELECTOR_BYTE_LENGTH,
|
|
10902
10902
|
Ee as SERIALIZATION_FORMAT_VERSION,
|
|
10903
10903
|
Nt as SERIALIZATION_MAGIC_BYTE,
|
|
10904
10904
|
Ve as Secp256k1PointDeriver,
|
|
@@ -10923,18 +10923,18 @@ export {
|
|
|
10923
10923
|
Wt as U64_BYTE_LENGTH,
|
|
10924
10924
|
Ht as U8_BYTE_LENGTH,
|
|
10925
10925
|
pi as UnisatChainType,
|
|
10926
|
-
|
|
10926
|
+
Sr as UnisatSigner,
|
|
10927
10927
|
Z as Wallet,
|
|
10928
10928
|
Pt as WalletNetworks,
|
|
10929
10929
|
yi as XverseNetwork,
|
|
10930
|
-
|
|
10930
|
+
mr as XverseSigner,
|
|
10931
10931
|
Qe as buildBIPPath,
|
|
10932
|
-
|
|
10932
|
+
or as createAddressRotation,
|
|
10933
10933
|
Ze as createSignerMap,
|
|
10934
10934
|
Zt as currentConsensus,
|
|
10935
|
-
|
|
10936
|
-
|
|
10937
|
-
|
|
10935
|
+
cr as currentConsensusConfig,
|
|
10936
|
+
ar as disabledAddressRotation,
|
|
10937
|
+
rr as getBIPDescription,
|
|
10938
10938
|
ce as getLevelFromPublicKeyLength,
|
|
10939
10939
|
ui as isCancelSpecificData,
|
|
10940
10940
|
ci as isCustomScriptSpecificData,
|
|
@@ -10943,7 +10943,7 @@ export {
|
|
|
10943
10943
|
ai as isInteractionSpecificData,
|
|
10944
10944
|
et as isMultiSigSpecificData,
|
|
10945
10945
|
Ge as isOPWallet,
|
|
10946
|
-
|
|
10947
|
-
|
|
10946
|
+
Pr as opnet,
|
|
10947
|
+
Hi as version,
|
|
10948
10948
|
Ye as versionBuffer
|
|
10949
10949
|
};
|