@babylonlabs-io/ts-sdk 0.50.1 → 0.51.1

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.
Files changed (36) hide show
  1. package/dist/index.cjs +1 -1
  2. package/dist/index.js +13 -12
  3. package/dist/{peginState-CBAlxgXk.js → peginState-BB81JI6I.js} +17 -12
  4. package/dist/{peginState-CBAlxgXk.js.map → peginState-BB81JI6I.js.map} +1 -1
  5. package/dist/peginState-CBBJw4Za.cjs +2 -0
  6. package/dist/{peginState-BijNNT15.cjs.map → peginState-CBBJw4Za.cjs.map} +1 -1
  7. package/dist/{primeVpAuth-BTKhMdh1.js → primeVpAuth-DxMuWQCi.js} +180 -189
  8. package/dist/{primeVpAuth-BTKhMdh1.js.map → primeVpAuth-DxMuWQCi.js.map} +1 -1
  9. package/dist/{primeVpAuth-CXzKktIW.cjs → primeVpAuth-yTddDmGy.cjs} +2 -2
  10. package/dist/{primeVpAuth-CXzKktIW.cjs.map → primeVpAuth-yTddDmGy.cjs.map} +1 -1
  11. package/dist/{reservation-xTL2a9Q-.cjs → reservation-ClEs2X0H.cjs} +2 -2
  12. package/dist/{reservation-xTL2a9Q-.cjs.map → reservation-ClEs2X0H.cjs.map} +1 -1
  13. package/dist/{reservation-BxvKbQH2.js → reservation-cHDRn4DA.js} +2 -2
  14. package/dist/{reservation-BxvKbQH2.js.map → reservation-cHDRn4DA.js.map} +1 -1
  15. package/dist/tbv/core/clients/index.cjs +1 -1
  16. package/dist/tbv/core/clients/index.js +1 -1
  17. package/dist/tbv/core/clients/vault-provider/auth/createAuthenticatedVpClient.d.ts +0 -6
  18. package/dist/tbv/core/clients/vault-provider/auth/createAuthenticatedVpClient.d.ts.map +1 -1
  19. package/dist/tbv/core/clients/vault-provider/auth/primeVpAuth.d.ts +0 -8
  20. package/dist/tbv/core/clients/vault-provider/auth/primeVpAuth.d.ts.map +1 -1
  21. package/dist/tbv/core/clients/vault-provider/auth/tokenRegistry.d.ts +3 -14
  22. package/dist/tbv/core/clients/vault-provider/auth/tokenRegistry.d.ts.map +1 -1
  23. package/dist/tbv/core/index.cjs +1 -1
  24. package/dist/tbv/core/index.js +12 -11
  25. package/dist/tbv/core/services/deposit/index.d.ts +1 -1
  26. package/dist/tbv/core/services/deposit/index.d.ts.map +1 -1
  27. package/dist/tbv/core/services/deposit/peginState.d.ts +11 -0
  28. package/dist/tbv/core/services/deposit/peginState.d.ts.map +1 -1
  29. package/dist/tbv/core/services/index.cjs +1 -1
  30. package/dist/tbv/core/services/index.js +18 -17
  31. package/dist/tbv/core/utils/index.cjs +1 -1
  32. package/dist/tbv/core/utils/index.js +1 -1
  33. package/dist/tbv/index.cjs +1 -1
  34. package/dist/tbv/index.js +12 -11
  35. package/package.json +1 -1
  36. package/dist/peginState-BijNNT15.cjs +0 -2
@@ -1,15 +1,15 @@
1
- var Ce = Object.defineProperty;
2
- var $e = (r, e, t) => e in r ? Ce(r, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : r[e] = t;
3
- var f = (r, e, t) => $e(r, typeof e != "symbol" ? e + "" : e, t);
1
+ var Se = Object.defineProperty;
2
+ var Te = (r, e, t) => e in r ? Se(r, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : r[e] = t;
3
+ var f = (r, e, t) => Te(r, typeof e != "symbol" ? e + "" : e, t);
4
4
  import { B as Q } from "./BTCVaultRegistry.abi-Chs4AFBj.js";
5
5
  import { P as x, A as L } from "./ApplicationRegistry.abi-Dn2qk6JG.js";
6
- import { k as Ie, v as U, l as Ve, j as Re } from "./mempoolApi-Dc1KSVNI.js";
7
- import { D as Oe, J as _e, e as Be } from "./types-CQDRQvV-.js";
8
- import { X as R, C as D, s as V, S as Ne, h as Ge, p as me } from "./bitcoin-B5aNKtsk.js";
6
+ import { k as Ce, v as U, l as $e, j as Ie } from "./mempoolApi-Dc1KSVNI.js";
7
+ import { D as Ve, J as ge, e as Re } from "./types-CQDRQvV-.js";
8
+ import { X as R, C as G, s as V, S as Oe, h as Be, p as fe } from "./bitcoin-B5aNKtsk.js";
9
9
  import { C as ee } from "./constants-Cd_fN8VT.js";
10
10
  import { H as S } from "./validation-CxqROCno.js";
11
11
  import * as H from "@bitcoin-js/tiny-secp256k1-asmjs";
12
- import { payments as De, Transaction as X } from "bitcoinjs-lib";
12
+ import { payments as Ne, Transaction as X } from "bitcoinjs-lib";
13
13
  import { Buffer as I } from "buffer";
14
14
  import { s as q } from "./sha2-BYVxyZzX.js";
15
15
  async function or(r, e) {
@@ -78,7 +78,7 @@ class ar {
78
78
  abi: x,
79
79
  functionName: "getTBVProtocolParams"
80
80
  }), t = re(e);
81
- return Ie(t), t;
81
+ return Ce(t), t;
82
82
  }
83
83
  async getLatestOffchainParams() {
84
84
  const e = await this.publicClient.readContract({
@@ -103,7 +103,7 @@ class ar {
103
103
  abi: x,
104
104
  functionName: "latestOffchainParamsVersion"
105
105
  }), t = Number(e);
106
- return Ve(t), t;
106
+ return $e(t), t;
107
107
  }
108
108
  async getTimelockPeginByVersion(e) {
109
109
  const t = await this.getOffchainParamsByVersion(e);
@@ -149,7 +149,7 @@ class ar {
149
149
  offchainParams: n,
150
150
  offchainParamsVersion: i
151
151
  };
152
- return Re(s), s;
152
+ return Ie(s), s;
153
153
  }
154
154
  /**
155
155
  * Fetch every historical offchain params version in a single multicall.
@@ -254,16 +254,16 @@ class lr {
254
254
  });
255
255
  }
256
256
  }
257
- var Me = /* @__PURE__ */ ((r) => (r[r.PENDING = 0] = "PENDING", r[r.VERIFIED = 1] = "VERIFIED", r[r.ACTIVE = 2] = "ACTIVE", r[r.REDEEMED = 3] = "REDEEMED", r[r.EXPIRED = 4] = "EXPIRED", r))(Me || {});
258
- const se = new Set(Object.values(Oe)), je = 200;
257
+ var De = /* @__PURE__ */ ((r) => (r[r.PENDING = 0] = "PENDING", r[r.VERIFIED = 1] = "VERIFIED", r[r.ACTIVE = 2] = "ACTIVE", r[r.REDEEMED = 3] = "REDEEMED", r[r.EXPIRED = 4] = "EXPIRED", r))(De || {});
258
+ const se = new Set(Object.values(Ve)), Ge = 200;
259
259
  function p(r) {
260
260
  var e;
261
- return ((e = JSON.stringify(r)) == null ? void 0 : e.slice(0, je)) ?? "undefined";
261
+ return ((e = JSON.stringify(r)) == null ? void 0 : e.slice(0, Ge)) ?? "undefined";
262
262
  }
263
- const He = "The vault provider returned an unexpected response. Please try again or contact support.";
263
+ const Me = "The vault provider returned an unexpected response. Please try again or contact support.";
264
264
  class a extends Error {
265
265
  constructor(t) {
266
- super(He);
266
+ super(Me);
267
267
  f(this, "detail");
268
268
  this.name = "VpResponseValidationError", this.detail = t;
269
269
  }
@@ -272,28 +272,28 @@ const O = 64;
272
272
  function C(r) {
273
273
  return typeof r == "string" && r.length > 0 && S.test(r);
274
274
  }
275
- function ye(r) {
275
+ function _e(r) {
276
276
  return typeof r == "string" && r.length > 0;
277
277
  }
278
- function be(r, e) {
278
+ function me(r, e) {
279
279
  if (!C(r))
280
280
  throw new a(
281
281
  `VP response validation failed: "${e}" must be a non-empty hex string, got ${p(r)}`
282
282
  );
283
283
  }
284
284
  function b(r, e) {
285
- if (!ye(r))
285
+ if (!_e(r))
286
286
  throw new a(
287
287
  `VP response validation failed: "${e}" must be a non-empty string, got ${p(r)}`
288
288
  );
289
289
  }
290
290
  function Z(r, e) {
291
- if (!C(r) || r.length !== R && r.length !== D)
291
+ if (!C(r) || r.length !== R && r.length !== G)
292
292
  throw new a(
293
- `VP response validation failed: "${e}" must be a ${R} or ${D}-char hex string (BTC pubkey), got ${p(r)}`
293
+ `VP response validation failed: "${e}" must be a ${R} or ${G}-char hex string (BTC pubkey), got ${p(r)}`
294
294
  );
295
295
  }
296
- function Le(r) {
296
+ function je(r) {
297
297
  const e = r.presigning;
298
298
  if (e == null) return;
299
299
  if (typeof e != "object" || Array.isArray(e))
@@ -314,7 +314,7 @@ function Le(r) {
314
314
  `VP response validation failed: "progress.presigning.vk_challenger_presigning_total" must be a number if present, got ${p(t.vk_challenger_presigning_total)}`
315
315
  );
316
316
  }
317
- function we(r) {
317
+ function ye(r) {
318
318
  if (r === null || typeof r != "object")
319
319
  throw new a(
320
320
  "VP response validation failed: getPeginStatus response is not an object"
@@ -336,7 +336,7 @@ function we(r) {
336
336
  throw new a(
337
337
  'VP response validation failed: "progress" must be an object'
338
338
  );
339
- if (Le(e.progress), typeof e.health_info != "string")
339
+ if (je(e.progress), typeof e.health_info != "string")
340
340
  throw new a(
341
341
  'VP response validation failed: "health_info" must be a string'
342
342
  );
@@ -345,7 +345,7 @@ function we(r) {
345
345
  `VP response validation failed: "last_error" must be a string if present, got ${p(e.last_error)}`
346
346
  );
347
347
  }
348
- function Ue(r) {
348
+ function He(r) {
349
349
  if (r === null || typeof r != "object")
350
350
  throw new a(
351
351
  "VP response validation failed: requestDepositorPresignTransactions response is not an object"
@@ -356,31 +356,31 @@ function Ue(r) {
356
356
  'VP response validation failed: "txs" must be an array'
357
357
  );
358
358
  for (let t = 0; t < e.txs.length; t++)
359
- Xe(e.txs[t], `txs[${t}]`);
359
+ Le(e.txs[t], `txs[${t}]`);
360
360
  if (e.depositor_graph === null || typeof e.depositor_graph != "object")
361
361
  throw new a(
362
362
  'VP response validation failed: "depositor_graph" must be an object'
363
363
  );
364
- Qe(
364
+ ze(
365
365
  e.depositor_graph
366
366
  );
367
367
  }
368
- function v(r, e) {
368
+ function A(r, e) {
369
369
  if (r === null || typeof r != "object")
370
370
  throw new a(
371
371
  `VP response validation failed: "${e}" must be an object`
372
372
  );
373
- be(r.tx_hex, `${e}.tx_hex`);
373
+ me(r.tx_hex, `${e}.tx_hex`);
374
374
  }
375
- function Xe(r, e) {
375
+ function Le(r, e) {
376
376
  if (r === null || typeof r != "object")
377
377
  throw new a(
378
378
  `VP response validation failed: "${e}" must be an object`
379
379
  );
380
380
  const t = r;
381
- Z(t.claimer_pubkey, `${e}.claimer_pubkey`), v(t.claim_tx, `${e}.claim_tx`), v(t.assert_tx, `${e}.assert_tx`), v(t.payout_tx, `${e}.payout_tx`), b(t.payout_psbt, `${e}.payout_psbt`);
381
+ Z(t.claimer_pubkey, `${e}.claimer_pubkey`), A(t.claim_tx, `${e}.claim_tx`), A(t.assert_tx, `${e}.assert_tx`), A(t.payout_tx, `${e}.payout_tx`), b(t.payout_psbt, `${e}.payout_psbt`);
382
382
  }
383
- function Fe(r, e) {
383
+ function Ue(r, e) {
384
384
  if (r === null || typeof r != "object")
385
385
  throw new a(
386
386
  `VP response validation failed: "${e}" must be an object`
@@ -388,19 +388,19 @@ function Fe(r, e) {
388
388
  const t = r;
389
389
  b(t.wots_pks_json, `${e}.wots_pks_json`), b(t.gc_wots_keys_json, `${e}.gc_wots_keys_json`);
390
390
  }
391
- function Ke(r, e) {
391
+ function Xe(r, e) {
392
392
  if (r === null || typeof r != "object")
393
393
  throw new a(
394
394
  `VP response validation failed: "${e}" must be an object`
395
395
  );
396
396
  const t = r;
397
- if (Z(t.challenger_pubkey, `${e}.challenger_pubkey`), v(
397
+ if (Z(t.challenger_pubkey, `${e}.challenger_pubkey`), A(
398
398
  t.challenge_assert_x_tx,
399
399
  `${e}.challenge_assert_x_tx`
400
- ), v(
400
+ ), A(
401
401
  t.challenge_assert_y_tx,
402
402
  `${e}.challenge_assert_y_tx`
403
- ), v(t.nopayout_tx, `${e}.nopayout_tx`), b(t.nopayout_psbt, `${e}.nopayout_psbt`), !Array.isArray(t.challenge_assert_connectors))
403
+ ), A(t.nopayout_tx, `${e}.nopayout_tx`), b(t.nopayout_psbt, `${e}.nopayout_psbt`), !Array.isArray(t.challenge_assert_connectors))
404
404
  throw new a(
405
405
  `VP response validation failed: "${e}.challenge_assert_connectors" must be an array`
406
406
  );
@@ -409,7 +409,7 @@ function Ke(r, e) {
409
409
  `VP response validation failed: "${e}.challenge_assert_connectors" must have exactly ${ee} entries, got ${t.challenge_assert_connectors.length}`
410
410
  );
411
411
  for (let n = 0; n < t.challenge_assert_connectors.length; n++)
412
- Fe(
412
+ Ue(
413
413
  t.challenge_assert_connectors[n],
414
414
  `${e}.challenge_assert_connectors[${n}]`
415
415
  );
@@ -418,18 +418,18 @@ function Ke(r, e) {
418
418
  `VP response validation failed: "${e}.output_label_hashes" must be an array`
419
419
  );
420
420
  for (let n = 0; n < t.output_label_hashes.length; n++)
421
- be(
421
+ me(
422
422
  t.output_label_hashes[n],
423
423
  `${e}.output_label_hashes[${n}]`
424
424
  );
425
425
  }
426
- function Je(r) {
426
+ function Fe(r) {
427
427
  if (r === null || typeof r != "object")
428
428
  throw new a(
429
429
  "VP response validation failed: requestDepositorClaimerArtifacts response is not an object"
430
430
  );
431
431
  const e = r;
432
- if (!ye(e.tx_graph_json))
432
+ if (!_e(e.tx_graph_json))
433
433
  throw new a(
434
434
  `VP response validation failed: "tx_graph_json" must be a non-empty string, got ${p(e.tx_graph_json)}`
435
435
  );
@@ -460,7 +460,7 @@ function Je(r) {
460
460
  );
461
461
  }
462
462
  }
463
- function qe(r) {
463
+ function Ke(r) {
464
464
  if (r === null || typeof r != "object")
465
465
  throw new a(
466
466
  "VP response validation failed: pegout status payload is not an object"
@@ -479,16 +479,16 @@ function qe(r) {
479
479
  throw new a(
480
480
  `VP response validation failed: "claimer" must be an object or null, got ${p(e.claimer)}`
481
481
  );
482
- We(e.claimer);
482
+ Je(e.claimer);
483
483
  }
484
484
  if (!Array.isArray(e.challengers))
485
485
  throw new a(
486
486
  `VP response validation failed: "challengers" must be an array, got ${p(e.challengers)}`
487
487
  );
488
488
  for (let t = 0; t < e.challengers.length; t++)
489
- Ye(e.challengers[t], t);
489
+ qe(e.challengers[t], t);
490
490
  }
491
- function We(r) {
491
+ function Je(r) {
492
492
  if (b(r.status, "claimer.status"), typeof r.failed != "boolean")
493
493
  throw new a(
494
494
  `VP response validation failed: "claimer.failed" must be a boolean, got ${p(r.failed)}`
@@ -502,7 +502,7 @@ function We(r) {
502
502
  `VP response validation failed: "claimer.updated_at" must be a number, got ${p(r.updated_at)}`
503
503
  );
504
504
  }
505
- function Ye(r, e) {
505
+ function qe(r, e) {
506
506
  if (r === null || typeof r != "object")
507
507
  throw new a(
508
508
  `VP response validation failed: "challengers[${e}]" must be an object, got ${p(r)}`
@@ -529,17 +529,17 @@ function N(r, e) {
529
529
  `VP response validation failed: "${e}" must be a string or null, got ${p(r)}`
530
530
  );
531
531
  }
532
- function ze(r) {
533
- xe(r, "batchGetPeginStatus", (e) => {
534
- e.result !== null && we(e.result);
532
+ function We(r) {
533
+ be(r, "batchGetPeginStatus", (e) => {
534
+ e.result !== null && ye(e.result);
535
535
  });
536
536
  }
537
- function Ze(r) {
538
- xe(r, "batchGetPegoutStatus", (e) => {
539
- e.result !== null && qe(e.result);
537
+ function Ye(r) {
538
+ be(r, "batchGetPegoutStatus", (e) => {
539
+ e.result !== null && Ke(e.result);
540
540
  });
541
541
  }
542
- function xe(r, e, t) {
542
+ function be(r, e, t) {
543
543
  if (r === null || typeof r != "object")
544
544
  throw new a(
545
545
  `VP response validation failed: ${e} response is not an object`
@@ -575,13 +575,13 @@ function xe(r, e, t) {
575
575
  t(o, i);
576
576
  }
577
577
  }
578
- function Qe(r) {
579
- if (v(r.claim_tx, "depositor_graph.claim_tx"), v(r.assert_tx, "depositor_graph.assert_tx"), v(r.payout_tx, "depositor_graph.payout_tx"), b(r.payout_psbt, "depositor_graph.payout_psbt"), !Array.isArray(r.challenger_presign_data))
578
+ function ze(r) {
579
+ if (A(r.claim_tx, "depositor_graph.claim_tx"), A(r.assert_tx, "depositor_graph.assert_tx"), A(r.payout_tx, "depositor_graph.payout_tx"), b(r.payout_psbt, "depositor_graph.payout_psbt"), !Array.isArray(r.challenger_presign_data))
580
580
  throw new a(
581
581
  'VP response validation failed: "depositor_graph.challenger_presign_data" must be an array'
582
582
  );
583
583
  for (let e = 0; e < r.challenger_presign_data.length; e++)
584
- Ke(
584
+ Xe(
585
585
  r.challenger_presign_data[e],
586
586
  `depositor_graph.challenger_presign_data[${e}]`
587
587
  );
@@ -590,13 +590,13 @@ function Qe(r) {
590
590
  'VP response validation failed: "depositor_graph.offchain_params_version" must be a number'
591
591
  );
592
592
  }
593
- const et = 6e4;
594
- class tt {
593
+ const Ze = 6e4;
594
+ class Qe {
595
595
  constructor(e, t) {
596
596
  f(this, "client");
597
597
  const n = {
598
598
  baseUrl: e,
599
- timeout: (t == null ? void 0 : t.timeout) ?? et,
599
+ timeout: (t == null ? void 0 : t.timeout) ?? Ze,
600
600
  retries: t == null ? void 0 : t.retries,
601
601
  retryDelay: t == null ? void 0 : t.retryDelay,
602
602
  retryableFor: t == null ? void 0 : t.retryableFor,
@@ -604,7 +604,7 @@ class tt {
604
604
  tokenProvider: t == null ? void 0 : t.tokenProvider,
605
605
  maxResponseBytes: t == null ? void 0 : t.maxResponseBytes
606
606
  };
607
- this.client = new _e(n);
607
+ this.client = new ge(n);
608
608
  }
609
609
  /**
610
610
  * Request the payout/claim/assert transactions that the depositor
@@ -612,7 +612,7 @@ class tt {
612
612
  */
613
613
  async requestDepositorPresignTransactions(e, t) {
614
614
  const n = await this.client.call("vaultProvider_requestDepositorPresignTransactions", e, t);
615
- return Ue(n), n;
615
+ return He(n), n;
616
616
  }
617
617
  /**
618
618
  * Submit the depositor's pre-signatures for the payout transactions
@@ -643,7 +643,7 @@ class tt {
643
643
  */
644
644
  async requestDepositorClaimerArtifacts(e, t) {
645
645
  const n = await this.client.call("vaultProvider_requestDepositorClaimerArtifacts", e, t);
646
- return Je(n), n;
646
+ return Fe(n), n;
647
647
  }
648
648
  /** Get the current pegin status from the vault provider daemon. */
649
649
  async getPeginStatus(e, t) {
@@ -652,7 +652,7 @@ class tt {
652
652
  e,
653
653
  t
654
654
  );
655
- return we(n), n;
655
+ return ye(n), n;
656
656
  }
657
657
  /**
658
658
  * Get pegin status for many txids in one round trip. Per-result envelope
@@ -661,7 +661,7 @@ class tt {
661
661
  */
662
662
  async batchGetPeginStatus(e, t) {
663
663
  const n = await this.client.call("vaultProvider_batchGetPeginStatus", e, t);
664
- return ze(n), n;
664
+ return We(n), n;
665
665
  }
666
666
  /**
667
667
  * Get pegout status for many txids in one round trip. Same per-result
@@ -669,10 +669,10 @@ class tt {
669
669
  */
670
670
  async batchGetPegoutStatus(e, t) {
671
671
  const n = await this.client.call("vaultProvider_batchGetPegoutStatus", e, t);
672
- return Ze(n), n;
672
+ return Ye(n), n;
673
673
  }
674
674
  }
675
- function rt(r, e) {
675
+ function et(r, e) {
676
676
  const t = /* @__PURE__ */ new Set();
677
677
  for (const d of r)
678
678
  t.add(d.toLowerCase());
@@ -705,7 +705,7 @@ async function ur(r) {
705
705
  onDuplicateBatch: c,
706
706
  onWholeBatchError: d,
707
707
  onUnexpected: l,
708
- batchSize: g = Be
708
+ batchSize: g = Re
709
709
  } = r;
710
710
  if (!Number.isInteger(g) || g <= 0)
711
711
  throw new Error(
@@ -717,26 +717,26 @@ async function ur(r) {
717
717
  const u = t(_).toLowerCase();
718
718
  k.set(u, _), T.push(u);
719
719
  }
720
- let A;
720
+ let P;
721
721
  try {
722
722
  const _ = await n(T);
723
- A = rt(T, _.results);
723
+ P = et(T, _.results);
724
724
  } catch (_) {
725
725
  d(w, _);
726
726
  continue;
727
727
  }
728
- l && A.unexpected.length > 0 && l(A.unexpected);
729
- const $ = new Set(A.duplicate);
728
+ l && P.unexpected.length > 0 && l(P.unexpected);
729
+ const $ = new Set(P.duplicate);
730
730
  for (const _ of $) {
731
731
  const u = k.get(_);
732
732
  u && o(u);
733
733
  }
734
734
  c && $.size > 0 && c($.size);
735
- for (const _ of A.missing) {
735
+ for (const _ of P.missing) {
736
736
  const u = k.get(_);
737
737
  u && s(u);
738
738
  }
739
- for (const [_, u] of A.byTxid) {
739
+ for (const [_, u] of P.byTxid) {
740
740
  if ($.has(_)) continue;
741
741
  const E = k.get(_);
742
742
  E && i(E, {
@@ -747,20 +747,20 @@ async function ur(r) {
747
747
  }
748
748
  }
749
749
  }
750
- const nt = "BIP0322-signed-message", st = "TapTweak", Ae = 32, it = 64;
751
- function Pe(r, e) {
750
+ const tt = "BIP0322-signed-message", rt = "TapTweak", we = 32, nt = 64;
751
+ function xe(r, e) {
752
752
  const t = new TextEncoder().encode(r), n = q(t), i = new Uint8Array(n.length * 2 + e.length);
753
753
  return i.set(n, 0), i.set(n, n.length), i.set(e, n.length * 2), q(i);
754
754
  }
755
- function ot(r) {
756
- if (r.length !== Ae) return null;
757
- const e = Pe(st, r), t = H.xOnlyPointAddTweak(r, e);
755
+ function st(r) {
756
+ if (r.length !== we) return null;
757
+ const e = xe(rt, r), t = H.xOnlyPointAddTweak(r, e);
758
758
  return t ? t.xOnlyPubkey : null;
759
759
  }
760
- function at(r, e, t) {
761
- if (e.length !== Ae || t.length !== it) return !1;
760
+ function it(r, e, t) {
761
+ if (e.length !== we || t.length !== nt) return !1;
762
762
  try {
763
- const n = Pe(nt, r), i = De.p2tr({
763
+ const n = xe(tt, r), i = Ne.p2tr({
764
764
  internalPubkey: I.from(e)
765
765
  });
766
766
  if (!i.output) return !1;
@@ -788,7 +788,7 @@ function at(r, e, t) {
788
788
  [s],
789
789
  [o],
790
790
  X.SIGHASH_DEFAULT
791
- ), w = ot(e);
791
+ ), w = st(e);
792
792
  return w ? H.verifySchnorr(m, w, t) : !1;
793
793
  } catch {
794
794
  return !1;
@@ -819,7 +819,7 @@ function j(r, e) {
819
819
  i[1 + s] = Number(n >> BigInt((7 - s) * 8)) & 255;
820
820
  return i;
821
821
  }
822
- function ve(...r) {
822
+ function Pe(...r) {
823
823
  const e = r.reduce((i, s) => i + s.length, 0), t = new Uint8Array(e);
824
824
  let n = 0;
825
825
  for (const i of r)
@@ -830,32 +830,32 @@ function ie(r) {
830
830
  const t = [j(4, r.length)];
831
831
  for (const n of r)
832
832
  t.push(j(0, n));
833
- return ve(...t);
833
+ return Pe(...t);
834
834
  }
835
- function ct(r, e, t) {
835
+ function ot(r, e, t) {
836
836
  if (!Number.isSafeInteger(t) || t < 0)
837
837
  throw new Error(
838
838
  `encodeServerIdentityPayload: expires_at must be a non-negative safe integer, got ${t}`
839
839
  );
840
840
  const n = j(4, 3), i = ie(r), s = ie(e), o = j(0, t);
841
- return ve(n, i, s, o);
841
+ return Pe(n, i, s, o);
842
842
  }
843
- const lt = new TextEncoder().encode(
843
+ const at = new TextEncoder().encode(
844
844
  "btc-auth.server-identity.v1"
845
- ), ut = 2 * 3600;
845
+ ), ct = 2 * 3600;
846
846
  class y extends Error {
847
847
  constructor(e, t) {
848
848
  super(e), this.reason = t, this.name = "ServerIdentityError";
849
849
  }
850
850
  }
851
- function G(r) {
851
+ function D(r) {
852
852
  const e = new Uint8Array(r.length / 2);
853
853
  for (let t = 0; t < e.length; t++)
854
854
  e[t] = parseInt(r.slice(t * 2, t * 2 + 2), 16);
855
855
  return e;
856
856
  }
857
- function dt(r) {
858
- const { proof: e, pinnedServerPubkey: t, now: n } = r, i = r.maxLifetimeSecs ?? ut, s = V(t).toLowerCase();
857
+ function lt(r) {
858
+ const { proof: e, pinnedServerPubkey: t, now: n } = r, i = r.maxLifetimeSecs ?? ct, s = V(t).toLowerCase();
859
859
  if (s.length !== R || !S.test(s))
860
860
  throw new y(
861
861
  `pinnedServerPubkey must be 32-byte hex; got ${s.length} chars`,
@@ -898,7 +898,7 @@ function dt(r) {
898
898
  "expires_too_far"
899
899
  );
900
900
  const c = V(e.ephemeral_pubkey).toLowerCase();
901
- if (c.length !== D || !S.test(c))
901
+ if (c.length !== G || !S.test(c))
902
902
  throw new y(
903
903
  `ephemeral_pubkey must be 33-byte compressed hex; got ${c.length} chars`,
904
904
  "invalid_ephemeral_pubkey"
@@ -909,51 +909,51 @@ function dt(r) {
909
909
  `ephemeral_pubkey must be compressed (prefix 02/03); got ${d}`,
910
910
  "invalid_ephemeral_pubkey"
911
911
  );
912
- const l = G(c);
912
+ const l = D(c);
913
913
  if (!H.isPoint(l))
914
914
  throw new y(
915
915
  "ephemeral_pubkey is not a valid secp256k1 point",
916
916
  "invalid_ephemeral_pubkey"
917
917
  );
918
918
  const g = V(e.signature).toLowerCase();
919
- if (g.length !== Ne || !S.test(g))
919
+ if (g.length !== Oe || !S.test(g))
920
920
  throw new y(
921
921
  `signature must be 64-byte Schnorr hex; got ${g.length} chars`,
922
922
  "invalid_signature_encoding"
923
923
  );
924
- const m = ct(
925
- lt,
926
- G(c),
924
+ const m = ot(
925
+ at,
926
+ D(c),
927
927
  e.expires_at
928
928
  );
929
- if (!at(m, G(o), G(g)))
929
+ if (!it(m, D(o), D(g)))
930
930
  throw new y(
931
931
  "BIP-322 signature verification failed — ephemeral key is not attested by pinned server pubkey",
932
932
  "signature_verification_failed"
933
933
  );
934
934
  }
935
- const oe = /* @__PURE__ */ new Set([
935
+ const ut = /* @__PURE__ */ new Set([
936
936
  "vaultProvider_submitDepositorWotsKey",
937
937
  "vaultProvider_submitDepositorPresignatures",
938
938
  "vaultProvider_requestDepositorPresignTransactions"
939
- ]), ae = /* @__PURE__ */ new Set([
939
+ ]), dt = /* @__PURE__ */ new Set([
940
940
  "vaultProvider_requestDepositorClaimerArtifacts"
941
941
  ]), ht = 6e4, W = "auth_createDepositorToken", Y = "auth_createDepositorTokenGrpc";
942
- function ke(r, e) {
943
- return new _e({
942
+ function ve(r, e) {
943
+ return new ge({
944
944
  baseUrl: r,
945
945
  timeout: ht,
946
946
  headers: e,
947
947
  retryableFor: (t) => t === W || t === Y
948
948
  });
949
949
  }
950
- const pt = 0, gt = 1, F = 2, ft = 3, _t = 4, mt = 5, yt = 6, bt = 7, ce = 24, wt = 28, xt = 20, At = 21, Pt = 22, le = 256;
951
- class P extends Error {
950
+ const pt = 0, gt = 1, F = 2, ft = 3, _t = 4, mt = 5, yt = 6, bt = 7, oe = 24, wt = 28, xt = 20, Pt = 21, vt = 22, ae = 256;
951
+ class v extends Error {
952
952
  constructor(e) {
953
953
  super(`CBOR decode: ${e}`), this.name = "CborDecodeError";
954
954
  }
955
955
  }
956
- class Ee {
956
+ class Ae {
957
957
  constructor(e) {
958
958
  f(this, "buf");
959
959
  /** Current read offset. Public so callers can slice encoded sub-ranges. */
@@ -962,7 +962,7 @@ class Ee {
962
962
  }
963
963
  nextByte() {
964
964
  if (this.pos >= this.buf.length)
965
- throw new P("unexpected end of input");
965
+ throw new v("unexpected end of input");
966
966
  return this.buf[this.pos++];
967
967
  }
968
968
  /**
@@ -973,24 +973,24 @@ class Ee {
973
973
  */
974
974
  readHead() {
975
975
  const e = this.nextByte(), t = e >> 5, n = e & 31;
976
- if (n < ce)
976
+ if (n < oe)
977
977
  return { major: t, arg: n };
978
978
  if (n >= wt)
979
- throw new P(
979
+ throw new v(
980
980
  `unsupported additional info ${n} (indefinite-length or reserved)`
981
981
  );
982
- const i = 1 << n - ce;
982
+ const i = 1 << n - oe;
983
983
  let s = 0n;
984
984
  for (let o = 0; o < i; o++)
985
985
  s = s << 8n | BigInt(this.nextByte());
986
986
  if (s > BigInt(Number.MAX_SAFE_INTEGER))
987
- throw new P(`argument ${s} exceeds safe integer range`);
987
+ throw new v(`argument ${s} exceeds safe integer range`);
988
988
  return { major: t, arg: Number(s) };
989
989
  }
990
990
  /** Read `length` raw bytes as a sub-array view into the backing buffer. */
991
991
  readBytes(e) {
992
992
  if (this.pos + e > this.buf.length)
993
- throw new P("length overruns end of input");
993
+ throw new v("length overruns end of input");
994
994
  const t = this.buf.subarray(this.pos, this.pos + e);
995
995
  return this.pos += e, t;
996
996
  }
@@ -1001,7 +1001,7 @@ class Ee {
1001
1001
  readByteString() {
1002
1002
  const e = this.readHead();
1003
1003
  if (e.major !== F)
1004
- throw new P(
1004
+ throw new v(
1005
1005
  `expected byte string (major ${F}), got major ${e.major}`
1006
1006
  );
1007
1007
  return this.readBytes(e.arg);
@@ -1014,9 +1014,9 @@ class Ee {
1014
1014
  * native call stack (see {@link MAX_NESTING_DEPTH}).
1015
1015
  */
1016
1016
  readValue(e = 0) {
1017
- if (e > le)
1018
- throw new P(
1019
- `nesting exceeds maximum depth ${le}`
1017
+ if (e > ae)
1018
+ throw new v(
1019
+ `nesting exceeds maximum depth ${ae}`
1020
1020
  );
1021
1021
  const t = this.readHead();
1022
1022
  switch (t.major) {
@@ -1048,39 +1048,39 @@ class Ee {
1048
1048
  return { tag: t.arg, value: this.readValue(e + 1) };
1049
1049
  case bt:
1050
1050
  if (t.arg === xt) return !1;
1051
- if (t.arg === At) return !0;
1052
- if (t.arg === Pt) return null;
1053
- throw new P(
1051
+ if (t.arg === Pt) return !0;
1052
+ if (t.arg === vt) return null;
1053
+ throw new v(
1054
1054
  `unsupported simple/float value ${t.arg}`
1055
1055
  );
1056
1056
  default:
1057
- throw new P(`unsupported major type ${t.major}`);
1057
+ throw new v(`unsupported major type ${t.major}`);
1058
1058
  }
1059
1059
  }
1060
1060
  }
1061
- function Se(r) {
1062
- const e = new Ee(r), t = e.readValue();
1061
+ function ke(r) {
1062
+ const e = new Ae(r), t = e.readValue();
1063
1063
  if (e.pos !== r.length)
1064
- throw new P("trailing bytes after top-level item");
1064
+ throw new v("trailing bytes after top-level item");
1065
1065
  return t;
1066
1066
  }
1067
- const vt = "vaultd-jsonrpc", kt = "vaultd-grpc", ue = 18, z = 4, de = -47, Et = 1, he = 64, St = 128, Tt = 96, Ct = 64, $t = 1, It = 2, Vt = 3, Rt = 4, Ot = 5, Bt = 6, Nt = 7, pe = new TextEncoder().encode("Signature1");
1067
+ const At = "vaultd-jsonrpc", kt = "vaultd-grpc", ce = 18, z = 4, le = -47, Et = 1, ue = 64, St = 128, Tt = 96, Ct = 64, $t = 1, It = 2, Vt = 3, Rt = 4, Ot = 5, Bt = 6, Nt = 7, de = new TextEncoder().encode("Signature1");
1068
1068
  class h extends Error {
1069
1069
  constructor(e, t) {
1070
1070
  super(e), this.reason = t, this.name = "CwtVerificationError";
1071
1071
  }
1072
1072
  }
1073
- function Gt(r) {
1074
- const e = ge(
1073
+ function Dt(r) {
1074
+ const e = he(
1075
1075
  r.expectedIssuerXOnlyPubkey,
1076
1076
  "expectedIssuerXOnlyPubkey"
1077
- ), t = ge(
1077
+ ), t = he(
1078
1078
  r.expectedAudienceXOnlyPubkey,
1079
1079
  "expectedAudienceXOnlyPubkey"
1080
- ), n = Lt(r.ephemeralPubkeyHex), i = Xt(r.token), s = new Ee(i), o = s.readHead();
1081
- if (o.major !== 6 || o.arg !== ue)
1080
+ ), n = Lt(r.ephemeralPubkeyHex), i = Xt(r.token), s = new Ae(i), o = s.readHead();
1081
+ if (o.major !== 6 || o.arg !== ce)
1082
1082
  throw new h(
1083
- `token is not a COSE Sign1 tagged value (tag ${ue})`,
1083
+ `token is not a COSE Sign1 tagged value (tag ${ce})`,
1084
1084
  "invalid_token_structure"
1085
1085
  );
1086
1086
  const c = s.readHead();
@@ -1092,9 +1092,9 @@ function Gt(r) {
1092
1092
  const d = s.pos, l = s.readByteString(), g = i.subarray(d, s.pos);
1093
1093
  s.readValue();
1094
1094
  const m = s.pos, w = s.readByteString(), k = i.subarray(m, s.pos), T = s.readByteString();
1095
- if (T.length !== he)
1095
+ if (T.length !== ue)
1096
1096
  throw new h(
1097
- `COSE signature must be ${he} bytes, got ${T.length}`,
1097
+ `COSE signature must be ${ue} bytes, got ${T.length}`,
1098
1098
  "invalid_token_structure"
1099
1099
  );
1100
1100
  if (s.pos !== i.length)
@@ -1102,10 +1102,10 @@ function Gt(r) {
1102
1102
  "COSE Sign1 token has trailing bytes after the signature",
1103
1103
  "invalid_token_structure"
1104
1104
  );
1105
- const A = Dt(l);
1106
- if (A !== de)
1105
+ const P = Gt(l);
1106
+ if (P !== le)
1107
1107
  throw new h(
1108
- `unexpected COSE algorithm ${A} (expected ES256K ${de})`,
1108
+ `unexpected COSE algorithm ${P} (expected ES256K ${le})`,
1109
1109
  "unexpected_algorithm"
1110
1110
  );
1111
1111
  const $ = Mt(g, k), _ = q($);
@@ -1164,13 +1164,13 @@ function Gt(r) {
1164
1164
  issuedAt: u.issuedAt
1165
1165
  };
1166
1166
  }
1167
- function Dt(r) {
1167
+ function Gt(r) {
1168
1168
  if (r.length === 0)
1169
1169
  throw new h(
1170
1170
  "empty COSE protected header (no algorithm)",
1171
1171
  "unexpected_algorithm"
1172
1172
  );
1173
- const e = Se(r);
1173
+ const e = ke(r);
1174
1174
  if (!(e instanceof Map))
1175
1175
  throw new h(
1176
1176
  "COSE protected header is not a map",
@@ -1187,15 +1187,15 @@ function Dt(r) {
1187
1187
  function Mt(r, e) {
1188
1188
  return Ft(
1189
1189
  Uint8Array.of(St | z),
1190
- Uint8Array.of(Tt | pe.length),
1191
- pe,
1190
+ Uint8Array.of(Tt | de.length),
1191
+ de,
1192
1192
  r,
1193
1193
  Uint8Array.of(Ct),
1194
1194
  e
1195
1195
  );
1196
1196
  }
1197
1197
  function jt(r) {
1198
- const e = Se(r);
1198
+ const e = ke(r);
1199
1199
  if (!(e instanceof Map))
1200
1200
  throw new h(
1201
1201
  "CWT claims root is not a map",
@@ -1239,7 +1239,7 @@ function J(r, e, t) {
1239
1239
  );
1240
1240
  return n;
1241
1241
  }
1242
- function ge(r, e) {
1242
+ function he(r, e) {
1243
1243
  const t = V(r).toLowerCase();
1244
1244
  if (t.length !== R || !S.test(t))
1245
1245
  throw new h(
@@ -1250,12 +1250,12 @@ function ge(r, e) {
1250
1250
  }
1251
1251
  function Lt(r) {
1252
1252
  const e = V(r).toLowerCase(), t = e.slice(0, 2);
1253
- if (e.length !== D || !S.test(e) || t !== "02" && t !== "03")
1253
+ if (e.length !== G || !S.test(e) || t !== "02" && t !== "03")
1254
1254
  throw new h(
1255
1255
  "ephemeralPubkeyHex must be 33-byte compressed pubkey hex (prefix 02/03)",
1256
1256
  "invalid_input"
1257
1257
  );
1258
- return Ge(e);
1258
+ return Be(e);
1259
1259
  }
1260
1260
  const Ut = (() => {
1261
1261
  const r = new Int16Array(128).fill(-1), e = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_";
@@ -1300,7 +1300,7 @@ function Ft(...r) {
1300
1300
  t.set(i, n), n += i.length;
1301
1301
  return t;
1302
1302
  }
1303
- const fe = 4102444800, Kt = 30;
1303
+ const pe = 4102444800, Kt = 30;
1304
1304
  class Jt {
1305
1305
  constructor(e) {
1306
1306
  // `client` is the only mutable field — see `setClient`. The
@@ -1381,7 +1381,7 @@ class Jt {
1381
1381
  pegin_txid: this.peginTxid,
1382
1382
  auth_anchor: this.authAnchorHex
1383
1383
  });
1384
- if (dt({
1384
+ if (lt({
1385
1385
  proof: s.server_identity,
1386
1386
  pinnedServerPubkey: this.pinnedServerPubkey,
1387
1387
  now: this.now()
@@ -1390,15 +1390,15 @@ class Jt {
1390
1390
  `VpTokenProvider: invalid token in acquire response (expected non-empty string, got ${typeof s.token})`
1391
1391
  );
1392
1392
  const o = this.now();
1393
- if (!Number.isSafeInteger(s.expires_at) || s.expires_at <= o || s.expires_at > fe)
1393
+ if (!Number.isSafeInteger(s.expires_at) || s.expires_at <= o || s.expires_at > pe)
1394
1394
  throw new Error(
1395
- `VpTokenProvider: invalid expires_at in acquire response (got ${JSON.stringify(s.expires_at)}; must be a safe integer in (${o}, ${fe}])`
1395
+ `VpTokenProvider: invalid expires_at in acquire response (got ${JSON.stringify(s.expires_at)}; must be a safe integer in (${o}, ${pe}])`
1396
1396
  );
1397
- Gt({
1397
+ Dt({
1398
1398
  token: s.token,
1399
1399
  ephemeralPubkeyHex: s.server_identity.ephemeral_pubkey,
1400
1400
  expectedIssuerXOnlyPubkey: this.pinnedServerPubkey,
1401
- expectedSubject: e === "grpc" ? kt : vt,
1401
+ expectedSubject: e === "grpc" ? kt : At,
1402
1402
  expectedAudienceXOnlyPubkey: this.expectedAudienceXOnlyPubkey,
1403
1403
  responseExpiresAt: s.expires_at,
1404
1404
  serverIdentityExpiresAt: s.server_identity.expires_at,
@@ -1422,49 +1422,42 @@ class qt {
1422
1422
  }
1423
1423
  /**
1424
1424
  * Return the cached `VpTokenProvider` for `peginTxid` if one exists
1425
- * with matching `authAnchorHex`, `pinnedServerPubkey`, and
1426
- * `enableGrpcArtifactAuth`, otherwise construct and cache a fresh
1427
- * provider. A mismatch on any of those throws silent overwrite would
1428
- * mask derivation drift, VP pubkey rotation, or a caller that disagrees
1429
- * on the auth subject (which the cached provider can't switch).
1425
+ * with matching `authAnchorHex` and `pinnedServerPubkey`, otherwise
1426
+ * construct and cache a fresh provider. A mismatch on either throws —
1427
+ * silent overwrite would mask derivation drift or VP pubkey rotation.
1430
1428
  */
1431
1429
  getOrCreate(e) {
1432
- const t = e.enableGrpcArtifactAuth ?? !1, n = this.entries.get(e.peginTxid);
1433
- if (n) {
1434
- if (n.authAnchorHex !== e.authAnchorHex)
1435
- throw new Error(
1436
- `VpTokenRegistry: peginTxid ${e.peginTxid} already bound to authAnchorHex ${n.authAnchorHex.slice(0, 8)}…; got ${e.authAnchorHex.slice(0, 8)}…`
1437
- );
1438
- if (n.pinnedServerPubkey !== e.pinnedServerPubkey)
1430
+ const t = this.entries.get(e.peginTxid);
1431
+ if (t) {
1432
+ if (t.authAnchorHex !== e.authAnchorHex)
1439
1433
  throw new Error(
1440
- `VpTokenRegistry: peginTxid ${e.peginTxid} already bound to pinnedServerPubkey ${n.pinnedServerPubkey.slice(0, 8)}…; got ${e.pinnedServerPubkey.slice(0, 8)}…`
1434
+ `VpTokenRegistry: peginTxid ${e.peginTxid} already bound to authAnchorHex ${t.authAnchorHex.slice(0, 8)}…; got ${e.authAnchorHex.slice(0, 8)}…`
1441
1435
  );
1442
- if (n.expectedAudienceXOnlyPubkey !== e.expectedAudienceXOnlyPubkey)
1436
+ if (t.pinnedServerPubkey !== e.pinnedServerPubkey)
1443
1437
  throw new Error(
1444
- `VpTokenRegistry: peginTxid ${e.peginTxid} already bound to expectedAudienceXOnlyPubkey ${n.expectedAudienceXOnlyPubkey.slice(0, 8)}…; got ${e.expectedAudienceXOnlyPubkey.slice(0, 8)}…`
1438
+ `VpTokenRegistry: peginTxid ${e.peginTxid} already bound to pinnedServerPubkey ${t.pinnedServerPubkey.slice(0, 8)}…; got ${e.pinnedServerPubkey.slice(0, 8)}…`
1445
1439
  );
1446
- if (n.enableGrpcArtifactAuth !== t)
1440
+ if (t.expectedAudienceXOnlyPubkey !== e.expectedAudienceXOnlyPubkey)
1447
1441
  throw new Error(
1448
- `VpTokenRegistry: peginTxid ${e.peginTxid} already bound to enableGrpcArtifactAuth=${n.enableGrpcArtifactAuth}; got ${t}`
1442
+ `VpTokenRegistry: peginTxid ${e.peginTxid} already bound to expectedAudienceXOnlyPubkey ${t.expectedAudienceXOnlyPubkey.slice(0, 8)}…; got ${e.expectedAudienceXOnlyPubkey.slice(0, 8)}…`
1449
1443
  );
1450
- return n.provider.setClient(e.client), n.provider;
1444
+ return t.provider.setClient(e.client), t.provider;
1451
1445
  }
1452
- const i = new Jt({
1446
+ const n = new Jt({
1453
1447
  client: e.client,
1454
1448
  peginTxid: e.peginTxid,
1455
1449
  authAnchorHex: e.authAnchorHex,
1456
1450
  pinnedServerPubkey: e.pinnedServerPubkey,
1457
1451
  expectedAudienceXOnlyPubkey: e.expectedAudienceXOnlyPubkey,
1458
- authGatedMethods: t ? oe : /* @__PURE__ */ new Set([...oe, ...ae]),
1459
- grpcGatedMethods: t ? ae : /* @__PURE__ */ new Set()
1452
+ authGatedMethods: ut,
1453
+ grpcGatedMethods: dt
1460
1454
  });
1461
1455
  return this.entries.set(e.peginTxid, {
1462
- provider: i,
1456
+ provider: n,
1463
1457
  authAnchorHex: e.authAnchorHex,
1464
1458
  pinnedServerPubkey: e.pinnedServerPubkey,
1465
- expectedAudienceXOnlyPubkey: e.expectedAudienceXOnlyPubkey,
1466
- enableGrpcArtifactAuth: t
1467
- }), i;
1459
+ expectedAudienceXOnlyPubkey: e.expectedAudienceXOnlyPubkey
1460
+ }), n;
1468
1461
  }
1469
1462
  /** Return the cached provider, or `undefined` if none. */
1470
1463
  peek(e) {
@@ -1492,54 +1485,52 @@ class qt {
1492
1485
  return this.entries.size;
1493
1486
  }
1494
1487
  }
1495
- const Te = new qt();
1488
+ const Ee = new qt();
1496
1489
  function dr(r) {
1497
1490
  var n;
1498
- const e = ke(
1491
+ const e = ve(
1499
1492
  r.baseUrl,
1500
1493
  (n = r.options) == null ? void 0 : n.headers
1501
- ), t = Te.getOrCreate({
1494
+ ), t = Ee.getOrCreate({
1502
1495
  client: e,
1503
1496
  peginTxid: r.peginTxid,
1504
1497
  authAnchorHex: r.authAnchorHex,
1505
1498
  pinnedServerPubkey: r.pinnedServerPubkey,
1506
- expectedAudienceXOnlyPubkey: me(
1499
+ expectedAudienceXOnlyPubkey: fe(
1507
1500
  r.depositorBtcPubkey
1508
- ),
1509
- enableGrpcArtifactAuth: r.enableGrpcArtifactAuth
1501
+ )
1510
1502
  });
1511
- return new tt(r.baseUrl, {
1503
+ return new Qe(r.baseUrl, {
1512
1504
  ...r.options,
1513
1505
  tokenProvider: t
1514
1506
  });
1515
1507
  }
1516
1508
  function hr(r) {
1517
- Te.getOrCreate({
1518
- client: ke(r.baseUrl, r.headers),
1509
+ Ee.getOrCreate({
1510
+ client: ve(r.baseUrl, r.headers),
1519
1511
  peginTxid: r.peginTxid,
1520
1512
  authAnchorHex: r.authAnchorHex,
1521
1513
  pinnedServerPubkey: r.pinnedServerPubkey,
1522
- expectedAudienceXOnlyPubkey: me(
1514
+ expectedAudienceXOnlyPubkey: fe(
1523
1515
  r.depositorBtcPubkey
1524
- ),
1525
- enableGrpcArtifactAuth: r.enableGrpcArtifactAuth
1516
+ )
1526
1517
  });
1527
1518
  }
1528
1519
  export {
1529
- Me as O,
1520
+ De as O,
1530
1521
  y as S,
1531
- tt as V,
1522
+ Qe as V,
1532
1523
  a,
1533
1524
  ur as b,
1534
- dt as c,
1525
+ lt as c,
1535
1526
  qt as d,
1536
- Te as e,
1527
+ Ee as e,
1537
1528
  dr as f,
1538
1529
  ar as g,
1539
1530
  lr as h,
1540
1531
  cr as i,
1541
1532
  hr as p,
1542
1533
  or as r,
1543
- Je as v
1534
+ Fe as v
1544
1535
  };
1545
- //# sourceMappingURL=primeVpAuth-BTKhMdh1.js.map
1536
+ //# sourceMappingURL=primeVpAuth-DxMuWQCi.js.map