@breeztech/breez-sdk-spark 0.15.1 → 0.16.1-dev1

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 (51) hide show
  1. package/breez-sdk-spark.tgz +0 -0
  2. package/bundler/breez_sdk_spark_wasm.d.ts +511 -215
  3. package/bundler/breez_sdk_spark_wasm.js +1 -1
  4. package/bundler/breez_sdk_spark_wasm_bg.js +567 -414
  5. package/bundler/breez_sdk_spark_wasm_bg.wasm +0 -0
  6. package/bundler/breez_sdk_spark_wasm_bg.wasm.d.ts +55 -46
  7. package/bundler/storage/index.js +205 -15
  8. package/deno/breez_sdk_spark_wasm.d.ts +511 -215
  9. package/deno/breez_sdk_spark_wasm.js +567 -414
  10. package/deno/breez_sdk_spark_wasm_bg.wasm +0 -0
  11. package/deno/breez_sdk_spark_wasm_bg.wasm.d.ts +55 -46
  12. package/nodejs/breez_sdk_spark_wasm.d.ts +511 -215
  13. package/nodejs/breez_sdk_spark_wasm.js +578 -421
  14. package/nodejs/breez_sdk_spark_wasm_bg.wasm +0 -0
  15. package/nodejs/breez_sdk_spark_wasm_bg.wasm.d.ts +55 -46
  16. package/nodejs/index.js +10 -10
  17. package/nodejs/index.mjs +12 -8
  18. package/nodejs/mysql-session-store/errors.cjs +13 -0
  19. package/nodejs/{mysql-session-manager → mysql-session-store}/index.cjs +24 -21
  20. package/nodejs/{mysql-session-manager → mysql-session-store}/migrations.cjs +17 -11
  21. package/nodejs/mysql-session-store/package.json +9 -0
  22. package/nodejs/mysql-storage/index.cjs +229 -111
  23. package/nodejs/mysql-storage/migrations.cjs +37 -2
  24. package/nodejs/mysql-token-store/index.cjs +99 -79
  25. package/nodejs/mysql-token-store/migrations.cjs +59 -2
  26. package/nodejs/mysql-tree-store/index.cjs +15 -9
  27. package/nodejs/mysql-tree-store/migrations.cjs +16 -2
  28. package/nodejs/package.json +2 -2
  29. package/nodejs/postgres-session-store/errors.cjs +13 -0
  30. package/nodejs/{postgres-session-manager → postgres-session-store}/index.cjs +23 -23
  31. package/nodejs/{postgres-session-manager → postgres-session-store}/migrations.cjs +14 -14
  32. package/nodejs/postgres-session-store/package.json +9 -0
  33. package/nodejs/postgres-storage/index.cjs +174 -107
  34. package/nodejs/postgres-storage/migrations.cjs +24 -0
  35. package/nodejs/postgres-token-store/index.cjs +89 -64
  36. package/nodejs/postgres-token-store/migrations.cjs +44 -0
  37. package/nodejs/storage/index.cjs +167 -113
  38. package/nodejs/storage/migrations.cjs +23 -0
  39. package/package.json +6 -1
  40. package/ssr/index.js +52 -28
  41. package/web/breez_sdk_spark_wasm.d.ts +566 -261
  42. package/web/breez_sdk_spark_wasm.js +567 -414
  43. package/web/breez_sdk_spark_wasm_bg.wasm +0 -0
  44. package/web/breez_sdk_spark_wasm_bg.wasm.d.ts +55 -46
  45. package/web/passkey-prf-provider/index.d.ts +203 -0
  46. package/web/passkey-prf-provider/index.js +733 -0
  47. package/web/storage/index.js +205 -15
  48. package/nodejs/mysql-session-manager/errors.cjs +0 -13
  49. package/nodejs/mysql-session-manager/package.json +0 -9
  50. package/nodejs/postgres-session-manager/errors.cjs +0 -13
  51. package/nodejs/postgres-session-manager/package.json +0 -9
@@ -107,18 +107,19 @@ export class BreezSdk {
107
107
  return ret;
108
108
  }
109
109
  /**
110
- * @param {BuyBitcoinRequest} request
111
- * @returns {Promise<BuyBitcoinResponse>}
110
+ * @param {AuthorizeTransferRequest} request
111
+ * @returns {Promise<TransferAuthorization>}
112
112
  */
113
- buyBitcoin(request) {
114
- const ret = wasm.breezsdk_buyBitcoin(this.__wbg_ptr, request);
113
+ authorizeLightningAddressTransfer(request) {
114
+ const ret = wasm.breezsdk_authorizeLightningAddressTransfer(this.__wbg_ptr, request);
115
115
  return ret;
116
116
  }
117
117
  /**
118
- * @returns {Promise<void>}
118
+ * @param {BuyBitcoinRequest} request
119
+ * @returns {Promise<BuyBitcoinResponse>}
119
120
  */
120
- cancelLeafOptimization() {
121
- const ret = wasm.breezsdk_cancelLeafOptimization(this.__wbg_ptr);
121
+ buyBitcoin(request) {
122
+ const ret = wasm.breezsdk_buyBitcoin(this.__wbg_ptr, request);
122
123
  return ret;
123
124
  }
124
125
  /**
@@ -153,6 +154,14 @@ export class BreezSdk {
153
154
  const ret = wasm.breezsdk_claimHtlcPayment(this.__wbg_ptr, request);
154
155
  return ret;
155
156
  }
157
+ /**
158
+ * @param {ClaimTransferRequest} request
159
+ * @returns {Promise<LightningAddressInfo>}
160
+ */
161
+ claimLightningAddressTransfer(request) {
162
+ const ret = wasm.breezsdk_claimLightningAddressTransfer(this.__wbg_ptr, request);
163
+ return ret;
164
+ }
156
165
  /**
157
166
  * @param {string} id
158
167
  * @returns {Promise<void>}
@@ -193,13 +202,6 @@ export class BreezSdk {
193
202
  const ret = wasm.breezsdk_getInfo(this.__wbg_ptr, request);
194
203
  return ret;
195
204
  }
196
- /**
197
- * @returns {OptimizationProgress}
198
- */
199
- getLeafOptimizationProgress() {
200
- const ret = wasm.breezsdk_getLeafOptimizationProgress(this.__wbg_ptr);
201
- return ret;
202
- }
203
205
  /**
204
206
  * @returns {Promise<LightningAddressInfo | undefined>}
205
207
  */
@@ -306,6 +308,14 @@ export class BreezSdk {
306
308
  const ret = wasm.breezsdk_lnurlWithdraw(this.__wbg_ptr, request);
307
309
  return ret;
308
310
  }
311
+ /**
312
+ * @param {OptimizeLeavesRequest} request
313
+ * @returns {Promise<OptimizeLeavesResponse>}
314
+ */
315
+ optimizeLeaves(request) {
316
+ const ret = wasm.breezsdk_optimizeLeaves(this.__wbg_ptr, request);
317
+ return ret;
318
+ }
309
319
  /**
310
320
  * @param {string} input
311
321
  * @returns {Promise<InputType>}
@@ -404,13 +414,6 @@ export class BreezSdk {
404
414
  const ret = wasm.breezsdk_signMessage(this.__wbg_ptr, request);
405
415
  return ret;
406
416
  }
407
- /**
408
- * @returns {Promise<void>}
409
- */
410
- startLeafOptimization() {
411
- const ret = wasm.breezsdk_startLeafOptimization(this.__wbg_ptr);
412
- return ret;
413
- }
414
417
  /**
415
418
  * @param {SyncWalletRequest} request
416
419
  * @returns {Promise<SyncWalletResponse>}
@@ -447,33 +450,28 @@ export class BreezSdk {
447
450
  if (Symbol.dispose) BreezSdk.prototype[Symbol.dispose] = BreezSdk.prototype.free;
448
451
 
449
452
  /**
450
- * A default signer implementation that wraps the core SDK's ExternalSigner.
451
- * This is returned by `defaultExternalSigner` and can be passed to `connectWithSigner`.
453
+ * A Rust-backed [`ExternalBreezSigner`] surfaced to JS as a signer object that
454
+ * can be passed to `connectWithSigner` or `SdkBuilder.newWithSigner`. Produced
455
+ * by `defaultExternalSigners` (seed) and `createTurnkeySigner` (Turnkey).
456
+ *
457
+ * [`ExternalBreezSigner`]: breez_sdk_spark::signer::ExternalBreezSigner
452
458
  */
453
- export class DefaultSigner {
459
+ export class ExternalBreezSignerHandle {
454
460
  static __wrap(ptr) {
455
- const obj = Object.create(DefaultSigner.prototype);
461
+ const obj = Object.create(ExternalBreezSignerHandle.prototype);
456
462
  obj.__wbg_ptr = ptr;
457
- DefaultSignerFinalization.register(obj, obj.__wbg_ptr, obj);
463
+ ExternalBreezSignerHandleFinalization.register(obj, obj.__wbg_ptr, obj);
458
464
  return obj;
459
465
  }
460
466
  __destroy_into_raw() {
461
467
  const ptr = this.__wbg_ptr;
462
468
  this.__wbg_ptr = 0;
463
- DefaultSignerFinalization.unregister(this);
469
+ ExternalBreezSignerHandleFinalization.unregister(this);
464
470
  return ptr;
465
471
  }
466
472
  free() {
467
473
  const ptr = this.__destroy_into_raw();
468
- wasm.__wbg_defaultsigner_free(ptr, 0);
469
- }
470
- /**
471
- * @param {ExternalAggregateFrostRequest} request
472
- * @returns {Promise<ExternalFrostSignature>}
473
- */
474
- aggregateFrost(request) {
475
- const ret = wasm.defaultsigner_aggregateFrost(this.__wbg_ptr, request);
476
- return ret;
474
+ wasm.__wbg_externalbreezsignerhandle_free(ptr, 0);
477
475
  }
478
476
  /**
479
477
  * @param {Uint8Array} message
@@ -485,7 +483,7 @@ export class DefaultSigner {
485
483
  const len0 = WASM_VECTOR_LEN;
486
484
  const ptr1 = passStringToWasm0(path, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
487
485
  const len1 = WASM_VECTOR_LEN;
488
- const ret = wasm.defaultsigner_decryptEcies(this.__wbg_ptr, ptr0, len0, ptr1, len1);
486
+ const ret = wasm.externalbreezsignerhandle_decryptEcies(this.__wbg_ptr, ptr0, len0, ptr1, len1);
489
487
  return ret;
490
488
  }
491
489
  /**
@@ -495,7 +493,7 @@ export class DefaultSigner {
495
493
  derivePublicKey(path) {
496
494
  const ptr0 = passStringToWasm0(path, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
497
495
  const len0 = WASM_VECTOR_LEN;
498
- const ret = wasm.defaultsigner_derivePublicKey(this.__wbg_ptr, ptr0, len0);
496
+ const ret = wasm.externalbreezsignerhandle_derivePublicKey(this.__wbg_ptr, ptr0, len0);
499
497
  return ret;
500
498
  }
501
499
  /**
@@ -508,38 +506,7 @@ export class DefaultSigner {
508
506
  const len0 = WASM_VECTOR_LEN;
509
507
  const ptr1 = passStringToWasm0(path, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
510
508
  const len1 = WASM_VECTOR_LEN;
511
- const ret = wasm.defaultsigner_encryptEcies(this.__wbg_ptr, ptr0, len0, ptr1, len1);
512
- return ret;
513
- }
514
- /**
515
- * @param {ExternalEncryptedSecret} private_key
516
- * @param {PublicKeyBytes} receiver_public_key
517
- * @returns {Promise<Uint8Array>}
518
- */
519
- encryptPrivateKeyForReceiver(private_key, receiver_public_key) {
520
- const ret = wasm.defaultsigner_encryptPrivateKeyForReceiver(this.__wbg_ptr, private_key, receiver_public_key);
521
- return ret;
522
- }
523
- /**
524
- * @returns {Promise<ExternalEncryptedSecret>}
525
- */
526
- generateRandomSecret() {
527
- const ret = wasm.defaultsigner_generateRandomSecret(this.__wbg_ptr);
528
- return ret;
529
- }
530
- /**
531
- * @returns {Promise<ExternalFrostCommitments>}
532
- */
533
- generateRandomSigningCommitment() {
534
- const ret = wasm.defaultsigner_generateRandomSigningCommitment(this.__wbg_ptr);
535
- return ret;
536
- }
537
- /**
538
- * @param {ExternalTreeNodeId} id
539
- * @returns {Promise<PublicKeyBytes>}
540
- */
541
- getPublicKeyForNode(id) {
542
- const ret = wasm.defaultsigner_getPublicKeyForNode(this.__wbg_ptr, id);
509
+ const ret = wasm.externalbreezsignerhandle_encryptEcies(this.__wbg_ptr, ptr0, len0, ptr1, len1);
543
510
  return ret;
544
511
  }
545
512
  /**
@@ -552,25 +519,7 @@ export class DefaultSigner {
552
519
  const len0 = WASM_VECTOR_LEN;
553
520
  const ptr1 = passStringToWasm0(path, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
554
521
  const len1 = WASM_VECTOR_LEN;
555
- const ret = wasm.defaultsigner_hmacSha256(this.__wbg_ptr, ptr0, len0, ptr1, len1);
556
- return ret;
557
- }
558
- /**
559
- * @returns {PublicKeyBytes}
560
- */
561
- identityPublicKey() {
562
- const ret = wasm.defaultsigner_identityPublicKey(this.__wbg_ptr);
563
- if (ret[2]) {
564
- throw takeFromExternrefTable0(ret[1]);
565
- }
566
- return takeFromExternrefTable0(ret[0]);
567
- }
568
- /**
569
- * @param {ExternalSecretSource} private_key
570
- * @returns {Promise<PublicKeyBytes>}
571
- */
572
- publicKeyFromSecret(private_key) {
573
- const ret = wasm.defaultsigner_publicKeyFromSecret(this.__wbg_ptr, private_key);
522
+ const ret = wasm.externalbreezsignerhandle_hmacSha256(this.__wbg_ptr, ptr0, len0, ptr1, len1);
574
523
  return ret;
575
524
  }
576
525
  /**
@@ -581,7 +530,7 @@ export class DefaultSigner {
581
530
  signEcdsa(message, path) {
582
531
  const ptr0 = passStringToWasm0(path, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
583
532
  const len0 = WASM_VECTOR_LEN;
584
- const ret = wasm.defaultsigner_signEcdsa(this.__wbg_ptr, message, ptr0, len0);
533
+ const ret = wasm.externalbreezsignerhandle_signEcdsa(this.__wbg_ptr, message, ptr0, len0);
585
534
  return ret;
586
535
  }
587
536
  /**
@@ -592,15 +541,7 @@ export class DefaultSigner {
592
541
  signEcdsaRecoverable(message, path) {
593
542
  const ptr0 = passStringToWasm0(path, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
594
543
  const len0 = WASM_VECTOR_LEN;
595
- const ret = wasm.defaultsigner_signEcdsaRecoverable(this.__wbg_ptr, message, ptr0, len0);
596
- return ret;
597
- }
598
- /**
599
- * @param {ExternalSignFrostRequest} request
600
- * @returns {Promise<ExternalFrostSignatureShare>}
601
- */
602
- signFrost(request) {
603
- const ret = wasm.defaultsigner_signFrost(this.__wbg_ptr, request);
544
+ const ret = wasm.externalbreezsignerhandle_signEcdsaRecoverable(this.__wbg_ptr, message, ptr0, len0);
604
545
  return ret;
605
546
  }
606
547
  /**
@@ -613,54 +554,205 @@ export class DefaultSigner {
613
554
  const len0 = WASM_VECTOR_LEN;
614
555
  const ptr1 = passStringToWasm0(path, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
615
556
  const len1 = WASM_VECTOR_LEN;
616
- const ret = wasm.defaultsigner_signHashSchnorr(this.__wbg_ptr, ptr0, len0, ptr1, len1);
557
+ const ret = wasm.externalbreezsignerhandle_signHashSchnorr(this.__wbg_ptr, ptr0, len0, ptr1, len1);
617
558
  return ret;
618
559
  }
560
+ }
561
+ if (Symbol.dispose) ExternalBreezSignerHandle.prototype[Symbol.dispose] = ExternalBreezSignerHandle.prototype.free;
562
+
563
+ /**
564
+ * The two external signers for the SDK's signer-based connect. Returned by
565
+ * `defaultExternalSigners` (seed) and `createTurnkeySigner` (Turnkey); pass
566
+ * both halves to `connectWithSigner` or `SdkBuilder.newWithSigner`.
567
+ */
568
+ export class ExternalSigners {
569
+ static __wrap(ptr) {
570
+ const obj = Object.create(ExternalSigners.prototype);
571
+ obj.__wbg_ptr = ptr;
572
+ ExternalSignersFinalization.register(obj, obj.__wbg_ptr, obj);
573
+ return obj;
574
+ }
575
+ __destroy_into_raw() {
576
+ const ptr = this.__wbg_ptr;
577
+ this.__wbg_ptr = 0;
578
+ ExternalSignersFinalization.unregister(this);
579
+ return ptr;
580
+ }
581
+ free() {
582
+ const ptr = this.__destroy_into_raw();
583
+ wasm.__wbg_externalsigners_free(ptr, 0);
584
+ }
619
585
  /**
620
- * @param {ExternalSecretToSplit} secret
621
- * @param {number} threshold
622
- * @param {number} num_shares
623
- * @returns {Promise<ExternalVerifiableSecretShare[]>}
586
+ * External signer for non-Spark SDK signing (LNURL-auth, sync, message
587
+ * signing, ECIES).
588
+ * @returns {ExternalBreezSignerHandle}
624
589
  */
625
- splitSecretWithProofs(secret, threshold, num_shares) {
626
- const ret = wasm.defaultsigner_splitSecretWithProofs(this.__wbg_ptr, secret, threshold, num_shares);
627
- return ret;
590
+ get breezSigner() {
591
+ const ret = wasm.externalsigners_breezSigner(this.__wbg_ptr);
592
+ return ExternalBreezSignerHandle.__wrap(ret);
628
593
  }
629
594
  /**
630
- * @param {number} index
631
- * @returns {Promise<SecretBytes>}
595
+ * External high-level Spark signer for the Spark wallet flows.
596
+ * @returns {ExternalSparkSignerHandle}
632
597
  */
633
- staticDepositSecret(index) {
634
- const ret = wasm.defaultsigner_staticDepositSecret(this.__wbg_ptr, index);
598
+ get sparkSigner() {
599
+ const ret = wasm.externalsigners_sparkSigner(this.__wbg_ptr);
600
+ return ExternalSparkSignerHandle.__wrap(ret);
601
+ }
602
+ }
603
+ if (Symbol.dispose) ExternalSigners.prototype[Symbol.dispose] = ExternalSigners.prototype.free;
604
+
605
+ /**
606
+ * A Rust-backed [`ExternalSparkSigner`] surfaced to JS as a signer object that
607
+ * can be passed to `connectWithSigner` or `SdkBuilder.newWithSigner`. Produced
608
+ * by `defaultExternalSigners` (seed) and `createTurnkeySigner` (Turnkey).
609
+ *
610
+ * [`ExternalSparkSigner`]: breez_sdk_spark::signer::ExternalSparkSigner
611
+ */
612
+ export class ExternalSparkSignerHandle {
613
+ static __wrap(ptr) {
614
+ const obj = Object.create(ExternalSparkSignerHandle.prototype);
615
+ obj.__wbg_ptr = ptr;
616
+ ExternalSparkSignerHandleFinalization.register(obj, obj.__wbg_ptr, obj);
617
+ return obj;
618
+ }
619
+ __destroy_into_raw() {
620
+ const ptr = this.__wbg_ptr;
621
+ this.__wbg_ptr = 0;
622
+ ExternalSparkSignerHandleFinalization.unregister(this);
623
+ return ptr;
624
+ }
625
+ free() {
626
+ const ptr = this.__destroy_into_raw();
627
+ wasm.__wbg_externalsparksignerhandle_free(ptr, 0);
628
+ }
629
+ /**
630
+ * @returns {Promise<PublicKeyBytes>}
631
+ */
632
+ getIdentityPublicKey() {
633
+ const ret = wasm.externalsparksignerhandle_getIdentityPublicKey(this.__wbg_ptr);
635
634
  return ret;
636
635
  }
637
636
  /**
638
- * @param {number} index
639
- * @returns {Promise<ExternalSecretSource>}
637
+ * @param {ExternalTreeNodeId} leaf_id
638
+ * @returns {Promise<PublicKeyBytes>}
640
639
  */
641
- staticDepositSecretEncrypted(index) {
642
- const ret = wasm.defaultsigner_staticDepositSecretEncrypted(this.__wbg_ptr, index);
640
+ getPublicKeyForLeaf(leaf_id) {
641
+ const ret = wasm.externalsparksignerhandle_getPublicKeyForLeaf(this.__wbg_ptr, leaf_id);
643
642
  return ret;
644
643
  }
645
644
  /**
646
645
  * @param {number} index
647
646
  * @returns {Promise<PublicKeyBytes>}
648
647
  */
649
- staticDepositSigningKey(index) {
650
- const ret = wasm.defaultsigner_staticDepositSigningKey(this.__wbg_ptr, index);
648
+ getStaticDepositPublicKey(index) {
649
+ const ret = wasm.externalsparksignerhandle_getStaticDepositPublicKey(this.__wbg_ptr, index);
650
+ return ret;
651
+ }
652
+ /**
653
+ * @param {ExternalPrepareClaimRequest} request
654
+ * @returns {Promise<ExternalPreparedClaim>}
655
+ */
656
+ prepareClaim(request) {
657
+ const ret = wasm.externalsparksignerhandle_prepareClaim(this.__wbg_ptr, request);
658
+ return ret;
659
+ }
660
+ /**
661
+ * @param {ExternalPrepareLightningReceiveRequest} request
662
+ * @returns {Promise<ExternalPreparedLightningReceive>}
663
+ */
664
+ prepareLightningReceive(request) {
665
+ const ret = wasm.externalsparksignerhandle_prepareLightningReceive(this.__wbg_ptr, request);
666
+ return ret;
667
+ }
668
+ /**
669
+ * @param {ExternalPrepareStaticDepositRequest} request
670
+ * @returns {Promise<ExternalPreparedStaticDeposit>}
671
+ */
672
+ prepareStaticDeposit(request) {
673
+ const ret = wasm.externalsparksignerhandle_prepareStaticDeposit(this.__wbg_ptr, request);
674
+ return ret;
675
+ }
676
+ /**
677
+ * @param {ExternalPrepareStaticDepositClaimRequest} request
678
+ * @returns {Promise<ExternalPreparedStaticDepositClaim>}
679
+ */
680
+ prepareStaticDepositClaim(request) {
681
+ const ret = wasm.externalsparksignerhandle_prepareStaticDepositClaim(this.__wbg_ptr, request);
682
+ return ret;
683
+ }
684
+ /**
685
+ * @param {ExternalPrepareTokenTransactionRequest} request
686
+ * @returns {Promise<ExternalPreparedTokenTransaction>}
687
+ */
688
+ prepareTokenTransaction(request) {
689
+ const ret = wasm.externalsparksignerhandle_prepareTokenTransaction(this.__wbg_ptr, request);
690
+ return ret;
691
+ }
692
+ /**
693
+ * @param {ExternalPrepareTransferRequest} request
694
+ * @returns {Promise<ExternalPreparedTransfer>}
695
+ */
696
+ prepareTransfer(request) {
697
+ const ret = wasm.externalsparksignerhandle_prepareTransfer(this.__wbg_ptr, request);
698
+ return ret;
699
+ }
700
+ /**
701
+ * @param {Uint8Array} challenge
702
+ * @returns {Promise<EcdsaSignatureBytes>}
703
+ */
704
+ signAuthenticationChallenge(challenge) {
705
+ const ptr0 = passArray8ToWasm0(challenge, wasm.__wbindgen_malloc);
706
+ const len0 = WASM_VECTOR_LEN;
707
+ const ret = wasm.externalsparksignerhandle_signAuthenticationChallenge(this.__wbg_ptr, ptr0, len0);
708
+ return ret;
709
+ }
710
+ /**
711
+ * @param {ExternalFrostJob[]} jobs
712
+ * @returns {Promise<ExternalFrostShareResult[]>}
713
+ */
714
+ signFrost(jobs) {
715
+ const ptr0 = passArrayJsValueToWasm0(jobs, wasm.__wbindgen_malloc);
716
+ const len0 = WASM_VECTOR_LEN;
717
+ const ret = wasm.externalsparksignerhandle_signFrost(this.__wbg_ptr, ptr0, len0);
718
+ return ret;
719
+ }
720
+ /**
721
+ * @param {Uint8Array} message
722
+ * @returns {Promise<EcdsaSignatureBytes>}
723
+ */
724
+ signMessage(message) {
725
+ const ptr0 = passArray8ToWasm0(message, wasm.__wbindgen_malloc);
726
+ const len0 = WASM_VECTOR_LEN;
727
+ const ret = wasm.externalsparksignerhandle_signMessage(this.__wbg_ptr, ptr0, len0);
651
728
  return ret;
652
729
  }
653
730
  /**
654
- * @param {ExternalSecretSource} signing_key
655
- * @param {ExternalSecretSource} new_signing_key
656
- * @returns {Promise<ExternalSecretSource>}
731
+ * @param {ExternalSignSparkInvoiceRequest} request
732
+ * @returns {Promise<ExternalSignedSparkInvoice>}
733
+ */
734
+ signSparkInvoice(request) {
735
+ const ret = wasm.externalsparksignerhandle_signSparkInvoice(this.__wbg_ptr, request);
736
+ return ret;
737
+ }
738
+ /**
739
+ * @param {ExternalSignStaticDepositRefundRequest} request
740
+ * @returns {Promise<ExternalFrostSignature>}
657
741
  */
658
- subtractSecrets(signing_key, new_signing_key) {
659
- const ret = wasm.defaultsigner_subtractSecrets(this.__wbg_ptr, signing_key, new_signing_key);
742
+ signStaticDepositRefund(request) {
743
+ const ret = wasm.externalsparksignerhandle_signStaticDepositRefund(this.__wbg_ptr, request);
744
+ return ret;
745
+ }
746
+ /**
747
+ * @param {ExternalStartStaticDepositRefundRequest} request
748
+ * @returns {Promise<ExternalStartedStaticDepositRefund>}
749
+ */
750
+ startStaticDepositRefund(request) {
751
+ const ret = wasm.externalsparksignerhandle_startStaticDepositRefund(this.__wbg_ptr, request);
660
752
  return ret;
661
753
  }
662
754
  }
663
- if (Symbol.dispose) DefaultSigner.prototype[Symbol.dispose] = DefaultSigner.prototype.free;
755
+ if (Symbol.dispose) ExternalSparkSignerHandle.prototype[Symbol.dispose] = ExternalSparkSignerHandle.prototype.free;
664
756
 
665
757
  export class IntoUnderlyingByteSource {
666
758
  __destroy_into_raw() {
@@ -774,140 +866,122 @@ export class IntoUnderlyingSource {
774
866
  if (Symbol.dispose) IntoUnderlyingSource.prototype[Symbol.dispose] = IntoUnderlyingSource.prototype.free;
775
867
 
776
868
  /**
777
- * A shareable `MySQL` connection pool. See
778
- * [`PostgresConnectionPool`](super::postgres_pool::PostgresConnectionPool)
779
- * for sharing semantics and lifecycle.
869
+ * High-level orchestrator that collapses register / sign-in flows
870
+ * into single calls. See the matching Rust types for full semantics;
871
+ * the JS surface is a thin wasm-bindgen wrapper.
780
872
  */
781
- export class MysqlConnectionPool {
782
- static __wrap(ptr) {
783
- const obj = Object.create(MysqlConnectionPool.prototype);
784
- obj.__wbg_ptr = ptr;
785
- MysqlConnectionPoolFinalization.register(obj, obj.__wbg_ptr, obj);
786
- return obj;
787
- }
873
+ export class PasskeyClient {
788
874
  __destroy_into_raw() {
789
875
  const ptr = this.__wbg_ptr;
790
876
  this.__wbg_ptr = 0;
791
- MysqlConnectionPoolFinalization.unregister(this);
877
+ PasskeyClientFinalization.unregister(this);
792
878
  return ptr;
793
879
  }
794
880
  free() {
795
881
  const ptr = this.__destroy_into_raw();
796
- wasm.__wbg_mysqlconnectionpool_free(ptr, 0);
797
- }
798
- }
799
- if (Symbol.dispose) MysqlConnectionPool.prototype[Symbol.dispose] = MysqlConnectionPool.prototype.free;
800
-
801
- /**
802
- * Passkey-based wallet operations using WebAuthn PRF extension.
803
- *
804
- * Wraps a `PasskeyPrfProvider` and optional relay configuration to provide
805
- * wallet derivation and label management via Nostr relays.
806
- */
807
- export class Passkey {
808
- __destroy_into_raw() {
809
- const ptr = this.__wbg_ptr;
810
- this.__wbg_ptr = 0;
811
- PasskeyFinalization.unregister(this);
812
- return ptr;
813
- }
814
- free() {
815
- const ptr = this.__destroy_into_raw();
816
- wasm.__wbg_passkey_free(ptr, 0);
882
+ wasm.__wbg_passkeyclient_free(ptr, 0);
817
883
  }
818
884
  /**
819
- * Derive a wallet for a given label.
820
- *
821
- * Uses the passkey PRF to derive a `Wallet` containing the seed and resolved label.
822
- *
823
- * @param label - Optional label string (defaults to "Default")
824
- * @param {string | null} [label]
825
- * @returns {Promise<Wallet>}
885
+ * One-shot capability probe (PRF support + domain association)
886
+ * hosts can gate UX on.
887
+ * @returns {Promise<PasskeyAvailability>}
826
888
  */
827
- getWallet(label) {
828
- var ptr0 = isLikeNone(label) ? 0 : passStringToWasm0(label, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
829
- var len0 = WASM_VECTOR_LEN;
830
- const ret = wasm.passkey_getWallet(this.__wbg_ptr, ptr0, len0);
889
+ checkAvailability() {
890
+ const ret = wasm.passkeyclient_checkAvailability(this.__wbg_ptr);
831
891
  return ret;
832
892
  }
833
893
  /**
834
- * Check if passkey PRF is available on this device.
835
- * @returns {Promise<boolean>}
894
+ * Label sub-object. List / publish labels for this passkey's identity.
895
+ * @returns {PasskeyLabels}
836
896
  */
837
- isAvailable() {
838
- const ret = wasm.passkey_isAvailable(this.__wbg_ptr);
839
- return ret;
897
+ labels() {
898
+ const ret = wasm.passkeyclient_labels(this.__wbg_ptr);
899
+ return PasskeyLabels.__wrap(ret);
840
900
  }
841
901
  /**
842
- * List all labels published to Nostr for this passkey's identity.
843
- *
844
- * Requires 1 PRF call (for Nostr identity derivation).
845
- * @returns {Promise<string[]>}
902
+ * Create a `PasskeyClient` backed by the supplied `PrfProvider` and
903
+ * the default Nostr-backed label store. `breezApiKey` enables
904
+ * authenticated (NIP-42) relay access for label storage; omit for
905
+ * public relays only.
906
+ * @param {PrfProvider} prf_provider
907
+ * @param {string | null} [breez_api_key]
908
+ * @param {PasskeyConfig | null} [config]
846
909
  */
847
- listLabels() {
848
- const ret = wasm.passkey_listLabels(this.__wbg_ptr);
849
- return ret;
910
+ constructor(prf_provider, breez_api_key, config) {
911
+ var ptr0 = isLikeNone(breez_api_key) ? 0 : passStringToWasm0(breez_api_key, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
912
+ var len0 = WASM_VECTOR_LEN;
913
+ const ret = wasm.passkeyclient_new(prf_provider, ptr0, len0, isLikeNone(config) ? 0 : addToExternrefTable0(config));
914
+ this.__wbg_ptr = ret;
915
+ PasskeyClientFinalization.register(this, this.__wbg_ptr, this);
916
+ return this;
850
917
  }
851
918
  /**
852
- * Create a new `Passkey` instance.
853
- *
854
- * @param prfProvider - Platform implementation of passkey PRF operations
855
- * @param relayConfig - Optional configuration for Nostr relay connections
856
- * @param {PasskeyPrfProvider} prf_provider
857
- * @param {NostrRelayConfig | null} [relay_config]
919
+ * First-time setup. Drives the platform's create-passkey ceremony
920
+ * then derives the wallet seed in the same PRF assertion ceremony
921
+ * where the platform supports it.
922
+ * @param {RegisterRequest} request
923
+ * @returns {Promise<RegisterResponse>}
858
924
  */
859
- constructor(prf_provider, relay_config) {
860
- const ret = wasm.passkey_new(prf_provider, isLikeNone(relay_config) ? 0 : addToExternrefTable0(relay_config));
861
- this.__wbg_ptr = ret;
862
- PasskeyFinalization.register(this, this.__wbg_ptr, this);
863
- return this;
925
+ register(request) {
926
+ const ret = wasm.passkeyclient_register(this.__wbg_ptr, request);
927
+ return ret;
864
928
  }
865
929
  /**
866
- * Publish a label to Nostr relays for this passkey's identity.
867
- *
868
- * Idempotent: if the label already exists, it is not published again.
869
- * Requires 1 PRF call.
870
- * @param {string} label
871
- * @returns {Promise<void>}
930
+ * Returning-user sign-in. With `label` set, uses the fast path
931
+ * (one ceremony, no Nostr round-trip). With `label` omitted,
932
+ * derives the default-label wallet and discovers the user's
933
+ * label set in the same ceremony.
934
+ * @param {SignInRequest} request
935
+ * @returns {Promise<SignInResponse>}
872
936
  */
873
- storeLabel(label) {
874
- const ptr0 = passStringToWasm0(label, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
875
- const len0 = WASM_VECTOR_LEN;
876
- const ret = wasm.passkey_storeLabel(this.__wbg_ptr, ptr0, len0);
937
+ signIn(request) {
938
+ const ret = wasm.passkeyclient_signIn(this.__wbg_ptr, request);
877
939
  return ret;
878
940
  }
879
941
  }
880
- if (Symbol.dispose) Passkey.prototype[Symbol.dispose] = Passkey.prototype.free;
942
+ if (Symbol.dispose) PasskeyClient.prototype[Symbol.dispose] = PasskeyClient.prototype.free;
881
943
 
882
944
  /**
883
- * A shareable Postgres connection pool.
884
- *
885
- * Construct via [`create_postgres_connection_pool`] and pass the same handle to multiple
886
- * `SdkBuilder`s via `withPostgresConnectionPool` to share connections across SDKs.
887
- * Per-tenant scoping is derived from each SDK's seed.
888
- *
889
- * The pool's lifecycle is controlled by the integrator: it stays alive as
890
- * long as any reference is held. `disconnect()` does **not** close the pool.
945
+ * Label sub-object surfaced from `PasskeyClient.labels()`.
891
946
  */
892
- export class PostgresConnectionPool {
947
+ export class PasskeyLabels {
893
948
  static __wrap(ptr) {
894
- const obj = Object.create(PostgresConnectionPool.prototype);
949
+ const obj = Object.create(PasskeyLabels.prototype);
895
950
  obj.__wbg_ptr = ptr;
896
- PostgresConnectionPoolFinalization.register(obj, obj.__wbg_ptr, obj);
951
+ PasskeyLabelsFinalization.register(obj, obj.__wbg_ptr, obj);
897
952
  return obj;
898
953
  }
899
954
  __destroy_into_raw() {
900
955
  const ptr = this.__wbg_ptr;
901
956
  this.__wbg_ptr = 0;
902
- PostgresConnectionPoolFinalization.unregister(this);
957
+ PasskeyLabelsFinalization.unregister(this);
903
958
  return ptr;
904
959
  }
905
960
  free() {
906
961
  const ptr = this.__destroy_into_raw();
907
- wasm.__wbg_postgresconnectionpool_free(ptr, 0);
962
+ wasm.__wbg_passkeylabels_free(ptr, 0);
963
+ }
964
+ /**
965
+ * List labels published for this passkey's identity.
966
+ * @returns {Promise<string[]>}
967
+ */
968
+ list() {
969
+ const ret = wasm.passkeylabels_list(this.__wbg_ptr);
970
+ return ret;
971
+ }
972
+ /**
973
+ * Idempotently publish `label` for this passkey's identity.
974
+ * @param {string} label
975
+ * @returns {Promise<void>}
976
+ */
977
+ store(label) {
978
+ const ptr0 = passStringToWasm0(label, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
979
+ const len0 = WASM_VECTOR_LEN;
980
+ const ret = wasm.passkeylabels_store(this.__wbg_ptr, ptr0, len0);
981
+ return ret;
908
982
  }
909
983
  }
910
- if (Symbol.dispose) PostgresConnectionPool.prototype[Symbol.dispose] = PostgresConnectionPool.prototype.free;
984
+ if (Symbol.dispose) PasskeyLabels.prototype[Symbol.dispose] = PasskeyLabels.prototype.free;
911
985
 
912
986
  export class SdkBuilder {
913
987
  static __wrap(ptr) {
@@ -945,11 +1019,21 @@ export class SdkBuilder {
945
1019
  }
946
1020
  /**
947
1021
  * @param {Config} config
948
- * @param {ExternalSigner} signer
1022
+ * @param {ExternalBreezSigner} breez_signer
1023
+ * @param {ExternalSparkSigner} spark_signer
1024
+ * @returns {SdkBuilder}
1025
+ */
1026
+ static newWithSigner(config, breez_signer, spark_signer) {
1027
+ const ret = wasm.sdkbuilder_newWithSigner(config, breez_signer, spark_signer);
1028
+ return SdkBuilder.__wrap(ret);
1029
+ }
1030
+ /**
1031
+ * @param {number} account_number
949
1032
  * @returns {SdkBuilder}
950
1033
  */
951
- static newWithSigner(config, signer) {
952
- const ret = wasm.sdkbuilder_newWithSigner(config, signer);
1034
+ withAccountNumber(account_number) {
1035
+ const ptr = this.__destroy_into_raw();
1036
+ const ret = wasm.sdkbuilder_withAccountNumber(ptr, account_number);
953
1037
  return SdkBuilder.__wrap(ret);
954
1038
  }
955
1039
  /**
@@ -981,15 +1065,6 @@ export class SdkBuilder {
981
1065
  const ret = wasm.sdkbuilder_withFiatService(ptr, fiat_service);
982
1066
  return SdkBuilder.__wrap(ret);
983
1067
  }
984
- /**
985
- * @param {KeySetConfig} config
986
- * @returns {SdkBuilder}
987
- */
988
- withKeySet(config) {
989
- const ptr = this.__destroy_into_raw();
990
- const ret = wasm.sdkbuilder_withKeySet(ptr, config);
991
- return SdkBuilder.__wrap(ret);
992
- }
993
1068
  /**
994
1069
  * @param {RestClient} lnurl_client
995
1070
  * @returns {SdkBuilder}
@@ -1000,8 +1075,7 @@ export class SdkBuilder {
1000
1075
  return SdkBuilder.__wrap(ret);
1001
1076
  }
1002
1077
  /**
1003
- * **Deprecated.** Call `createMysqlConnectionPool(config)` and
1004
- * `withMysqlConnectionPool(pool)` instead.
1078
+ * **Deprecated.** Use `withStorageBackend(mysqlStorage(config))`.
1005
1079
  * @param {MysqlStorageConfig} config
1006
1080
  * @returns {SdkBuilder}
1007
1081
  */
@@ -1013,20 +1087,6 @@ export class SdkBuilder {
1013
1087
  }
1014
1088
  return SdkBuilder.__wrap(ret[0]);
1015
1089
  }
1016
- /**
1017
- * Sets a shared `MySQL` connection pool as the backend for all stores.
1018
- *
1019
- * If the same builder also receives a `WasmSdkContext` carrying a MySQL
1020
- * pool, `build()` returns an error — pick one source.
1021
- * @param {MysqlConnectionPool} pool
1022
- * @returns {SdkBuilder}
1023
- */
1024
- withMysqlConnectionPool(pool) {
1025
- const ptr = this.__destroy_into_raw();
1026
- _assertClass(pool, MysqlConnectionPool);
1027
- const ret = wasm.sdkbuilder_withMysqlConnectionPool(ptr, pool.__wbg_ptr);
1028
- return SdkBuilder.__wrap(ret);
1029
- }
1030
1090
  /**
1031
1091
  * @param {PaymentObserver} payment_observer
1032
1092
  * @returns {SdkBuilder}
@@ -1037,8 +1097,7 @@ export class SdkBuilder {
1037
1097
  return SdkBuilder.__wrap(ret);
1038
1098
  }
1039
1099
  /**
1040
- * **Deprecated.** Call `createPostgresConnectionPool(config)` and
1041
- * `withPostgresConnectionPool(pool)` instead.
1100
+ * **Deprecated.** Use `withStorageBackend(postgresStorage(config))`.
1042
1101
  * @param {PostgresStorageConfig} config
1043
1102
  * @returns {SdkBuilder}
1044
1103
  */
@@ -1050,20 +1109,6 @@ export class SdkBuilder {
1050
1109
  }
1051
1110
  return SdkBuilder.__wrap(ret[0]);
1052
1111
  }
1053
- /**
1054
- * Sets a shared Postgres connection pool as the backend for all stores.
1055
- *
1056
- * If the same builder also receives a `WasmSdkContext` carrying a
1057
- * Postgres pool, `build()` returns an error — pick one source.
1058
- * @param {PostgresConnectionPool} pool
1059
- * @returns {SdkBuilder}
1060
- */
1061
- withPostgresConnectionPool(pool) {
1062
- const ptr = this.__destroy_into_raw();
1063
- _assertClass(pool, PostgresConnectionPool);
1064
- const ret = wasm.sdkbuilder_withPostgresConnectionPool(ptr, pool.__wbg_ptr);
1065
- return SdkBuilder.__wrap(ret);
1066
- }
1067
1112
  /**
1068
1113
  * @param {string} url
1069
1114
  * @param {ChainApiType} api_type
@@ -1101,6 +1146,21 @@ export class SdkBuilder {
1101
1146
  const ret = wasm.sdkbuilder_withStorage(ptr, storage);
1102
1147
  return SdkBuilder.__wrap(ret);
1103
1148
  }
1149
+ /**
1150
+ * Sets one of the SDK's built-in storage backends.
1151
+ *
1152
+ * Construct the [`WasmStorageConfig`] via `defaultStorage`,
1153
+ * `postgresStorage` or `mysqlStorage`.
1154
+ * @param {WasmStorageConfig} config
1155
+ * @returns {SdkBuilder}
1156
+ */
1157
+ withStorageBackend(config) {
1158
+ const ptr = this.__destroy_into_raw();
1159
+ _assertClass(config, WasmStorageConfig);
1160
+ var ptr0 = config.__destroy_into_raw();
1161
+ const ret = wasm.sdkbuilder_withStorageBackend(ptr, ptr0);
1162
+ return SdkBuilder.__wrap(ret);
1163
+ }
1104
1164
  }
1105
1165
  if (Symbol.dispose) SdkBuilder.prototype[Symbol.dispose] = SdkBuilder.prototype.free;
1106
1166
 
@@ -1205,6 +1265,32 @@ export class WasmSdkContext {
1205
1265
  }
1206
1266
  if (Symbol.dispose) WasmSdkContext.prototype[Symbol.dispose] = WasmSdkContext.prototype.free;
1207
1267
 
1268
+ /**
1269
+ * Selects one of the SDK's built-in storage backends.
1270
+ *
1271
+ * Construct it via `defaultStorage`, `postgresStorage` or `mysqlStorage` and
1272
+ * pass it to `SdkBuilder.withStorageBackend`.
1273
+ */
1274
+ export class WasmStorageConfig {
1275
+ static __wrap(ptr) {
1276
+ const obj = Object.create(WasmStorageConfig.prototype);
1277
+ obj.__wbg_ptr = ptr;
1278
+ WasmStorageConfigFinalization.register(obj, obj.__wbg_ptr, obj);
1279
+ return obj;
1280
+ }
1281
+ __destroy_into_raw() {
1282
+ const ptr = this.__wbg_ptr;
1283
+ this.__wbg_ptr = 0;
1284
+ WasmStorageConfigFinalization.unregister(this);
1285
+ return ptr;
1286
+ }
1287
+ free() {
1288
+ const ptr = this.__destroy_into_raw();
1289
+ wasm.__wbg_wasmstorageconfig_free(ptr, 0);
1290
+ }
1291
+ }
1292
+ if (Symbol.dispose) WasmStorageConfig.prototype[Symbol.dispose] = WasmStorageConfig.prototype.free;
1293
+
1208
1294
  /**
1209
1295
  * @param {ConnectRequest} request
1210
1296
  * @returns {Promise<BreezSdk>}
@@ -1216,41 +1302,28 @@ export function connect(request) {
1216
1302
 
1217
1303
  /**
1218
1304
  * @param {Config} config
1219
- * @param {ExternalSigner} signer
1305
+ * @param {ExternalBreezSigner} breez_signer
1306
+ * @param {ExternalSparkSigner} spark_signer
1220
1307
  * @param {string} storage_dir
1221
1308
  * @returns {Promise<BreezSdk>}
1222
1309
  */
1223
- export function connectWithSigner(config, signer, storage_dir) {
1310
+ export function connectWithSigner(config, breez_signer, spark_signer, storage_dir) {
1224
1311
  const ptr0 = passStringToWasm0(storage_dir, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
1225
1312
  const len0 = WASM_VECTOR_LEN;
1226
- const ret = wasm.connectWithSigner(config, signer, ptr0, len0);
1313
+ const ret = wasm.connectWithSigner(config, breez_signer, spark_signer, ptr0, len0);
1227
1314
  return ret;
1228
1315
  }
1229
1316
 
1230
1317
  /**
1231
- * Creates a shareable `MySQL` connection pool from the given config.
1232
- * @param {MysqlStorageConfig} config
1233
- * @returns {MysqlConnectionPool}
1234
- */
1235
- export function createMysqlConnectionPool(config) {
1236
- const ret = wasm.createMysqlConnectionPool(config);
1237
- if (ret[2]) {
1238
- throw takeFromExternrefTable0(ret[1]);
1239
- }
1240
- return MysqlConnectionPool.__wrap(ret[0]);
1241
- }
1242
-
1243
- /**
1244
- * Creates a shareable Postgres connection pool from the given config.
1245
- * @param {PostgresStorageConfig} config
1246
- * @returns {PostgresConnectionPool}
1318
+ * Builds the Turnkey-backed signers from `config`, then pass
1319
+ * `signers.breezSigner` and `signers.sparkSigner` to `connectWithSigner`,
1320
+ * exactly as with any other external signer.
1321
+ * @param {TurnkeyConfig} config
1322
+ * @returns {Promise<ExternalSigners>}
1247
1323
  */
1248
- export function createPostgresConnectionPool(config) {
1249
- const ret = wasm.createPostgresConnectionPool(config);
1250
- if (ret[2]) {
1251
- throw takeFromExternrefTable0(ret[1]);
1252
- }
1253
- return PostgresConnectionPool.__wrap(ret[0]);
1324
+ export function createTurnkeySigner(config) {
1325
+ const ret = wasm.createTurnkeySigner(config);
1326
+ return ret;
1254
1327
  }
1255
1328
 
1256
1329
  /**
@@ -1263,22 +1336,26 @@ export function defaultConfig(network) {
1263
1336
  }
1264
1337
 
1265
1338
  /**
1339
+ * Creates the default external signers from a mnemonic phrase.
1340
+ *
1341
+ * Key derivation matches the seed-based connect path: an SDK built either
1342
+ * way from the same mnemonic is the same wallet.
1266
1343
  * @param {string} mnemonic
1267
1344
  * @param {string | null | undefined} passphrase
1268
1345
  * @param {Network} network
1269
- * @param {KeySetConfig | null} [key_set_config]
1270
- * @returns {DefaultSigner}
1346
+ * @param {number | null} [account_number]
1347
+ * @returns {ExternalSigners}
1271
1348
  */
1272
- export function defaultExternalSigner(mnemonic, passphrase, network, key_set_config) {
1349
+ export function defaultExternalSigners(mnemonic, passphrase, network, account_number) {
1273
1350
  const ptr0 = passStringToWasm0(mnemonic, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
1274
1351
  const len0 = WASM_VECTOR_LEN;
1275
1352
  var ptr1 = isLikeNone(passphrase) ? 0 : passStringToWasm0(passphrase, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
1276
1353
  var len1 = WASM_VECTOR_LEN;
1277
- const ret = wasm.defaultExternalSigner(ptr0, len0, ptr1, len1, network, isLikeNone(key_set_config) ? 0 : addToExternrefTable0(key_set_config));
1354
+ const ret = wasm.defaultExternalSigners(ptr0, len0, ptr1, len1, network, isLikeNone(account_number) ? Number.MAX_SAFE_INTEGER : (account_number) >>> 0);
1278
1355
  if (ret[2]) {
1279
1356
  throw takeFromExternrefTable0(ret[1]);
1280
1357
  }
1281
- return DefaultSigner.__wrap(ret[0]);
1358
+ return ExternalSigners.__wrap(ret[0]);
1282
1359
  }
1283
1360
 
1284
1361
  /**
@@ -1326,9 +1403,19 @@ export function defaultServerConfig(network) {
1326
1403
  }
1327
1404
 
1328
1405
  /**
1329
- * Creates a default external signer from a mnemonic phrase.
1330
- *
1331
- * This creates a signer that can be used with `connectWithSigner` or `SdkBuilder.newWithSigner`.
1406
+ * File-based storage rooted at `storageDir` IndexedDB in the browser,
1407
+ * SQLite under Node.js.
1408
+ * @param {string} storage_dir
1409
+ * @returns {WasmStorageConfig}
1410
+ */
1411
+ export function defaultStorage(storage_dir) {
1412
+ const ptr0 = passStringToWasm0(storage_dir, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
1413
+ const len0 = WASM_VECTOR_LEN;
1414
+ const ret = wasm.defaultStorage(ptr0, len0);
1415
+ return WasmStorageConfig.__wrap(ret);
1416
+ }
1417
+
1418
+ /**
1332
1419
  * @returns {Promise<SparkStatus>}
1333
1420
  */
1334
1421
  export function getSparkStatus() {
@@ -1348,6 +1435,16 @@ export function initLogging(logger, filter) {
1348
1435
  return ret;
1349
1436
  }
1350
1437
 
1438
+ /**
1439
+ * `MySQL`-backed storage built from `config`.
1440
+ * @param {MysqlStorageConfig} config
1441
+ * @returns {WasmStorageConfig}
1442
+ */
1443
+ export function mysqlStorage(config) {
1444
+ const ret = wasm.mysqlStorage(config);
1445
+ return WasmStorageConfig.__wrap(ret);
1446
+ }
1447
+
1351
1448
  /**
1352
1449
  * Constructs a shareable REST-based Bitcoin chain service.
1353
1450
  *
@@ -1379,6 +1476,16 @@ export function newSharedSdkContext(config) {
1379
1476
  return ret;
1380
1477
  }
1381
1478
 
1479
+ /**
1480
+ * `PostgreSQL`-backed storage built from `config`.
1481
+ * @param {PostgresStorageConfig} config
1482
+ * @returns {WasmStorageConfig}
1483
+ */
1484
+ export function postgresStorage(config) {
1485
+ const ret = wasm.postgresStorage(config);
1486
+ return WasmStorageConfig.__wrap(ret);
1487
+ }
1488
+
1382
1489
  /**
1383
1490
  * Entry point invoked by JavaScript in a worker.
1384
1491
  * @param {number} ptr
@@ -1517,13 +1624,19 @@ export function __wbg_addLeaves_96b8c0f05f6b2a00() { return handleError(function
1517
1624
  const ret = arg0.addLeaves(arg1);
1518
1625
  return ret;
1519
1626
  }, arguments); }
1520
- export function __wbg_aggregateFrost_8eb928d3bf25ad91() { return handleError(function (arg0, arg1) {
1521
- const ret = arg0.aggregateFrost(arg1);
1627
+ export function __wbg_afterSend_465a6d26048f7342() { return handleError(function (arg0, arg1, arg2) {
1628
+ var v0 = getArrayJsValueFromWasm0(arg1, arg2).slice();
1629
+ wasm.__wbindgen_free(arg1, arg2 * 4, 4);
1630
+ const ret = arg0.afterSend(v0);
1522
1631
  return ret;
1523
1632
  }, arguments); }
1524
1633
  export function __wbg_append_8df396311184f750() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
1525
1634
  arg0.append(getStringFromWasm0(arg1, arg2), getStringFromWasm0(arg3, arg4));
1526
1635
  }, arguments); }
1636
+ export function __wbg_applyPaymentUpdate_8526d773e5ac8314() { return handleError(function (arg0, arg1) {
1637
+ const ret = arg0.applyPaymentUpdate(arg1);
1638
+ return ret;
1639
+ }, arguments); }
1527
1640
  export function __wbg_arrayBuffer_87e3ac06d961f7a0() { return handleError(function (arg0) {
1528
1641
  const ret = arg0.arrayBuffer();
1529
1642
  return ret;
@@ -1647,8 +1760,8 @@ export function __wbg_createMysqlPool_8927bff3a28fcef9() { return handleError(fu
1647
1760
  const ret = createMysqlPool(arg0);
1648
1761
  return ret;
1649
1762
  }, arguments); }
1650
- export function __wbg_createMysqlSessionManagerWithPool_81f4147900a5a954() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
1651
- const ret = createMysqlSessionManagerWithPool(arg0, getArrayU8FromWasm0(arg1, arg2), arg3, arg4 !== 0);
1763
+ export function __wbg_createMysqlSessionStoreWithPool_52192c9b2932ff7c() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
1764
+ const ret = createMysqlSessionStoreWithPool(arg0, getArrayU8FromWasm0(arg1, arg2), arg3, arg4 !== 0);
1652
1765
  return ret;
1653
1766
  }, arguments); }
1654
1767
  export function __wbg_createMysqlStorageWithPool_22d23b0d068eae47() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
@@ -1663,12 +1776,16 @@ export function __wbg_createMysqlTreeStoreWithPool_4c6bcff518c7f9c4() { return h
1663
1776
  const ret = createMysqlTreeStoreWithPool(arg0, getArrayU8FromWasm0(arg1, arg2), arg3, arg4, arg5 !== 0);
1664
1777
  return ret;
1665
1778
  }, arguments); }
1779
+ export function __wbg_createPasskey_5ceae054474c582a() { return handleError(function (arg0, arg1) {
1780
+ const ret = arg0.createPasskey(arg1);
1781
+ return ret;
1782
+ }, arguments); }
1666
1783
  export function __wbg_createPostgresPool_3c396c7ab2f0eab2() { return handleError(function (arg0) {
1667
1784
  const ret = createPostgresPool(arg0);
1668
1785
  return ret;
1669
1786
  }, arguments); }
1670
- export function __wbg_createPostgresSessionManagerWithPool_989bf80d96829c18() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
1671
- const ret = createPostgresSessionManagerWithPool(arg0, getArrayU8FromWasm0(arg1, arg2), arg3, arg4 !== 0);
1787
+ export function __wbg_createPostgresSessionStoreWithPool_dd76c7c3517d7bd0() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
1788
+ const ret = createPostgresSessionStoreWithPool(arg0, getArrayU8FromWasm0(arg1, arg2), arg3, arg4 !== 0);
1672
1789
  return ret;
1673
1790
  }, arguments); }
1674
1791
  export function __wbg_createPostgresStorageWithPool_9408116e32ab58f8() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
@@ -1691,6 +1808,20 @@ export function __wbg_data_4a14fad4c5f216c4(arg0) {
1691
1808
  const ret = arg0.data;
1692
1809
  return ret;
1693
1810
  }
1811
+ export function __wbg_decryptEcies_ebe426814020926b() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
1812
+ let deferred1_0;
1813
+ let deferred1_1;
1814
+ try {
1815
+ var v0 = getArrayU8FromWasm0(arg1, arg2).slice();
1816
+ wasm.__wbindgen_free(arg1, arg2 * 1, 1);
1817
+ deferred1_0 = arg3;
1818
+ deferred1_1 = arg4;
1819
+ const ret = arg0.decryptEcies(v0, getStringFromWasm0(arg3, arg4));
1820
+ return ret;
1821
+ } finally {
1822
+ wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
1823
+ }
1824
+ }, arguments); }
1694
1825
  export function __wbg_deleteCachedItem_b8fbe3ebea21ed7e() { return handleError(function (arg0, arg1, arg2) {
1695
1826
  let deferred0_0;
1696
1827
  let deferred0_1;
@@ -1744,19 +1875,7 @@ export function __wbg_deleteRequest_597243024c6ce08c() { return handleError(func
1744
1875
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
1745
1876
  }
1746
1877
  }, arguments); }
1747
- export function __wbg_derivePrfSeed_7a4ec7d929c9bcca() { return handleError(function (arg0, arg1, arg2) {
1748
- let deferred0_0;
1749
- let deferred0_1;
1750
- try {
1751
- deferred0_0 = arg1;
1752
- deferred0_1 = arg2;
1753
- const ret = arg0.derivePrfSeed(getStringFromWasm0(arg1, arg2));
1754
- return ret;
1755
- } finally {
1756
- wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
1757
- }
1758
- }, arguments); }
1759
- export function __wbg_derivePublicKey_bab57284cd981e9a() { return handleError(function (arg0, arg1, arg2) {
1878
+ export function __wbg_derivePublicKey_1bc53f60dc792488() { return handleError(function (arg0, arg1, arg2) {
1760
1879
  let deferred0_0;
1761
1880
  let deferred0_1;
1762
1881
  try {
@@ -1768,25 +1887,15 @@ export function __wbg_derivePublicKey_bab57284cd981e9a() { return handleError(fu
1768
1887
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
1769
1888
  }
1770
1889
  }, arguments); }
1890
+ export function __wbg_deriveSeeds_5c331613e2894c56() { return handleError(function (arg0, arg1, arg2) {
1891
+ const ret = arg0.deriveSeeds(arg1, arg2);
1892
+ return ret;
1893
+ }, arguments); }
1771
1894
  export function __wbg_done_b1afd6201ac045e0(arg0) {
1772
1895
  const ret = arg0.done;
1773
1896
  return ret;
1774
1897
  }
1775
- export function __wbg_eciesDecrypt_986d793295625dc9() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
1776
- let deferred1_0;
1777
- let deferred1_1;
1778
- try {
1779
- var v0 = getArrayU8FromWasm0(arg1, arg2).slice();
1780
- wasm.__wbindgen_free(arg1, arg2 * 1, 1);
1781
- deferred1_0 = arg3;
1782
- deferred1_1 = arg4;
1783
- const ret = arg0.eciesDecrypt(v0, getStringFromWasm0(arg3, arg4));
1784
- return ret;
1785
- } finally {
1786
- wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
1787
- }
1788
- }, arguments); }
1789
- export function __wbg_eciesEncrypt_95486f45d5d74f6a() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
1898
+ export function __wbg_encryptEcies_6a990da1c19d1f7c() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
1790
1899
  let deferred1_0;
1791
1900
  let deferred1_1;
1792
1901
  try {
@@ -1794,16 +1903,12 @@ export function __wbg_eciesEncrypt_95486f45d5d74f6a() { return handleError(funct
1794
1903
  wasm.__wbindgen_free(arg1, arg2 * 1, 1);
1795
1904
  deferred1_0 = arg3;
1796
1905
  deferred1_1 = arg4;
1797
- const ret = arg0.eciesEncrypt(v0, getStringFromWasm0(arg3, arg4));
1906
+ const ret = arg0.encryptEcies(v0, getStringFromWasm0(arg3, arg4));
1798
1907
  return ret;
1799
1908
  } finally {
1800
1909
  wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
1801
1910
  }
1802
1911
  }, arguments); }
1803
- export function __wbg_encryptPrivateKeyForReceiver_a5414ece502e2eec() { return handleError(function (arg0, arg1, arg2) {
1804
- const ret = arg0.encryptPrivateKeyForReceiver(arg1, arg2);
1805
- return ret;
1806
- }, arguments); }
1807
1912
  export function __wbg_enqueue_6c7cd543c0f3828e() { return handleError(function (arg0, arg1) {
1808
1913
  arg0.enqueue(arg1);
1809
1914
  }, arguments); }
@@ -1814,6 +1919,10 @@ export function __wbg_entries_bb9843ba73dc70d6(arg0) {
1814
1919
  export function __wbg_error_145dadf4216d70bc(arg0, arg1) {
1815
1920
  console.error(getStringFromWasm0(arg0, arg1));
1816
1921
  }
1922
+ export function __wbg_externalsigners_new(arg0) {
1923
+ const ret = ExternalSigners.__wrap(arg0);
1924
+ return ret;
1925
+ }
1817
1926
  export function __wbg_fetchFiatCurrencies_8afa0468f01bf013() { return handleError(function (arg0) {
1818
1927
  const ret = arg0.fetchFiatCurrencies();
1819
1928
  return ret;
@@ -1862,14 +1971,10 @@ export function __wbg_finalizeReservation_aa324ddf4b195930() { return handleErro
1862
1971
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
1863
1972
  }
1864
1973
  }, arguments); }
1865
- export function __wbg_generateFrostSigningCommitments_1e8b83b2bed675c9() { return handleError(function (arg0) {
1866
- const ret = arg0.generateFrostSigningCommitments();
1974
+ export function __wbg_from_ff141b1e4c69b979(arg0) {
1975
+ const ret = Array.from(arg0);
1867
1976
  return ret;
1868
- }, arguments); }
1869
- export function __wbg_generateRandomSecret_432432761a2594b7() { return handleError(function (arg0) {
1870
- const ret = arg0.generateRandomSecret();
1871
- return ret;
1872
- }, arguments); }
1977
+ }
1873
1978
  export function __wbg_getAddressUtxos_9526b6d8078b867e() { return handleError(function (arg0, arg1, arg2) {
1874
1979
  let deferred0_0;
1875
1980
  let deferred0_1;
@@ -1910,6 +2015,10 @@ export function __wbg_getContact_35b5c6f2fa25cf9e() { return handleError(functio
1910
2015
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
1911
2016
  }
1912
2017
  }, arguments); }
2018
+ export function __wbg_getIdentityPublicKey_c6fcd87d66ed6927() { return handleError(function (arg0) {
2019
+ const ret = arg0.getIdentityPublicKey();
2020
+ return ret;
2021
+ }, arguments); }
1913
2022
  export function __wbg_getLeaves_5259dc2b9de80ff0() { return handleError(function (arg0) {
1914
2023
  const ret = arg0.getLeaves();
1915
2024
  return ret;
@@ -1944,12 +2053,8 @@ export function __wbg_getPaymentsByParentIds_7ab066452766ae6d() { return handleE
1944
2053
  const ret = arg0.getPaymentsByParentIds(v0);
1945
2054
  return ret;
1946
2055
  }, arguments); }
1947
- export function __wbg_getPublicKeyForNode_1c1b34ec571148c2() { return handleError(function (arg0, arg1) {
1948
- const ret = arg0.getPublicKeyForNode(arg1);
1949
- return ret;
1950
- }, arguments); }
1951
- export function __wbg_getPublicKeyFromSecretSource_cecb0b3d2ce521bd() { return handleError(function (arg0, arg1) {
1952
- const ret = arg0.getPublicKeyFromSecretSource(arg1);
2056
+ export function __wbg_getPublicKeyForLeaf_9826724c9b0c3963() { return handleError(function (arg0, arg1) {
2057
+ const ret = arg0.getPublicKeyForLeaf(arg1);
1953
2058
  return ret;
1954
2059
  }, arguments); }
1955
2060
  export function __wbg_getRandomValues_c44a50d8cfdaebeb() { return handleError(function (arg0, arg1) {
@@ -1974,7 +2079,7 @@ export function __wbg_getRequest_9153d27d6c51b5c7() { return handleError(functio
1974
2079
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
1975
2080
  }
1976
2081
  }, arguments); }
1977
- export function __wbg_getSession_05b1be4bb146adcf() { return handleError(function (arg0, arg1, arg2) {
2082
+ export function __wbg_getSession_95998cc236a30653() { return handleError(function (arg0, arg1, arg2) {
1978
2083
  let deferred0_0;
1979
2084
  let deferred0_1;
1980
2085
  try {
@@ -1986,18 +2091,10 @@ export function __wbg_getSession_05b1be4bb146adcf() { return handleError(functio
1986
2091
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
1987
2092
  }
1988
2093
  }, arguments); }
1989
- export function __wbg_getStaticDepositPrivateKey_82943f7a0fe1208d() { return handleError(function (arg0, arg1) {
1990
- const ret = arg0.getStaticDepositPrivateKey(arg1 >>> 0);
1991
- return ret;
1992
- }, arguments); }
1993
- export function __wbg_getStaticDepositPublicKey_8424ddc7bb238008() { return handleError(function (arg0, arg1) {
2094
+ export function __wbg_getStaticDepositPublicKey_9c7c893612c4c53f() { return handleError(function (arg0, arg1) {
1994
2095
  const ret = arg0.getStaticDepositPublicKey(arg1 >>> 0);
1995
2096
  return ret;
1996
2097
  }, arguments); }
1997
- export function __wbg_getStaticDepositSecretSource_86007c41c79d2bea() { return handleError(function (arg0, arg1) {
1998
- const ret = arg0.getStaticDepositSecretSource(arg1 >>> 0);
1999
- return ret;
2000
- }, arguments); }
2001
2098
  export function __wbg_getTokenBalances_b788cda26e92f342() { return handleError(function (arg0) {
2002
2099
  const ret = arg0.getTokenBalances();
2003
2100
  return ret;
@@ -2030,6 +2127,10 @@ export function __wbg_getTransactionStatus_32c49e1985e35d63() { return handleErr
2030
2127
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
2031
2128
  }
2032
2129
  }, arguments); }
2130
+ export function __wbg_get_41476db20fef99a8() { return handleError(function (arg0, arg1) {
2131
+ const ret = Reflect.get(arg0, arg1);
2132
+ return ret;
2133
+ }, arguments); }
2033
2134
  export function __wbg_get_652f640b3b0b6e3e(arg0, arg1) {
2034
2135
  const ret = arg0[arg1 >>> 0];
2035
2136
  return ret;
@@ -2062,7 +2163,7 @@ export function __wbg_headers_de17f740bce997ae(arg0) {
2062
2163
  const ret = arg0.headers;
2063
2164
  return ret;
2064
2165
  }
2065
- export function __wbg_hmacSha256_44b56787dc85796b() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
2166
+ export function __wbg_hmacSha256_04164bea6bd3c7d4() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
2066
2167
  let deferred1_0;
2067
2168
  let deferred1_1;
2068
2169
  try {
@@ -2076,10 +2177,6 @@ export function __wbg_hmacSha256_44b56787dc85796b() { return handleError(functio
2076
2177
  wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
2077
2178
  }
2078
2179
  }, arguments); }
2079
- export function __wbg_identityPublicKey_157f9d906d49e5c4() { return handleError(function (arg0) {
2080
- const ret = arg0.identityPublicKey();
2081
- return ret;
2082
- }, arguments); }
2083
2180
  export function __wbg_insertContact_cc39397cb8e88ff8() { return handleError(function (arg0, arg1) {
2084
2181
  const ret = arg0.insertContact(arg1);
2085
2182
  return ret;
@@ -2096,10 +2193,6 @@ export function __wbg_insertPaymentMetadata_0ce664b21d71c9f8() { return handleEr
2096
2193
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
2097
2194
  }
2098
2195
  }, arguments); }
2099
- export function __wbg_insertPayment_830c37c6efef1f8a() { return handleError(function (arg0, arg1) {
2100
- const ret = arg0.insertPayment(arg1);
2101
- return ret;
2102
- }, arguments); }
2103
2196
  export function __wbg_instanceof_ArrayBuffer_eab9f28fbec23477(arg0) {
2104
2197
  let result;
2105
2198
  try {
@@ -2184,14 +2277,14 @@ export function __wbg_isArray_c6c6ef8308995bcf(arg0) {
2184
2277
  const ret = Array.isArray(arg0);
2185
2278
  return ret;
2186
2279
  }
2187
- export function __wbg_isPrfAvailable_f77f283e48e966e1() { return handleError(function (arg0) {
2188
- const ret = arg0.isPrfAvailable();
2189
- return ret;
2190
- }, arguments); }
2191
2280
  export function __wbg_isSafeInteger_3c56c421a5b4cce4(arg0) {
2192
2281
  const ret = Number.isSafeInteger(arg0);
2193
2282
  return ret;
2194
2283
  }
2284
+ export function __wbg_isSupported_0fab0220495a1089() { return handleError(function (arg0) {
2285
+ const ret = arg0.isSupported();
2286
+ return ret;
2287
+ }, arguments); }
2195
2288
  export function __wbg_iterator_9d68985a1d096fc2() {
2196
2289
  const ret = Symbol.iterator;
2197
2290
  return ret;
@@ -2392,6 +2485,30 @@ export function __wbg_postRequest_b7e02f7ec4d8b99b() { return handleError(functi
2392
2485
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
2393
2486
  }
2394
2487
  }, arguments); }
2488
+ export function __wbg_prepareClaim_1286899715876e7d() { return handleError(function (arg0, arg1) {
2489
+ const ret = arg0.prepareClaim(arg1);
2490
+ return ret;
2491
+ }, arguments); }
2492
+ export function __wbg_prepareLightningReceive_fe5b5a46a5d5d976() { return handleError(function (arg0, arg1) {
2493
+ const ret = arg0.prepareLightningReceive(arg1);
2494
+ return ret;
2495
+ }, arguments); }
2496
+ export function __wbg_prepareStaticDepositClaim_2aac4f9634448525() { return handleError(function (arg0, arg1) {
2497
+ const ret = arg0.prepareStaticDepositClaim(arg1);
2498
+ return ret;
2499
+ }, arguments); }
2500
+ export function __wbg_prepareStaticDeposit_66175a4078320749() { return handleError(function (arg0, arg1) {
2501
+ const ret = arg0.prepareStaticDeposit(arg1);
2502
+ return ret;
2503
+ }, arguments); }
2504
+ export function __wbg_prepareTokenTransaction_d2e097f1363077c0() { return handleError(function (arg0, arg1) {
2505
+ const ret = arg0.prepareTokenTransaction(arg1);
2506
+ return ret;
2507
+ }, arguments); }
2508
+ export function __wbg_prepareTransfer_f1fd01fccd18c85b() { return handleError(function (arg0, arg1) {
2509
+ const ret = arg0.prepareTransfer(arg1);
2510
+ return ret;
2511
+ }, arguments); }
2395
2512
  export function __wbg_process_44c7a14e11e9f69e(arg0) {
2396
2513
  const ret = arg0.process;
2397
2514
  return ret;
@@ -2399,6 +2516,10 @@ export function __wbg_process_44c7a14e11e9f69e(arg0) {
2399
2516
  export function __wbg_prototypesetcall_fd4050e806e1d519(arg0, arg1, arg2) {
2400
2517
  Uint8Array.prototype.set.call(getArrayU8FromWasm0(arg0, arg1), arg2);
2401
2518
  }
2519
+ export function __wbg_push_60a5366c0bb22a7d(arg0, arg1) {
2520
+ const ret = arg0.push(arg1);
2521
+ return ret;
2522
+ }
2402
2523
  export function __wbg_queueMicrotask_40ac6ffc2848ba77(arg0) {
2403
2524
  queueMicrotask(arg0);
2404
2525
  }
@@ -2496,7 +2617,7 @@ export function __wbg_setLnurlMetadata_084b50d8b878f93f() { return handleError(f
2496
2617
  const ret = arg0.setLnurlMetadata(v0);
2497
2618
  return ret;
2498
2619
  }, arguments); }
2499
- export function __wbg_setSession_35cb471ae7537391() { return handleError(function (arg0, arg1, arg2, arg3) {
2620
+ export function __wbg_setSession_86d7fef1f452677c() { return handleError(function (arg0, arg1, arg2, arg3) {
2500
2621
  let deferred0_0;
2501
2622
  let deferred0_1;
2502
2623
  try {
@@ -2588,7 +2709,13 @@ export function __wbg_set_referrer_policy_5afdd37afd73c769(arg0, arg1) {
2588
2709
  export function __wbg_set_signal_8c5cf4c3b27bd8a8(arg0, arg1) {
2589
2710
  arg0.signal = arg1;
2590
2711
  }
2591
- export function __wbg_signEcdsaRecoverable_e1e9c5e2c8ec869f() { return handleError(function (arg0, arg1, arg2, arg3) {
2712
+ export function __wbg_signAuthenticationChallenge_e2ea9cf87c76a6de() { return handleError(function (arg0, arg1, arg2) {
2713
+ var v0 = getArrayU8FromWasm0(arg1, arg2).slice();
2714
+ wasm.__wbindgen_free(arg1, arg2 * 1, 1);
2715
+ const ret = arg0.signAuthenticationChallenge(v0);
2716
+ return ret;
2717
+ }, arguments); }
2718
+ export function __wbg_signEcdsaRecoverable_978c5526e66a433b() { return handleError(function (arg0, arg1, arg2, arg3) {
2592
2719
  let deferred0_0;
2593
2720
  let deferred0_1;
2594
2721
  try {
@@ -2600,7 +2727,7 @@ export function __wbg_signEcdsaRecoverable_e1e9c5e2c8ec869f() { return handleErr
2600
2727
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
2601
2728
  }
2602
2729
  }, arguments); }
2603
- export function __wbg_signEcdsa_99eb88e7d9907236() { return handleError(function (arg0, arg1, arg2, arg3) {
2730
+ export function __wbg_signEcdsa_1947a1a2c8f39a16() { return handleError(function (arg0, arg1, arg2, arg3) {
2604
2731
  let deferred0_0;
2605
2732
  let deferred0_1;
2606
2733
  try {
@@ -2612,11 +2739,11 @@ export function __wbg_signEcdsa_99eb88e7d9907236() { return handleError(function
2612
2739
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
2613
2740
  }
2614
2741
  }, arguments); }
2615
- export function __wbg_signFrost_df3d96ac20619b95() { return handleError(function (arg0, arg1) {
2742
+ export function __wbg_signFrost_08951e01d00d4b1c() { return handleError(function (arg0, arg1) {
2616
2743
  const ret = arg0.signFrost(arg1);
2617
2744
  return ret;
2618
2745
  }, arguments); }
2619
- export function __wbg_signHashSchnorr_33c182cb4c2323d5() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
2746
+ export function __wbg_signHashSchnorr_fc8afda9a7ee021a() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
2620
2747
  let deferred1_0;
2621
2748
  let deferred1_1;
2622
2749
  try {
@@ -2630,12 +2757,26 @@ export function __wbg_signHashSchnorr_33c182cb4c2323d5() { return handleError(fu
2630
2757
  wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
2631
2758
  }
2632
2759
  }, arguments); }
2760
+ export function __wbg_signMessage_80ec0b0dfc7f00ee() { return handleError(function (arg0, arg1, arg2) {
2761
+ var v0 = getArrayU8FromWasm0(arg1, arg2).slice();
2762
+ wasm.__wbindgen_free(arg1, arg2 * 1, 1);
2763
+ const ret = arg0.signMessage(v0);
2764
+ return ret;
2765
+ }, arguments); }
2766
+ export function __wbg_signSparkInvoice_cca6c7f35b5e85d2() { return handleError(function (arg0, arg1) {
2767
+ const ret = arg0.signSparkInvoice(arg1);
2768
+ return ret;
2769
+ }, arguments); }
2770
+ export function __wbg_signStaticDepositRefund_3a6fb4e71a15bebd() { return handleError(function (arg0, arg1) {
2771
+ const ret = arg0.signStaticDepositRefund(arg1);
2772
+ return ret;
2773
+ }, arguments); }
2633
2774
  export function __wbg_signal_4643ce883b92b553(arg0) {
2634
2775
  const ret = arg0.signal;
2635
2776
  return ret;
2636
2777
  }
2637
- export function __wbg_splitSecretWithProofs_c9d51158a14af659() { return handleError(function (arg0, arg1, arg2, arg3) {
2638
- const ret = arg0.splitSecretWithProofs(arg1, arg2 >>> 0, arg3 >>> 0);
2778
+ export function __wbg_startStaticDepositRefund_5b591bbea22aa0d2() { return handleError(function (arg0, arg1) {
2779
+ const ret = arg0.startStaticDepositRefund(arg1);
2639
2780
  return ret;
2640
2781
  }, arguments); }
2641
2782
  export function __wbg_static_accessor_GLOBAL_THIS_1c7f1bd6c6941fdb() {
@@ -2666,10 +2807,6 @@ export function __wbg_subarray_fbe3cef290e1fa43(arg0, arg1, arg2) {
2666
2807
  const ret = arg0.subarray(arg1 >>> 0, arg2 >>> 0);
2667
2808
  return ret;
2668
2809
  }
2669
- export function __wbg_subtractPrivateKeys_c66265ac85e781b7() { return handleError(function (arg0, arg1, arg2) {
2670
- const ret = arg0.subtractPrivateKeys(arg1, arg2);
2671
- return ret;
2672
- }, arguments); }
2673
2810
  export function __wbg_syncAddOutgoingChange_69db2a1430cbd55a() { return handleError(function (arg0, arg1) {
2674
2811
  const ret = arg0.syncAddOutgoingChange(arg1);
2675
2812
  return ret;
@@ -2806,48 +2943,48 @@ export function __wbg_wasmsdkcontext_new(arg0) {
2806
2943
  return ret;
2807
2944
  }
2808
2945
  export function __wbindgen_cast_0000000000000001(arg0, arg1) {
2809
- // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx: 16, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
2810
- const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__h013a98c02f3b4b21);
2946
+ // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx: 17, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
2947
+ const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__h4bd7a023e323559c);
2811
2948
  return ret;
2812
2949
  }
2813
2950
  export function __wbindgen_cast_0000000000000002(arg0, arg1) {
2814
- // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx: 403, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
2951
+ // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx: 348, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
2815
2952
  const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__h4819aba3eed2db57);
2816
2953
  return ret;
2817
2954
  }
2818
2955
  export function __wbindgen_cast_0000000000000003(arg0, arg1) {
2819
- // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("CloseEvent")], shim_idx: 403, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
2956
+ // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("CloseEvent")], shim_idx: 348, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
2820
2957
  const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__h4819aba3eed2db57_2);
2821
2958
  return ret;
2822
2959
  }
2823
2960
  export function __wbindgen_cast_0000000000000004(arg0, arg1) {
2824
- // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("MessageEvent")], shim_idx: 403, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
2961
+ // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("MessageEvent")], shim_idx: 348, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
2825
2962
  const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__h4819aba3eed2db57_3);
2826
2963
  return ret;
2827
2964
  }
2828
2965
  export function __wbindgen_cast_0000000000000005(arg0, arg1) {
2829
- // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("SessionManager")], shim_idx: 16, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
2830
- const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__h013a98c02f3b4b21_4);
2966
+ // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("SessionStore")], shim_idx: 17, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
2967
+ const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__h4bd7a023e323559c_4);
2831
2968
  return ret;
2832
2969
  }
2833
2970
  export function __wbindgen_cast_0000000000000006(arg0, arg1) {
2834
- // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("Storage")], shim_idx: 16, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
2835
- const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__h013a98c02f3b4b21_5);
2971
+ // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("Storage")], shim_idx: 17, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
2972
+ const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__h4bd7a023e323559c_5);
2836
2973
  return ret;
2837
2974
  }
2838
2975
  export function __wbindgen_cast_0000000000000007(arg0, arg1) {
2839
- // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("TokenStore")], shim_idx: 16, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
2840
- const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__h013a98c02f3b4b21_6);
2976
+ // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("TokenStore")], shim_idx: 17, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
2977
+ const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__h4bd7a023e323559c_6);
2841
2978
  return ret;
2842
2979
  }
2843
2980
  export function __wbindgen_cast_0000000000000008(arg0, arg1) {
2844
- // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("TreeStore")], shim_idx: 16, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
2845
- const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__h013a98c02f3b4b21_7);
2981
+ // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("TreeStore")], shim_idx: 17, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
2982
+ const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__h4bd7a023e323559c_7);
2846
2983
  return ret;
2847
2984
  }
2848
2985
  export function __wbindgen_cast_0000000000000009(arg0, arg1) {
2849
- // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [], shim_idx: 408, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
2850
- const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__h124479769cd429fd);
2986
+ // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [], shim_idx: 353, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
2987
+ const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__h484cd36e13f37bd7);
2851
2988
  return ret;
2852
2989
  }
2853
2990
  export function __wbindgen_cast_000000000000000a(arg0) {
@@ -2890,7 +3027,7 @@ export function __wbindgen_cast_0000000000000010(arg0, arg1) {
2890
3027
  export function __wbindgen_cast_0000000000000011(arg0, arg1) {
2891
3028
  var v0 = getArrayJsValueFromWasm0(arg0, arg1).slice();
2892
3029
  wasm.__wbindgen_free(arg0, arg1 * 4, 4);
2893
- // Cast intrinsic for `Vector(NamedExternref("ExternalVerifiableSecretShare")) -> Externref`.
3030
+ // Cast intrinsic for `Vector(NamedExternref("ExternalFrostShareResult")) -> Externref`.
2894
3031
  const ret = v0;
2895
3032
  return ret;
2896
3033
  }
@@ -2924,8 +3061,8 @@ export function __wbindgen_init_externref_table() {
2924
3061
  table.set(offset + 2, true);
2925
3062
  table.set(offset + 3, false);
2926
3063
  }
2927
- function wasm_bindgen__convert__closures_____invoke__h124479769cd429fd(arg0, arg1) {
2928
- wasm.wasm_bindgen__convert__closures_____invoke__h124479769cd429fd(arg0, arg1);
3064
+ function wasm_bindgen__convert__closures_____invoke__h484cd36e13f37bd7(arg0, arg1) {
3065
+ wasm.wasm_bindgen__convert__closures_____invoke__h484cd36e13f37bd7(arg0, arg1);
2929
3066
  }
2930
3067
 
2931
3068
  function wasm_bindgen__convert__closures_____invoke__h4819aba3eed2db57(arg0, arg1, arg2) {
@@ -2940,36 +3077,36 @@ function wasm_bindgen__convert__closures_____invoke__h4819aba3eed2db57_3(arg0, a
2940
3077
  wasm.wasm_bindgen__convert__closures_____invoke__h4819aba3eed2db57_3(arg0, arg1, arg2);
2941
3078
  }
2942
3079
 
2943
- function wasm_bindgen__convert__closures_____invoke__h013a98c02f3b4b21(arg0, arg1, arg2) {
2944
- const ret = wasm.wasm_bindgen__convert__closures_____invoke__h013a98c02f3b4b21(arg0, arg1, arg2);
3080
+ function wasm_bindgen__convert__closures_____invoke__h4bd7a023e323559c(arg0, arg1, arg2) {
3081
+ const ret = wasm.wasm_bindgen__convert__closures_____invoke__h4bd7a023e323559c(arg0, arg1, arg2);
2945
3082
  if (ret[1]) {
2946
3083
  throw takeFromExternrefTable0(ret[0]);
2947
3084
  }
2948
3085
  }
2949
3086
 
2950
- function wasm_bindgen__convert__closures_____invoke__h013a98c02f3b4b21_4(arg0, arg1, arg2) {
2951
- const ret = wasm.wasm_bindgen__convert__closures_____invoke__h013a98c02f3b4b21_4(arg0, arg1, arg2);
3087
+ function wasm_bindgen__convert__closures_____invoke__h4bd7a023e323559c_4(arg0, arg1, arg2) {
3088
+ const ret = wasm.wasm_bindgen__convert__closures_____invoke__h4bd7a023e323559c_4(arg0, arg1, arg2);
2952
3089
  if (ret[1]) {
2953
3090
  throw takeFromExternrefTable0(ret[0]);
2954
3091
  }
2955
3092
  }
2956
3093
 
2957
- function wasm_bindgen__convert__closures_____invoke__h013a98c02f3b4b21_5(arg0, arg1, arg2) {
2958
- const ret = wasm.wasm_bindgen__convert__closures_____invoke__h013a98c02f3b4b21_5(arg0, arg1, arg2);
3094
+ function wasm_bindgen__convert__closures_____invoke__h4bd7a023e323559c_5(arg0, arg1, arg2) {
3095
+ const ret = wasm.wasm_bindgen__convert__closures_____invoke__h4bd7a023e323559c_5(arg0, arg1, arg2);
2959
3096
  if (ret[1]) {
2960
3097
  throw takeFromExternrefTable0(ret[0]);
2961
3098
  }
2962
3099
  }
2963
3100
 
2964
- function wasm_bindgen__convert__closures_____invoke__h013a98c02f3b4b21_6(arg0, arg1, arg2) {
2965
- const ret = wasm.wasm_bindgen__convert__closures_____invoke__h013a98c02f3b4b21_6(arg0, arg1, arg2);
3101
+ function wasm_bindgen__convert__closures_____invoke__h4bd7a023e323559c_6(arg0, arg1, arg2) {
3102
+ const ret = wasm.wasm_bindgen__convert__closures_____invoke__h4bd7a023e323559c_6(arg0, arg1, arg2);
2966
3103
  if (ret[1]) {
2967
3104
  throw takeFromExternrefTable0(ret[0]);
2968
3105
  }
2969
3106
  }
2970
3107
 
2971
- function wasm_bindgen__convert__closures_____invoke__h013a98c02f3b4b21_7(arg0, arg1, arg2) {
2972
- const ret = wasm.wasm_bindgen__convert__closures_____invoke__h013a98c02f3b4b21_7(arg0, arg1, arg2);
3108
+ function wasm_bindgen__convert__closures_____invoke__h4bd7a023e323559c_7(arg0, arg1, arg2) {
3109
+ const ret = wasm.wasm_bindgen__convert__closures_____invoke__h4bd7a023e323559c_7(arg0, arg1, arg2);
2973
3110
  if (ret[1]) {
2974
3111
  throw takeFromExternrefTable0(ret[0]);
2975
3112
  }
@@ -3005,9 +3142,15 @@ const BitcoinChainServiceHandleFinalization = (typeof FinalizationRegistry === '
3005
3142
  const BreezSdkFinalization = (typeof FinalizationRegistry === 'undefined')
3006
3143
  ? { register: () => {}, unregister: () => {} }
3007
3144
  : new FinalizationRegistry(ptr => wasm.__wbg_breezsdk_free(ptr, 1));
3008
- const DefaultSignerFinalization = (typeof FinalizationRegistry === 'undefined')
3145
+ const ExternalBreezSignerHandleFinalization = (typeof FinalizationRegistry === 'undefined')
3146
+ ? { register: () => {}, unregister: () => {} }
3147
+ : new FinalizationRegistry(ptr => wasm.__wbg_externalbreezsignerhandle_free(ptr, 1));
3148
+ const ExternalSignersFinalization = (typeof FinalizationRegistry === 'undefined')
3149
+ ? { register: () => {}, unregister: () => {} }
3150
+ : new FinalizationRegistry(ptr => wasm.__wbg_externalsigners_free(ptr, 1));
3151
+ const ExternalSparkSignerHandleFinalization = (typeof FinalizationRegistry === 'undefined')
3009
3152
  ? { register: () => {}, unregister: () => {} }
3010
- : new FinalizationRegistry(ptr => wasm.__wbg_defaultsigner_free(ptr, 1));
3153
+ : new FinalizationRegistry(ptr => wasm.__wbg_externalsparksignerhandle_free(ptr, 1));
3011
3154
  const IntoUnderlyingByteSourceFinalization = (typeof FinalizationRegistry === 'undefined')
3012
3155
  ? { register: () => {}, unregister: () => {} }
3013
3156
  : new FinalizationRegistry(ptr => wasm.__wbg_intounderlyingbytesource_free(ptr, 1));
@@ -3017,15 +3160,12 @@ const IntoUnderlyingSinkFinalization = (typeof FinalizationRegistry === 'undefin
3017
3160
  const IntoUnderlyingSourceFinalization = (typeof FinalizationRegistry === 'undefined')
3018
3161
  ? { register: () => {}, unregister: () => {} }
3019
3162
  : new FinalizationRegistry(ptr => wasm.__wbg_intounderlyingsource_free(ptr, 1));
3020
- const MysqlConnectionPoolFinalization = (typeof FinalizationRegistry === 'undefined')
3163
+ const PasskeyClientFinalization = (typeof FinalizationRegistry === 'undefined')
3021
3164
  ? { register: () => {}, unregister: () => {} }
3022
- : new FinalizationRegistry(ptr => wasm.__wbg_mysqlconnectionpool_free(ptr, 1));
3023
- const PasskeyFinalization = (typeof FinalizationRegistry === 'undefined')
3165
+ : new FinalizationRegistry(ptr => wasm.__wbg_passkeyclient_free(ptr, 1));
3166
+ const PasskeyLabelsFinalization = (typeof FinalizationRegistry === 'undefined')
3024
3167
  ? { register: () => {}, unregister: () => {} }
3025
- : new FinalizationRegistry(ptr => wasm.__wbg_passkey_free(ptr, 1));
3026
- const PostgresConnectionPoolFinalization = (typeof FinalizationRegistry === 'undefined')
3027
- ? { register: () => {}, unregister: () => {} }
3028
- : new FinalizationRegistry(ptr => wasm.__wbg_postgresconnectionpool_free(ptr, 1));
3168
+ : new FinalizationRegistry(ptr => wasm.__wbg_passkeylabels_free(ptr, 1));
3029
3169
  const SdkBuilderFinalization = (typeof FinalizationRegistry === 'undefined')
3030
3170
  ? { register: () => {}, unregister: () => {} }
3031
3171
  : new FinalizationRegistry(ptr => wasm.__wbg_sdkbuilder_free(ptr, 1));
@@ -3035,6 +3175,9 @@ const TokenIssuerFinalization = (typeof FinalizationRegistry === 'undefined')
3035
3175
  const WasmSdkContextFinalization = (typeof FinalizationRegistry === 'undefined')
3036
3176
  ? { register: () => {}, unregister: () => {} }
3037
3177
  : new FinalizationRegistry(ptr => wasm.__wbg_wasmsdkcontext_free(ptr, 1));
3178
+ const WasmStorageConfigFinalization = (typeof FinalizationRegistry === 'undefined')
3179
+ ? { register: () => {}, unregister: () => {} }
3180
+ : new FinalizationRegistry(ptr => wasm.__wbg_wasmstorageconfig_free(ptr, 1));
3038
3181
 
3039
3182
  function addToExternrefTable0(obj) {
3040
3183
  const idx = wasm.__externref_table_alloc();
@@ -3201,6 +3344,16 @@ function passArray8ToWasm0(arg, malloc) {
3201
3344
  return ptr;
3202
3345
  }
3203
3346
 
3347
+ function passArrayJsValueToWasm0(array, malloc) {
3348
+ const ptr = malloc(array.length * 4, 4) >>> 0;
3349
+ for (let i = 0; i < array.length; i++) {
3350
+ const add = addToExternrefTable0(array[i]);
3351
+ getDataViewMemory0().setUint32(ptr + 4 * i, add, true);
3352
+ }
3353
+ WASM_VECTOR_LEN = array.length;
3354
+ return ptr;
3355
+ }
3356
+
3204
3357
  function passStringToWasm0(arg, malloc, realloc) {
3205
3358
  if (realloc === undefined) {
3206
3359
  const buf = cachedTextEncoder.encode(arg);