@breeztech/breez-sdk-spark 0.17.2 → 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.
- package/breez-sdk-spark.tgz +0 -0
- package/bundler/breez_sdk_spark_wasm.d.ts +66 -0
- package/bundler/breez_sdk_spark_wasm.js +1 -1
- package/bundler/breez_sdk_spark_wasm_bg.js +225 -7
- package/bundler/breez_sdk_spark_wasm_bg.wasm +0 -0
- package/bundler/breez_sdk_spark_wasm_bg.wasm.d.ts +12 -1
- package/deno/breez_sdk_spark_wasm.d.ts +66 -0
- package/deno/breez_sdk_spark_wasm.js +225 -7
- package/deno/breez_sdk_spark_wasm_bg.wasm +0 -0
- package/deno/breez_sdk_spark_wasm_bg.wasm.d.ts +12 -1
- package/nodejs/breez_sdk_spark_wasm.d.ts +66 -0
- package/nodejs/breez_sdk_spark_wasm.js +229 -7
- package/nodejs/breez_sdk_spark_wasm_bg.wasm +0 -0
- package/nodejs/breez_sdk_spark_wasm_bg.wasm.d.ts +12 -1
- package/nodejs/index.mjs +4 -0
- package/package.json +1 -1
- package/ssr/index.js +24 -0
- package/web/breez_sdk_spark_wasm.d.ts +78 -1
- package/web/breez_sdk_spark_wasm.js +225 -7
- package/web/breez_sdk_spark_wasm_bg.wasm +0 -0
- package/web/breez_sdk_spark_wasm_bg.wasm.d.ts +12 -1
|
@@ -612,6 +612,79 @@ export class ExternalSigners {
|
|
|
612
612
|
}
|
|
613
613
|
if (Symbol.dispose) ExternalSigners.prototype[Symbol.dispose] = ExternalSigners.prototype.free;
|
|
614
614
|
|
|
615
|
+
/**
|
|
616
|
+
* A Rust-backed [`ExternalSigningSigner`] surfaced to JS as a signer object
|
|
617
|
+
* that can be passed to `connectWithSigningOnlySigner` or
|
|
618
|
+
* `SdkBuilder.newWithSigningOnlySigner`. Produced by
|
|
619
|
+
* `createTurnkeySigningOnlySigner`.
|
|
620
|
+
*
|
|
621
|
+
* [`ExternalSigningSigner`]: breez_sdk_spark::signer::ExternalSigningSigner
|
|
622
|
+
*/
|
|
623
|
+
export class ExternalSigningSignerHandle {
|
|
624
|
+
static __wrap(ptr) {
|
|
625
|
+
const obj = Object.create(ExternalSigningSignerHandle.prototype);
|
|
626
|
+
obj.__wbg_ptr = ptr;
|
|
627
|
+
ExternalSigningSignerHandleFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
628
|
+
return obj;
|
|
629
|
+
}
|
|
630
|
+
__destroy_into_raw() {
|
|
631
|
+
const ptr = this.__wbg_ptr;
|
|
632
|
+
this.__wbg_ptr = 0;
|
|
633
|
+
ExternalSigningSignerHandleFinalization.unregister(this);
|
|
634
|
+
return ptr;
|
|
635
|
+
}
|
|
636
|
+
free() {
|
|
637
|
+
const ptr = this.__destroy_into_raw();
|
|
638
|
+
wasm.__wbg_externalsigningsignerhandle_free(ptr, 0);
|
|
639
|
+
}
|
|
640
|
+
/**
|
|
641
|
+
* @param {string} path
|
|
642
|
+
* @returns {Promise<PublicKeyBytes>}
|
|
643
|
+
*/
|
|
644
|
+
derivePublicKey(path) {
|
|
645
|
+
const ptr0 = passStringToWasm0(path, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
646
|
+
const len0 = WASM_VECTOR_LEN;
|
|
647
|
+
const ret = wasm.externalsigningsignerhandle_derivePublicKey(this.__wbg_ptr, ptr0, len0);
|
|
648
|
+
return ret;
|
|
649
|
+
}
|
|
650
|
+
/**
|
|
651
|
+
* @param {MessageBytes} message
|
|
652
|
+
* @param {string} path
|
|
653
|
+
* @returns {Promise<EcdsaSignatureBytes>}
|
|
654
|
+
*/
|
|
655
|
+
signEcdsa(message, path) {
|
|
656
|
+
const ptr0 = passStringToWasm0(path, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
657
|
+
const len0 = WASM_VECTOR_LEN;
|
|
658
|
+
const ret = wasm.externalsigningsignerhandle_signEcdsa(this.__wbg_ptr, message, ptr0, len0);
|
|
659
|
+
return ret;
|
|
660
|
+
}
|
|
661
|
+
/**
|
|
662
|
+
* @param {MessageBytes} message
|
|
663
|
+
* @param {string} path
|
|
664
|
+
* @returns {Promise<RecoverableEcdsaSignatureBytes>}
|
|
665
|
+
*/
|
|
666
|
+
signEcdsaRecoverable(message, path) {
|
|
667
|
+
const ptr0 = passStringToWasm0(path, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
668
|
+
const len0 = WASM_VECTOR_LEN;
|
|
669
|
+
const ret = wasm.externalsigningsignerhandle_signEcdsaRecoverable(this.__wbg_ptr, message, ptr0, len0);
|
|
670
|
+
return ret;
|
|
671
|
+
}
|
|
672
|
+
/**
|
|
673
|
+
* @param {Uint8Array} hash
|
|
674
|
+
* @param {string} path
|
|
675
|
+
* @returns {Promise<SchnorrSignatureBytes>}
|
|
676
|
+
*/
|
|
677
|
+
signHashSchnorr(hash, path) {
|
|
678
|
+
const ptr0 = passArray8ToWasm0(hash, wasm.__wbindgen_malloc);
|
|
679
|
+
const len0 = WASM_VECTOR_LEN;
|
|
680
|
+
const ptr1 = passStringToWasm0(path, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
681
|
+
const len1 = WASM_VECTOR_LEN;
|
|
682
|
+
const ret = wasm.externalsigningsignerhandle_signHashSchnorr(this.__wbg_ptr, ptr0, len0, ptr1, len1);
|
|
683
|
+
return ret;
|
|
684
|
+
}
|
|
685
|
+
}
|
|
686
|
+
if (Symbol.dispose) ExternalSigningSignerHandle.prototype[Symbol.dispose] = ExternalSigningSignerHandle.prototype.free;
|
|
687
|
+
|
|
615
688
|
/**
|
|
616
689
|
* A Rust-backed [`ExternalSparkSigner`] surfaced to JS as a signer object that
|
|
617
690
|
* can be passed to `connectWithSigner` or `SdkBuilder.newWithSigner`. Produced
|
|
@@ -1037,6 +1110,20 @@ export class SdkBuilder {
|
|
|
1037
1110
|
const ret = wasm.sdkbuilder_newWithSigner(config, breez_signer, spark_signer);
|
|
1038
1111
|
return SdkBuilder.__wrap(ret);
|
|
1039
1112
|
}
|
|
1113
|
+
/**
|
|
1114
|
+
* Creates a new `SdkBuilder` with a signing-only external signer, for a
|
|
1115
|
+
* signer that can't perform the SDK's local ECIES/HMAC operations. The SDK
|
|
1116
|
+
* keeps session tokens in plaintext and disables the features that rely on
|
|
1117
|
+
* ECIES/HMAC.
|
|
1118
|
+
* @param {Config} config
|
|
1119
|
+
* @param {ExternalSigningSigner} breez_signer
|
|
1120
|
+
* @param {ExternalSparkSigner} spark_signer
|
|
1121
|
+
* @returns {SdkBuilder}
|
|
1122
|
+
*/
|
|
1123
|
+
static newWithSigningOnlySigner(config, breez_signer, spark_signer) {
|
|
1124
|
+
const ret = wasm.sdkbuilder_newWithSigningOnlySigner(config, breez_signer, spark_signer);
|
|
1125
|
+
return SdkBuilder.__wrap(ret);
|
|
1126
|
+
}
|
|
1040
1127
|
/**
|
|
1041
1128
|
* @param {number} account_number
|
|
1042
1129
|
* @returns {SdkBuilder}
|
|
@@ -1174,6 +1261,47 @@ export class SdkBuilder {
|
|
|
1174
1261
|
}
|
|
1175
1262
|
if (Symbol.dispose) SdkBuilder.prototype[Symbol.dispose] = SdkBuilder.prototype.free;
|
|
1176
1263
|
|
|
1264
|
+
/**
|
|
1265
|
+
* The signing-only external signers for the SDK's signer-based connect.
|
|
1266
|
+
* Returned by `createTurnkeySigningOnlySigner`; pass both halves to
|
|
1267
|
+
* `connectWithSigningOnlySigner` or `SdkBuilder.newWithSigningOnlySigner`.
|
|
1268
|
+
*/
|
|
1269
|
+
export class SigningOnlyExternalSigners {
|
|
1270
|
+
static __wrap(ptr) {
|
|
1271
|
+
const obj = Object.create(SigningOnlyExternalSigners.prototype);
|
|
1272
|
+
obj.__wbg_ptr = ptr;
|
|
1273
|
+
SigningOnlyExternalSignersFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
1274
|
+
return obj;
|
|
1275
|
+
}
|
|
1276
|
+
__destroy_into_raw() {
|
|
1277
|
+
const ptr = this.__wbg_ptr;
|
|
1278
|
+
this.__wbg_ptr = 0;
|
|
1279
|
+
SigningOnlyExternalSignersFinalization.unregister(this);
|
|
1280
|
+
return ptr;
|
|
1281
|
+
}
|
|
1282
|
+
free() {
|
|
1283
|
+
const ptr = this.__destroy_into_raw();
|
|
1284
|
+
wasm.__wbg_signingonlyexternalsigners_free(ptr, 0);
|
|
1285
|
+
}
|
|
1286
|
+
/**
|
|
1287
|
+
* Signing-only external signer for non-Spark SDK signing.
|
|
1288
|
+
* @returns {ExternalSigningSignerHandle}
|
|
1289
|
+
*/
|
|
1290
|
+
get breezSigner() {
|
|
1291
|
+
const ret = wasm.signingonlyexternalsigners_breezSigner(this.__wbg_ptr);
|
|
1292
|
+
return ExternalSigningSignerHandle.__wrap(ret);
|
|
1293
|
+
}
|
|
1294
|
+
/**
|
|
1295
|
+
* External high-level Spark signer for the Spark wallet flows.
|
|
1296
|
+
* @returns {ExternalSparkSignerHandle}
|
|
1297
|
+
*/
|
|
1298
|
+
get sparkSigner() {
|
|
1299
|
+
const ret = wasm.signingonlyexternalsigners_sparkSigner(this.__wbg_ptr);
|
|
1300
|
+
return ExternalSparkSignerHandle.__wrap(ret);
|
|
1301
|
+
}
|
|
1302
|
+
}
|
|
1303
|
+
if (Symbol.dispose) SigningOnlyExternalSigners.prototype[Symbol.dispose] = SigningOnlyExternalSigners.prototype.free;
|
|
1304
|
+
|
|
1177
1305
|
export class TokenIssuer {
|
|
1178
1306
|
static __wrap(ptr) {
|
|
1179
1307
|
const obj = Object.create(TokenIssuer.prototype);
|
|
@@ -1324,6 +1452,23 @@ export function connectWithSigner(config, breez_signer, spark_signer, storage_di
|
|
|
1324
1452
|
return ret;
|
|
1325
1453
|
}
|
|
1326
1454
|
|
|
1455
|
+
/**
|
|
1456
|
+
* Connects using a signing-only external signer, for a signer that can't
|
|
1457
|
+
* perform the SDK's local ECIES/HMAC operations. The SDK keeps session tokens
|
|
1458
|
+
* in plaintext and disables the features that rely on ECIES/HMAC.
|
|
1459
|
+
* @param {Config} config
|
|
1460
|
+
* @param {ExternalSigningSigner} breez_signer
|
|
1461
|
+
* @param {ExternalSparkSigner} spark_signer
|
|
1462
|
+
* @param {string} storage_dir
|
|
1463
|
+
* @returns {Promise<BreezSdk>}
|
|
1464
|
+
*/
|
|
1465
|
+
export function connectWithSigningOnlySigner(config, breez_signer, spark_signer, storage_dir) {
|
|
1466
|
+
const ptr0 = passStringToWasm0(storage_dir, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1467
|
+
const len0 = WASM_VECTOR_LEN;
|
|
1468
|
+
const ret = wasm.connectWithSigningOnlySigner(config, breez_signer, spark_signer, ptr0, len0);
|
|
1469
|
+
return ret;
|
|
1470
|
+
}
|
|
1471
|
+
|
|
1327
1472
|
/**
|
|
1328
1473
|
* Builds the Turnkey-backed signers from `config`, then pass
|
|
1329
1474
|
* `signers.breezSigner` and `signers.sparkSigner` to `connectWithSigner`,
|
|
@@ -1336,6 +1481,19 @@ export function createTurnkeySigner(config) {
|
|
|
1336
1481
|
return ret;
|
|
1337
1482
|
}
|
|
1338
1483
|
|
|
1484
|
+
/**
|
|
1485
|
+
* Builds the signing-only Turnkey-backed signers from `config` (for a wallet
|
|
1486
|
+
* under a deny-export policy), then pass `signers.breezSigner` and
|
|
1487
|
+
* `signers.sparkSigner` to `connectWithSigningOnlySigner`. The Breez half
|
|
1488
|
+
* performs signing only and never exports a key.
|
|
1489
|
+
* @param {TurnkeyConfig} config
|
|
1490
|
+
* @returns {Promise<SigningOnlyExternalSigners>}
|
|
1491
|
+
*/
|
|
1492
|
+
export function createTurnkeySigningOnlySigner(config) {
|
|
1493
|
+
const ret = wasm.createTurnkeySigningOnlySigner(config);
|
|
1494
|
+
return ret;
|
|
1495
|
+
}
|
|
1496
|
+
|
|
1339
1497
|
/**
|
|
1340
1498
|
* @param {Network} network
|
|
1341
1499
|
* @returns {Config}
|
|
@@ -1916,6 +2074,18 @@ function __wbg_get_imports() {
|
|
|
1916
2074
|
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
1917
2075
|
}
|
|
1918
2076
|
}, arguments); },
|
|
2077
|
+
__wbg_derivePublicKey_db43f40bd54e092a: function() { return handleError(function (arg0, arg1, arg2) {
|
|
2078
|
+
let deferred0_0;
|
|
2079
|
+
let deferred0_1;
|
|
2080
|
+
try {
|
|
2081
|
+
deferred0_0 = arg1;
|
|
2082
|
+
deferred0_1 = arg2;
|
|
2083
|
+
const ret = arg0.derivePublicKey(getStringFromWasm0(arg1, arg2));
|
|
2084
|
+
return ret;
|
|
2085
|
+
} finally {
|
|
2086
|
+
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
2087
|
+
}
|
|
2088
|
+
}, arguments); },
|
|
1919
2089
|
__wbg_deriveSeeds_5c331613e2894c56: function() { return handleError(function (arg0, arg1, arg2) {
|
|
1920
2090
|
const ret = arg0.deriveSeeds(arg1, arg2);
|
|
1921
2091
|
return ret;
|
|
@@ -2796,6 +2966,18 @@ function __wbg_get_imports() {
|
|
|
2796
2966
|
const ret = arg0.signAuthenticationChallenge(v0);
|
|
2797
2967
|
return ret;
|
|
2798
2968
|
}, arguments); },
|
|
2969
|
+
__wbg_signEcdsaRecoverable_7a9da0490e388132: function() { return handleError(function (arg0, arg1, arg2, arg3) {
|
|
2970
|
+
let deferred0_0;
|
|
2971
|
+
let deferred0_1;
|
|
2972
|
+
try {
|
|
2973
|
+
deferred0_0 = arg2;
|
|
2974
|
+
deferred0_1 = arg3;
|
|
2975
|
+
const ret = arg0.signEcdsaRecoverable(arg1, getStringFromWasm0(arg2, arg3));
|
|
2976
|
+
return ret;
|
|
2977
|
+
} finally {
|
|
2978
|
+
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
2979
|
+
}
|
|
2980
|
+
}, arguments); },
|
|
2799
2981
|
__wbg_signEcdsaRecoverable_978c5526e66a433b: function() { return handleError(function (arg0, arg1, arg2, arg3) {
|
|
2800
2982
|
let deferred0_0;
|
|
2801
2983
|
let deferred0_1;
|
|
@@ -2820,10 +3002,36 @@ function __wbg_get_imports() {
|
|
|
2820
3002
|
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
2821
3003
|
}
|
|
2822
3004
|
}, arguments); },
|
|
3005
|
+
__wbg_signEcdsa_89f0abf313463778: function() { return handleError(function (arg0, arg1, arg2, arg3) {
|
|
3006
|
+
let deferred0_0;
|
|
3007
|
+
let deferred0_1;
|
|
3008
|
+
try {
|
|
3009
|
+
deferred0_0 = arg2;
|
|
3010
|
+
deferred0_1 = arg3;
|
|
3011
|
+
const ret = arg0.signEcdsa(arg1, getStringFromWasm0(arg2, arg3));
|
|
3012
|
+
return ret;
|
|
3013
|
+
} finally {
|
|
3014
|
+
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
3015
|
+
}
|
|
3016
|
+
}, arguments); },
|
|
2823
3017
|
__wbg_signFrost_08951e01d00d4b1c: function() { return handleError(function (arg0, arg1) {
|
|
2824
3018
|
const ret = arg0.signFrost(arg1);
|
|
2825
3019
|
return ret;
|
|
2826
3020
|
}, arguments); },
|
|
3021
|
+
__wbg_signHashSchnorr_881022637f4bf583: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
|
|
3022
|
+
let deferred1_0;
|
|
3023
|
+
let deferred1_1;
|
|
3024
|
+
try {
|
|
3025
|
+
var v0 = getArrayU8FromWasm0(arg1, arg2).slice();
|
|
3026
|
+
wasm.__wbindgen_free(arg1, arg2 * 1, 1);
|
|
3027
|
+
deferred1_0 = arg3;
|
|
3028
|
+
deferred1_1 = arg4;
|
|
3029
|
+
const ret = arg0.signHashSchnorr(v0, getStringFromWasm0(arg3, arg4));
|
|
3030
|
+
return ret;
|
|
3031
|
+
} finally {
|
|
3032
|
+
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
3033
|
+
}
|
|
3034
|
+
}, arguments); },
|
|
2827
3035
|
__wbg_signHashSchnorr_fc8afda9a7ee021a: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
|
|
2828
3036
|
let deferred1_0;
|
|
2829
3037
|
let deferred1_1;
|
|
@@ -2856,6 +3064,10 @@ function __wbg_get_imports() {
|
|
|
2856
3064
|
const ret = arg0.signal;
|
|
2857
3065
|
return ret;
|
|
2858
3066
|
},
|
|
3067
|
+
__wbg_signingonlyexternalsigners_new: function(arg0) {
|
|
3068
|
+
const ret = SigningOnlyExternalSigners.__wrap(arg0);
|
|
3069
|
+
return ret;
|
|
3070
|
+
},
|
|
2859
3071
|
__wbg_stack_3b0d974bbf31e44f: function(arg0, arg1) {
|
|
2860
3072
|
const ret = arg1.stack;
|
|
2861
3073
|
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
@@ -3036,27 +3248,27 @@ function __wbg_get_imports() {
|
|
|
3036
3248
|
return ret;
|
|
3037
3249
|
},
|
|
3038
3250
|
__wbindgen_cast_0000000000000002: function(arg0, arg1) {
|
|
3039
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx:
|
|
3251
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], 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);
|
|
3041
3253
|
return ret;
|
|
3042
3254
|
},
|
|
3043
3255
|
__wbindgen_cast_0000000000000003: function(arg0, arg1) {
|
|
3044
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("CloseEvent")], shim_idx:
|
|
3256
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("CloseEvent")], 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_2);
|
|
3046
3258
|
return ret;
|
|
3047
3259
|
},
|
|
3048
3260
|
__wbindgen_cast_0000000000000004: function(arg0, arg1) {
|
|
3049
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("ErrorEvent")], shim_idx:
|
|
3261
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("ErrorEvent")], 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_3);
|
|
3051
3263
|
return ret;
|
|
3052
3264
|
},
|
|
3053
3265
|
__wbindgen_cast_0000000000000005: function(arg0, arg1) {
|
|
3054
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("Event")], shim_idx:
|
|
3266
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("Event")], 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_4);
|
|
3056
3268
|
return ret;
|
|
3057
3269
|
},
|
|
3058
3270
|
__wbindgen_cast_0000000000000006: function(arg0, arg1) {
|
|
3059
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("MessageEvent")], shim_idx:
|
|
3271
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("MessageEvent")], shim_idx: 219, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
3060
3272
|
const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__h3120db8c4a8a92b2_5);
|
|
3061
3273
|
return ret;
|
|
3062
3274
|
},
|
|
@@ -3081,12 +3293,12 @@ function __wbg_get_imports() {
|
|
|
3081
3293
|
return ret;
|
|
3082
3294
|
},
|
|
3083
3295
|
__wbindgen_cast_000000000000000b: function(arg0, arg1) {
|
|
3084
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [], shim_idx:
|
|
3296
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [], shim_idx: 393, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
3085
3297
|
const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__h1d6669a7b693932a);
|
|
3086
3298
|
return ret;
|
|
3087
3299
|
},
|
|
3088
3300
|
__wbindgen_cast_000000000000000c: function(arg0, arg1) {
|
|
3089
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [], shim_idx:
|
|
3301
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [], shim_idx: 422, ret: Unit, inner_ret: Some(Unit) }, mutable: false }) -> Externref`.
|
|
3090
3302
|
const ret = makeClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__h0fa3f876e31d2a3e);
|
|
3091
3303
|
return ret;
|
|
3092
3304
|
},
|
|
@@ -3277,6 +3489,9 @@ const ExternalBreezSignerHandleFinalization = (typeof FinalizationRegistry === '
|
|
|
3277
3489
|
const ExternalSignersFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
3278
3490
|
? { register: () => {}, unregister: () => {} }
|
|
3279
3491
|
: new FinalizationRegistry(ptr => wasm.__wbg_externalsigners_free(ptr, 1));
|
|
3492
|
+
const ExternalSigningSignerHandleFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
3493
|
+
? { register: () => {}, unregister: () => {} }
|
|
3494
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_externalsigningsignerhandle_free(ptr, 1));
|
|
3280
3495
|
const ExternalSparkSignerHandleFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
3281
3496
|
? { register: () => {}, unregister: () => {} }
|
|
3282
3497
|
: new FinalizationRegistry(ptr => wasm.__wbg_externalsparksignerhandle_free(ptr, 1));
|
|
@@ -3298,6 +3513,9 @@ const PasskeyLabelsFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
|
3298
3513
|
const SdkBuilderFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
3299
3514
|
? { register: () => {}, unregister: () => {} }
|
|
3300
3515
|
: new FinalizationRegistry(ptr => wasm.__wbg_sdkbuilder_free(ptr, 1));
|
|
3516
|
+
const SigningOnlyExternalSignersFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
3517
|
+
? { register: () => {}, unregister: () => {} }
|
|
3518
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_signingonlyexternalsigners_free(ptr, 1));
|
|
3301
3519
|
const TokenIssuerFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
3302
3520
|
? { register: () => {}, unregister: () => {} }
|
|
3303
3521
|
: new FinalizationRegistry(ptr => wasm.__wbg_tokenissuer_free(ptr, 1));
|
|
Binary file
|
|
@@ -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;
|
|
@@ -148,8 +155,12 @@ export const intounderlyingsink_close: (a: number) => any;
|
|
|
148
155
|
export const intounderlyingsink_write: (a: number, b: any) => any;
|
|
149
156
|
export const intounderlyingsource_cancel: (a: number) => void;
|
|
150
157
|
export const intounderlyingsource_pull: (a: number, b: any) => any;
|
|
151
|
-
export const __wbg_externalsparksignerhandle_free: (a: number, b: number) => void;
|
|
152
158
|
export const __wbg_externalbreezsignerhandle_free: (a: number, b: number) => void;
|
|
159
|
+
export const __wbg_externalsparksignerhandle_free: (a: number, b: number) => void;
|
|
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;
|
|
153
164
|
export const wasm_bindgen__convert__closures_____invoke__h38afe039e8450492: (a: number, b: number, c: any) => [number, number];
|
|
154
165
|
export const wasm_bindgen__convert__closures_____invoke__h38afe039e8450492_6: (a: number, b: number, c: any) => [number, number];
|
|
155
166
|
export const wasm_bindgen__convert__closures_____invoke__h38afe039e8450492_7: (a: number, b: number, c: any) => [number, number];
|