@breeztech/breez-sdk-spark 0.18.0-dev4 → 0.18.0

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.
Binary file
@@ -886,6 +886,13 @@ export interface ExternalSigningCommitments {
886
886
  binding: number[];
887
887
  }
888
888
 
889
+ export interface ExternalSigningSigner {
890
+ derivePublicKey(path: string): Promise<PublicKeyBytes>;
891
+ signEcdsa(message: MessageBytes, path: string): Promise<EcdsaSignatureBytes>;
892
+ signEcdsaRecoverable(message: MessageBytes, path: string): Promise<RecoverableEcdsaSignatureBytes>;
893
+ signHashSchnorr(hash: Uint8Array, path: string): Promise<SchnorrSignatureBytes>;
894
+ }
895
+
889
896
  export interface ExternalSparkSigner {
890
897
  getIdentityPublicKey(): Promise<PublicKeyBytes>;
891
898
  getPublicKeyForLeaf(leafId: ExternalTreeNodeId): Promise<PublicKeyBytes>;
@@ -1885,6 +1892,24 @@ export class ExternalSigners {
1885
1892
  readonly sparkSigner: ExternalSparkSignerHandle;
1886
1893
  }
1887
1894
 
1895
+ /**
1896
+ * A Rust-backed [`ExternalSigningSigner`] surfaced to JS as a signer object
1897
+ * that can be passed to `connectWithSigningOnlySigner` or
1898
+ * `SdkBuilder.newWithSigningOnlySigner`. Produced by
1899
+ * `createTurnkeySigningOnlySigner`.
1900
+ *
1901
+ * [`ExternalSigningSigner`]: breez_sdk_spark::signer::ExternalSigningSigner
1902
+ */
1903
+ export class ExternalSigningSignerHandle {
1904
+ private constructor();
1905
+ free(): void;
1906
+ [Symbol.dispose](): void;
1907
+ derivePublicKey(path: string): Promise<PublicKeyBytes>;
1908
+ signEcdsa(message: MessageBytes, path: string): Promise<EcdsaSignatureBytes>;
1909
+ signEcdsaRecoverable(message: MessageBytes, path: string): Promise<RecoverableEcdsaSignatureBytes>;
1910
+ signHashSchnorr(hash: Uint8Array, path: string): Promise<SchnorrSignatureBytes>;
1911
+ }
1912
+
1888
1913
  /**
1889
1914
  * A Rust-backed [`ExternalSparkSigner`] surfaced to JS as a signer object that
1890
1915
  * can be passed to `connectWithSigner` or `SdkBuilder.newWithSigner`. Produced
@@ -2004,6 +2029,13 @@ export class SdkBuilder {
2004
2029
  build(): Promise<BreezSdk>;
2005
2030
  static new(config: Config, seed: Seed): SdkBuilder;
2006
2031
  static newWithSigner(config: Config, breez_signer: ExternalBreezSigner, spark_signer: ExternalSparkSigner): SdkBuilder;
2032
+ /**
2033
+ * Creates a new `SdkBuilder` with a signing-only external signer, for a
2034
+ * signer that can't perform the SDK's local ECIES/HMAC operations. The SDK
2035
+ * keeps session tokens in plaintext and disables the features that rely on
2036
+ * ECIES/HMAC.
2037
+ */
2038
+ static newWithSigningOnlySigner(config: Config, breez_signer: ExternalSigningSigner, spark_signer: ExternalSparkSigner): SdkBuilder;
2007
2039
  withAccountNumber(account_number: number): SdkBuilder;
2008
2040
  withChainService(chain_service: BitcoinChainService): SdkBuilder;
2009
2041
  withDefaultStorage(storage_dir: string): Promise<SdkBuilder>;
@@ -2037,6 +2069,25 @@ export class SdkBuilder {
2037
2069
  withStorageBackend(config: WasmStorageConfig): SdkBuilder;
2038
2070
  }
2039
2071
 
2072
+ /**
2073
+ * The signing-only external signers for the SDK's signer-based connect.
2074
+ * Returned by `createTurnkeySigningOnlySigner`; pass both halves to
2075
+ * `connectWithSigningOnlySigner` or `SdkBuilder.newWithSigningOnlySigner`.
2076
+ */
2077
+ export class SigningOnlyExternalSigners {
2078
+ private constructor();
2079
+ free(): void;
2080
+ [Symbol.dispose](): void;
2081
+ /**
2082
+ * Signing-only external signer for non-Spark SDK signing.
2083
+ */
2084
+ readonly breezSigner: ExternalSigningSignerHandle;
2085
+ /**
2086
+ * External high-level Spark signer for the Spark wallet flows.
2087
+ */
2088
+ readonly sparkSigner: ExternalSparkSignerHandle;
2089
+ }
2090
+
2040
2091
  export class TokenIssuer {
2041
2092
  private constructor();
2042
2093
  free(): void;
@@ -2079,6 +2130,13 @@ export function connect(request: ConnectRequest): Promise<BreezSdk>;
2079
2130
 
2080
2131
  export function connectWithSigner(config: Config, breez_signer: ExternalBreezSigner, spark_signer: ExternalSparkSigner, storage_dir: string): Promise<BreezSdk>;
2081
2132
 
2133
+ /**
2134
+ * Connects using a signing-only external signer, for a signer that can't
2135
+ * perform the SDK's local ECIES/HMAC operations. The SDK keeps session tokens
2136
+ * in plaintext and disables the features that rely on ECIES/HMAC.
2137
+ */
2138
+ export function connectWithSigningOnlySigner(config: Config, breez_signer: ExternalSigningSigner, spark_signer: ExternalSparkSigner, storage_dir: string): Promise<BreezSdk>;
2139
+
2082
2140
  /**
2083
2141
  * Builds the Turnkey-backed signers from `config`, then pass
2084
2142
  * `signers.breezSigner` and `signers.sparkSigner` to `connectWithSigner`,
@@ -2086,6 +2144,14 @@ export function connectWithSigner(config: Config, breez_signer: ExternalBreezSig
2086
2144
  */
2087
2145
  export function createTurnkeySigner(config: TurnkeyConfig): Promise<ExternalSigners>;
2088
2146
 
2147
+ /**
2148
+ * Builds the signing-only Turnkey-backed signers from `config` (for a wallet
2149
+ * under a deny-export policy), then pass `signers.breezSigner` and
2150
+ * `signers.sparkSigner` to `connectWithSigningOnlySigner`. The Breez half
2151
+ * performs signing only and never exports a key.
2152
+ */
2153
+ export function createTurnkeySigningOnlySigner(config: TurnkeyConfig): Promise<SigningOnlyExternalSigners>;
2154
+
2089
2155
  export function defaultConfig(network: Network): Config;
2090
2156
 
2091
2157
  /**
@@ -5,5 +5,5 @@ import { __wbg_set_wasm } from "./breez_sdk_spark_wasm_bg.js";
5
5
  __wbg_set_wasm(wasm);
6
6
  wasm.__wbindgen_start();
7
7
  export {
8
- BitcoinChainServiceHandle, BreezSdk, ExternalBreezSignerHandle, ExternalSigners, ExternalSparkSignerHandle, IntoUnderlyingByteSource, IntoUnderlyingSink, IntoUnderlyingSource, PasskeyClient, PasskeyLabels, SdkBuilder, TokenIssuer, WasmSdkContext, WasmStorageConfig, connect, connectWithSigner, createTurnkeySigner, defaultConfig, defaultExternalSigners, defaultMysqlStorageConfig, defaultPostgresStorageConfig, defaultServerConfig, defaultStorage, getSparkStatus, initLogging, mysqlStorage, newRestChainService, newSharedSdkContext, postgresStorage, start, task_worker_entry_point
8
+ BitcoinChainServiceHandle, BreezSdk, ExternalBreezSignerHandle, ExternalSigners, ExternalSigningSignerHandle, ExternalSparkSignerHandle, IntoUnderlyingByteSource, IntoUnderlyingSink, IntoUnderlyingSource, PasskeyClient, PasskeyLabels, SdkBuilder, SigningOnlyExternalSigners, TokenIssuer, WasmSdkContext, WasmStorageConfig, connect, connectWithSigner, connectWithSigningOnlySigner, createTurnkeySigner, createTurnkeySigningOnlySigner, defaultConfig, defaultExternalSigners, defaultMysqlStorageConfig, defaultPostgresStorageConfig, defaultServerConfig, defaultStorage, getSparkStatus, initLogging, mysqlStorage, newRestChainService, newSharedSdkContext, postgresStorage, start, task_worker_entry_point
9
9
  } from "./breez_sdk_spark_wasm_bg.js";
@@ -610,6 +610,79 @@ export class ExternalSigners {
610
610
  }
611
611
  if (Symbol.dispose) ExternalSigners.prototype[Symbol.dispose] = ExternalSigners.prototype.free;
612
612
 
613
+ /**
614
+ * A Rust-backed [`ExternalSigningSigner`] surfaced to JS as a signer object
615
+ * that can be passed to `connectWithSigningOnlySigner` or
616
+ * `SdkBuilder.newWithSigningOnlySigner`. Produced by
617
+ * `createTurnkeySigningOnlySigner`.
618
+ *
619
+ * [`ExternalSigningSigner`]: breez_sdk_spark::signer::ExternalSigningSigner
620
+ */
621
+ export class ExternalSigningSignerHandle {
622
+ static __wrap(ptr) {
623
+ const obj = Object.create(ExternalSigningSignerHandle.prototype);
624
+ obj.__wbg_ptr = ptr;
625
+ ExternalSigningSignerHandleFinalization.register(obj, obj.__wbg_ptr, obj);
626
+ return obj;
627
+ }
628
+ __destroy_into_raw() {
629
+ const ptr = this.__wbg_ptr;
630
+ this.__wbg_ptr = 0;
631
+ ExternalSigningSignerHandleFinalization.unregister(this);
632
+ return ptr;
633
+ }
634
+ free() {
635
+ const ptr = this.__destroy_into_raw();
636
+ wasm.__wbg_externalsigningsignerhandle_free(ptr, 0);
637
+ }
638
+ /**
639
+ * @param {string} path
640
+ * @returns {Promise<PublicKeyBytes>}
641
+ */
642
+ derivePublicKey(path) {
643
+ const ptr0 = passStringToWasm0(path, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
644
+ const len0 = WASM_VECTOR_LEN;
645
+ const ret = wasm.externalsigningsignerhandle_derivePublicKey(this.__wbg_ptr, ptr0, len0);
646
+ return ret;
647
+ }
648
+ /**
649
+ * @param {MessageBytes} message
650
+ * @param {string} path
651
+ * @returns {Promise<EcdsaSignatureBytes>}
652
+ */
653
+ signEcdsa(message, path) {
654
+ const ptr0 = passStringToWasm0(path, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
655
+ const len0 = WASM_VECTOR_LEN;
656
+ const ret = wasm.externalsigningsignerhandle_signEcdsa(this.__wbg_ptr, message, ptr0, len0);
657
+ return ret;
658
+ }
659
+ /**
660
+ * @param {MessageBytes} message
661
+ * @param {string} path
662
+ * @returns {Promise<RecoverableEcdsaSignatureBytes>}
663
+ */
664
+ signEcdsaRecoverable(message, path) {
665
+ const ptr0 = passStringToWasm0(path, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
666
+ const len0 = WASM_VECTOR_LEN;
667
+ const ret = wasm.externalsigningsignerhandle_signEcdsaRecoverable(this.__wbg_ptr, message, ptr0, len0);
668
+ return ret;
669
+ }
670
+ /**
671
+ * @param {Uint8Array} hash
672
+ * @param {string} path
673
+ * @returns {Promise<SchnorrSignatureBytes>}
674
+ */
675
+ signHashSchnorr(hash, path) {
676
+ const ptr0 = passArray8ToWasm0(hash, wasm.__wbindgen_malloc);
677
+ const len0 = WASM_VECTOR_LEN;
678
+ const ptr1 = passStringToWasm0(path, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
679
+ const len1 = WASM_VECTOR_LEN;
680
+ const ret = wasm.externalsigningsignerhandle_signHashSchnorr(this.__wbg_ptr, ptr0, len0, ptr1, len1);
681
+ return ret;
682
+ }
683
+ }
684
+ if (Symbol.dispose) ExternalSigningSignerHandle.prototype[Symbol.dispose] = ExternalSigningSignerHandle.prototype.free;
685
+
613
686
  /**
614
687
  * A Rust-backed [`ExternalSparkSigner`] surfaced to JS as a signer object that
615
688
  * can be passed to `connectWithSigner` or `SdkBuilder.newWithSigner`. Produced
@@ -1035,6 +1108,20 @@ export class SdkBuilder {
1035
1108
  const ret = wasm.sdkbuilder_newWithSigner(config, breez_signer, spark_signer);
1036
1109
  return SdkBuilder.__wrap(ret);
1037
1110
  }
1111
+ /**
1112
+ * Creates a new `SdkBuilder` with a signing-only external signer, for a
1113
+ * signer that can't perform the SDK's local ECIES/HMAC operations. The SDK
1114
+ * keeps session tokens in plaintext and disables the features that rely on
1115
+ * ECIES/HMAC.
1116
+ * @param {Config} config
1117
+ * @param {ExternalSigningSigner} breez_signer
1118
+ * @param {ExternalSparkSigner} spark_signer
1119
+ * @returns {SdkBuilder}
1120
+ */
1121
+ static newWithSigningOnlySigner(config, breez_signer, spark_signer) {
1122
+ const ret = wasm.sdkbuilder_newWithSigningOnlySigner(config, breez_signer, spark_signer);
1123
+ return SdkBuilder.__wrap(ret);
1124
+ }
1038
1125
  /**
1039
1126
  * @param {number} account_number
1040
1127
  * @returns {SdkBuilder}
@@ -1172,6 +1259,47 @@ export class SdkBuilder {
1172
1259
  }
1173
1260
  if (Symbol.dispose) SdkBuilder.prototype[Symbol.dispose] = SdkBuilder.prototype.free;
1174
1261
 
1262
+ /**
1263
+ * The signing-only external signers for the SDK's signer-based connect.
1264
+ * Returned by `createTurnkeySigningOnlySigner`; pass both halves to
1265
+ * `connectWithSigningOnlySigner` or `SdkBuilder.newWithSigningOnlySigner`.
1266
+ */
1267
+ export class SigningOnlyExternalSigners {
1268
+ static __wrap(ptr) {
1269
+ const obj = Object.create(SigningOnlyExternalSigners.prototype);
1270
+ obj.__wbg_ptr = ptr;
1271
+ SigningOnlyExternalSignersFinalization.register(obj, obj.__wbg_ptr, obj);
1272
+ return obj;
1273
+ }
1274
+ __destroy_into_raw() {
1275
+ const ptr = this.__wbg_ptr;
1276
+ this.__wbg_ptr = 0;
1277
+ SigningOnlyExternalSignersFinalization.unregister(this);
1278
+ return ptr;
1279
+ }
1280
+ free() {
1281
+ const ptr = this.__destroy_into_raw();
1282
+ wasm.__wbg_signingonlyexternalsigners_free(ptr, 0);
1283
+ }
1284
+ /**
1285
+ * Signing-only external signer for non-Spark SDK signing.
1286
+ * @returns {ExternalSigningSignerHandle}
1287
+ */
1288
+ get breezSigner() {
1289
+ const ret = wasm.signingonlyexternalsigners_breezSigner(this.__wbg_ptr);
1290
+ return ExternalSigningSignerHandle.__wrap(ret);
1291
+ }
1292
+ /**
1293
+ * External high-level Spark signer for the Spark wallet flows.
1294
+ * @returns {ExternalSparkSignerHandle}
1295
+ */
1296
+ get sparkSigner() {
1297
+ const ret = wasm.signingonlyexternalsigners_sparkSigner(this.__wbg_ptr);
1298
+ return ExternalSparkSignerHandle.__wrap(ret);
1299
+ }
1300
+ }
1301
+ if (Symbol.dispose) SigningOnlyExternalSigners.prototype[Symbol.dispose] = SigningOnlyExternalSigners.prototype.free;
1302
+
1175
1303
  export class TokenIssuer {
1176
1304
  static __wrap(ptr) {
1177
1305
  const obj = Object.create(TokenIssuer.prototype);
@@ -1322,6 +1450,23 @@ export function connectWithSigner(config, breez_signer, spark_signer, storage_di
1322
1450
  return ret;
1323
1451
  }
1324
1452
 
1453
+ /**
1454
+ * Connects using a signing-only external signer, for a signer that can't
1455
+ * perform the SDK's local ECIES/HMAC operations. The SDK keeps session tokens
1456
+ * in plaintext and disables the features that rely on ECIES/HMAC.
1457
+ * @param {Config} config
1458
+ * @param {ExternalSigningSigner} breez_signer
1459
+ * @param {ExternalSparkSigner} spark_signer
1460
+ * @param {string} storage_dir
1461
+ * @returns {Promise<BreezSdk>}
1462
+ */
1463
+ export function connectWithSigningOnlySigner(config, breez_signer, spark_signer, storage_dir) {
1464
+ const ptr0 = passStringToWasm0(storage_dir, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
1465
+ const len0 = WASM_VECTOR_LEN;
1466
+ const ret = wasm.connectWithSigningOnlySigner(config, breez_signer, spark_signer, ptr0, len0);
1467
+ return ret;
1468
+ }
1469
+
1325
1470
  /**
1326
1471
  * Builds the Turnkey-backed signers from `config`, then pass
1327
1472
  * `signers.breezSigner` and `signers.sparkSigner` to `connectWithSigner`,
@@ -1334,6 +1479,19 @@ export function createTurnkeySigner(config) {
1334
1479
  return ret;
1335
1480
  }
1336
1481
 
1482
+ /**
1483
+ * Builds the signing-only Turnkey-backed signers from `config` (for a wallet
1484
+ * under a deny-export policy), then pass `signers.breezSigner` and
1485
+ * `signers.sparkSigner` to `connectWithSigningOnlySigner`. The Breez half
1486
+ * performs signing only and never exports a key.
1487
+ * @param {TurnkeyConfig} config
1488
+ * @returns {Promise<SigningOnlyExternalSigners>}
1489
+ */
1490
+ export function createTurnkeySigningOnlySigner(config) {
1491
+ const ret = wasm.createTurnkeySigningOnlySigner(config);
1492
+ return ret;
1493
+ }
1494
+
1337
1495
  /**
1338
1496
  * @param {Network} network
1339
1497
  * @returns {Config}
@@ -1911,6 +2069,18 @@ export function __wbg_derivePublicKey_1bc53f60dc792488() { return handleError(fu
1911
2069
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
1912
2070
  }
1913
2071
  }, arguments); }
2072
+ export function __wbg_derivePublicKey_db43f40bd54e092a() { return handleError(function (arg0, arg1, arg2) {
2073
+ let deferred0_0;
2074
+ let deferred0_1;
2075
+ try {
2076
+ deferred0_0 = arg1;
2077
+ deferred0_1 = arg2;
2078
+ const ret = arg0.derivePublicKey(getStringFromWasm0(arg1, arg2));
2079
+ return ret;
2080
+ } finally {
2081
+ wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
2082
+ }
2083
+ }, arguments); }
1914
2084
  export function __wbg_deriveSeeds_5c331613e2894c56() { return handleError(function (arg0, arg1, arg2) {
1915
2085
  const ret = arg0.deriveSeeds(arg1, arg2);
1916
2086
  return ret;
@@ -2791,6 +2961,18 @@ export function __wbg_signAuthenticationChallenge_e2ea9cf87c76a6de() { return ha
2791
2961
  const ret = arg0.signAuthenticationChallenge(v0);
2792
2962
  return ret;
2793
2963
  }, arguments); }
2964
+ export function __wbg_signEcdsaRecoverable_7a9da0490e388132() { return handleError(function (arg0, arg1, arg2, arg3) {
2965
+ let deferred0_0;
2966
+ let deferred0_1;
2967
+ try {
2968
+ deferred0_0 = arg2;
2969
+ deferred0_1 = arg3;
2970
+ const ret = arg0.signEcdsaRecoverable(arg1, getStringFromWasm0(arg2, arg3));
2971
+ return ret;
2972
+ } finally {
2973
+ wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
2974
+ }
2975
+ }, arguments); }
2794
2976
  export function __wbg_signEcdsaRecoverable_978c5526e66a433b() { return handleError(function (arg0, arg1, arg2, arg3) {
2795
2977
  let deferred0_0;
2796
2978
  let deferred0_1;
@@ -2815,10 +2997,36 @@ export function __wbg_signEcdsa_1947a1a2c8f39a16() { return handleError(function
2815
2997
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
2816
2998
  }
2817
2999
  }, arguments); }
3000
+ export function __wbg_signEcdsa_89f0abf313463778() { return handleError(function (arg0, arg1, arg2, arg3) {
3001
+ let deferred0_0;
3002
+ let deferred0_1;
3003
+ try {
3004
+ deferred0_0 = arg2;
3005
+ deferred0_1 = arg3;
3006
+ const ret = arg0.signEcdsa(arg1, getStringFromWasm0(arg2, arg3));
3007
+ return ret;
3008
+ } finally {
3009
+ wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
3010
+ }
3011
+ }, arguments); }
2818
3012
  export function __wbg_signFrost_08951e01d00d4b1c() { return handleError(function (arg0, arg1) {
2819
3013
  const ret = arg0.signFrost(arg1);
2820
3014
  return ret;
2821
3015
  }, arguments); }
3016
+ export function __wbg_signHashSchnorr_881022637f4bf583() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
3017
+ let deferred1_0;
3018
+ let deferred1_1;
3019
+ try {
3020
+ var v0 = getArrayU8FromWasm0(arg1, arg2).slice();
3021
+ wasm.__wbindgen_free(arg1, arg2 * 1, 1);
3022
+ deferred1_0 = arg3;
3023
+ deferred1_1 = arg4;
3024
+ const ret = arg0.signHashSchnorr(v0, getStringFromWasm0(arg3, arg4));
3025
+ return ret;
3026
+ } finally {
3027
+ wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
3028
+ }
3029
+ }, arguments); }
2822
3030
  export function __wbg_signHashSchnorr_fc8afda9a7ee021a() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
2823
3031
  let deferred1_0;
2824
3032
  let deferred1_1;
@@ -2851,6 +3059,10 @@ export function __wbg_signal_4643ce883b92b553(arg0) {
2851
3059
  const ret = arg0.signal;
2852
3060
  return ret;
2853
3061
  }
3062
+ export function __wbg_signingonlyexternalsigners_new(arg0) {
3063
+ const ret = SigningOnlyExternalSigners.__wrap(arg0);
3064
+ return ret;
3065
+ }
2854
3066
  export function __wbg_stack_3b0d974bbf31e44f(arg0, arg1) {
2855
3067
  const ret = arg1.stack;
2856
3068
  const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
@@ -3027,61 +3239,61 @@ export function __wbg_wasmsdkcontext_new(arg0) {
3027
3239
  }
3028
3240
  export function __wbindgen_cast_0000000000000001(arg0, arg1) {
3029
3241
  // 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`.
3030
- const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__h039d35996dc01d12);
3242
+ const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__h38afe039e8450492);
3031
3243
  return ret;
3032
3244
  }
3033
3245
  export function __wbindgen_cast_0000000000000002(arg0, arg1) {
3034
- // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx: 215, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
3246
+ // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx: 219, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
3035
3247
  const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__h3120db8c4a8a92b2);
3036
3248
  return ret;
3037
3249
  }
3038
3250
  export function __wbindgen_cast_0000000000000003(arg0, arg1) {
3039
- // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("CloseEvent")], shim_idx: 215, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
3251
+ // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("CloseEvent")], shim_idx: 219, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
3040
3252
  const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__h3120db8c4a8a92b2_2);
3041
3253
  return ret;
3042
3254
  }
3043
3255
  export function __wbindgen_cast_0000000000000004(arg0, arg1) {
3044
- // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("ErrorEvent")], shim_idx: 215, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
3256
+ // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("ErrorEvent")], shim_idx: 219, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
3045
3257
  const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__h3120db8c4a8a92b2_3);
3046
3258
  return ret;
3047
3259
  }
3048
3260
  export function __wbindgen_cast_0000000000000005(arg0, arg1) {
3049
- // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("Event")], shim_idx: 215, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
3261
+ // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("Event")], shim_idx: 219, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
3050
3262
  const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__h3120db8c4a8a92b2_4);
3051
3263
  return ret;
3052
3264
  }
3053
3265
  export function __wbindgen_cast_0000000000000006(arg0, arg1) {
3054
- // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("MessageEvent")], shim_idx: 215, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
3266
+ // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("MessageEvent")], shim_idx: 219, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
3055
3267
  const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__h3120db8c4a8a92b2_5);
3056
3268
  return ret;
3057
3269
  }
3058
3270
  export function __wbindgen_cast_0000000000000007(arg0, arg1) {
3059
3271
  // 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`.
3060
- const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__h039d35996dc01d12_6);
3272
+ const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__h38afe039e8450492_6);
3061
3273
  return ret;
3062
3274
  }
3063
3275
  export function __wbindgen_cast_0000000000000008(arg0, arg1) {
3064
3276
  // 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`.
3065
- const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__h039d35996dc01d12_7);
3277
+ const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__h38afe039e8450492_7);
3066
3278
  return ret;
3067
3279
  }
3068
3280
  export function __wbindgen_cast_0000000000000009(arg0, arg1) {
3069
3281
  // 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`.
3070
- const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__h039d35996dc01d12_8);
3282
+ const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__h38afe039e8450492_8);
3071
3283
  return ret;
3072
3284
  }
3073
3285
  export function __wbindgen_cast_000000000000000a(arg0, arg1) {
3074
3286
  // 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`.
3075
- const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__h039d35996dc01d12_9);
3287
+ const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__h38afe039e8450492_9);
3076
3288
  return ret;
3077
3289
  }
3078
3290
  export function __wbindgen_cast_000000000000000b(arg0, arg1) {
3079
- // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [], shim_idx: 399, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
3291
+ // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [], shim_idx: 393, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
3080
3292
  const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__h1d6669a7b693932a);
3081
3293
  return ret;
3082
3294
  }
3083
3295
  export function __wbindgen_cast_000000000000000c(arg0, arg1) {
3084
- // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [], shim_idx: 429, ret: Unit, inner_ret: Some(Unit) }, mutable: false }) -> Externref`.
3296
+ // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [], shim_idx: 422, ret: Unit, inner_ret: Some(Unit) }, mutable: false }) -> Externref`.
3085
3297
  const ret = makeClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__h0fa3f876e31d2a3e);
3086
3298
  return ret;
3087
3299
  }
@@ -3194,36 +3406,36 @@ function wasm_bindgen__convert__closures_____invoke__h3120db8c4a8a92b2_5(arg0, a
3194
3406
  wasm.wasm_bindgen__convert__closures_____invoke__h3120db8c4a8a92b2_5(arg0, arg1, arg2);
3195
3407
  }
3196
3408
 
3197
- function wasm_bindgen__convert__closures_____invoke__h039d35996dc01d12(arg0, arg1, arg2) {
3198
- const ret = wasm.wasm_bindgen__convert__closures_____invoke__h039d35996dc01d12(arg0, arg1, arg2);
3409
+ function wasm_bindgen__convert__closures_____invoke__h38afe039e8450492(arg0, arg1, arg2) {
3410
+ const ret = wasm.wasm_bindgen__convert__closures_____invoke__h38afe039e8450492(arg0, arg1, arg2);
3199
3411
  if (ret[1]) {
3200
3412
  throw takeFromExternrefTable0(ret[0]);
3201
3413
  }
3202
3414
  }
3203
3415
 
3204
- function wasm_bindgen__convert__closures_____invoke__h039d35996dc01d12_6(arg0, arg1, arg2) {
3205
- const ret = wasm.wasm_bindgen__convert__closures_____invoke__h039d35996dc01d12_6(arg0, arg1, arg2);
3416
+ function wasm_bindgen__convert__closures_____invoke__h38afe039e8450492_6(arg0, arg1, arg2) {
3417
+ const ret = wasm.wasm_bindgen__convert__closures_____invoke__h38afe039e8450492_6(arg0, arg1, arg2);
3206
3418
  if (ret[1]) {
3207
3419
  throw takeFromExternrefTable0(ret[0]);
3208
3420
  }
3209
3421
  }
3210
3422
 
3211
- function wasm_bindgen__convert__closures_____invoke__h039d35996dc01d12_7(arg0, arg1, arg2) {
3212
- const ret = wasm.wasm_bindgen__convert__closures_____invoke__h039d35996dc01d12_7(arg0, arg1, arg2);
3423
+ function wasm_bindgen__convert__closures_____invoke__h38afe039e8450492_7(arg0, arg1, arg2) {
3424
+ const ret = wasm.wasm_bindgen__convert__closures_____invoke__h38afe039e8450492_7(arg0, arg1, arg2);
3213
3425
  if (ret[1]) {
3214
3426
  throw takeFromExternrefTable0(ret[0]);
3215
3427
  }
3216
3428
  }
3217
3429
 
3218
- function wasm_bindgen__convert__closures_____invoke__h039d35996dc01d12_8(arg0, arg1, arg2) {
3219
- const ret = wasm.wasm_bindgen__convert__closures_____invoke__h039d35996dc01d12_8(arg0, arg1, arg2);
3430
+ function wasm_bindgen__convert__closures_____invoke__h38afe039e8450492_8(arg0, arg1, arg2) {
3431
+ const ret = wasm.wasm_bindgen__convert__closures_____invoke__h38afe039e8450492_8(arg0, arg1, arg2);
3220
3432
  if (ret[1]) {
3221
3433
  throw takeFromExternrefTable0(ret[0]);
3222
3434
  }
3223
3435
  }
3224
3436
 
3225
- function wasm_bindgen__convert__closures_____invoke__h039d35996dc01d12_9(arg0, arg1, arg2) {
3226
- const ret = wasm.wasm_bindgen__convert__closures_____invoke__h039d35996dc01d12_9(arg0, arg1, arg2);
3437
+ function wasm_bindgen__convert__closures_____invoke__h38afe039e8450492_9(arg0, arg1, arg2) {
3438
+ const ret = wasm.wasm_bindgen__convert__closures_____invoke__h38afe039e8450492_9(arg0, arg1, arg2);
3227
3439
  if (ret[1]) {
3228
3440
  throw takeFromExternrefTable0(ret[0]);
3229
3441
  }
@@ -3265,6 +3477,9 @@ const ExternalBreezSignerHandleFinalization = (typeof FinalizationRegistry === '
3265
3477
  const ExternalSignersFinalization = (typeof FinalizationRegistry === 'undefined')
3266
3478
  ? { register: () => {}, unregister: () => {} }
3267
3479
  : new FinalizationRegistry(ptr => wasm.__wbg_externalsigners_free(ptr, 1));
3480
+ const ExternalSigningSignerHandleFinalization = (typeof FinalizationRegistry === 'undefined')
3481
+ ? { register: () => {}, unregister: () => {} }
3482
+ : new FinalizationRegistry(ptr => wasm.__wbg_externalsigningsignerhandle_free(ptr, 1));
3268
3483
  const ExternalSparkSignerHandleFinalization = (typeof FinalizationRegistry === 'undefined')
3269
3484
  ? { register: () => {}, unregister: () => {} }
3270
3485
  : new FinalizationRegistry(ptr => wasm.__wbg_externalsparksignerhandle_free(ptr, 1));
@@ -3286,6 +3501,9 @@ const PasskeyLabelsFinalization = (typeof FinalizationRegistry === 'undefined')
3286
3501
  const SdkBuilderFinalization = (typeof FinalizationRegistry === 'undefined')
3287
3502
  ? { register: () => {}, unregister: () => {} }
3288
3503
  : new FinalizationRegistry(ptr => wasm.__wbg_sdkbuilder_free(ptr, 1));
3504
+ const SigningOnlyExternalSignersFinalization = (typeof FinalizationRegistry === 'undefined')
3505
+ ? { register: () => {}, unregister: () => {} }
3506
+ : new FinalizationRegistry(ptr => wasm.__wbg_signingonlyexternalsigners_free(ptr, 1));
3289
3507
  const TokenIssuerFinalization = (typeof FinalizationRegistry === 'undefined')
3290
3508
  ? { register: () => {}, unregister: () => {} }
3291
3509
  : new FinalizationRegistry(ptr => wasm.__wbg_tokenissuer_free(ptr, 1));
@@ -63,7 +63,9 @@ export const breezsdk_updateContact: (a: number, b: any) => any;
63
63
  export const breezsdk_updateUserSettings: (a: number, b: any) => any;
64
64
  export const connect: (a: any) => any;
65
65
  export const connectWithSigner: (a: any, b: any, c: any, d: number, e: number) => any;
66
+ export const connectWithSigningOnlySigner: (a: any, b: any, c: any, d: number, e: number) => any;
66
67
  export const createTurnkeySigner: (a: any) => any;
68
+ export const createTurnkeySigningOnlySigner: (a: any) => any;
67
69
  export const defaultConfig: (a: any) => any;
68
70
  export const defaultExternalSigners: (a: number, b: number, c: number, d: number, e: any, f: number) => [number, number, number];
69
71
  export const defaultMysqlStorageConfig: (a: number, b: number) => any;
@@ -79,6 +81,10 @@ export const externalbreezsignerhandle_signEcdsaRecoverable: (a: number, b: any,
79
81
  export const externalbreezsignerhandle_signHashSchnorr: (a: number, b: number, c: number, d: number, e: number) => any;
80
82
  export const externalsigners_breezSigner: (a: number) => number;
81
83
  export const externalsigners_sparkSigner: (a: number) => number;
84
+ export const externalsigningsignerhandle_derivePublicKey: (a: number, b: number, c: number) => any;
85
+ export const externalsigningsignerhandle_signEcdsa: (a: number, b: any, c: number, d: number) => any;
86
+ export const externalsigningsignerhandle_signEcdsaRecoverable: (a: number, b: any, c: number, d: number) => any;
87
+ export const externalsigningsignerhandle_signHashSchnorr: (a: number, b: number, c: number, d: number, e: number) => any;
82
88
  export const externalsparksignerhandle_getIdentityPublicKey: (a: number) => any;
83
89
  export const externalsparksignerhandle_getPublicKeyForLeaf: (a: number, b: any) => any;
84
90
  export const externalsparksignerhandle_getStaticDepositPublicKey: (a: number, b: number) => any;
@@ -110,6 +116,7 @@ export const postgresStorage: (a: any) => number;
110
116
  export const sdkbuilder_build: (a: number) => any;
111
117
  export const sdkbuilder_new: (a: any, b: any) => number;
112
118
  export const sdkbuilder_newWithSigner: (a: any, b: any, c: any) => number;
119
+ export const sdkbuilder_newWithSigningOnlySigner: (a: any, b: any, c: any) => number;
113
120
  export const sdkbuilder_withAccountNumber: (a: number, b: number) => number;
114
121
  export const sdkbuilder_withChainService: (a: number, b: any) => number;
115
122
  export const sdkbuilder_withDefaultStorage: (a: number, b: number, c: number) => any;
@@ -150,11 +157,15 @@ export const intounderlyingsource_cancel: (a: number) => void;
150
157
  export const intounderlyingsource_pull: (a: number, b: any) => any;
151
158
  export const __wbg_externalbreezsignerhandle_free: (a: number, b: number) => void;
152
159
  export const __wbg_externalsparksignerhandle_free: (a: number, b: number) => void;
153
- export const wasm_bindgen__convert__closures_____invoke__h039d35996dc01d12: (a: number, b: number, c: any) => [number, number];
154
- export const wasm_bindgen__convert__closures_____invoke__h039d35996dc01d12_6: (a: number, b: number, c: any) => [number, number];
155
- export const wasm_bindgen__convert__closures_____invoke__h039d35996dc01d12_7: (a: number, b: number, c: any) => [number, number];
156
- export const wasm_bindgen__convert__closures_____invoke__h039d35996dc01d12_8: (a: number, b: number, c: any) => [number, number];
157
- export const wasm_bindgen__convert__closures_____invoke__h039d35996dc01d12_9: (a: number, b: number, c: any) => [number, number];
160
+ export const __wbg_externalsigningsignerhandle_free: (a: number, b: number) => void;
161
+ export const __wbg_signingonlyexternalsigners_free: (a: number, b: number) => void;
162
+ export const signingonlyexternalsigners_breezSigner: (a: number) => number;
163
+ export const signingonlyexternalsigners_sparkSigner: (a: number) => number;
164
+ export const wasm_bindgen__convert__closures_____invoke__h38afe039e8450492: (a: number, b: number, c: any) => [number, number];
165
+ export const wasm_bindgen__convert__closures_____invoke__h38afe039e8450492_6: (a: number, b: number, c: any) => [number, number];
166
+ export const wasm_bindgen__convert__closures_____invoke__h38afe039e8450492_7: (a: number, b: number, c: any) => [number, number];
167
+ export const wasm_bindgen__convert__closures_____invoke__h38afe039e8450492_8: (a: number, b: number, c: any) => [number, number];
168
+ export const wasm_bindgen__convert__closures_____invoke__h38afe039e8450492_9: (a: number, b: number, c: any) => [number, number];
158
169
  export const wasm_bindgen__convert__closures_____invoke__h41057d61edf43a32: (a: number, b: number, c: any, d: any) => void;
159
170
  export const wasm_bindgen__convert__closures_____invoke__h3120db8c4a8a92b2: (a: number, b: number, c: any) => void;
160
171
  export const wasm_bindgen__convert__closures_____invoke__h3120db8c4a8a92b2_2: (a: number, b: number, c: any) => void;