@breeztech/breez-sdk-spark-react-native 0.7.8 → 0.7.9
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/cpp/generated/breez_sdk_spark.cpp +16 -15
- package/cpp/generated/breez_sdk_spark.hpp +2 -2
- package/lib/commonjs/generated/breez_sdk_spark.js +38 -23
- package/lib/commonjs/generated/breez_sdk_spark.js.map +1 -1
- package/lib/module/generated/breez_sdk_spark.js +38 -23
- package/lib/module/generated/breez_sdk_spark.js.map +1 -1
- package/lib/typescript/commonjs/src/generated/breez_sdk_spark-ffi.d.ts +3 -3
- package/lib/typescript/commonjs/src/generated/breez_sdk_spark-ffi.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/generated/breez_sdk_spark.d.ts +74 -44
- package/lib/typescript/commonjs/src/generated/breez_sdk_spark.d.ts.map +1 -1
- package/lib/typescript/module/src/generated/breez_sdk_spark-ffi.d.ts +3 -3
- package/lib/typescript/module/src/generated/breez_sdk_spark-ffi.d.ts.map +1 -1
- package/lib/typescript/module/src/generated/breez_sdk_spark.d.ts +74 -44
- package/lib/typescript/module/src/generated/breez_sdk_spark.d.ts.map +1 -1
- package/package.json +3 -3
- package/src/generated/breez_sdk_spark-ffi.ts +3 -3
- package/src/generated/breez_sdk_spark.ts +95 -65
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@breeztech/breez-sdk-spark-react-native",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.9",
|
|
4
4
|
"description": "React Native bindings for the Breez SDK - Nodeless (Spark Implementation)",
|
|
5
5
|
"source": "./src/index.tsx",
|
|
6
6
|
"main": "./lib/commonjs/index.js",
|
|
@@ -197,7 +197,7 @@
|
|
|
197
197
|
"version": "0.49.0"
|
|
198
198
|
},
|
|
199
199
|
"checksums": {
|
|
200
|
-
"android": "
|
|
201
|
-
"ios": "
|
|
200
|
+
"android": "8f33be4b59faaf6b75b4e1e3e7f7ba6d904194ca9a871c8c4687c28c2a8715f3",
|
|
201
|
+
"ios": "79bfb921d48c8ea3f0435fbd67850eff56408a4b643961b540282a98822b216f"
|
|
202
202
|
}
|
|
203
203
|
}
|
|
@@ -247,7 +247,7 @@ interface NativeModuleInterface {
|
|
|
247
247
|
ptr: bigint,
|
|
248
248
|
id: Uint8Array
|
|
249
249
|
): bigint;
|
|
250
|
-
|
|
250
|
+
ubrn_uniffi_breez_sdk_spark_fn_method_externalsigner_generate_random_secret(
|
|
251
251
|
ptr: bigint
|
|
252
252
|
): bigint;
|
|
253
253
|
ubrn_uniffi_breez_sdk_spark_fn_method_externalsigner_static_deposit_secret_encrypted(
|
|
@@ -759,7 +759,7 @@ interface NativeModuleInterface {
|
|
|
759
759
|
ubrn_uniffi_breez_sdk_spark_checksum_method_externalsigner_hmac_sha256(): number;
|
|
760
760
|
ubrn_uniffi_breez_sdk_spark_checksum_method_externalsigner_generate_random_signing_commitment(): number;
|
|
761
761
|
ubrn_uniffi_breez_sdk_spark_checksum_method_externalsigner_get_public_key_for_node(): number;
|
|
762
|
-
|
|
762
|
+
ubrn_uniffi_breez_sdk_spark_checksum_method_externalsigner_generate_random_secret(): number;
|
|
763
763
|
ubrn_uniffi_breez_sdk_spark_checksum_method_externalsigner_static_deposit_secret_encrypted(): number;
|
|
764
764
|
ubrn_uniffi_breez_sdk_spark_checksum_method_externalsigner_static_deposit_secret(): number;
|
|
765
765
|
ubrn_uniffi_breez_sdk_spark_checksum_method_externalsigner_static_deposit_signing_key(): number;
|
|
@@ -1383,7 +1383,7 @@ export type UniffiVTableCallbackInterfaceExternalSigner = {
|
|
|
1383
1383
|
hmacSha256: UniffiCallbackInterfaceExternalSignerMethod7;
|
|
1384
1384
|
generateRandomSigningCommitment: UniffiCallbackInterfaceExternalSignerMethod8;
|
|
1385
1385
|
getPublicKeyForNode: UniffiCallbackInterfaceExternalSignerMethod9;
|
|
1386
|
-
|
|
1386
|
+
generateRandomSecret: UniffiCallbackInterfaceExternalSignerMethod10;
|
|
1387
1387
|
staticDepositSecretEncrypted: UniffiCallbackInterfaceExternalSignerMethod11;
|
|
1388
1388
|
staticDepositSecret: UniffiCallbackInterfaceExternalSignerMethod12;
|
|
1389
1389
|
staticDepositSigningKey: UniffiCallbackInterfaceExternalSignerMethod13;
|
|
@@ -21201,29 +21201,42 @@ export interface ExternalSigner {
|
|
|
21201
21201
|
* * `id` - The tree node identifier
|
|
21202
21202
|
*
|
|
21203
21203
|
* # Returns
|
|
21204
|
-
* The public key for the node, or
|
|
21204
|
+
* The public key for the node, or a `SignerError`
|
|
21205
21205
|
*/
|
|
21206
21206
|
getPublicKeyForNode(
|
|
21207
21207
|
id: ExternalTreeNodeId,
|
|
21208
21208
|
asyncOpts_?: { signal: AbortSignal }
|
|
21209
21209
|
): /*throws*/ Promise<PublicKeyBytes>;
|
|
21210
21210
|
/**
|
|
21211
|
-
* Generates a random secret.
|
|
21211
|
+
* Generates a random secret that is encrypted and known only to the signer.
|
|
21212
|
+
*
|
|
21213
|
+
* This method creates a new random secret and returns it in encrypted form.
|
|
21214
|
+
* The plaintext secret never leaves the signer boundary, providing a secure way
|
|
21215
|
+
* to create secrets that can be referenced in subsequent operations without
|
|
21216
|
+
* exposing them.
|
|
21217
|
+
*
|
|
21218
|
+
* This is conceptually similar to Spark's key derivation system where secrets
|
|
21219
|
+
* are represented by opaque references (like tree node IDs or Random) rather than raw values.
|
|
21220
|
+
* The encrypted secret can be passed to other signer methods that need to operate
|
|
21221
|
+
* on it, while keeping the actual secret material protected within the signer.
|
|
21212
21222
|
*
|
|
21213
21223
|
* # Returns
|
|
21214
|
-
*
|
|
21224
|
+
* An encrypted secret that can be used in subsequent signer operations,
|
|
21225
|
+
* or a `SignerError` if generation fails.
|
|
21226
|
+
*
|
|
21227
|
+
* See also: [Key Derivation System](https://docs.spark.money/wallets/spark-signer#the-keyderivation-system)
|
|
21215
21228
|
*/
|
|
21216
|
-
|
|
21229
|
+
generateRandomSecret(asyncOpts_?: {
|
|
21217
21230
|
signal: AbortSignal;
|
|
21218
|
-
}): /*throws*/ Promise<
|
|
21231
|
+
}): /*throws*/ Promise<ExternalEncryptedSecret>;
|
|
21219
21232
|
/**
|
|
21220
21233
|
* Gets an encrypted static deposit secret by index.
|
|
21221
21234
|
*
|
|
21222
21235
|
* # Arguments
|
|
21223
|
-
* * `index` - The index of the static deposit
|
|
21236
|
+
* * `index` - The index of the static deposit secret
|
|
21224
21237
|
*
|
|
21225
21238
|
* # Returns
|
|
21226
|
-
* The encrypted secret
|
|
21239
|
+
* The encrypted secret, or a `SignerError`
|
|
21227
21240
|
*
|
|
21228
21241
|
* This is the encrypted version of: [JavaScript `getStaticDepositSecretKey`](https://docs.spark.money/wallets/spark-signer#get-static-deposit-secret-key)
|
|
21229
21242
|
*/
|
|
@@ -21235,10 +21248,10 @@ export interface ExternalSigner {
|
|
|
21235
21248
|
* Gets a static deposit secret by index.
|
|
21236
21249
|
*
|
|
21237
21250
|
* # Arguments
|
|
21238
|
-
* * `index` - The index of the static deposit
|
|
21251
|
+
* * `index` - The index of the static deposit secret
|
|
21239
21252
|
*
|
|
21240
21253
|
* # Returns
|
|
21241
|
-
* The 32-byte secret, or
|
|
21254
|
+
* The 32-byte secret, or a `SignerError`
|
|
21242
21255
|
*
|
|
21243
21256
|
* See also: [JavaScript `getStaticDepositSecretKey`](https://docs.spark.money/wallets/spark-signer#get-static-deposit-secret-key)
|
|
21244
21257
|
*/
|
|
@@ -21247,13 +21260,13 @@ export interface ExternalSigner {
|
|
|
21247
21260
|
asyncOpts_?: { signal: AbortSignal }
|
|
21248
21261
|
): /*throws*/ Promise<SecretBytes>;
|
|
21249
21262
|
/**
|
|
21250
|
-
* Gets a static deposit public key by index.
|
|
21263
|
+
* Gets a static deposit signing public key by index.
|
|
21251
21264
|
*
|
|
21252
21265
|
* # Arguments
|
|
21253
|
-
* * `index` - The index of the static deposit key
|
|
21266
|
+
* * `index` - The index of the static deposit public signing key
|
|
21254
21267
|
*
|
|
21255
21268
|
* # Returns
|
|
21256
|
-
* The 33-byte public key, or
|
|
21269
|
+
* The 33-byte public key, or a `SignerError`
|
|
21257
21270
|
*
|
|
21258
21271
|
* See also: [JavaScript `getStaticDepositSigningKey`](https://docs.spark.money/wallets/spark-signer#get-static-deposit-signing-key)
|
|
21259
21272
|
*/
|
|
@@ -21265,11 +21278,11 @@ export interface ExternalSigner {
|
|
|
21265
21278
|
* Subtracts one secret from another.
|
|
21266
21279
|
*
|
|
21267
21280
|
* # Arguments
|
|
21268
|
-
* * `signing_key` - The first secret
|
|
21269
|
-
* * `new_signing_key` - The second secret
|
|
21281
|
+
* * `signing_key` - The first secret
|
|
21282
|
+
* * `new_signing_key` - The second secret to subtract
|
|
21270
21283
|
*
|
|
21271
21284
|
* # Returns
|
|
21272
|
-
* The resulting secret
|
|
21285
|
+
* The resulting secret, or a `SignerError`
|
|
21273
21286
|
*
|
|
21274
21287
|
* See also: [JavaScript `subtractSplitAndEncrypt`](https://docs.spark.money/wallets/spark-signer#subtract,-split,-and-encrypt)
|
|
21275
21288
|
* (this method provides the subtraction step of that higher-level operation)
|
|
@@ -21288,7 +21301,7 @@ export interface ExternalSigner {
|
|
|
21288
21301
|
* * `num_shares` - Total number of shares to create
|
|
21289
21302
|
*
|
|
21290
21303
|
* # Returns
|
|
21291
|
-
* Vector of verifiable secret shares, or
|
|
21304
|
+
* Vector of verifiable secret shares, or a `SignerError`
|
|
21292
21305
|
*
|
|
21293
21306
|
* See also: [JavaScript `splitSecretWithProofs`](https://docs.spark.money/wallets/spark-signer#split-secret-with-proofs)
|
|
21294
21307
|
*/
|
|
@@ -21306,7 +21319,7 @@ export interface ExternalSigner {
|
|
|
21306
21319
|
* * `receiver_public_key` - The receiver's 33-byte public key
|
|
21307
21320
|
*
|
|
21308
21321
|
* # Returns
|
|
21309
|
-
* Encrypted data for the receiver, or
|
|
21322
|
+
* Encrypted data for the receiver, or a `SignerError`
|
|
21310
21323
|
*/
|
|
21311
21324
|
encryptSecretForReceiver(
|
|
21312
21325
|
encryptedSecret: ExternalEncryptedSecret,
|
|
@@ -21314,13 +21327,15 @@ export interface ExternalSigner {
|
|
|
21314
21327
|
asyncOpts_?: { signal: AbortSignal }
|
|
21315
21328
|
): /*throws*/ Promise<ArrayBuffer>;
|
|
21316
21329
|
/**
|
|
21317
|
-
* Gets the public key from a secret
|
|
21330
|
+
* Gets the public key from a secret.
|
|
21318
21331
|
*
|
|
21319
21332
|
* # Arguments
|
|
21320
|
-
* * `secret` - The secret
|
|
21333
|
+
* * `secret` - The secret
|
|
21321
21334
|
*
|
|
21322
21335
|
* # Returns
|
|
21323
|
-
* The corresponding 33-byte public key, or
|
|
21336
|
+
* The corresponding 33-byte public key, or a `SignerError`
|
|
21337
|
+
*
|
|
21338
|
+
* See also: [JavaScript `getPublicKeyFromDerivation`](https://docs.spark.money/wallets/spark-signer#get-public-key-from-derivation)
|
|
21324
21339
|
*/
|
|
21325
21340
|
publicKeyFromSecret(
|
|
21326
21341
|
secret: ExternalSecretSource,
|
|
@@ -21333,7 +21348,7 @@ export interface ExternalSigner {
|
|
|
21333
21348
|
* * `request` - The Frost signing request
|
|
21334
21349
|
*
|
|
21335
21350
|
* # Returns
|
|
21336
|
-
* A signature share, or
|
|
21351
|
+
* A signature share, or a `SignerError`
|
|
21337
21352
|
*
|
|
21338
21353
|
* See also: [JavaScript `signFrost`](https://docs.spark.money/wallets/spark-signer#frost-signing)
|
|
21339
21354
|
*/
|
|
@@ -21348,7 +21363,7 @@ export interface ExternalSigner {
|
|
|
21348
21363
|
* * `request` - The Frost aggregation request
|
|
21349
21364
|
*
|
|
21350
21365
|
* # Returns
|
|
21351
|
-
* The aggregated Frost signature, or
|
|
21366
|
+
* The aggregated Frost signature, or a `SignerError`
|
|
21352
21367
|
*
|
|
21353
21368
|
* See also: [JavaScript `aggregateFrost`](https://docs.spark.money/wallets/spark-signer#aggregate-frost-signatures)
|
|
21354
21369
|
*/
|
|
@@ -21824,7 +21839,7 @@ export class ExternalSignerImpl
|
|
|
21824
21839
|
* * `id` - The tree node identifier
|
|
21825
21840
|
*
|
|
21826
21841
|
* # Returns
|
|
21827
|
-
* The public key for the node, or
|
|
21842
|
+
* The public key for the node, or a `SignerError`
|
|
21828
21843
|
*/
|
|
21829
21844
|
public async getPublicKeyForNode(
|
|
21830
21845
|
id: ExternalTreeNodeId,
|
|
@@ -21866,20 +21881,33 @@ export class ExternalSignerImpl
|
|
|
21866
21881
|
}
|
|
21867
21882
|
|
|
21868
21883
|
/**
|
|
21869
|
-
* Generates a random secret.
|
|
21884
|
+
* Generates a random secret that is encrypted and known only to the signer.
|
|
21885
|
+
*
|
|
21886
|
+
* This method creates a new random secret and returns it in encrypted form.
|
|
21887
|
+
* The plaintext secret never leaves the signer boundary, providing a secure way
|
|
21888
|
+
* to create secrets that can be referenced in subsequent operations without
|
|
21889
|
+
* exposing them.
|
|
21890
|
+
*
|
|
21891
|
+
* This is conceptually similar to Spark's key derivation system where secrets
|
|
21892
|
+
* are represented by opaque references (like tree node IDs or Random) rather than raw values.
|
|
21893
|
+
* The encrypted secret can be passed to other signer methods that need to operate
|
|
21894
|
+
* on it, while keeping the actual secret material protected within the signer.
|
|
21870
21895
|
*
|
|
21871
21896
|
* # Returns
|
|
21872
|
-
*
|
|
21897
|
+
* An encrypted secret that can be used in subsequent signer operations,
|
|
21898
|
+
* or a `SignerError` if generation fails.
|
|
21899
|
+
*
|
|
21900
|
+
* See also: [Key Derivation System](https://docs.spark.money/wallets/spark-signer#the-keyderivation-system)
|
|
21873
21901
|
*/
|
|
21874
|
-
public async
|
|
21902
|
+
public async generateRandomSecret(asyncOpts_?: {
|
|
21875
21903
|
signal: AbortSignal;
|
|
21876
|
-
}): Promise<
|
|
21904
|
+
}): Promise<ExternalEncryptedSecret> /*throws*/ {
|
|
21877
21905
|
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
21878
21906
|
try {
|
|
21879
21907
|
return await uniffiRustCallAsync(
|
|
21880
21908
|
/*rustCaller:*/ uniffiCaller,
|
|
21881
21909
|
/*rustFutureFunc:*/ () => {
|
|
21882
|
-
return nativeModule().
|
|
21910
|
+
return nativeModule().ubrn_uniffi_breez_sdk_spark_fn_method_externalsigner_generate_random_secret(
|
|
21883
21911
|
uniffiTypeExternalSignerImplObjectFactory.clonePointer(this)
|
|
21884
21912
|
);
|
|
21885
21913
|
},
|
|
@@ -21891,8 +21919,8 @@ export class ExternalSignerImpl
|
|
|
21891
21919
|
.ubrn_ffi_breez_sdk_spark_rust_future_complete_rust_buffer,
|
|
21892
21920
|
/*freeFunc:*/ nativeModule()
|
|
21893
21921
|
.ubrn_ffi_breez_sdk_spark_rust_future_free_rust_buffer,
|
|
21894
|
-
/*liftFunc:*/
|
|
21895
|
-
|
|
21922
|
+
/*liftFunc:*/ FfiConverterTypeExternalEncryptedSecret.lift.bind(
|
|
21923
|
+
FfiConverterTypeExternalEncryptedSecret
|
|
21896
21924
|
),
|
|
21897
21925
|
/*liftString:*/ FfiConverterString.lift,
|
|
21898
21926
|
/*asyncOpts:*/ asyncOpts_,
|
|
@@ -21912,10 +21940,10 @@ export class ExternalSignerImpl
|
|
|
21912
21940
|
* Gets an encrypted static deposit secret by index.
|
|
21913
21941
|
*
|
|
21914
21942
|
* # Arguments
|
|
21915
|
-
* * `index` - The index of the static deposit
|
|
21943
|
+
* * `index` - The index of the static deposit secret
|
|
21916
21944
|
*
|
|
21917
21945
|
* # Returns
|
|
21918
|
-
* The encrypted secret
|
|
21946
|
+
* The encrypted secret, or a `SignerError`
|
|
21919
21947
|
*
|
|
21920
21948
|
* This is the encrypted version of: [JavaScript `getStaticDepositSecretKey`](https://docs.spark.money/wallets/spark-signer#get-static-deposit-secret-key)
|
|
21921
21949
|
*/
|
|
@@ -21962,10 +21990,10 @@ export class ExternalSignerImpl
|
|
|
21962
21990
|
* Gets a static deposit secret by index.
|
|
21963
21991
|
*
|
|
21964
21992
|
* # Arguments
|
|
21965
|
-
* * `index` - The index of the static deposit
|
|
21993
|
+
* * `index` - The index of the static deposit secret
|
|
21966
21994
|
*
|
|
21967
21995
|
* # Returns
|
|
21968
|
-
* The 32-byte secret, or
|
|
21996
|
+
* The 32-byte secret, or a `SignerError`
|
|
21969
21997
|
*
|
|
21970
21998
|
* See also: [JavaScript `getStaticDepositSecretKey`](https://docs.spark.money/wallets/spark-signer#get-static-deposit-secret-key)
|
|
21971
21999
|
*/
|
|
@@ -22009,13 +22037,13 @@ export class ExternalSignerImpl
|
|
|
22009
22037
|
}
|
|
22010
22038
|
|
|
22011
22039
|
/**
|
|
22012
|
-
* Gets a static deposit public key by index.
|
|
22040
|
+
* Gets a static deposit signing public key by index.
|
|
22013
22041
|
*
|
|
22014
22042
|
* # Arguments
|
|
22015
|
-
* * `index` - The index of the static deposit key
|
|
22043
|
+
* * `index` - The index of the static deposit public signing key
|
|
22016
22044
|
*
|
|
22017
22045
|
* # Returns
|
|
22018
|
-
* The 33-byte public key, or
|
|
22046
|
+
* The 33-byte public key, or a `SignerError`
|
|
22019
22047
|
*
|
|
22020
22048
|
* See also: [JavaScript `getStaticDepositSigningKey`](https://docs.spark.money/wallets/spark-signer#get-static-deposit-signing-key)
|
|
22021
22049
|
*/
|
|
@@ -22062,11 +22090,11 @@ export class ExternalSignerImpl
|
|
|
22062
22090
|
* Subtracts one secret from another.
|
|
22063
22091
|
*
|
|
22064
22092
|
* # Arguments
|
|
22065
|
-
* * `signing_key` - The first secret
|
|
22066
|
-
* * `new_signing_key` - The second secret
|
|
22093
|
+
* * `signing_key` - The first secret
|
|
22094
|
+
* * `new_signing_key` - The second secret to subtract
|
|
22067
22095
|
*
|
|
22068
22096
|
* # Returns
|
|
22069
|
-
* The resulting secret
|
|
22097
|
+
* The resulting secret, or a `SignerError`
|
|
22070
22098
|
*
|
|
22071
22099
|
* See also: [JavaScript `subtractSplitAndEncrypt`](https://docs.spark.money/wallets/spark-signer#subtract,-split,-and-encrypt)
|
|
22072
22100
|
* (this method provides the subtraction step of that higher-level operation)
|
|
@@ -22121,7 +22149,7 @@ export class ExternalSignerImpl
|
|
|
22121
22149
|
* * `num_shares` - Total number of shares to create
|
|
22122
22150
|
*
|
|
22123
22151
|
* # Returns
|
|
22124
|
-
* Vector of verifiable secret shares, or
|
|
22152
|
+
* Vector of verifiable secret shares, or a `SignerError`
|
|
22125
22153
|
*
|
|
22126
22154
|
* See also: [JavaScript `splitSecretWithProofs`](https://docs.spark.money/wallets/spark-signer#split-secret-with-proofs)
|
|
22127
22155
|
*/
|
|
@@ -22176,7 +22204,7 @@ export class ExternalSignerImpl
|
|
|
22176
22204
|
* * `receiver_public_key` - The receiver's 33-byte public key
|
|
22177
22205
|
*
|
|
22178
22206
|
* # Returns
|
|
22179
|
-
* Encrypted data for the receiver, or
|
|
22207
|
+
* Encrypted data for the receiver, or a `SignerError`
|
|
22180
22208
|
*/
|
|
22181
22209
|
public async encryptSecretForReceiver(
|
|
22182
22210
|
encryptedSecret: ExternalEncryptedSecret,
|
|
@@ -22220,13 +22248,15 @@ export class ExternalSignerImpl
|
|
|
22220
22248
|
}
|
|
22221
22249
|
|
|
22222
22250
|
/**
|
|
22223
|
-
* Gets the public key from a secret
|
|
22251
|
+
* Gets the public key from a secret.
|
|
22224
22252
|
*
|
|
22225
22253
|
* # Arguments
|
|
22226
|
-
* * `secret` - The secret
|
|
22254
|
+
* * `secret` - The secret
|
|
22227
22255
|
*
|
|
22228
22256
|
* # Returns
|
|
22229
|
-
* The corresponding 33-byte public key, or
|
|
22257
|
+
* The corresponding 33-byte public key, or a `SignerError`
|
|
22258
|
+
*
|
|
22259
|
+
* See also: [JavaScript `getPublicKeyFromDerivation`](https://docs.spark.money/wallets/spark-signer#get-public-key-from-derivation)
|
|
22230
22260
|
*/
|
|
22231
22261
|
public async publicKeyFromSecret(
|
|
22232
22262
|
secret: ExternalSecretSource,
|
|
@@ -22274,7 +22304,7 @@ export class ExternalSignerImpl
|
|
|
22274
22304
|
* * `request` - The Frost signing request
|
|
22275
22305
|
*
|
|
22276
22306
|
* # Returns
|
|
22277
|
-
* A signature share, or
|
|
22307
|
+
* A signature share, or a `SignerError`
|
|
22278
22308
|
*
|
|
22279
22309
|
* See also: [JavaScript `signFrost`](https://docs.spark.money/wallets/spark-signer#frost-signing)
|
|
22280
22310
|
*/
|
|
@@ -22324,7 +22354,7 @@ export class ExternalSignerImpl
|
|
|
22324
22354
|
* * `request` - The Frost aggregation request
|
|
22325
22355
|
*
|
|
22326
22356
|
* # Returns
|
|
22327
|
-
* The aggregated Frost signature, or
|
|
22357
|
+
* The aggregated Frost signature, or a `SignerError`
|
|
22328
22358
|
*
|
|
22329
22359
|
* See also: [JavaScript `aggregateFrost`](https://docs.spark.money/wallets/spark-signer#aggregate-frost-signatures)
|
|
22330
22360
|
*/
|
|
@@ -22915,23 +22945,23 @@ const uniffiCallbackInterfaceExternalSigner: {
|
|
|
22915
22945
|
);
|
|
22916
22946
|
return UniffiResult.success(uniffiForeignFuture);
|
|
22917
22947
|
},
|
|
22918
|
-
|
|
22948
|
+
generateRandomSecret: (
|
|
22919
22949
|
uniffiHandle: bigint,
|
|
22920
22950
|
uniffiFutureCallback: UniffiForeignFutureCompleteRustBuffer,
|
|
22921
22951
|
uniffiCallbackData: bigint
|
|
22922
22952
|
) => {
|
|
22923
22953
|
const uniffiMakeCall = async (
|
|
22924
22954
|
signal: AbortSignal
|
|
22925
|
-
): Promise<
|
|
22955
|
+
): Promise<ExternalEncryptedSecret> => {
|
|
22926
22956
|
const jsCallback = FfiConverterTypeExternalSigner.lift(uniffiHandle);
|
|
22927
|
-
return await jsCallback.
|
|
22957
|
+
return await jsCallback.generateRandomSecret({ signal });
|
|
22928
22958
|
};
|
|
22929
|
-
const uniffiHandleSuccess = (returnValue:
|
|
22959
|
+
const uniffiHandleSuccess = (returnValue: ExternalEncryptedSecret) => {
|
|
22930
22960
|
uniffiFutureCallback(
|
|
22931
22961
|
uniffiCallbackData,
|
|
22932
22962
|
/* UniffiForeignFutureStructRustBuffer */ {
|
|
22933
22963
|
returnValue:
|
|
22934
|
-
|
|
22964
|
+
FfiConverterTypeExternalEncryptedSecret.lower(returnValue),
|
|
22935
22965
|
callStatus: uniffiCaller.createCallStatus(),
|
|
22936
22966
|
}
|
|
22937
22967
|
);
|
|
@@ -28795,23 +28825,23 @@ function uniffiEnsureInitialized() {
|
|
|
28795
28825
|
}
|
|
28796
28826
|
if (
|
|
28797
28827
|
nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_externalsigner_get_public_key_for_node() !==
|
|
28798
|
-
|
|
28828
|
+
37434
|
|
28799
28829
|
) {
|
|
28800
28830
|
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
28801
28831
|
'uniffi_breez_sdk_spark_checksum_method_externalsigner_get_public_key_for_node'
|
|
28802
28832
|
);
|
|
28803
28833
|
}
|
|
28804
28834
|
if (
|
|
28805
|
-
nativeModule().
|
|
28806
|
-
|
|
28835
|
+
nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_externalsigner_generate_random_secret() !==
|
|
28836
|
+
26114
|
|
28807
28837
|
) {
|
|
28808
28838
|
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
28809
|
-
'
|
|
28839
|
+
'uniffi_breez_sdk_spark_checksum_method_externalsigner_generate_random_secret'
|
|
28810
28840
|
);
|
|
28811
28841
|
}
|
|
28812
28842
|
if (
|
|
28813
28843
|
nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_externalsigner_static_deposit_secret_encrypted() !==
|
|
28814
|
-
|
|
28844
|
+
38925
|
|
28815
28845
|
) {
|
|
28816
28846
|
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
28817
28847
|
'uniffi_breez_sdk_spark_checksum_method_externalsigner_static_deposit_secret_encrypted'
|
|
@@ -28819,7 +28849,7 @@ function uniffiEnsureInitialized() {
|
|
|
28819
28849
|
}
|
|
28820
28850
|
if (
|
|
28821
28851
|
nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_externalsigner_static_deposit_secret() !==
|
|
28822
|
-
|
|
28852
|
+
45280
|
|
28823
28853
|
) {
|
|
28824
28854
|
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
28825
28855
|
'uniffi_breez_sdk_spark_checksum_method_externalsigner_static_deposit_secret'
|
|
@@ -28827,7 +28857,7 @@ function uniffiEnsureInitialized() {
|
|
|
28827
28857
|
}
|
|
28828
28858
|
if (
|
|
28829
28859
|
nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_externalsigner_static_deposit_signing_key() !==
|
|
28830
|
-
|
|
28860
|
+
62519
|
|
28831
28861
|
) {
|
|
28832
28862
|
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
28833
28863
|
'uniffi_breez_sdk_spark_checksum_method_externalsigner_static_deposit_signing_key'
|
|
@@ -28835,7 +28865,7 @@ function uniffiEnsureInitialized() {
|
|
|
28835
28865
|
}
|
|
28836
28866
|
if (
|
|
28837
28867
|
nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_externalsigner_subtract_secrets() !==
|
|
28838
|
-
|
|
28868
|
+
51106
|
|
28839
28869
|
) {
|
|
28840
28870
|
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
28841
28871
|
'uniffi_breez_sdk_spark_checksum_method_externalsigner_subtract_secrets'
|
|
@@ -28843,7 +28873,7 @@ function uniffiEnsureInitialized() {
|
|
|
28843
28873
|
}
|
|
28844
28874
|
if (
|
|
28845
28875
|
nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_externalsigner_split_secret_with_proofs() !==
|
|
28846
|
-
|
|
28876
|
+
19489
|
|
28847
28877
|
) {
|
|
28848
28878
|
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
28849
28879
|
'uniffi_breez_sdk_spark_checksum_method_externalsigner_split_secret_with_proofs'
|
|
@@ -28851,7 +28881,7 @@ function uniffiEnsureInitialized() {
|
|
|
28851
28881
|
}
|
|
28852
28882
|
if (
|
|
28853
28883
|
nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_externalsigner_encrypt_secret_for_receiver() !==
|
|
28854
|
-
|
|
28884
|
+
51627
|
|
28855
28885
|
) {
|
|
28856
28886
|
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
28857
28887
|
'uniffi_breez_sdk_spark_checksum_method_externalsigner_encrypt_secret_for_receiver'
|
|
@@ -28859,7 +28889,7 @@ function uniffiEnsureInitialized() {
|
|
|
28859
28889
|
}
|
|
28860
28890
|
if (
|
|
28861
28891
|
nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_externalsigner_public_key_from_secret() !==
|
|
28862
|
-
|
|
28892
|
+
53055
|
|
28863
28893
|
) {
|
|
28864
28894
|
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
28865
28895
|
'uniffi_breez_sdk_spark_checksum_method_externalsigner_public_key_from_secret'
|
|
@@ -28867,7 +28897,7 @@ function uniffiEnsureInitialized() {
|
|
|
28867
28897
|
}
|
|
28868
28898
|
if (
|
|
28869
28899
|
nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_externalsigner_sign_frost() !==
|
|
28870
|
-
|
|
28900
|
+
20635
|
|
28871
28901
|
) {
|
|
28872
28902
|
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
28873
28903
|
'uniffi_breez_sdk_spark_checksum_method_externalsigner_sign_frost'
|
|
@@ -28875,7 +28905,7 @@ function uniffiEnsureInitialized() {
|
|
|
28875
28905
|
}
|
|
28876
28906
|
if (
|
|
28877
28907
|
nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_externalsigner_aggregate_frost() !==
|
|
28878
|
-
|
|
28908
|
+
53544
|
|
28879
28909
|
) {
|
|
28880
28910
|
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
28881
28911
|
'uniffi_breez_sdk_spark_checksum_method_externalsigner_aggregate_frost'
|