@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.
- 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 +240 -22
- package/bundler/breez_sdk_spark_wasm_bg.wasm +0 -0
- package/bundler/breez_sdk_spark_wasm_bg.wasm.d.ts +16 -5
- package/deno/breez_sdk_spark_wasm.d.ts +66 -0
- package/deno/breez_sdk_spark_wasm.js +240 -22
- package/deno/breez_sdk_spark_wasm_bg.wasm +0 -0
- package/deno/breez_sdk_spark_wasm_bg.wasm.d.ts +16 -5
- package/nodejs/breez_sdk_spark_wasm.d.ts +66 -0
- package/nodejs/breez_sdk_spark_wasm.js +244 -22
- package/nodejs/breez_sdk_spark_wasm_bg.wasm +0 -0
- package/nodejs/breez_sdk_spark_wasm_bg.wasm.d.ts +16 -5
- 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 +82 -5
- package/web/breez_sdk_spark_wasm.js +240 -22
- package/web/breez_sdk_spark_wasm_bg.wasm +0 -0
- package/web/breez_sdk_spark_wasm_bg.wasm.d.ts +16 -5
|
@@ -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
|
/**
|
|
@@ -2234,7 +2300,9 @@ export interface InitOutput {
|
|
|
2234
2300
|
readonly breezsdk_updateUserSettings: (a: number, b: any) => any;
|
|
2235
2301
|
readonly connect: (a: any) => any;
|
|
2236
2302
|
readonly connectWithSigner: (a: any, b: any, c: any, d: number, e: number) => any;
|
|
2303
|
+
readonly connectWithSigningOnlySigner: (a: any, b: any, c: any, d: number, e: number) => any;
|
|
2237
2304
|
readonly createTurnkeySigner: (a: any) => any;
|
|
2305
|
+
readonly createTurnkeySigningOnlySigner: (a: any) => any;
|
|
2238
2306
|
readonly defaultConfig: (a: any) => any;
|
|
2239
2307
|
readonly defaultExternalSigners: (a: number, b: number, c: number, d: number, e: any, f: number) => [number, number, number];
|
|
2240
2308
|
readonly defaultMysqlStorageConfig: (a: number, b: number) => any;
|
|
@@ -2250,6 +2318,10 @@ export interface InitOutput {
|
|
|
2250
2318
|
readonly externalbreezsignerhandle_signHashSchnorr: (a: number, b: number, c: number, d: number, e: number) => any;
|
|
2251
2319
|
readonly externalsigners_breezSigner: (a: number) => number;
|
|
2252
2320
|
readonly externalsigners_sparkSigner: (a: number) => number;
|
|
2321
|
+
readonly externalsigningsignerhandle_derivePublicKey: (a: number, b: number, c: number) => any;
|
|
2322
|
+
readonly externalsigningsignerhandle_signEcdsa: (a: number, b: any, c: number, d: number) => any;
|
|
2323
|
+
readonly externalsigningsignerhandle_signEcdsaRecoverable: (a: number, b: any, c: number, d: number) => any;
|
|
2324
|
+
readonly externalsigningsignerhandle_signHashSchnorr: (a: number, b: number, c: number, d: number, e: number) => any;
|
|
2253
2325
|
readonly externalsparksignerhandle_getIdentityPublicKey: (a: number) => any;
|
|
2254
2326
|
readonly externalsparksignerhandle_getPublicKeyForLeaf: (a: number, b: any) => any;
|
|
2255
2327
|
readonly externalsparksignerhandle_getStaticDepositPublicKey: (a: number, b: number) => any;
|
|
@@ -2281,6 +2353,7 @@ export interface InitOutput {
|
|
|
2281
2353
|
readonly sdkbuilder_build: (a: number) => any;
|
|
2282
2354
|
readonly sdkbuilder_new: (a: any, b: any) => number;
|
|
2283
2355
|
readonly sdkbuilder_newWithSigner: (a: any, b: any, c: any) => number;
|
|
2356
|
+
readonly sdkbuilder_newWithSigningOnlySigner: (a: any, b: any, c: any) => number;
|
|
2284
2357
|
readonly sdkbuilder_withAccountNumber: (a: number, b: number) => number;
|
|
2285
2358
|
readonly sdkbuilder_withChainService: (a: number, b: any) => number;
|
|
2286
2359
|
readonly sdkbuilder_withDefaultStorage: (a: number, b: number, c: number) => any;
|
|
@@ -2321,11 +2394,15 @@ export interface InitOutput {
|
|
|
2321
2394
|
readonly intounderlyingsource_pull: (a: number, b: any) => any;
|
|
2322
2395
|
readonly __wbg_externalbreezsignerhandle_free: (a: number, b: number) => void;
|
|
2323
2396
|
readonly __wbg_externalsparksignerhandle_free: (a: number, b: number) => void;
|
|
2324
|
-
readonly
|
|
2325
|
-
readonly
|
|
2326
|
-
readonly
|
|
2327
|
-
readonly
|
|
2328
|
-
readonly
|
|
2397
|
+
readonly __wbg_externalsigningsignerhandle_free: (a: number, b: number) => void;
|
|
2398
|
+
readonly __wbg_signingonlyexternalsigners_free: (a: number, b: number) => void;
|
|
2399
|
+
readonly signingonlyexternalsigners_breezSigner: (a: number) => number;
|
|
2400
|
+
readonly signingonlyexternalsigners_sparkSigner: (a: number) => number;
|
|
2401
|
+
readonly wasm_bindgen__convert__closures_____invoke__h38afe039e8450492: (a: number, b: number, c: any) => [number, number];
|
|
2402
|
+
readonly wasm_bindgen__convert__closures_____invoke__h38afe039e8450492_6: (a: number, b: number, c: any) => [number, number];
|
|
2403
|
+
readonly wasm_bindgen__convert__closures_____invoke__h38afe039e8450492_7: (a: number, b: number, c: any) => [number, number];
|
|
2404
|
+
readonly wasm_bindgen__convert__closures_____invoke__h38afe039e8450492_8: (a: number, b: number, c: any) => [number, number];
|
|
2405
|
+
readonly wasm_bindgen__convert__closures_____invoke__h38afe039e8450492_9: (a: number, b: number, c: any) => [number, number];
|
|
2329
2406
|
readonly wasm_bindgen__convert__closures_____invoke__h41057d61edf43a32: (a: number, b: number, c: any, d: any) => void;
|
|
2330
2407
|
readonly wasm_bindgen__convert__closures_____invoke__h3120db8c4a8a92b2: (a: number, b: number, c: any) => void;
|
|
2331
2408
|
readonly wasm_bindgen__convert__closures_____invoke__h3120db8c4a8a92b2_2: (a: number, b: number, c: any) => void;
|
|
@@ -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);
|
|
@@ -3032,61 +3244,61 @@ function __wbg_get_imports() {
|
|
|
3032
3244
|
},
|
|
3033
3245
|
__wbindgen_cast_0000000000000001: function(arg0, arg1) {
|
|
3034
3246
|
// 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`.
|
|
3035
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
3247
|
+
const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__h38afe039e8450492);
|
|
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
|
},
|
|
3063
3275
|
__wbindgen_cast_0000000000000007: function(arg0, arg1) {
|
|
3064
3276
|
// 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`.
|
|
3065
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
3277
|
+
const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__h38afe039e8450492_6);
|
|
3066
3278
|
return ret;
|
|
3067
3279
|
},
|
|
3068
3280
|
__wbindgen_cast_0000000000000008: function(arg0, arg1) {
|
|
3069
3281
|
// 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`.
|
|
3070
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
3282
|
+
const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__h38afe039e8450492_7);
|
|
3071
3283
|
return ret;
|
|
3072
3284
|
},
|
|
3073
3285
|
__wbindgen_cast_0000000000000009: function(arg0, arg1) {
|
|
3074
3286
|
// 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`.
|
|
3075
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
3287
|
+
const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__h38afe039e8450492_8);
|
|
3076
3288
|
return ret;
|
|
3077
3289
|
},
|
|
3078
3290
|
__wbindgen_cast_000000000000000a: function(arg0, arg1) {
|
|
3079
3291
|
// 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`.
|
|
3080
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
3292
|
+
const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__h38afe039e8450492_9);
|
|
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
|
},
|
|
@@ -3206,36 +3418,36 @@ function wasm_bindgen__convert__closures_____invoke__h3120db8c4a8a92b2_5(arg0, a
|
|
|
3206
3418
|
wasm.wasm_bindgen__convert__closures_____invoke__h3120db8c4a8a92b2_5(arg0, arg1, arg2);
|
|
3207
3419
|
}
|
|
3208
3420
|
|
|
3209
|
-
function
|
|
3210
|
-
const ret = wasm.
|
|
3421
|
+
function wasm_bindgen__convert__closures_____invoke__h38afe039e8450492(arg0, arg1, arg2) {
|
|
3422
|
+
const ret = wasm.wasm_bindgen__convert__closures_____invoke__h38afe039e8450492(arg0, arg1, arg2);
|
|
3211
3423
|
if (ret[1]) {
|
|
3212
3424
|
throw takeFromExternrefTable0(ret[0]);
|
|
3213
3425
|
}
|
|
3214
3426
|
}
|
|
3215
3427
|
|
|
3216
|
-
function
|
|
3217
|
-
const ret = wasm.
|
|
3428
|
+
function wasm_bindgen__convert__closures_____invoke__h38afe039e8450492_6(arg0, arg1, arg2) {
|
|
3429
|
+
const ret = wasm.wasm_bindgen__convert__closures_____invoke__h38afe039e8450492_6(arg0, arg1, arg2);
|
|
3218
3430
|
if (ret[1]) {
|
|
3219
3431
|
throw takeFromExternrefTable0(ret[0]);
|
|
3220
3432
|
}
|
|
3221
3433
|
}
|
|
3222
3434
|
|
|
3223
|
-
function
|
|
3224
|
-
const ret = wasm.
|
|
3435
|
+
function wasm_bindgen__convert__closures_____invoke__h38afe039e8450492_7(arg0, arg1, arg2) {
|
|
3436
|
+
const ret = wasm.wasm_bindgen__convert__closures_____invoke__h38afe039e8450492_7(arg0, arg1, arg2);
|
|
3225
3437
|
if (ret[1]) {
|
|
3226
3438
|
throw takeFromExternrefTable0(ret[0]);
|
|
3227
3439
|
}
|
|
3228
3440
|
}
|
|
3229
3441
|
|
|
3230
|
-
function
|
|
3231
|
-
const ret = wasm.
|
|
3442
|
+
function wasm_bindgen__convert__closures_____invoke__h38afe039e8450492_8(arg0, arg1, arg2) {
|
|
3443
|
+
const ret = wasm.wasm_bindgen__convert__closures_____invoke__h38afe039e8450492_8(arg0, arg1, arg2);
|
|
3232
3444
|
if (ret[1]) {
|
|
3233
3445
|
throw takeFromExternrefTable0(ret[0]);
|
|
3234
3446
|
}
|
|
3235
3447
|
}
|
|
3236
3448
|
|
|
3237
|
-
function
|
|
3238
|
-
const ret = wasm.
|
|
3449
|
+
function wasm_bindgen__convert__closures_____invoke__h38afe039e8450492_9(arg0, arg1, arg2) {
|
|
3450
|
+
const ret = wasm.wasm_bindgen__convert__closures_____invoke__h38afe039e8450492_9(arg0, arg1, arg2);
|
|
3239
3451
|
if (ret[1]) {
|
|
3240
3452
|
throw takeFromExternrefTable0(ret[0]);
|
|
3241
3453
|
}
|
|
@@ -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;
|
|
@@ -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
|
|
154
|
-
export const
|
|
155
|
-
export const
|
|
156
|
-
export const
|
|
157
|
-
export const
|
|
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;
|