@breeztech/breez-sdk-spark-react-native 0.7.5 → 0.7.7
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 +231 -234
- package/cpp/generated/breez_sdk_spark.hpp +23 -22
- package/lib/commonjs/generated/breez_sdk_spark.js +76 -53
- package/lib/commonjs/generated/breez_sdk_spark.js.map +1 -1
- package/lib/module/generated/breez_sdk_spark.js +75 -52
- package/lib/module/generated/breez_sdk_spark.js.map +1 -1
- package/lib/typescript/commonjs/src/generated/breez_sdk_spark-ffi.d.ts +35 -35
- 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 +133 -87
- 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 +35 -35
- 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 +133 -87
- 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 +37 -37
- package/src/generated/breez_sdk_spark.ts +248 -202
|
@@ -3389,7 +3389,7 @@ export type ExternalSignFrostRequest = {
|
|
|
3389
3389
|
/**
|
|
3390
3390
|
* The private key source
|
|
3391
3391
|
*/
|
|
3392
|
-
privateKey:
|
|
3392
|
+
privateKey: ExternalSecretKeySource;
|
|
3393
3393
|
/**
|
|
3394
3394
|
* The verifying key (33 bytes compressed)
|
|
3395
3395
|
*/
|
|
@@ -3447,7 +3447,7 @@ const FfiConverterTypeExternalSignFrostRequest = (() => {
|
|
|
3447
3447
|
return {
|
|
3448
3448
|
message: FfiConverterArrayBuffer.read(from),
|
|
3449
3449
|
publicKey: FfiConverterArrayBuffer.read(from),
|
|
3450
|
-
privateKey:
|
|
3450
|
+
privateKey: FfiConverterTypeExternalSecretKeySource.read(from),
|
|
3451
3451
|
verifyingKey: FfiConverterArrayBuffer.read(from),
|
|
3452
3452
|
selfNonceCommitment:
|
|
3453
3453
|
FfiConverterTypeExternalFrostCommitments.read(from),
|
|
@@ -3459,7 +3459,7 @@ const FfiConverterTypeExternalSignFrostRequest = (() => {
|
|
|
3459
3459
|
write(value: TypeName, into: RustBuffer): void {
|
|
3460
3460
|
FfiConverterArrayBuffer.write(value.message, into);
|
|
3461
3461
|
FfiConverterArrayBuffer.write(value.publicKey, into);
|
|
3462
|
-
|
|
3462
|
+
FfiConverterTypeExternalSecretKeySource.write(value.privateKey, into);
|
|
3463
3463
|
FfiConverterArrayBuffer.write(value.verifyingKey, into);
|
|
3464
3464
|
FfiConverterTypeExternalFrostCommitments.write(
|
|
3465
3465
|
value.selfNonceCommitment,
|
|
@@ -3475,7 +3475,7 @@ const FfiConverterTypeExternalSignFrostRequest = (() => {
|
|
|
3475
3475
|
return (
|
|
3476
3476
|
FfiConverterArrayBuffer.allocationSize(value.message) +
|
|
3477
3477
|
FfiConverterArrayBuffer.allocationSize(value.publicKey) +
|
|
3478
|
-
|
|
3478
|
+
FfiConverterTypeExternalSecretKeySource.allocationSize(
|
|
3479
3479
|
value.privateKey
|
|
3480
3480
|
) +
|
|
3481
3481
|
FfiConverterArrayBuffer.allocationSize(value.verifyingKey) +
|
|
@@ -11213,17 +11213,17 @@ const FfiConverterTypeDepositClaimError = (() => {
|
|
|
11213
11213
|
return new FFIConverter();
|
|
11214
11214
|
})();
|
|
11215
11215
|
|
|
11216
|
-
// Enum:
|
|
11217
|
-
export enum
|
|
11216
|
+
// Enum: ExternalSecretKeySource
|
|
11217
|
+
export enum ExternalSecretKeySource_Tags {
|
|
11218
11218
|
Derived = 'Derived',
|
|
11219
11219
|
Encrypted = 'Encrypted',
|
|
11220
11220
|
}
|
|
11221
11221
|
/**
|
|
11222
|
-
* FFI-safe representation of `spark_wallet::
|
|
11222
|
+
* FFI-safe representation of `spark_wallet::SecretKeySource`
|
|
11223
11223
|
*/
|
|
11224
|
-
export const
|
|
11224
|
+
export const ExternalSecretKeySource = (() => {
|
|
11225
11225
|
type Derived__interface = {
|
|
11226
|
-
tag:
|
|
11226
|
+
tag: ExternalSecretKeySource_Tags.Derived;
|
|
11227
11227
|
inner: Readonly<{ nodeId: ExternalTreeNodeId }>;
|
|
11228
11228
|
};
|
|
11229
11229
|
|
|
@@ -11235,11 +11235,11 @@ export const ExternalPrivateKeySource = (() => {
|
|
|
11235
11235
|
* @private
|
|
11236
11236
|
* This field is private and should not be used, use `tag` instead.
|
|
11237
11237
|
*/
|
|
11238
|
-
readonly [uniffiTypeNameSymbol] = '
|
|
11239
|
-
readonly tag =
|
|
11238
|
+
readonly [uniffiTypeNameSymbol] = 'ExternalSecretKeySource';
|
|
11239
|
+
readonly tag = ExternalSecretKeySource_Tags.Derived;
|
|
11240
11240
|
readonly inner: Readonly<{ nodeId: ExternalTreeNodeId }>;
|
|
11241
11241
|
constructor(inner: { nodeId: ExternalTreeNodeId }) {
|
|
11242
|
-
super('
|
|
11242
|
+
super('ExternalSecretKeySource', 'Derived');
|
|
11243
11243
|
this.inner = Object.freeze(inner);
|
|
11244
11244
|
}
|
|
11245
11245
|
|
|
@@ -11248,12 +11248,12 @@ export const ExternalPrivateKeySource = (() => {
|
|
|
11248
11248
|
}
|
|
11249
11249
|
|
|
11250
11250
|
static instanceOf(obj: any): obj is Derived_ {
|
|
11251
|
-
return obj.tag ===
|
|
11251
|
+
return obj.tag === ExternalSecretKeySource_Tags.Derived;
|
|
11252
11252
|
}
|
|
11253
11253
|
}
|
|
11254
11254
|
|
|
11255
11255
|
type Encrypted__interface = {
|
|
11256
|
-
tag:
|
|
11256
|
+
tag: ExternalSecretKeySource_Tags.Encrypted;
|
|
11257
11257
|
inner: Readonly<{ key: ExternalEncryptedPrivateKey }>;
|
|
11258
11258
|
};
|
|
11259
11259
|
|
|
@@ -11265,11 +11265,11 @@ export const ExternalPrivateKeySource = (() => {
|
|
|
11265
11265
|
* @private
|
|
11266
11266
|
* This field is private and should not be used, use `tag` instead.
|
|
11267
11267
|
*/
|
|
11268
|
-
readonly [uniffiTypeNameSymbol] = '
|
|
11269
|
-
readonly tag =
|
|
11268
|
+
readonly [uniffiTypeNameSymbol] = 'ExternalSecretKeySource';
|
|
11269
|
+
readonly tag = ExternalSecretKeySource_Tags.Encrypted;
|
|
11270
11270
|
readonly inner: Readonly<{ key: ExternalEncryptedPrivateKey }>;
|
|
11271
11271
|
constructor(inner: { key: ExternalEncryptedPrivateKey }) {
|
|
11272
|
-
super('
|
|
11272
|
+
super('ExternalSecretKeySource', 'Encrypted');
|
|
11273
11273
|
this.inner = Object.freeze(inner);
|
|
11274
11274
|
}
|
|
11275
11275
|
|
|
@@ -11278,12 +11278,12 @@ export const ExternalPrivateKeySource = (() => {
|
|
|
11278
11278
|
}
|
|
11279
11279
|
|
|
11280
11280
|
static instanceOf(obj: any): obj is Encrypted_ {
|
|
11281
|
-
return obj.tag ===
|
|
11281
|
+
return obj.tag === ExternalSecretKeySource_Tags.Encrypted;
|
|
11282
11282
|
}
|
|
11283
11283
|
}
|
|
11284
11284
|
|
|
11285
|
-
function instanceOf(obj: any): obj is
|
|
11286
|
-
return obj[uniffiTypeNameSymbol] === '
|
|
11285
|
+
function instanceOf(obj: any): obj is ExternalSecretKeySource {
|
|
11286
|
+
return obj[uniffiTypeNameSymbol] === 'ExternalSecretKeySource';
|
|
11287
11287
|
}
|
|
11288
11288
|
|
|
11289
11289
|
return Object.freeze({
|
|
@@ -11294,29 +11294,29 @@ export const ExternalPrivateKeySource = (() => {
|
|
|
11294
11294
|
})();
|
|
11295
11295
|
|
|
11296
11296
|
/**
|
|
11297
|
-
* FFI-safe representation of `spark_wallet::
|
|
11297
|
+
* FFI-safe representation of `spark_wallet::SecretKeySource`
|
|
11298
11298
|
*/
|
|
11299
11299
|
|
|
11300
|
-
export type
|
|
11301
|
-
(typeof
|
|
11302
|
-
typeof
|
|
11300
|
+
export type ExternalSecretKeySource = InstanceType<
|
|
11301
|
+
(typeof ExternalSecretKeySource)[keyof Omit<
|
|
11302
|
+
typeof ExternalSecretKeySource,
|
|
11303
11303
|
'instanceOf'
|
|
11304
11304
|
>]
|
|
11305
11305
|
>;
|
|
11306
11306
|
|
|
11307
|
-
// FfiConverter for enum
|
|
11308
|
-
const
|
|
11307
|
+
// FfiConverter for enum ExternalSecretKeySource
|
|
11308
|
+
const FfiConverterTypeExternalSecretKeySource = (() => {
|
|
11309
11309
|
const ordinalConverter = FfiConverterInt32;
|
|
11310
|
-
type TypeName =
|
|
11310
|
+
type TypeName = ExternalSecretKeySource;
|
|
11311
11311
|
class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {
|
|
11312
11312
|
read(from: RustBuffer): TypeName {
|
|
11313
11313
|
switch (ordinalConverter.read(from)) {
|
|
11314
11314
|
case 1:
|
|
11315
|
-
return new
|
|
11315
|
+
return new ExternalSecretKeySource.Derived({
|
|
11316
11316
|
nodeId: FfiConverterTypeExternalTreeNodeId.read(from),
|
|
11317
11317
|
});
|
|
11318
11318
|
case 2:
|
|
11319
|
-
return new
|
|
11319
|
+
return new ExternalSecretKeySource.Encrypted({
|
|
11320
11320
|
key: FfiConverterTypeExternalEncryptedPrivateKey.read(from),
|
|
11321
11321
|
});
|
|
11322
11322
|
default:
|
|
@@ -11325,26 +11325,26 @@ const FfiConverterTypeExternalPrivateKeySource = (() => {
|
|
|
11325
11325
|
}
|
|
11326
11326
|
write(value: TypeName, into: RustBuffer): void {
|
|
11327
11327
|
switch (value.tag) {
|
|
11328
|
-
case
|
|
11328
|
+
case ExternalSecretKeySource_Tags.Derived: {
|
|
11329
11329
|
ordinalConverter.write(1, into);
|
|
11330
11330
|
const inner = value.inner;
|
|
11331
11331
|
FfiConverterTypeExternalTreeNodeId.write(inner.nodeId, into);
|
|
11332
11332
|
return;
|
|
11333
11333
|
}
|
|
11334
|
-
case
|
|
11334
|
+
case ExternalSecretKeySource_Tags.Encrypted: {
|
|
11335
11335
|
ordinalConverter.write(2, into);
|
|
11336
11336
|
const inner = value.inner;
|
|
11337
11337
|
FfiConverterTypeExternalEncryptedPrivateKey.write(inner.key, into);
|
|
11338
11338
|
return;
|
|
11339
11339
|
}
|
|
11340
11340
|
default:
|
|
11341
|
-
// Throwing from here means that
|
|
11341
|
+
// Throwing from here means that ExternalSecretKeySource_Tags hasn't matched an ordinal.
|
|
11342
11342
|
throw new UniffiInternalError.UnexpectedEnumCase();
|
|
11343
11343
|
}
|
|
11344
11344
|
}
|
|
11345
11345
|
allocationSize(value: TypeName): number {
|
|
11346
11346
|
switch (value.tag) {
|
|
11347
|
-
case
|
|
11347
|
+
case ExternalSecretKeySource_Tags.Derived: {
|
|
11348
11348
|
const inner = value.inner;
|
|
11349
11349
|
let size = ordinalConverter.allocationSize(1);
|
|
11350
11350
|
size += FfiConverterTypeExternalTreeNodeId.allocationSize(
|
|
@@ -11352,7 +11352,7 @@ const FfiConverterTypeExternalPrivateKeySource = (() => {
|
|
|
11352
11352
|
);
|
|
11353
11353
|
return size;
|
|
11354
11354
|
}
|
|
11355
|
-
case
|
|
11355
|
+
case ExternalSecretKeySource_Tags.Encrypted: {
|
|
11356
11356
|
const inner = value.inner;
|
|
11357
11357
|
let size = ordinalConverter.allocationSize(2);
|
|
11358
11358
|
size += FfiConverterTypeExternalEncryptedPrivateKey.allocationSize(
|
|
@@ -11379,7 +11379,7 @@ export enum ExternalSecretToSplit_Tags {
|
|
|
11379
11379
|
export const ExternalSecretToSplit = (() => {
|
|
11380
11380
|
type PrivateKey__interface = {
|
|
11381
11381
|
tag: ExternalSecretToSplit_Tags.PrivateKey;
|
|
11382
|
-
inner: Readonly<{ source:
|
|
11382
|
+
inner: Readonly<{ source: ExternalSecretKeySource }>;
|
|
11383
11383
|
};
|
|
11384
11384
|
|
|
11385
11385
|
/**
|
|
@@ -11392,13 +11392,13 @@ export const ExternalSecretToSplit = (() => {
|
|
|
11392
11392
|
*/
|
|
11393
11393
|
readonly [uniffiTypeNameSymbol] = 'ExternalSecretToSplit';
|
|
11394
11394
|
readonly tag = ExternalSecretToSplit_Tags.PrivateKey;
|
|
11395
|
-
readonly inner: Readonly<{ source:
|
|
11396
|
-
constructor(inner: { source:
|
|
11395
|
+
readonly inner: Readonly<{ source: ExternalSecretKeySource }>;
|
|
11396
|
+
constructor(inner: { source: ExternalSecretKeySource }) {
|
|
11397
11397
|
super('ExternalSecretToSplit', 'PrivateKey');
|
|
11398
11398
|
this.inner = Object.freeze(inner);
|
|
11399
11399
|
}
|
|
11400
11400
|
|
|
11401
|
-
static new(inner: { source:
|
|
11401
|
+
static new(inner: { source: ExternalSecretKeySource }): PrivateKey_ {
|
|
11402
11402
|
return new PrivateKey_(inner);
|
|
11403
11403
|
}
|
|
11404
11404
|
|
|
@@ -11468,7 +11468,7 @@ const FfiConverterTypeExternalSecretToSplit = (() => {
|
|
|
11468
11468
|
switch (ordinalConverter.read(from)) {
|
|
11469
11469
|
case 1:
|
|
11470
11470
|
return new ExternalSecretToSplit.PrivateKey({
|
|
11471
|
-
source:
|
|
11471
|
+
source: FfiConverterTypeExternalSecretKeySource.read(from),
|
|
11472
11472
|
});
|
|
11473
11473
|
case 2:
|
|
11474
11474
|
return new ExternalSecretToSplit.Preimage({
|
|
@@ -11483,7 +11483,7 @@ const FfiConverterTypeExternalSecretToSplit = (() => {
|
|
|
11483
11483
|
case ExternalSecretToSplit_Tags.PrivateKey: {
|
|
11484
11484
|
ordinalConverter.write(1, into);
|
|
11485
11485
|
const inner = value.inner;
|
|
11486
|
-
|
|
11486
|
+
FfiConverterTypeExternalSecretKeySource.write(inner.source, into);
|
|
11487
11487
|
return;
|
|
11488
11488
|
}
|
|
11489
11489
|
case ExternalSecretToSplit_Tags.Preimage: {
|
|
@@ -11502,7 +11502,7 @@ const FfiConverterTypeExternalSecretToSplit = (() => {
|
|
|
11502
11502
|
case ExternalSecretToSplit_Tags.PrivateKey: {
|
|
11503
11503
|
const inner = value.inner;
|
|
11504
11504
|
let size = ordinalConverter.allocationSize(1);
|
|
11505
|
-
size +=
|
|
11505
|
+
size += FfiConverterTypeExternalSecretKeySource.allocationSize(
|
|
11506
11506
|
inner.source
|
|
11507
11507
|
);
|
|
11508
11508
|
return size;
|
|
@@ -21068,6 +21068,8 @@ const FfiConverterTypeBreezSdk = new FfiConverterObject(
|
|
|
21068
21068
|
export interface ExternalSigner {
|
|
21069
21069
|
/**
|
|
21070
21070
|
* Returns the identity public key as 33 bytes (compressed secp256k1 key).
|
|
21071
|
+
*
|
|
21072
|
+
* See also: [JavaScript `getIdentityPublicKey`](https://docs.spark.money/wallets/spark-signer#get-identity-public-key)
|
|
21071
21073
|
*/
|
|
21072
21074
|
identityPublicKey(): /*throws*/ PublicKeyBytes;
|
|
21073
21075
|
/**
|
|
@@ -21078,6 +21080,8 @@ export interface ExternalSigner {
|
|
|
21078
21080
|
*
|
|
21079
21081
|
* # Returns
|
|
21080
21082
|
* The derived public key as 33 bytes, or a `SignerError`
|
|
21083
|
+
*
|
|
21084
|
+
* See also: [JavaScript `getPublicKeyFromDerivation`](https://docs.spark.money/wallets/spark-signer#get-public-key-from-derivation)
|
|
21081
21085
|
*/
|
|
21082
21086
|
derivePublicKey(
|
|
21083
21087
|
path: string,
|
|
@@ -21127,7 +21131,7 @@ export interface ExternalSigner {
|
|
|
21127
21131
|
* # Returns
|
|
21128
21132
|
* Encrypted data, or a `SignerError`
|
|
21129
21133
|
*/
|
|
21130
|
-
|
|
21134
|
+
encryptEcies(
|
|
21131
21135
|
message: ArrayBuffer,
|
|
21132
21136
|
path: string,
|
|
21133
21137
|
asyncOpts_?: { signal: AbortSignal }
|
|
@@ -21141,8 +21145,10 @@ export interface ExternalSigner {
|
|
|
21141
21145
|
*
|
|
21142
21146
|
* # Returns
|
|
21143
21147
|
* Decrypted data, or a `SignerError`
|
|
21148
|
+
*
|
|
21149
|
+
* See also: [JavaScript `decryptEcies`](https://docs.spark.money/wallets/spark-signer#decrypt-ecies)
|
|
21144
21150
|
*/
|
|
21145
|
-
|
|
21151
|
+
decryptEcies(
|
|
21146
21152
|
message: ArrayBuffer,
|
|
21147
21153
|
path: string,
|
|
21148
21154
|
asyncOpts_?: { signal: AbortSignal }
|
|
@@ -21171,6 +21177,8 @@ export interface ExternalSigner {
|
|
|
21171
21177
|
*
|
|
21172
21178
|
* # Returns
|
|
21173
21179
|
* 32-byte HMAC-SHA256, or a `SignerError`
|
|
21180
|
+
*
|
|
21181
|
+
* See also: [JavaScript `htlcHMAC`](https://docs.spark.money/wallets/spark-signer#generate-htlc-hmac)
|
|
21174
21182
|
*/
|
|
21175
21183
|
hmacSha256(
|
|
21176
21184
|
message: ArrayBuffer,
|
|
@@ -21182,8 +21190,10 @@ export interface ExternalSigner {
|
|
|
21182
21190
|
*
|
|
21183
21191
|
* # Returns
|
|
21184
21192
|
* Frost commitments with nonces, or a `SignerError`
|
|
21193
|
+
*
|
|
21194
|
+
* See also: [JavaScript `getRandomSigningCommitment`](https://docs.spark.money/wallets/spark-signer#get-random-signing-commitment)
|
|
21185
21195
|
*/
|
|
21186
|
-
|
|
21196
|
+
generateRandomSigningCommitment(asyncOpts_?: {
|
|
21187
21197
|
signal: AbortSignal;
|
|
21188
21198
|
}): /*throws*/ Promise<ExternalFrostCommitments>;
|
|
21189
21199
|
/**
|
|
@@ -21200,37 +21210,39 @@ export interface ExternalSigner {
|
|
|
21200
21210
|
asyncOpts_?: { signal: AbortSignal }
|
|
21201
21211
|
): /*throws*/ Promise<PublicKeyBytes>;
|
|
21202
21212
|
/**
|
|
21203
|
-
* Generates a random
|
|
21213
|
+
* Generates a random secret key.
|
|
21204
21214
|
*
|
|
21205
21215
|
* # Returns
|
|
21206
|
-
* A randomly generated
|
|
21216
|
+
* A randomly generated secret key source, or an error string
|
|
21207
21217
|
*/
|
|
21208
21218
|
generateRandomKey(asyncOpts_?: {
|
|
21209
21219
|
signal: AbortSignal;
|
|
21210
|
-
}): /*throws*/ Promise<
|
|
21220
|
+
}): /*throws*/ Promise<ExternalSecretKeySource>;
|
|
21211
21221
|
/**
|
|
21212
|
-
* Gets
|
|
21222
|
+
* Gets an encrypted static deposit secret key by index.
|
|
21213
21223
|
*
|
|
21214
21224
|
* # Arguments
|
|
21215
21225
|
* * `index` - The index of the static deposit key
|
|
21216
21226
|
*
|
|
21217
21227
|
* # Returns
|
|
21218
|
-
* The
|
|
21228
|
+
* The encrypted secret key, or an error string
|
|
21219
21229
|
*/
|
|
21220
|
-
|
|
21230
|
+
staticDepositSecretKeyEncrypted(
|
|
21221
21231
|
index: /*u32*/ number,
|
|
21222
21232
|
asyncOpts_?: { signal: AbortSignal }
|
|
21223
|
-
): /*throws*/ Promise<
|
|
21233
|
+
): /*throws*/ Promise<ExternalSecretKeySource>;
|
|
21224
21234
|
/**
|
|
21225
|
-
* Gets a static deposit
|
|
21235
|
+
* Gets a static deposit secret key by index.
|
|
21226
21236
|
*
|
|
21227
21237
|
* # Arguments
|
|
21228
21238
|
* * `index` - The index of the static deposit key
|
|
21229
21239
|
*
|
|
21230
21240
|
* # Returns
|
|
21231
|
-
* The 32-byte
|
|
21241
|
+
* The 32-byte secret key, or an error string
|
|
21242
|
+
*
|
|
21243
|
+
* See also: [JavaScript `getStaticDepositSecretKey`](https://docs.spark.money/wallets/spark-signer#get-static-deposit-secret-key)
|
|
21232
21244
|
*/
|
|
21233
|
-
|
|
21245
|
+
staticDepositSecretKey(
|
|
21234
21246
|
index: /*u32*/ number,
|
|
21235
21247
|
asyncOpts_?: { signal: AbortSignal }
|
|
21236
21248
|
): /*throws*/ Promise<PrivateKeyBytes>;
|
|
@@ -21242,26 +21254,31 @@ export interface ExternalSigner {
|
|
|
21242
21254
|
*
|
|
21243
21255
|
* # Returns
|
|
21244
21256
|
* The 33-byte public key, or an error string
|
|
21257
|
+
*
|
|
21258
|
+
* See also: [JavaScript `getStaticDepositSigningKey`](https://docs.spark.money/wallets/spark-signer#get-static-deposit-signing-key)
|
|
21245
21259
|
*/
|
|
21246
|
-
|
|
21260
|
+
staticDepositSigningKey(
|
|
21247
21261
|
index: /*u32*/ number,
|
|
21248
21262
|
asyncOpts_?: { signal: AbortSignal }
|
|
21249
21263
|
): /*throws*/ Promise<PublicKeyBytes>;
|
|
21250
21264
|
/**
|
|
21251
|
-
* Subtracts one
|
|
21265
|
+
* Subtracts one secret key from another.
|
|
21252
21266
|
*
|
|
21253
21267
|
* # Arguments
|
|
21254
|
-
* * `signing_key` - The first
|
|
21255
|
-
* * `new_signing_key` - The second
|
|
21268
|
+
* * `signing_key` - The first secret key source
|
|
21269
|
+
* * `new_signing_key` - The second secret key source to subtract
|
|
21256
21270
|
*
|
|
21257
21271
|
* # Returns
|
|
21258
|
-
* The resulting
|
|
21272
|
+
* The resulting secret key source, or an error string
|
|
21273
|
+
*
|
|
21274
|
+
* See also: [JavaScript `subtractSplitAndEncrypt`](https://docs.spark.money/wallets/spark-signer#subtract,-split,-and-encrypt)
|
|
21275
|
+
* (this method provides the subtraction step of that higher-level operation)
|
|
21259
21276
|
*/
|
|
21260
|
-
|
|
21261
|
-
signingKey:
|
|
21262
|
-
newSigningKey:
|
|
21277
|
+
subtractSecretKeys(
|
|
21278
|
+
signingKey: ExternalSecretKeySource,
|
|
21279
|
+
newSigningKey: ExternalSecretKeySource,
|
|
21263
21280
|
asyncOpts_?: { signal: AbortSignal }
|
|
21264
|
-
): /*throws*/ Promise<
|
|
21281
|
+
): /*throws*/ Promise<ExternalSecretKeySource>;
|
|
21265
21282
|
/**
|
|
21266
21283
|
* Splits a secret with proofs using Shamir's Secret Sharing.
|
|
21267
21284
|
*
|
|
@@ -21272,39 +21289,41 @@ export interface ExternalSigner {
|
|
|
21272
21289
|
*
|
|
21273
21290
|
* # Returns
|
|
21274
21291
|
* Vector of verifiable secret shares, or an error string
|
|
21292
|
+
*
|
|
21293
|
+
* See also: [JavaScript `splitSecretWithProofs`](https://docs.spark.money/wallets/spark-signer#split-secret-with-proofs)
|
|
21275
21294
|
*/
|
|
21276
|
-
|
|
21295
|
+
splitSecretWithProofs(
|
|
21277
21296
|
secret: ExternalSecretToSplit,
|
|
21278
21297
|
threshold: /*u32*/ number,
|
|
21279
21298
|
numShares: /*u32*/ number,
|
|
21280
21299
|
asyncOpts_?: { signal: AbortSignal }
|
|
21281
21300
|
): /*throws*/ Promise<Array<ExternalVerifiableSecretShare>>;
|
|
21282
21301
|
/**
|
|
21283
|
-
* Encrypts a
|
|
21302
|
+
* Encrypts a secret key for a specific receiver's public key.
|
|
21284
21303
|
*
|
|
21285
21304
|
* # Arguments
|
|
21286
|
-
* * `
|
|
21305
|
+
* * `secret_key` - The encrypted secret key to re-encrypt
|
|
21287
21306
|
* * `receiver_public_key` - The receiver's 33-byte public key
|
|
21288
21307
|
*
|
|
21289
21308
|
* # Returns
|
|
21290
21309
|
* Encrypted data for the receiver, or an error string
|
|
21291
21310
|
*/
|
|
21292
|
-
|
|
21293
|
-
|
|
21311
|
+
encryptSecretKeyForReceiver(
|
|
21312
|
+
secretKey: ExternalEncryptedPrivateKey,
|
|
21294
21313
|
receiverPublicKey: PublicKeyBytes,
|
|
21295
21314
|
asyncOpts_?: { signal: AbortSignal }
|
|
21296
21315
|
): /*throws*/ Promise<ArrayBuffer>;
|
|
21297
21316
|
/**
|
|
21298
|
-
* Gets the public key from a
|
|
21317
|
+
* Gets the public key from a secret key source.
|
|
21299
21318
|
*
|
|
21300
21319
|
* # Arguments
|
|
21301
|
-
* * `
|
|
21320
|
+
* * `secret_key` - The secret key source
|
|
21302
21321
|
*
|
|
21303
21322
|
* # Returns
|
|
21304
21323
|
* The corresponding 33-byte public key, or an error string
|
|
21305
21324
|
*/
|
|
21306
|
-
|
|
21307
|
-
|
|
21325
|
+
publicKeyFromSecretKeySource(
|
|
21326
|
+
secretKey: ExternalSecretKeySource,
|
|
21308
21327
|
asyncOpts_?: { signal: AbortSignal }
|
|
21309
21328
|
): /*throws*/ Promise<PublicKeyBytes>;
|
|
21310
21329
|
/**
|
|
@@ -21315,6 +21334,8 @@ export interface ExternalSigner {
|
|
|
21315
21334
|
*
|
|
21316
21335
|
* # Returns
|
|
21317
21336
|
* A signature share, or an error string
|
|
21337
|
+
*
|
|
21338
|
+
* See also: [JavaScript `signFrost`](https://docs.spark.money/wallets/spark-signer#frost-signing)
|
|
21318
21339
|
*/
|
|
21319
21340
|
signFrost(
|
|
21320
21341
|
request: ExternalSignFrostRequest,
|
|
@@ -21328,8 +21349,10 @@ export interface ExternalSigner {
|
|
|
21328
21349
|
*
|
|
21329
21350
|
* # Returns
|
|
21330
21351
|
* The aggregated Frost signature, or an error string
|
|
21352
|
+
*
|
|
21353
|
+
* See also: [JavaScript `aggregateFrost`](https://docs.spark.money/wallets/spark-signer#aggregate-frost-signatures)
|
|
21331
21354
|
*/
|
|
21332
|
-
|
|
21355
|
+
aggregateFrost(
|
|
21333
21356
|
request: ExternalAggregateFrostRequest,
|
|
21334
21357
|
asyncOpts_?: { signal: AbortSignal }
|
|
21335
21358
|
): /*throws*/ Promise<ExternalFrostSignature>;
|
|
@@ -21365,6 +21388,8 @@ export class ExternalSignerImpl
|
|
|
21365
21388
|
|
|
21366
21389
|
/**
|
|
21367
21390
|
* Returns the identity public key as 33 bytes (compressed secp256k1 key).
|
|
21391
|
+
*
|
|
21392
|
+
* See also: [JavaScript `getIdentityPublicKey`](https://docs.spark.money/wallets/spark-signer#get-identity-public-key)
|
|
21368
21393
|
*/
|
|
21369
21394
|
public identityPublicKey(): PublicKeyBytes /*throws*/ {
|
|
21370
21395
|
return FfiConverterTypePublicKeyBytes.lift(
|
|
@@ -21391,6 +21416,8 @@ export class ExternalSignerImpl
|
|
|
21391
21416
|
*
|
|
21392
21417
|
* # Returns
|
|
21393
21418
|
* The derived public key as 33 bytes, or a `SignerError`
|
|
21419
|
+
*
|
|
21420
|
+
* See also: [JavaScript `getPublicKeyFromDerivation`](https://docs.spark.money/wallets/spark-signer#get-public-key-from-derivation)
|
|
21394
21421
|
*/
|
|
21395
21422
|
public async derivePublicKey(
|
|
21396
21423
|
path: string,
|
|
@@ -21547,7 +21574,7 @@ export class ExternalSignerImpl
|
|
|
21547
21574
|
* # Returns
|
|
21548
21575
|
* Encrypted data, or a `SignerError`
|
|
21549
21576
|
*/
|
|
21550
|
-
public async
|
|
21577
|
+
public async encryptEcies(
|
|
21551
21578
|
message: ArrayBuffer,
|
|
21552
21579
|
path: string,
|
|
21553
21580
|
asyncOpts_?: { signal: AbortSignal }
|
|
@@ -21557,7 +21584,7 @@ export class ExternalSignerImpl
|
|
|
21557
21584
|
return await uniffiRustCallAsync(
|
|
21558
21585
|
/*rustCaller:*/ uniffiCaller,
|
|
21559
21586
|
/*rustFutureFunc:*/ () => {
|
|
21560
|
-
return nativeModule().
|
|
21587
|
+
return nativeModule().ubrn_uniffi_breez_sdk_spark_fn_method_externalsigner_encrypt_ecies(
|
|
21561
21588
|
uniffiTypeExternalSignerImplObjectFactory.clonePointer(this),
|
|
21562
21589
|
FfiConverterArrayBuffer.lower(message),
|
|
21563
21590
|
FfiConverterString.lower(path)
|
|
@@ -21597,8 +21624,10 @@ export class ExternalSignerImpl
|
|
|
21597
21624
|
*
|
|
21598
21625
|
* # Returns
|
|
21599
21626
|
* Decrypted data, or a `SignerError`
|
|
21627
|
+
*
|
|
21628
|
+
* See also: [JavaScript `decryptEcies`](https://docs.spark.money/wallets/spark-signer#decrypt-ecies)
|
|
21600
21629
|
*/
|
|
21601
|
-
public async
|
|
21630
|
+
public async decryptEcies(
|
|
21602
21631
|
message: ArrayBuffer,
|
|
21603
21632
|
path: string,
|
|
21604
21633
|
asyncOpts_?: { signal: AbortSignal }
|
|
@@ -21608,7 +21637,7 @@ export class ExternalSignerImpl
|
|
|
21608
21637
|
return await uniffiRustCallAsync(
|
|
21609
21638
|
/*rustCaller:*/ uniffiCaller,
|
|
21610
21639
|
/*rustFutureFunc:*/ () => {
|
|
21611
|
-
return nativeModule().
|
|
21640
|
+
return nativeModule().ubrn_uniffi_breez_sdk_spark_fn_method_externalsigner_decrypt_ecies(
|
|
21612
21641
|
uniffiTypeExternalSignerImplObjectFactory.clonePointer(this),
|
|
21613
21642
|
FfiConverterArrayBuffer.lower(message),
|
|
21614
21643
|
FfiConverterString.lower(path)
|
|
@@ -21699,6 +21728,8 @@ export class ExternalSignerImpl
|
|
|
21699
21728
|
*
|
|
21700
21729
|
* # Returns
|
|
21701
21730
|
* 32-byte HMAC-SHA256, or a `SignerError`
|
|
21731
|
+
*
|
|
21732
|
+
* See also: [JavaScript `htlcHMAC`](https://docs.spark.money/wallets/spark-signer#generate-htlc-hmac)
|
|
21702
21733
|
*/
|
|
21703
21734
|
public async hmacSha256(
|
|
21704
21735
|
message: ArrayBuffer,
|
|
@@ -21746,8 +21777,10 @@ export class ExternalSignerImpl
|
|
|
21746
21777
|
*
|
|
21747
21778
|
* # Returns
|
|
21748
21779
|
* Frost commitments with nonces, or a `SignerError`
|
|
21780
|
+
*
|
|
21781
|
+
* See also: [JavaScript `getRandomSigningCommitment`](https://docs.spark.money/wallets/spark-signer#get-random-signing-commitment)
|
|
21749
21782
|
*/
|
|
21750
|
-
public async
|
|
21783
|
+
public async generateRandomSigningCommitment(asyncOpts_?: {
|
|
21751
21784
|
signal: AbortSignal;
|
|
21752
21785
|
}): Promise<ExternalFrostCommitments> /*throws*/ {
|
|
21753
21786
|
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
@@ -21755,7 +21788,7 @@ export class ExternalSignerImpl
|
|
|
21755
21788
|
return await uniffiRustCallAsync(
|
|
21756
21789
|
/*rustCaller:*/ uniffiCaller,
|
|
21757
21790
|
/*rustFutureFunc:*/ () => {
|
|
21758
|
-
return nativeModule().
|
|
21791
|
+
return nativeModule().ubrn_uniffi_breez_sdk_spark_fn_method_externalsigner_generate_random_signing_commitment(
|
|
21759
21792
|
uniffiTypeExternalSignerImplObjectFactory.clonePointer(this)
|
|
21760
21793
|
);
|
|
21761
21794
|
},
|
|
@@ -21833,14 +21866,14 @@ export class ExternalSignerImpl
|
|
|
21833
21866
|
}
|
|
21834
21867
|
|
|
21835
21868
|
/**
|
|
21836
|
-
* Generates a random
|
|
21869
|
+
* Generates a random secret key.
|
|
21837
21870
|
*
|
|
21838
21871
|
* # Returns
|
|
21839
|
-
* A randomly generated
|
|
21872
|
+
* A randomly generated secret key source, or an error string
|
|
21840
21873
|
*/
|
|
21841
21874
|
public async generateRandomKey(asyncOpts_?: {
|
|
21842
21875
|
signal: AbortSignal;
|
|
21843
|
-
}): Promise<
|
|
21876
|
+
}): Promise<ExternalSecretKeySource> /*throws*/ {
|
|
21844
21877
|
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
21845
21878
|
try {
|
|
21846
21879
|
return await uniffiRustCallAsync(
|
|
@@ -21858,8 +21891,8 @@ export class ExternalSignerImpl
|
|
|
21858
21891
|
.ubrn_ffi_breez_sdk_spark_rust_future_complete_rust_buffer,
|
|
21859
21892
|
/*freeFunc:*/ nativeModule()
|
|
21860
21893
|
.ubrn_ffi_breez_sdk_spark_rust_future_free_rust_buffer,
|
|
21861
|
-
/*liftFunc:*/
|
|
21862
|
-
|
|
21894
|
+
/*liftFunc:*/ FfiConverterTypeExternalSecretKeySource.lift.bind(
|
|
21895
|
+
FfiConverterTypeExternalSecretKeySource
|
|
21863
21896
|
),
|
|
21864
21897
|
/*liftString:*/ FfiConverterString.lift,
|
|
21865
21898
|
/*asyncOpts:*/ asyncOpts_,
|
|
@@ -21876,24 +21909,24 @@ export class ExternalSignerImpl
|
|
|
21876
21909
|
}
|
|
21877
21910
|
|
|
21878
21911
|
/**
|
|
21879
|
-
* Gets
|
|
21912
|
+
* Gets an encrypted static deposit secret key by index.
|
|
21880
21913
|
*
|
|
21881
21914
|
* # Arguments
|
|
21882
21915
|
* * `index` - The index of the static deposit key
|
|
21883
21916
|
*
|
|
21884
21917
|
* # Returns
|
|
21885
|
-
* The
|
|
21918
|
+
* The encrypted secret key, or an error string
|
|
21886
21919
|
*/
|
|
21887
|
-
public async
|
|
21920
|
+
public async staticDepositSecretKeyEncrypted(
|
|
21888
21921
|
index: /*u32*/ number,
|
|
21889
21922
|
asyncOpts_?: { signal: AbortSignal }
|
|
21890
|
-
): Promise<
|
|
21923
|
+
): Promise<ExternalSecretKeySource> /*throws*/ {
|
|
21891
21924
|
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
21892
21925
|
try {
|
|
21893
21926
|
return await uniffiRustCallAsync(
|
|
21894
21927
|
/*rustCaller:*/ uniffiCaller,
|
|
21895
21928
|
/*rustFutureFunc:*/ () => {
|
|
21896
|
-
return nativeModule().
|
|
21929
|
+
return nativeModule().ubrn_uniffi_breez_sdk_spark_fn_method_externalsigner_static_deposit_secret_key_encrypted(
|
|
21897
21930
|
uniffiTypeExternalSignerImplObjectFactory.clonePointer(this),
|
|
21898
21931
|
FfiConverterUInt32.lower(index)
|
|
21899
21932
|
);
|
|
@@ -21906,8 +21939,8 @@ export class ExternalSignerImpl
|
|
|
21906
21939
|
.ubrn_ffi_breez_sdk_spark_rust_future_complete_rust_buffer,
|
|
21907
21940
|
/*freeFunc:*/ nativeModule()
|
|
21908
21941
|
.ubrn_ffi_breez_sdk_spark_rust_future_free_rust_buffer,
|
|
21909
|
-
/*liftFunc:*/
|
|
21910
|
-
|
|
21942
|
+
/*liftFunc:*/ FfiConverterTypeExternalSecretKeySource.lift.bind(
|
|
21943
|
+
FfiConverterTypeExternalSecretKeySource
|
|
21911
21944
|
),
|
|
21912
21945
|
/*liftString:*/ FfiConverterString.lift,
|
|
21913
21946
|
/*asyncOpts:*/ asyncOpts_,
|
|
@@ -21924,15 +21957,17 @@ export class ExternalSignerImpl
|
|
|
21924
21957
|
}
|
|
21925
21958
|
|
|
21926
21959
|
/**
|
|
21927
|
-
* Gets a static deposit
|
|
21960
|
+
* Gets a static deposit secret key by index.
|
|
21928
21961
|
*
|
|
21929
21962
|
* # Arguments
|
|
21930
21963
|
* * `index` - The index of the static deposit key
|
|
21931
21964
|
*
|
|
21932
21965
|
* # Returns
|
|
21933
|
-
* The 32-byte
|
|
21966
|
+
* The 32-byte secret key, or an error string
|
|
21967
|
+
*
|
|
21968
|
+
* See also: [JavaScript `getStaticDepositSecretKey`](https://docs.spark.money/wallets/spark-signer#get-static-deposit-secret-key)
|
|
21934
21969
|
*/
|
|
21935
|
-
public async
|
|
21970
|
+
public async staticDepositSecretKey(
|
|
21936
21971
|
index: /*u32*/ number,
|
|
21937
21972
|
asyncOpts_?: { signal: AbortSignal }
|
|
21938
21973
|
): Promise<PrivateKeyBytes> /*throws*/ {
|
|
@@ -21941,7 +21976,7 @@ export class ExternalSignerImpl
|
|
|
21941
21976
|
return await uniffiRustCallAsync(
|
|
21942
21977
|
/*rustCaller:*/ uniffiCaller,
|
|
21943
21978
|
/*rustFutureFunc:*/ () => {
|
|
21944
|
-
return nativeModule().
|
|
21979
|
+
return nativeModule().ubrn_uniffi_breez_sdk_spark_fn_method_externalsigner_static_deposit_secret_key(
|
|
21945
21980
|
uniffiTypeExternalSignerImplObjectFactory.clonePointer(this),
|
|
21946
21981
|
FfiConverterUInt32.lower(index)
|
|
21947
21982
|
);
|
|
@@ -21979,8 +22014,10 @@ export class ExternalSignerImpl
|
|
|
21979
22014
|
*
|
|
21980
22015
|
* # Returns
|
|
21981
22016
|
* The 33-byte public key, or an error string
|
|
22017
|
+
*
|
|
22018
|
+
* See also: [JavaScript `getStaticDepositSigningKey`](https://docs.spark.money/wallets/spark-signer#get-static-deposit-signing-key)
|
|
21982
22019
|
*/
|
|
21983
|
-
public async
|
|
22020
|
+
public async staticDepositSigningKey(
|
|
21984
22021
|
index: /*u32*/ number,
|
|
21985
22022
|
asyncOpts_?: { signal: AbortSignal }
|
|
21986
22023
|
): Promise<PublicKeyBytes> /*throws*/ {
|
|
@@ -21989,7 +22026,7 @@ export class ExternalSignerImpl
|
|
|
21989
22026
|
return await uniffiRustCallAsync(
|
|
21990
22027
|
/*rustCaller:*/ uniffiCaller,
|
|
21991
22028
|
/*rustFutureFunc:*/ () => {
|
|
21992
|
-
return nativeModule().
|
|
22029
|
+
return nativeModule().ubrn_uniffi_breez_sdk_spark_fn_method_externalsigner_static_deposit_signing_key(
|
|
21993
22030
|
uniffiTypeExternalSignerImplObjectFactory.clonePointer(this),
|
|
21994
22031
|
FfiConverterUInt32.lower(index)
|
|
21995
22032
|
);
|
|
@@ -22020,29 +22057,32 @@ export class ExternalSignerImpl
|
|
|
22020
22057
|
}
|
|
22021
22058
|
|
|
22022
22059
|
/**
|
|
22023
|
-
* Subtracts one
|
|
22060
|
+
* Subtracts one secret key from another.
|
|
22024
22061
|
*
|
|
22025
22062
|
* # Arguments
|
|
22026
|
-
* * `signing_key` - The first
|
|
22027
|
-
* * `new_signing_key` - The second
|
|
22063
|
+
* * `signing_key` - The first secret key source
|
|
22064
|
+
* * `new_signing_key` - The second secret key source to subtract
|
|
22028
22065
|
*
|
|
22029
22066
|
* # Returns
|
|
22030
|
-
* The resulting
|
|
22067
|
+
* The resulting secret key source, or an error string
|
|
22068
|
+
*
|
|
22069
|
+
* See also: [JavaScript `subtractSplitAndEncrypt`](https://docs.spark.money/wallets/spark-signer#subtract,-split,-and-encrypt)
|
|
22070
|
+
* (this method provides the subtraction step of that higher-level operation)
|
|
22031
22071
|
*/
|
|
22032
|
-
public async
|
|
22033
|
-
signingKey:
|
|
22034
|
-
newSigningKey:
|
|
22072
|
+
public async subtractSecretKeys(
|
|
22073
|
+
signingKey: ExternalSecretKeySource,
|
|
22074
|
+
newSigningKey: ExternalSecretKeySource,
|
|
22035
22075
|
asyncOpts_?: { signal: AbortSignal }
|
|
22036
|
-
): Promise<
|
|
22076
|
+
): Promise<ExternalSecretKeySource> /*throws*/ {
|
|
22037
22077
|
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
22038
22078
|
try {
|
|
22039
22079
|
return await uniffiRustCallAsync(
|
|
22040
22080
|
/*rustCaller:*/ uniffiCaller,
|
|
22041
22081
|
/*rustFutureFunc:*/ () => {
|
|
22042
|
-
return nativeModule().
|
|
22082
|
+
return nativeModule().ubrn_uniffi_breez_sdk_spark_fn_method_externalsigner_subtract_secret_keys(
|
|
22043
22083
|
uniffiTypeExternalSignerImplObjectFactory.clonePointer(this),
|
|
22044
|
-
|
|
22045
|
-
|
|
22084
|
+
FfiConverterTypeExternalSecretKeySource.lower(signingKey),
|
|
22085
|
+
FfiConverterTypeExternalSecretKeySource.lower(newSigningKey)
|
|
22046
22086
|
);
|
|
22047
22087
|
},
|
|
22048
22088
|
/*pollFunc:*/ nativeModule()
|
|
@@ -22053,8 +22093,8 @@ export class ExternalSignerImpl
|
|
|
22053
22093
|
.ubrn_ffi_breez_sdk_spark_rust_future_complete_rust_buffer,
|
|
22054
22094
|
/*freeFunc:*/ nativeModule()
|
|
22055
22095
|
.ubrn_ffi_breez_sdk_spark_rust_future_free_rust_buffer,
|
|
22056
|
-
/*liftFunc:*/
|
|
22057
|
-
|
|
22096
|
+
/*liftFunc:*/ FfiConverterTypeExternalSecretKeySource.lift.bind(
|
|
22097
|
+
FfiConverterTypeExternalSecretKeySource
|
|
22058
22098
|
),
|
|
22059
22099
|
/*liftString:*/ FfiConverterString.lift,
|
|
22060
22100
|
/*asyncOpts:*/ asyncOpts_,
|
|
@@ -22080,8 +22120,10 @@ export class ExternalSignerImpl
|
|
|
22080
22120
|
*
|
|
22081
22121
|
* # Returns
|
|
22082
22122
|
* Vector of verifiable secret shares, or an error string
|
|
22123
|
+
*
|
|
22124
|
+
* See also: [JavaScript `splitSecretWithProofs`](https://docs.spark.money/wallets/spark-signer#split-secret-with-proofs)
|
|
22083
22125
|
*/
|
|
22084
|
-
public async
|
|
22126
|
+
public async splitSecretWithProofs(
|
|
22085
22127
|
secret: ExternalSecretToSplit,
|
|
22086
22128
|
threshold: /*u32*/ number,
|
|
22087
22129
|
numShares: /*u32*/ number,
|
|
@@ -22092,7 +22134,7 @@ export class ExternalSignerImpl
|
|
|
22092
22134
|
return await uniffiRustCallAsync(
|
|
22093
22135
|
/*rustCaller:*/ uniffiCaller,
|
|
22094
22136
|
/*rustFutureFunc:*/ () => {
|
|
22095
|
-
return nativeModule().
|
|
22137
|
+
return nativeModule().ubrn_uniffi_breez_sdk_spark_fn_method_externalsigner_split_secret_with_proofs(
|
|
22096
22138
|
uniffiTypeExternalSignerImplObjectFactory.clonePointer(this),
|
|
22097
22139
|
FfiConverterTypeExternalSecretToSplit.lower(secret),
|
|
22098
22140
|
FfiConverterUInt32.lower(threshold),
|
|
@@ -22125,17 +22167,17 @@ export class ExternalSignerImpl
|
|
|
22125
22167
|
}
|
|
22126
22168
|
|
|
22127
22169
|
/**
|
|
22128
|
-
* Encrypts a
|
|
22170
|
+
* Encrypts a secret key for a specific receiver's public key.
|
|
22129
22171
|
*
|
|
22130
22172
|
* # Arguments
|
|
22131
|
-
* * `
|
|
22173
|
+
* * `secret_key` - The encrypted secret key to re-encrypt
|
|
22132
22174
|
* * `receiver_public_key` - The receiver's 33-byte public key
|
|
22133
22175
|
*
|
|
22134
22176
|
* # Returns
|
|
22135
22177
|
* Encrypted data for the receiver, or an error string
|
|
22136
22178
|
*/
|
|
22137
|
-
public async
|
|
22138
|
-
|
|
22179
|
+
public async encryptSecretKeyForReceiver(
|
|
22180
|
+
secretKey: ExternalEncryptedPrivateKey,
|
|
22139
22181
|
receiverPublicKey: PublicKeyBytes,
|
|
22140
22182
|
asyncOpts_?: { signal: AbortSignal }
|
|
22141
22183
|
): Promise<ArrayBuffer> /*throws*/ {
|
|
@@ -22144,9 +22186,9 @@ export class ExternalSignerImpl
|
|
|
22144
22186
|
return await uniffiRustCallAsync(
|
|
22145
22187
|
/*rustCaller:*/ uniffiCaller,
|
|
22146
22188
|
/*rustFutureFunc:*/ () => {
|
|
22147
|
-
return nativeModule().
|
|
22189
|
+
return nativeModule().ubrn_uniffi_breez_sdk_spark_fn_method_externalsigner_encrypt_secret_key_for_receiver(
|
|
22148
22190
|
uniffiTypeExternalSignerImplObjectFactory.clonePointer(this),
|
|
22149
|
-
FfiConverterTypeExternalEncryptedPrivateKey.lower(
|
|
22191
|
+
FfiConverterTypeExternalEncryptedPrivateKey.lower(secretKey),
|
|
22150
22192
|
FfiConverterTypePublicKeyBytes.lower(receiverPublicKey)
|
|
22151
22193
|
);
|
|
22152
22194
|
},
|
|
@@ -22176,16 +22218,16 @@ export class ExternalSignerImpl
|
|
|
22176
22218
|
}
|
|
22177
22219
|
|
|
22178
22220
|
/**
|
|
22179
|
-
* Gets the public key from a
|
|
22221
|
+
* Gets the public key from a secret key source.
|
|
22180
22222
|
*
|
|
22181
22223
|
* # Arguments
|
|
22182
|
-
* * `
|
|
22224
|
+
* * `secret_key` - The secret key source
|
|
22183
22225
|
*
|
|
22184
22226
|
* # Returns
|
|
22185
22227
|
* The corresponding 33-byte public key, or an error string
|
|
22186
22228
|
*/
|
|
22187
|
-
public async
|
|
22188
|
-
|
|
22229
|
+
public async publicKeyFromSecretKeySource(
|
|
22230
|
+
secretKey: ExternalSecretKeySource,
|
|
22189
22231
|
asyncOpts_?: { signal: AbortSignal }
|
|
22190
22232
|
): Promise<PublicKeyBytes> /*throws*/ {
|
|
22191
22233
|
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
@@ -22193,9 +22235,9 @@ export class ExternalSignerImpl
|
|
|
22193
22235
|
return await uniffiRustCallAsync(
|
|
22194
22236
|
/*rustCaller:*/ uniffiCaller,
|
|
22195
22237
|
/*rustFutureFunc:*/ () => {
|
|
22196
|
-
return nativeModule().
|
|
22238
|
+
return nativeModule().ubrn_uniffi_breez_sdk_spark_fn_method_externalsigner_public_key_from_secret_key_source(
|
|
22197
22239
|
uniffiTypeExternalSignerImplObjectFactory.clonePointer(this),
|
|
22198
|
-
|
|
22240
|
+
FfiConverterTypeExternalSecretKeySource.lower(secretKey)
|
|
22199
22241
|
);
|
|
22200
22242
|
},
|
|
22201
22243
|
/*pollFunc:*/ nativeModule()
|
|
@@ -22231,6 +22273,8 @@ export class ExternalSignerImpl
|
|
|
22231
22273
|
*
|
|
22232
22274
|
* # Returns
|
|
22233
22275
|
* A signature share, or an error string
|
|
22276
|
+
*
|
|
22277
|
+
* See also: [JavaScript `signFrost`](https://docs.spark.money/wallets/spark-signer#frost-signing)
|
|
22234
22278
|
*/
|
|
22235
22279
|
public async signFrost(
|
|
22236
22280
|
request: ExternalSignFrostRequest,
|
|
@@ -22279,8 +22323,10 @@ export class ExternalSignerImpl
|
|
|
22279
22323
|
*
|
|
22280
22324
|
* # Returns
|
|
22281
22325
|
* The aggregated Frost signature, or an error string
|
|
22326
|
+
*
|
|
22327
|
+
* See also: [JavaScript `aggregateFrost`](https://docs.spark.money/wallets/spark-signer#aggregate-frost-signatures)
|
|
22282
22328
|
*/
|
|
22283
|
-
public async
|
|
22329
|
+
public async aggregateFrost(
|
|
22284
22330
|
request: ExternalAggregateFrostRequest,
|
|
22285
22331
|
asyncOpts_?: { signal: AbortSignal }
|
|
22286
22332
|
): Promise<ExternalFrostSignature> /*throws*/ {
|
|
@@ -22289,7 +22335,7 @@ export class ExternalSignerImpl
|
|
|
22289
22335
|
return await uniffiRustCallAsync(
|
|
22290
22336
|
/*rustCaller:*/ uniffiCaller,
|
|
22291
22337
|
/*rustFutureFunc:*/ () => {
|
|
22292
|
-
return nativeModule().
|
|
22338
|
+
return nativeModule().ubrn_uniffi_breez_sdk_spark_fn_method_externalsigner_aggregate_frost(
|
|
22293
22339
|
uniffiTypeExternalSignerImplObjectFactory.clonePointer(this),
|
|
22294
22340
|
FfiConverterTypeExternalAggregateFrostRequest.lower(request)
|
|
22295
22341
|
);
|
|
@@ -22585,7 +22631,7 @@ const uniffiCallbackInterfaceExternalSigner: {
|
|
|
22585
22631
|
);
|
|
22586
22632
|
return UniffiResult.success(uniffiForeignFuture);
|
|
22587
22633
|
},
|
|
22588
|
-
|
|
22634
|
+
encryptEcies: (
|
|
22589
22635
|
uniffiHandle: bigint,
|
|
22590
22636
|
message: Uint8Array,
|
|
22591
22637
|
path: Uint8Array,
|
|
@@ -22596,7 +22642,7 @@ const uniffiCallbackInterfaceExternalSigner: {
|
|
|
22596
22642
|
signal: AbortSignal
|
|
22597
22643
|
): Promise<ArrayBuffer> => {
|
|
22598
22644
|
const jsCallback = FfiConverterTypeExternalSigner.lift(uniffiHandle);
|
|
22599
|
-
return await jsCallback.
|
|
22645
|
+
return await jsCallback.encryptEcies(
|
|
22600
22646
|
FfiConverterArrayBuffer.lift(message),
|
|
22601
22647
|
FfiConverterString.lift(path),
|
|
22602
22648
|
{ signal }
|
|
@@ -22633,7 +22679,7 @@ const uniffiCallbackInterfaceExternalSigner: {
|
|
|
22633
22679
|
);
|
|
22634
22680
|
return UniffiResult.success(uniffiForeignFuture);
|
|
22635
22681
|
},
|
|
22636
|
-
|
|
22682
|
+
decryptEcies: (
|
|
22637
22683
|
uniffiHandle: bigint,
|
|
22638
22684
|
message: Uint8Array,
|
|
22639
22685
|
path: Uint8Array,
|
|
@@ -22644,7 +22690,7 @@ const uniffiCallbackInterfaceExternalSigner: {
|
|
|
22644
22690
|
signal: AbortSignal
|
|
22645
22691
|
): Promise<ArrayBuffer> => {
|
|
22646
22692
|
const jsCallback = FfiConverterTypeExternalSigner.lift(uniffiHandle);
|
|
22647
|
-
return await jsCallback.
|
|
22693
|
+
return await jsCallback.decryptEcies(
|
|
22648
22694
|
FfiConverterArrayBuffer.lift(message),
|
|
22649
22695
|
FfiConverterString.lift(path),
|
|
22650
22696
|
{ signal }
|
|
@@ -22778,7 +22824,7 @@ const uniffiCallbackInterfaceExternalSigner: {
|
|
|
22778
22824
|
);
|
|
22779
22825
|
return UniffiResult.success(uniffiForeignFuture);
|
|
22780
22826
|
},
|
|
22781
|
-
|
|
22827
|
+
generateRandomSigningCommitment: (
|
|
22782
22828
|
uniffiHandle: bigint,
|
|
22783
22829
|
uniffiFutureCallback: UniffiForeignFutureCompleteRustBuffer,
|
|
22784
22830
|
uniffiCallbackData: bigint
|
|
@@ -22787,7 +22833,7 @@ const uniffiCallbackInterfaceExternalSigner: {
|
|
|
22787
22833
|
signal: AbortSignal
|
|
22788
22834
|
): Promise<ExternalFrostCommitments> => {
|
|
22789
22835
|
const jsCallback = FfiConverterTypeExternalSigner.lift(uniffiHandle);
|
|
22790
|
-
return await jsCallback.
|
|
22836
|
+
return await jsCallback.generateRandomSigningCommitment({ signal });
|
|
22791
22837
|
};
|
|
22792
22838
|
const uniffiHandleSuccess = (returnValue: ExternalFrostCommitments) => {
|
|
22793
22839
|
uniffiFutureCallback(
|
|
@@ -22874,16 +22920,16 @@ const uniffiCallbackInterfaceExternalSigner: {
|
|
|
22874
22920
|
) => {
|
|
22875
22921
|
const uniffiMakeCall = async (
|
|
22876
22922
|
signal: AbortSignal
|
|
22877
|
-
): Promise<
|
|
22923
|
+
): Promise<ExternalSecretKeySource> => {
|
|
22878
22924
|
const jsCallback = FfiConverterTypeExternalSigner.lift(uniffiHandle);
|
|
22879
22925
|
return await jsCallback.generateRandomKey({ signal });
|
|
22880
22926
|
};
|
|
22881
|
-
const uniffiHandleSuccess = (returnValue:
|
|
22927
|
+
const uniffiHandleSuccess = (returnValue: ExternalSecretKeySource) => {
|
|
22882
22928
|
uniffiFutureCallback(
|
|
22883
22929
|
uniffiCallbackData,
|
|
22884
22930
|
/* UniffiForeignFutureStructRustBuffer */ {
|
|
22885
22931
|
returnValue:
|
|
22886
|
-
|
|
22932
|
+
FfiConverterTypeExternalSecretKeySource.lower(returnValue),
|
|
22887
22933
|
callStatus: uniffiCaller.createCallStatus(),
|
|
22888
22934
|
}
|
|
22889
22935
|
);
|
|
@@ -22910,7 +22956,7 @@ const uniffiCallbackInterfaceExternalSigner: {
|
|
|
22910
22956
|
);
|
|
22911
22957
|
return UniffiResult.success(uniffiForeignFuture);
|
|
22912
22958
|
},
|
|
22913
|
-
|
|
22959
|
+
staticDepositSecretKeyEncrypted: (
|
|
22914
22960
|
uniffiHandle: bigint,
|
|
22915
22961
|
index: number,
|
|
22916
22962
|
uniffiFutureCallback: UniffiForeignFutureCompleteRustBuffer,
|
|
@@ -22918,19 +22964,19 @@ const uniffiCallbackInterfaceExternalSigner: {
|
|
|
22918
22964
|
) => {
|
|
22919
22965
|
const uniffiMakeCall = async (
|
|
22920
22966
|
signal: AbortSignal
|
|
22921
|
-
): Promise<
|
|
22967
|
+
): Promise<ExternalSecretKeySource> => {
|
|
22922
22968
|
const jsCallback = FfiConverterTypeExternalSigner.lift(uniffiHandle);
|
|
22923
|
-
return await jsCallback.
|
|
22969
|
+
return await jsCallback.staticDepositSecretKeyEncrypted(
|
|
22924
22970
|
FfiConverterUInt32.lift(index),
|
|
22925
22971
|
{ signal }
|
|
22926
22972
|
);
|
|
22927
22973
|
};
|
|
22928
|
-
const uniffiHandleSuccess = (returnValue:
|
|
22974
|
+
const uniffiHandleSuccess = (returnValue: ExternalSecretKeySource) => {
|
|
22929
22975
|
uniffiFutureCallback(
|
|
22930
22976
|
uniffiCallbackData,
|
|
22931
22977
|
/* UniffiForeignFutureStructRustBuffer */ {
|
|
22932
22978
|
returnValue:
|
|
22933
|
-
|
|
22979
|
+
FfiConverterTypeExternalSecretKeySource.lower(returnValue),
|
|
22934
22980
|
callStatus: uniffiCaller.createCallStatus(),
|
|
22935
22981
|
}
|
|
22936
22982
|
);
|
|
@@ -22957,7 +23003,7 @@ const uniffiCallbackInterfaceExternalSigner: {
|
|
|
22957
23003
|
);
|
|
22958
23004
|
return UniffiResult.success(uniffiForeignFuture);
|
|
22959
23005
|
},
|
|
22960
|
-
|
|
23006
|
+
staticDepositSecretKey: (
|
|
22961
23007
|
uniffiHandle: bigint,
|
|
22962
23008
|
index: number,
|
|
22963
23009
|
uniffiFutureCallback: UniffiForeignFutureCompleteRustBuffer,
|
|
@@ -22967,7 +23013,7 @@ const uniffiCallbackInterfaceExternalSigner: {
|
|
|
22967
23013
|
signal: AbortSignal
|
|
22968
23014
|
): Promise<PrivateKeyBytes> => {
|
|
22969
23015
|
const jsCallback = FfiConverterTypeExternalSigner.lift(uniffiHandle);
|
|
22970
|
-
return await jsCallback.
|
|
23016
|
+
return await jsCallback.staticDepositSecretKey(
|
|
22971
23017
|
FfiConverterUInt32.lift(index),
|
|
22972
23018
|
{ signal }
|
|
22973
23019
|
);
|
|
@@ -23003,7 +23049,7 @@ const uniffiCallbackInterfaceExternalSigner: {
|
|
|
23003
23049
|
);
|
|
23004
23050
|
return UniffiResult.success(uniffiForeignFuture);
|
|
23005
23051
|
},
|
|
23006
|
-
|
|
23052
|
+
staticDepositSigningKey: (
|
|
23007
23053
|
uniffiHandle: bigint,
|
|
23008
23054
|
index: number,
|
|
23009
23055
|
uniffiFutureCallback: UniffiForeignFutureCompleteRustBuffer,
|
|
@@ -23013,7 +23059,7 @@ const uniffiCallbackInterfaceExternalSigner: {
|
|
|
23013
23059
|
signal: AbortSignal
|
|
23014
23060
|
): Promise<PublicKeyBytes> => {
|
|
23015
23061
|
const jsCallback = FfiConverterTypeExternalSigner.lift(uniffiHandle);
|
|
23016
|
-
return await jsCallback.
|
|
23062
|
+
return await jsCallback.staticDepositSigningKey(
|
|
23017
23063
|
FfiConverterUInt32.lift(index),
|
|
23018
23064
|
{ signal }
|
|
23019
23065
|
);
|
|
@@ -23049,7 +23095,7 @@ const uniffiCallbackInterfaceExternalSigner: {
|
|
|
23049
23095
|
);
|
|
23050
23096
|
return UniffiResult.success(uniffiForeignFuture);
|
|
23051
23097
|
},
|
|
23052
|
-
|
|
23098
|
+
subtractSecretKeys: (
|
|
23053
23099
|
uniffiHandle: bigint,
|
|
23054
23100
|
signingKey: Uint8Array,
|
|
23055
23101
|
newSigningKey: Uint8Array,
|
|
@@ -23058,20 +23104,20 @@ const uniffiCallbackInterfaceExternalSigner: {
|
|
|
23058
23104
|
) => {
|
|
23059
23105
|
const uniffiMakeCall = async (
|
|
23060
23106
|
signal: AbortSignal
|
|
23061
|
-
): Promise<
|
|
23107
|
+
): Promise<ExternalSecretKeySource> => {
|
|
23062
23108
|
const jsCallback = FfiConverterTypeExternalSigner.lift(uniffiHandle);
|
|
23063
|
-
return await jsCallback.
|
|
23064
|
-
|
|
23065
|
-
|
|
23109
|
+
return await jsCallback.subtractSecretKeys(
|
|
23110
|
+
FfiConverterTypeExternalSecretKeySource.lift(signingKey),
|
|
23111
|
+
FfiConverterTypeExternalSecretKeySource.lift(newSigningKey),
|
|
23066
23112
|
{ signal }
|
|
23067
23113
|
);
|
|
23068
23114
|
};
|
|
23069
|
-
const uniffiHandleSuccess = (returnValue:
|
|
23115
|
+
const uniffiHandleSuccess = (returnValue: ExternalSecretKeySource) => {
|
|
23070
23116
|
uniffiFutureCallback(
|
|
23071
23117
|
uniffiCallbackData,
|
|
23072
23118
|
/* UniffiForeignFutureStructRustBuffer */ {
|
|
23073
23119
|
returnValue:
|
|
23074
|
-
|
|
23120
|
+
FfiConverterTypeExternalSecretKeySource.lower(returnValue),
|
|
23075
23121
|
callStatus: uniffiCaller.createCallStatus(),
|
|
23076
23122
|
}
|
|
23077
23123
|
);
|
|
@@ -23098,7 +23144,7 @@ const uniffiCallbackInterfaceExternalSigner: {
|
|
|
23098
23144
|
);
|
|
23099
23145
|
return UniffiResult.success(uniffiForeignFuture);
|
|
23100
23146
|
},
|
|
23101
|
-
|
|
23147
|
+
splitSecretWithProofs: (
|
|
23102
23148
|
uniffiHandle: bigint,
|
|
23103
23149
|
secret: Uint8Array,
|
|
23104
23150
|
threshold: number,
|
|
@@ -23110,7 +23156,7 @@ const uniffiCallbackInterfaceExternalSigner: {
|
|
|
23110
23156
|
signal: AbortSignal
|
|
23111
23157
|
): Promise<Array<ExternalVerifiableSecretShare>> => {
|
|
23112
23158
|
const jsCallback = FfiConverterTypeExternalSigner.lift(uniffiHandle);
|
|
23113
|
-
return await jsCallback.
|
|
23159
|
+
return await jsCallback.splitSecretWithProofs(
|
|
23114
23160
|
FfiConverterTypeExternalSecretToSplit.lift(secret),
|
|
23115
23161
|
FfiConverterUInt32.lift(threshold),
|
|
23116
23162
|
FfiConverterUInt32.lift(numShares),
|
|
@@ -23153,9 +23199,9 @@ const uniffiCallbackInterfaceExternalSigner: {
|
|
|
23153
23199
|
);
|
|
23154
23200
|
return UniffiResult.success(uniffiForeignFuture);
|
|
23155
23201
|
},
|
|
23156
|
-
|
|
23202
|
+
encryptSecretKeyForReceiver: (
|
|
23157
23203
|
uniffiHandle: bigint,
|
|
23158
|
-
|
|
23204
|
+
secretKey: Uint8Array,
|
|
23159
23205
|
receiverPublicKey: Uint8Array,
|
|
23160
23206
|
uniffiFutureCallback: UniffiForeignFutureCompleteRustBuffer,
|
|
23161
23207
|
uniffiCallbackData: bigint
|
|
@@ -23164,8 +23210,8 @@ const uniffiCallbackInterfaceExternalSigner: {
|
|
|
23164
23210
|
signal: AbortSignal
|
|
23165
23211
|
): Promise<ArrayBuffer> => {
|
|
23166
23212
|
const jsCallback = FfiConverterTypeExternalSigner.lift(uniffiHandle);
|
|
23167
|
-
return await jsCallback.
|
|
23168
|
-
FfiConverterTypeExternalEncryptedPrivateKey.lift(
|
|
23213
|
+
return await jsCallback.encryptSecretKeyForReceiver(
|
|
23214
|
+
FfiConverterTypeExternalEncryptedPrivateKey.lift(secretKey),
|
|
23169
23215
|
FfiConverterTypePublicKeyBytes.lift(receiverPublicKey),
|
|
23170
23216
|
{ signal }
|
|
23171
23217
|
);
|
|
@@ -23201,9 +23247,9 @@ const uniffiCallbackInterfaceExternalSigner: {
|
|
|
23201
23247
|
);
|
|
23202
23248
|
return UniffiResult.success(uniffiForeignFuture);
|
|
23203
23249
|
},
|
|
23204
|
-
|
|
23250
|
+
publicKeyFromSecretKeySource: (
|
|
23205
23251
|
uniffiHandle: bigint,
|
|
23206
|
-
|
|
23252
|
+
secretKey: Uint8Array,
|
|
23207
23253
|
uniffiFutureCallback: UniffiForeignFutureCompleteRustBuffer,
|
|
23208
23254
|
uniffiCallbackData: bigint
|
|
23209
23255
|
) => {
|
|
@@ -23211,8 +23257,8 @@ const uniffiCallbackInterfaceExternalSigner: {
|
|
|
23211
23257
|
signal: AbortSignal
|
|
23212
23258
|
): Promise<PublicKeyBytes> => {
|
|
23213
23259
|
const jsCallback = FfiConverterTypeExternalSigner.lift(uniffiHandle);
|
|
23214
|
-
return await jsCallback.
|
|
23215
|
-
|
|
23260
|
+
return await jsCallback.publicKeyFromSecretKeySource(
|
|
23261
|
+
FfiConverterTypeExternalSecretKeySource.lift(secretKey),
|
|
23216
23262
|
{ signal }
|
|
23217
23263
|
);
|
|
23218
23264
|
};
|
|
@@ -23296,7 +23342,7 @@ const uniffiCallbackInterfaceExternalSigner: {
|
|
|
23296
23342
|
);
|
|
23297
23343
|
return UniffiResult.success(uniffiForeignFuture);
|
|
23298
23344
|
},
|
|
23299
|
-
|
|
23345
|
+
aggregateFrost: (
|
|
23300
23346
|
uniffiHandle: bigint,
|
|
23301
23347
|
request: Uint8Array,
|
|
23302
23348
|
uniffiFutureCallback: UniffiForeignFutureCompleteRustBuffer,
|
|
@@ -23306,7 +23352,7 @@ const uniffiCallbackInterfaceExternalSigner: {
|
|
|
23306
23352
|
signal: AbortSignal
|
|
23307
23353
|
): Promise<ExternalFrostSignature> => {
|
|
23308
23354
|
const jsCallback = FfiConverterTypeExternalSigner.lift(uniffiHandle);
|
|
23309
|
-
return await jsCallback.
|
|
23355
|
+
return await jsCallback.aggregateFrost(
|
|
23310
23356
|
FfiConverterTypeExternalAggregateFrostRequest.lift(request),
|
|
23311
23357
|
{ signal }
|
|
23312
23358
|
);
|
|
@@ -28675,7 +28721,7 @@ function uniffiEnsureInitialized() {
|
|
|
28675
28721
|
}
|
|
28676
28722
|
if (
|
|
28677
28723
|
nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_externalsigner_identity_public_key() !==
|
|
28678
|
-
|
|
28724
|
+
62941
|
|
28679
28725
|
) {
|
|
28680
28726
|
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
28681
28727
|
'uniffi_breez_sdk_spark_checksum_method_externalsigner_identity_public_key'
|
|
@@ -28683,7 +28729,7 @@ function uniffiEnsureInitialized() {
|
|
|
28683
28729
|
}
|
|
28684
28730
|
if (
|
|
28685
28731
|
nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_externalsigner_derive_public_key() !==
|
|
28686
|
-
|
|
28732
|
+
23137
|
|
28687
28733
|
) {
|
|
28688
28734
|
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
28689
28735
|
'uniffi_breez_sdk_spark_checksum_method_externalsigner_derive_public_key'
|
|
@@ -28706,19 +28752,19 @@ function uniffiEnsureInitialized() {
|
|
|
28706
28752
|
);
|
|
28707
28753
|
}
|
|
28708
28754
|
if (
|
|
28709
|
-
nativeModule().
|
|
28710
|
-
|
|
28755
|
+
nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_externalsigner_encrypt_ecies() !==
|
|
28756
|
+
60224
|
|
28711
28757
|
) {
|
|
28712
28758
|
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
28713
|
-
'
|
|
28759
|
+
'uniffi_breez_sdk_spark_checksum_method_externalsigner_encrypt_ecies'
|
|
28714
28760
|
);
|
|
28715
28761
|
}
|
|
28716
28762
|
if (
|
|
28717
|
-
nativeModule().
|
|
28718
|
-
|
|
28763
|
+
nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_externalsigner_decrypt_ecies() !==
|
|
28764
|
+
59601
|
|
28719
28765
|
) {
|
|
28720
28766
|
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
28721
|
-
'
|
|
28767
|
+
'uniffi_breez_sdk_spark_checksum_method_externalsigner_decrypt_ecies'
|
|
28722
28768
|
);
|
|
28723
28769
|
}
|
|
28724
28770
|
if (
|
|
@@ -28731,18 +28777,18 @@ function uniffiEnsureInitialized() {
|
|
|
28731
28777
|
}
|
|
28732
28778
|
if (
|
|
28733
28779
|
nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_externalsigner_hmac_sha256() !==
|
|
28734
|
-
|
|
28780
|
+
57517
|
|
28735
28781
|
) {
|
|
28736
28782
|
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
28737
28783
|
'uniffi_breez_sdk_spark_checksum_method_externalsigner_hmac_sha256'
|
|
28738
28784
|
);
|
|
28739
28785
|
}
|
|
28740
28786
|
if (
|
|
28741
|
-
nativeModule().
|
|
28742
|
-
|
|
28787
|
+
nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_externalsigner_generate_random_signing_commitment() !==
|
|
28788
|
+
31862
|
|
28743
28789
|
) {
|
|
28744
28790
|
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
28745
|
-
'
|
|
28791
|
+
'uniffi_breez_sdk_spark_checksum_method_externalsigner_generate_random_signing_commitment'
|
|
28746
28792
|
);
|
|
28747
28793
|
}
|
|
28748
28794
|
if (
|
|
@@ -28755,82 +28801,82 @@ function uniffiEnsureInitialized() {
|
|
|
28755
28801
|
}
|
|
28756
28802
|
if (
|
|
28757
28803
|
nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_externalsigner_generate_random_key() !==
|
|
28758
|
-
|
|
28804
|
+
24906
|
|
28759
28805
|
) {
|
|
28760
28806
|
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
28761
28807
|
'uniffi_breez_sdk_spark_checksum_method_externalsigner_generate_random_key'
|
|
28762
28808
|
);
|
|
28763
28809
|
}
|
|
28764
28810
|
if (
|
|
28765
|
-
nativeModule().
|
|
28766
|
-
|
|
28811
|
+
nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_externalsigner_static_deposit_secret_key_encrypted() !==
|
|
28812
|
+
50023
|
|
28767
28813
|
) {
|
|
28768
28814
|
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
28769
|
-
'
|
|
28815
|
+
'uniffi_breez_sdk_spark_checksum_method_externalsigner_static_deposit_secret_key_encrypted'
|
|
28770
28816
|
);
|
|
28771
28817
|
}
|
|
28772
28818
|
if (
|
|
28773
|
-
nativeModule().
|
|
28774
|
-
|
|
28819
|
+
nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_externalsigner_static_deposit_secret_key() !==
|
|
28820
|
+
61854
|
|
28775
28821
|
) {
|
|
28776
28822
|
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
28777
|
-
'
|
|
28823
|
+
'uniffi_breez_sdk_spark_checksum_method_externalsigner_static_deposit_secret_key'
|
|
28778
28824
|
);
|
|
28779
28825
|
}
|
|
28780
28826
|
if (
|
|
28781
|
-
nativeModule().
|
|
28782
|
-
|
|
28827
|
+
nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_externalsigner_static_deposit_signing_key() !==
|
|
28828
|
+
15562
|
|
28783
28829
|
) {
|
|
28784
28830
|
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
28785
|
-
'
|
|
28831
|
+
'uniffi_breez_sdk_spark_checksum_method_externalsigner_static_deposit_signing_key'
|
|
28786
28832
|
);
|
|
28787
28833
|
}
|
|
28788
28834
|
if (
|
|
28789
|
-
nativeModule().
|
|
28790
|
-
|
|
28835
|
+
nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_externalsigner_subtract_secret_keys() !==
|
|
28836
|
+
4979
|
|
28791
28837
|
) {
|
|
28792
28838
|
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
28793
|
-
'
|
|
28839
|
+
'uniffi_breez_sdk_spark_checksum_method_externalsigner_subtract_secret_keys'
|
|
28794
28840
|
);
|
|
28795
28841
|
}
|
|
28796
28842
|
if (
|
|
28797
|
-
nativeModule().
|
|
28798
|
-
|
|
28843
|
+
nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_externalsigner_split_secret_with_proofs() !==
|
|
28844
|
+
6228
|
|
28799
28845
|
) {
|
|
28800
28846
|
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
28801
|
-
'
|
|
28847
|
+
'uniffi_breez_sdk_spark_checksum_method_externalsigner_split_secret_with_proofs'
|
|
28802
28848
|
);
|
|
28803
28849
|
}
|
|
28804
28850
|
if (
|
|
28805
|
-
nativeModule().
|
|
28806
|
-
|
|
28851
|
+
nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_externalsigner_encrypt_secret_key_for_receiver() !==
|
|
28852
|
+
43011
|
|
28807
28853
|
) {
|
|
28808
28854
|
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
28809
|
-
'
|
|
28855
|
+
'uniffi_breez_sdk_spark_checksum_method_externalsigner_encrypt_secret_key_for_receiver'
|
|
28810
28856
|
);
|
|
28811
28857
|
}
|
|
28812
28858
|
if (
|
|
28813
|
-
nativeModule().
|
|
28814
|
-
|
|
28859
|
+
nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_externalsigner_public_key_from_secret_key_source() !==
|
|
28860
|
+
35440
|
|
28815
28861
|
) {
|
|
28816
28862
|
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
28817
|
-
'
|
|
28863
|
+
'uniffi_breez_sdk_spark_checksum_method_externalsigner_public_key_from_secret_key_source'
|
|
28818
28864
|
);
|
|
28819
28865
|
}
|
|
28820
28866
|
if (
|
|
28821
28867
|
nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_externalsigner_sign_frost() !==
|
|
28822
|
-
|
|
28868
|
+
2993
|
|
28823
28869
|
) {
|
|
28824
28870
|
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
28825
28871
|
'uniffi_breez_sdk_spark_checksum_method_externalsigner_sign_frost'
|
|
28826
28872
|
);
|
|
28827
28873
|
}
|
|
28828
28874
|
if (
|
|
28829
|
-
nativeModule().
|
|
28830
|
-
|
|
28875
|
+
nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_externalsigner_aggregate_frost() !==
|
|
28876
|
+
27769
|
|
28831
28877
|
) {
|
|
28832
28878
|
throw new UniffiInternalError.ApiChecksumMismatch(
|
|
28833
|
-
'
|
|
28879
|
+
'uniffi_breez_sdk_spark_checksum_method_externalsigner_aggregate_frost'
|
|
28834
28880
|
);
|
|
28835
28881
|
}
|
|
28836
28882
|
if (
|
|
@@ -29292,8 +29338,8 @@ export default Object.freeze({
|
|
|
29292
29338
|
FfiConverterTypeExternalFrostSignatureShare,
|
|
29293
29339
|
FfiConverterTypeExternalIdentifier,
|
|
29294
29340
|
FfiConverterTypeExternalInputParser,
|
|
29295
|
-
FfiConverterTypeExternalPrivateKeySource,
|
|
29296
29341
|
FfiConverterTypeExternalScalar,
|
|
29342
|
+
FfiConverterTypeExternalSecretKeySource,
|
|
29297
29343
|
FfiConverterTypeExternalSecretShare,
|
|
29298
29344
|
FfiConverterTypeExternalSecretToSplit,
|
|
29299
29345
|
FfiConverterTypeExternalSignFrostRequest,
|