@breeztech/breez-sdk-spark-react-native 0.19.2 → 0.21.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/BreezSdkSparkReactNative.podspec +6 -0
- package/cpp/generated/breez_sdk_spark.cpp +1527 -125
- package/cpp/generated/breez_sdk_spark.hpp +84 -0
- package/lib/commonjs/generated/breez_sdk_spark-ffi.js.map +1 -1
- package/lib/commonjs/generated/breez_sdk_spark.js +554 -62
- package/lib/commonjs/generated/breez_sdk_spark.js.map +1 -1
- package/lib/commonjs/passkey-prf-provider.js +31 -11
- package/lib/commonjs/passkey-prf-provider.js.map +1 -1
- package/lib/module/generated/breez_sdk_spark-ffi.js.map +1 -1
- package/lib/module/generated/breez_sdk_spark.js +553 -61
- package/lib/module/generated/breez_sdk_spark.js.map +1 -1
- package/lib/module/passkey-prf-provider.js +31 -11
- package/lib/module/passkey-prf-provider.js.map +1 -1
- package/lib/typescript/commonjs/src/generated/breez_sdk_spark-ffi.d.ts +56 -21
- 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 +2251 -144
- package/lib/typescript/commonjs/src/generated/breez_sdk_spark.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/passkey-prf-provider.d.ts +24 -6
- package/lib/typescript/commonjs/src/passkey-prf-provider.d.ts.map +1 -1
- package/lib/typescript/module/src/generated/breez_sdk_spark-ffi.d.ts +56 -21
- 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 +2251 -144
- package/lib/typescript/module/src/generated/breez_sdk_spark.d.ts.map +1 -1
- package/lib/typescript/module/src/passkey-prf-provider.d.ts +24 -6
- package/lib/typescript/module/src/passkey-prf-provider.d.ts.map +1 -1
- package/package.json +4 -4
- package/plugin/build/index.d.ts +1 -1
- package/plugin/build/index.js +3 -1
- package/plugin/build/withAndroid.d.ts +1 -1
- package/plugin/build/withAndroid.js +1 -1
- package/plugin/build/withBinaryArtifacts.d.ts +1 -1
- package/plugin/build/withBinaryArtifacts.js +1 -1
- package/plugin/build/withIOS.d.ts +1 -1
- package/plugin/build/withIOS.js +1 -1
- package/scripts/post-ubrn.js +42 -0
- package/src/generated/breez_sdk_spark-ffi.ts +122 -19
- package/src/generated/breez_sdk_spark.ts +3999 -77
- package/src/passkey-prf-provider.ts +41 -12
|
@@ -13,6 +13,20 @@ export interface PasskeyCredential {
|
|
|
13
13
|
aaguid: Uint8Array | null;
|
|
14
14
|
backupEligible: boolean | null;
|
|
15
15
|
}
|
|
16
|
+
/**
|
|
17
|
+
* Result of {@link PasskeyProvider.createPasskey}: the new credential, plus
|
|
18
|
+
* the PRF outputs when the authenticator evaluated them during the create
|
|
19
|
+
* ceremony. `seeds` null means it did not, so the caller derives through
|
|
20
|
+
* {@link PasskeyProvider.deriveSeeds}.
|
|
21
|
+
*
|
|
22
|
+
* Seeds returned here must equal what `deriveSeeds` returns for the same
|
|
23
|
+
* salts: the wallet is derived from them either way, so a mismatch means
|
|
24
|
+
* register and sign-in land on different wallets.
|
|
25
|
+
*/
|
|
26
|
+
export interface CreatePasskeyOutput {
|
|
27
|
+
credential: PasskeyCredential;
|
|
28
|
+
seeds: Uint8Array[] | null;
|
|
29
|
+
}
|
|
16
30
|
/**
|
|
17
31
|
* Result of {@link PasskeyProvider.checkDomainAssociation}. Switch on `kind`
|
|
18
32
|
* to handle each outcome.
|
|
@@ -75,13 +89,17 @@ export declare class PasskeyProvider {
|
|
|
75
89
|
credentialId?: Uint8Array;
|
|
76
90
|
}>;
|
|
77
91
|
/**
|
|
78
|
-
* Register a new PRF-capable passkey
|
|
79
|
-
*
|
|
80
|
-
* `
|
|
81
|
-
*
|
|
82
|
-
*
|
|
92
|
+
* Register a new PRF-capable passkey. `excludeCredentials` blocks
|
|
93
|
+
* re-registering a device that already holds a credential, surfaced as a
|
|
94
|
+
* `credentialAlreadyExists` failure. The returned user handle is minted
|
|
95
|
+
* fresh per call (never host-supplied).
|
|
96
|
+
*
|
|
97
|
+
* Asking the create ceremony to evaluate PRF for `salts` removes the
|
|
98
|
+
* assertion that would otherwise follow it. `seeds` is null when the
|
|
99
|
+
* authenticator reported PRF support without evaluating, or returned
|
|
100
|
+
* fewer outputs than salts; the caller then derives as before.
|
|
83
101
|
*/
|
|
84
|
-
createPasskey(excludeCredentials?: Uint8Array[]): Promise<
|
|
102
|
+
createPasskey(excludeCredentials?: Uint8Array[], salts?: string[]): Promise<CreatePasskeyOutput>;
|
|
85
103
|
/** Whether this device supports passkeys with the PRF extension. */
|
|
86
104
|
isSupported(): Promise<boolean>;
|
|
87
105
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"passkey-prf-provider.d.ts","sourceRoot":"","sources":["../../../../src/passkey-prf-provider.ts"],"names":[],"mappings":"AACA,OAAO,EACL,aAAa,IAAI,gBAAgB,EACjC,sBAAsB,EACtB,KAAK,aAAa,EAClB,KAAK,WAAW,EACjB,MAAM,6BAA6B,CAAC;AAwCrC;;;;;;;GAOG;AACH,MAAM,WAAW,iBAAiB;IAChC,YAAY,EAAE,UAAU,CAAC;IACzB,MAAM,EAAE,UAAU,GAAG,IAAI,CAAC;IAC1B,MAAM,EAAE,UAAU,GAAG,IAAI,CAAC;IAC1B,cAAc,EAAE,OAAO,GAAG,IAAI,CAAC;CAChC;AAED;;;GAGG;AACH,MAAM,MAAM,iBAAiB,GACzB;IAAE,IAAI,EAAE,YAAY,CAAA;CAAE,GACtB;IAAE,IAAI,EAAE,eAAe,CAAC;IAAC,MAAM,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,MAAM,CAAA;CAAE,GACzD;IAAE,IAAI,EAAE,SAAS,CAAC;IAAC,MAAM,EAAE,MAAM,CAAA;CAAE,CAAC;AAExC;;;;;;GAMG;AACH,qBAAa,mBAAoB,SAAQ,KAAK;IAC5C,QAAQ,CAAC,I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,CAAC,OAAO,CAAC;IAQrC;;;;OAIG;IACG,sBAAsB,IAAI,OAAO,CAAC,iBAAiB,CAAC;CA6B3D;AAqBD;;;;GAIG;AACH,qBAAa,oBAAoB;IAY7B,OAAO,CAAC,QAAQ,CAAC,WAAW,CAAC;IAC7B,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAC;IAZ1B,OAAO,CAAC,QAAQ,CAAC,CAAc;IAE/B;;;;;;;OAOG;gBAEgB,WAAW,CAAC,EAAE,MAAM,YAAA,EACpB,MAAM,CAAC,EAAE,aAAa,YAAA;IAGzC;;;;;OAKG;IACH,eAAe,CAAC,QAAQ,EAAE,WAAW,GAAG,IAAI;IAK5C;;;;OAIG;IACH,KAAK,IAAI,gBAAgB;CAU1B;AAUD;;;;;GAKG;AACH,eAAO,MAAM,aAAa,EAAE;IAC1B,KAAK,WAAW,CAAC,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,aAAa,GAAG,gBAAgB,CAAC;CAGtE,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@breeztech/breez-sdk-spark-react-native",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.21.0",
|
|
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",
|
|
@@ -99,7 +99,6 @@
|
|
|
99
99
|
},
|
|
100
100
|
"devDependencies": {
|
|
101
101
|
"@commitlint/config-conventional": "^17.0.2",
|
|
102
|
-
"@expo/config-plugins": "^8.0.0",
|
|
103
102
|
"@react-native-community/cli": "15.0.1",
|
|
104
103
|
"@react-native/eslint-config": "^0.73.1",
|
|
105
104
|
"@release-it/conventional-changelog": "^9.0.2",
|
|
@@ -110,6 +109,7 @@
|
|
|
110
109
|
"eslint": "^8.51.0",
|
|
111
110
|
"eslint-config-prettier": "^9.0.0",
|
|
112
111
|
"eslint-plugin-prettier": "^5.0.1",
|
|
112
|
+
"expo": "^56.0.0",
|
|
113
113
|
"expo-module-scripts": "^3.5.0",
|
|
114
114
|
"jest": "^29.7.0",
|
|
115
115
|
"patch-package": "^8.0.0",
|
|
@@ -209,7 +209,7 @@
|
|
|
209
209
|
"version": "0.49.0"
|
|
210
210
|
},
|
|
211
211
|
"checksums": {
|
|
212
|
-
"android": "
|
|
213
|
-
"ios": "
|
|
212
|
+
"android": "ae83553d8bec3229c120d13ad13850715d426c80fa6b255bf1d1ecd8c9beb895",
|
|
213
|
+
"ios": "0f9ff4edda8e2c8147f2f2bbda79e07458f9180774edcf34e59661586951e2f4"
|
|
214
214
|
}
|
|
215
215
|
}
|
package/plugin/build/index.d.ts
CHANGED
package/plugin/build/index.js
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
|
|
3
|
+
// `@expo/config-plugins` is nested under `expo/` from SDK 56 onward and is not
|
|
4
|
+
// resolvable from this package. `expo/config-plugins` re-exports it.
|
|
5
|
+
const config_plugins_1 = require("expo/config-plugins");
|
|
4
6
|
const withBinaryArtifacts_1 = require("./withBinaryArtifacts");
|
|
5
7
|
const withAndroid_1 = require("./withAndroid");
|
|
6
8
|
const withIOS_1 = require("./withIOS");
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.withBreezSdkAndroid = void 0;
|
|
4
|
-
const config_plugins_1 = require("
|
|
4
|
+
const config_plugins_1 = require("expo/config-plugins");
|
|
5
5
|
/**
|
|
6
6
|
* Add required configurations to gradle.properties
|
|
7
7
|
*/
|
|
@@ -34,7 +34,7 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
34
34
|
})();
|
|
35
35
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
36
|
exports.withBinaryArtifacts = void 0;
|
|
37
|
-
const config_plugins_1 = require("
|
|
37
|
+
const config_plugins_1 = require("expo/config-plugins");
|
|
38
38
|
const path = __importStar(require("path"));
|
|
39
39
|
const fs = __importStar(require("fs"));
|
|
40
40
|
const child_process_1 = require("child_process");
|
package/plugin/build/withIOS.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.withBreezSdkIOS = void 0;
|
|
4
|
-
const config_plugins_1 = require("
|
|
4
|
+
const config_plugins_1 = require("expo/config-plugins");
|
|
5
5
|
/**
|
|
6
6
|
* Configure iOS build settings for Breez SDK
|
|
7
7
|
* The podspec already defines the minimum iOS version via min_ios_version_supported
|
package/scripts/post-ubrn.js
CHANGED
|
@@ -20,6 +20,12 @@
|
|
|
20
20
|
* - register BreezSdkSparkPasskeyModule alongside the generated
|
|
21
21
|
* UniFFI TurboModule so React Native can find it at runtime
|
|
22
22
|
*
|
|
23
|
+
* 3. BreezSdkSparkReactNative.podspec
|
|
24
|
+
* - narrow `public_header_files` to the ObjC PRF helper. The pod
|
|
25
|
+
* gained Swift with the passkey provider, so CocoaPods now builds
|
|
26
|
+
* an ObjC module from the umbrella header, and the generated C++
|
|
27
|
+
* and ObjC++ headers cannot be parsed as ObjC
|
|
28
|
+
*
|
|
23
29
|
* The PasskeyProvider class is exposed via a subpath export
|
|
24
30
|
* (`@breeztech/breez-sdk-spark-react-native/passkey-prf-provider`) declared
|
|
25
31
|
* in package.json `exports`, so no edit to the generated `src/index.tsx`
|
|
@@ -196,6 +202,42 @@ patchFile(
|
|
|
196
202
|
}
|
|
197
203
|
);
|
|
198
204
|
|
|
205
|
+
// ---------------------------------------------------------------------------
|
|
206
|
+
// 3. BreezSdkSparkReactNative.podspec
|
|
207
|
+
// ---------------------------------------------------------------------------
|
|
208
|
+
|
|
209
|
+
patchFile(
|
|
210
|
+
'BreezSdkSparkReactNative.podspec',
|
|
211
|
+
'public_header_files (keep C++ out of the ObjC umbrella)',
|
|
212
|
+
(content, label, relPath) => {
|
|
213
|
+
const declaration = ' s.public_header_files = "ios/PasskeyPRFHelper.h"';
|
|
214
|
+
if (content.includes(declaration)) {
|
|
215
|
+
return content;
|
|
216
|
+
}
|
|
217
|
+
// Any other value silently re-widens the umbrella, so refuse to inject a
|
|
218
|
+
// second, conflicting assignment.
|
|
219
|
+
if (/^\s*s\.public_header_files\s*=/m.test(content)) {
|
|
220
|
+
throw new Error(
|
|
221
|
+
`podspec already declares s.public_header_files with an unexpected ` +
|
|
222
|
+
`value. The pod contains Swift, so its umbrella must stay ObjC-only. ` +
|
|
223
|
+
`Reconcile by hand before regenerating.`
|
|
224
|
+
);
|
|
225
|
+
}
|
|
226
|
+
const anchor = ' s.vendored_frameworks = "build/RnBreezSdkSpark.xcframework"';
|
|
227
|
+
requireAnchor(content, anchor, label, relPath);
|
|
228
|
+
const injected = [
|
|
229
|
+
' # The pod contains Swift, so CocoaPods builds an ObjC module from the umbrella',
|
|
230
|
+
' # header, which is parsed as ObjC and not ObjC++. Every other header here is',
|
|
231
|
+
' # C++ or reaches it transitively (BreezSdkSparkReactNative.h imports the',
|
|
232
|
+
' # ObjC++ codegen spec under RCT_NEW_ARCH_ENABLED), so only the helper the',
|
|
233
|
+
' # Swift sources need is public.',
|
|
234
|
+
declaration,
|
|
235
|
+
anchor,
|
|
236
|
+
].join('\n');
|
|
237
|
+
return content.replace(anchor, injected);
|
|
238
|
+
}
|
|
239
|
+
);
|
|
240
|
+
|
|
199
241
|
if (errors.length > 0) {
|
|
200
242
|
console.error('');
|
|
201
243
|
console.error(`[post-ubrn] ${errors.length} patch(es) failed:`);
|
|
@@ -38,6 +38,10 @@ interface NativeModuleInterface {
|
|
|
38
38
|
ptr: bigint,
|
|
39
39
|
address: Uint8Array
|
|
40
40
|
): bigint;
|
|
41
|
+
ubrn_uniffi_breez_sdk_spark_fn_method_bitcoinchainservice_get_address_txos(
|
|
42
|
+
ptr: bigint,
|
|
43
|
+
address: Uint8Array
|
|
44
|
+
): bigint;
|
|
41
45
|
ubrn_uniffi_breez_sdk_spark_fn_method_bitcoinchainservice_get_transaction_status(
|
|
42
46
|
ptr: bigint,
|
|
43
47
|
txid: Uint8Array
|
|
@@ -46,6 +50,11 @@ interface NativeModuleInterface {
|
|
|
46
50
|
ptr: bigint,
|
|
47
51
|
txid: Uint8Array
|
|
48
52
|
): bigint;
|
|
53
|
+
ubrn_uniffi_breez_sdk_spark_fn_method_bitcoinchainservice_get_outspend(
|
|
54
|
+
ptr: bigint,
|
|
55
|
+
txid: Uint8Array,
|
|
56
|
+
vout: number
|
|
57
|
+
): bigint;
|
|
49
58
|
ubrn_uniffi_breez_sdk_spark_fn_method_bitcoinchainservice_broadcast_transaction(
|
|
50
59
|
ptr: bigint,
|
|
51
60
|
tx: Uint8Array
|
|
@@ -73,6 +82,10 @@ interface NativeModuleInterface {
|
|
|
73
82
|
ptr: bigint,
|
|
74
83
|
request: Uint8Array
|
|
75
84
|
): bigint;
|
|
85
|
+
ubrn_uniffi_breez_sdk_spark_fn_method_breezsdk_build_unsigned_batch_package(
|
|
86
|
+
ptr: bigint,
|
|
87
|
+
request: Uint8Array
|
|
88
|
+
): bigint;
|
|
76
89
|
ubrn_uniffi_breez_sdk_spark_fn_method_breezsdk_build_unsigned_lnurl_pay_package(
|
|
77
90
|
ptr: bigint,
|
|
78
91
|
request: Uint8Array
|
|
@@ -190,10 +203,18 @@ interface NativeModuleInterface {
|
|
|
190
203
|
ptr: bigint,
|
|
191
204
|
request: Uint8Array
|
|
192
205
|
): bigint;
|
|
206
|
+
ubrn_uniffi_breez_sdk_spark_fn_method_breezsdk_prepare_send_batch(
|
|
207
|
+
ptr: bigint,
|
|
208
|
+
request: Uint8Array
|
|
209
|
+
): bigint;
|
|
193
210
|
ubrn_uniffi_breez_sdk_spark_fn_method_breezsdk_prepare_send_payment(
|
|
194
211
|
ptr: bigint,
|
|
195
212
|
request: Uint8Array
|
|
196
213
|
): bigint;
|
|
214
|
+
ubrn_uniffi_breez_sdk_spark_fn_method_breezsdk_prepare_unilateral_exit(
|
|
215
|
+
ptr: bigint,
|
|
216
|
+
request: Uint8Array
|
|
217
|
+
): bigint;
|
|
197
218
|
ubrn_uniffi_breez_sdk_spark_fn_method_breezsdk_publish_signed_lnurl_pay_package(
|
|
198
219
|
ptr: bigint,
|
|
199
220
|
request: Uint8Array
|
|
@@ -228,6 +249,10 @@ interface NativeModuleInterface {
|
|
|
228
249
|
ptr: bigint,
|
|
229
250
|
id: Uint8Array
|
|
230
251
|
): bigint;
|
|
252
|
+
ubrn_uniffi_breez_sdk_spark_fn_method_breezsdk_send_batch(
|
|
253
|
+
ptr: bigint,
|
|
254
|
+
request: Uint8Array
|
|
255
|
+
): bigint;
|
|
231
256
|
ubrn_uniffi_breez_sdk_spark_fn_method_breezsdk_send_payment(
|
|
232
257
|
ptr: bigint,
|
|
233
258
|
request: Uint8Array
|
|
@@ -240,6 +265,11 @@ interface NativeModuleInterface {
|
|
|
240
265
|
ptr: bigint,
|
|
241
266
|
request: Uint8Array
|
|
242
267
|
): bigint;
|
|
268
|
+
ubrn_uniffi_breez_sdk_spark_fn_method_breezsdk_unilateral_exit(
|
|
269
|
+
ptr: bigint,
|
|
270
|
+
request: Uint8Array,
|
|
271
|
+
signer: bigint
|
|
272
|
+
): bigint;
|
|
243
273
|
ubrn_uniffi_breez_sdk_spark_fn_method_breezsdk_unregister_webhook(
|
|
244
274
|
ptr: bigint,
|
|
245
275
|
request: Uint8Array
|
|
@@ -252,6 +282,21 @@ interface NativeModuleInterface {
|
|
|
252
282
|
ptr: bigint,
|
|
253
283
|
request: Uint8Array
|
|
254
284
|
): bigint;
|
|
285
|
+
ubrn_uniffi_breez_sdk_spark_fn_clone_cpfpsigner(
|
|
286
|
+
ptr: bigint,
|
|
287
|
+
uniffi_out_err: UniffiRustCallStatus
|
|
288
|
+
): bigint;
|
|
289
|
+
ubrn_uniffi_breez_sdk_spark_fn_free_cpfpsigner(
|
|
290
|
+
ptr: bigint,
|
|
291
|
+
uniffi_out_err: UniffiRustCallStatus
|
|
292
|
+
): void;
|
|
293
|
+
ubrn_uniffi_breez_sdk_spark_fn_init_callback_vtable_cpfpsigner(
|
|
294
|
+
vtable: UniffiVTableCallbackInterfaceCpfpSigner
|
|
295
|
+
): void;
|
|
296
|
+
ubrn_uniffi_breez_sdk_spark_fn_method_cpfpsigner_sign_psbt(
|
|
297
|
+
ptr: bigint,
|
|
298
|
+
psbtBytes: Uint8Array
|
|
299
|
+
): bigint;
|
|
255
300
|
ubrn_uniffi_breez_sdk_spark_fn_clone_externalbreezsigner(
|
|
256
301
|
ptr: bigint,
|
|
257
302
|
uniffi_out_err: UniffiRustCallStatus
|
|
@@ -361,6 +406,11 @@ interface NativeModuleInterface {
|
|
|
361
406
|
ptr: bigint,
|
|
362
407
|
message: Uint8Array
|
|
363
408
|
): bigint;
|
|
409
|
+
ubrn_uniffi_breez_sdk_spark_fn_method_externalsparksigner_sign_leaf_refund_spend(
|
|
410
|
+
ptr: bigint,
|
|
411
|
+
leafId: Uint8Array,
|
|
412
|
+
sighash: Uint8Array
|
|
413
|
+
): bigint;
|
|
364
414
|
ubrn_uniffi_breez_sdk_spark_fn_method_externalsparksigner_sign_frost(
|
|
365
415
|
ptr: bigint,
|
|
366
416
|
jobs: Uint8Array
|
|
@@ -503,7 +553,8 @@ interface NativeModuleInterface {
|
|
|
503
553
|
): bigint;
|
|
504
554
|
ubrn_uniffi_breez_sdk_spark_fn_method_prfprovider_create_passkey(
|
|
505
555
|
ptr: bigint,
|
|
506
|
-
excludeCredentials: Uint8Array
|
|
556
|
+
excludeCredentials: Uint8Array,
|
|
557
|
+
salts: Uint8Array
|
|
507
558
|
): bigint;
|
|
508
559
|
ubrn_uniffi_breez_sdk_spark_fn_method_prfprovider_check_domain_association(
|
|
509
560
|
ptr: bigint
|
|
@@ -892,6 +943,10 @@ interface NativeModuleInterface {
|
|
|
892
943
|
ubrn_uniffi_breez_sdk_spark_fn_func_new_shared_sdk_context(
|
|
893
944
|
config: Uint8Array
|
|
894
945
|
): bigint;
|
|
946
|
+
ubrn_uniffi_breez_sdk_spark_fn_func_single_key_cpfp_signer(
|
|
947
|
+
secretKeyBytes: Uint8Array,
|
|
948
|
+
uniffi_out_err: UniffiRustCallStatus
|
|
949
|
+
): bigint;
|
|
895
950
|
ubrn_ffi_breez_sdk_spark_rust_future_poll_u8(
|
|
896
951
|
handle: bigint,
|
|
897
952
|
callback: UniffiRustFutureContinuationCallback,
|
|
@@ -1050,14 +1105,18 @@ interface NativeModuleInterface {
|
|
|
1050
1105
|
ubrn_uniffi_breez_sdk_spark_checksum_func_init_logging(): number;
|
|
1051
1106
|
ubrn_uniffi_breez_sdk_spark_checksum_func_new_rest_chain_service(): number;
|
|
1052
1107
|
ubrn_uniffi_breez_sdk_spark_checksum_func_new_shared_sdk_context(): number;
|
|
1108
|
+
ubrn_uniffi_breez_sdk_spark_checksum_func_single_key_cpfp_signer(): number;
|
|
1053
1109
|
ubrn_uniffi_breez_sdk_spark_checksum_method_bitcoinchainservice_get_address_utxos(): number;
|
|
1110
|
+
ubrn_uniffi_breez_sdk_spark_checksum_method_bitcoinchainservice_get_address_txos(): number;
|
|
1054
1111
|
ubrn_uniffi_breez_sdk_spark_checksum_method_bitcoinchainservice_get_transaction_status(): number;
|
|
1055
1112
|
ubrn_uniffi_breez_sdk_spark_checksum_method_bitcoinchainservice_get_transaction_hex(): number;
|
|
1113
|
+
ubrn_uniffi_breez_sdk_spark_checksum_method_bitcoinchainservice_get_outspend(): number;
|
|
1056
1114
|
ubrn_uniffi_breez_sdk_spark_checksum_method_bitcoinchainservice_broadcast_transaction(): number;
|
|
1057
1115
|
ubrn_uniffi_breez_sdk_spark_checksum_method_bitcoinchainservice_recommended_fees(): number;
|
|
1058
1116
|
ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_add_contact(): number;
|
|
1059
1117
|
ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_add_event_listener(): number;
|
|
1060
1118
|
ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_authorize_lightning_address_transfer(): number;
|
|
1119
|
+
ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_build_unsigned_batch_package(): number;
|
|
1061
1120
|
ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_build_unsigned_lnurl_pay_package(): number;
|
|
1062
1121
|
ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_build_unsigned_transfer_package(): number;
|
|
1063
1122
|
ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_buy_bitcoin(): number;
|
|
@@ -1089,7 +1148,9 @@ interface NativeModuleInterface {
|
|
|
1089
1148
|
ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_optimize_leaves(): number;
|
|
1090
1149
|
ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_parse(): number;
|
|
1091
1150
|
ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_prepare_lnurl_pay(): number;
|
|
1151
|
+
ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_prepare_send_batch(): number;
|
|
1092
1152
|
ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_prepare_send_payment(): number;
|
|
1153
|
+
ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_prepare_unilateral_exit(): number;
|
|
1093
1154
|
ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_publish_signed_lnurl_pay_package(): number;
|
|
1094
1155
|
ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_publish_signed_transfer_package(): number;
|
|
1095
1156
|
ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_receive_payment(): number;
|
|
@@ -1099,12 +1160,15 @@ interface NativeModuleInterface {
|
|
|
1099
1160
|
ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_register_lightning_address(): number;
|
|
1100
1161
|
ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_register_webhook(): number;
|
|
1101
1162
|
ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_remove_event_listener(): number;
|
|
1163
|
+
ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_send_batch(): number;
|
|
1102
1164
|
ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_send_payment(): number;
|
|
1103
1165
|
ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_sign_message(): number;
|
|
1104
1166
|
ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_sync_wallet(): number;
|
|
1167
|
+
ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_unilateral_exit(): number;
|
|
1105
1168
|
ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_unregister_webhook(): number;
|
|
1106
1169
|
ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_update_contact(): number;
|
|
1107
1170
|
ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_update_user_settings(): number;
|
|
1171
|
+
ubrn_uniffi_breez_sdk_spark_checksum_method_cpfpsigner_sign_psbt(): number;
|
|
1108
1172
|
ubrn_uniffi_breez_sdk_spark_checksum_method_externalbreezsigner_derive_public_key(): number;
|
|
1109
1173
|
ubrn_uniffi_breez_sdk_spark_checksum_method_externalbreezsigner_sign_ecdsa(): number;
|
|
1110
1174
|
ubrn_uniffi_breez_sdk_spark_checksum_method_externalbreezsigner_sign_ecdsa_recoverable(): number;
|
|
@@ -1122,6 +1186,7 @@ interface NativeModuleInterface {
|
|
|
1122
1186
|
ubrn_uniffi_breez_sdk_spark_checksum_method_externalsparksigner_get_static_deposit_public_key(): number;
|
|
1123
1187
|
ubrn_uniffi_breez_sdk_spark_checksum_method_externalsparksigner_sign_authentication_challenge(): number;
|
|
1124
1188
|
ubrn_uniffi_breez_sdk_spark_checksum_method_externalsparksigner_sign_message(): number;
|
|
1189
|
+
ubrn_uniffi_breez_sdk_spark_checksum_method_externalsparksigner_sign_leaf_refund_spend(): number;
|
|
1125
1190
|
ubrn_uniffi_breez_sdk_spark_checksum_method_externalsparksigner_sign_frost(): number;
|
|
1126
1191
|
ubrn_uniffi_breez_sdk_spark_checksum_method_externalsparksigner_prepare_transfer(): number;
|
|
1127
1192
|
ubrn_uniffi_breez_sdk_spark_checksum_method_externalsparksigner_prepare_claim(): number;
|
|
@@ -1217,6 +1282,10 @@ interface NativeModuleInterface {
|
|
|
1217
1282
|
pointer: bigint,
|
|
1218
1283
|
uniffi_out_err: UniffiRustCallStatus
|
|
1219
1284
|
): UniffiRustArcPtr;
|
|
1285
|
+
ubrn_uniffi_internal_fn_method_cpfpsigner_ffi__bless_pointer(
|
|
1286
|
+
pointer: bigint,
|
|
1287
|
+
uniffi_out_err: UniffiRustCallStatus
|
|
1288
|
+
): UniffiRustArcPtr;
|
|
1220
1289
|
ubrn_uniffi_internal_fn_method_externalbreezsigner_ffi__bless_pointer(
|
|
1221
1290
|
pointer: bigint,
|
|
1222
1291
|
uniffi_out_err: UniffiRustCallStatus
|
|
@@ -1424,7 +1493,7 @@ type UniffiCallbackInterfaceBitcoinChainServiceMethod0 = (
|
|
|
1424
1493
|
) => UniffiForeignFuture;
|
|
1425
1494
|
type UniffiCallbackInterfaceBitcoinChainServiceMethod1 = (
|
|
1426
1495
|
uniffiHandle: bigint,
|
|
1427
|
-
|
|
1496
|
+
address: Uint8Array,
|
|
1428
1497
|
uniffiFutureCallback: UniffiForeignFutureCompleteRustBuffer,
|
|
1429
1498
|
uniffiCallbackData: bigint
|
|
1430
1499
|
) => UniffiForeignFuture;
|
|
@@ -1435,13 +1504,32 @@ type UniffiCallbackInterfaceBitcoinChainServiceMethod2 = (
|
|
|
1435
1504
|
uniffiCallbackData: bigint
|
|
1436
1505
|
) => UniffiForeignFuture;
|
|
1437
1506
|
type UniffiCallbackInterfaceBitcoinChainServiceMethod3 = (
|
|
1507
|
+
uniffiHandle: bigint,
|
|
1508
|
+
txid: Uint8Array,
|
|
1509
|
+
uniffiFutureCallback: UniffiForeignFutureCompleteRustBuffer,
|
|
1510
|
+
uniffiCallbackData: bigint
|
|
1511
|
+
) => UniffiForeignFuture;
|
|
1512
|
+
type UniffiCallbackInterfaceBitcoinChainServiceMethod4 = (
|
|
1513
|
+
uniffiHandle: bigint,
|
|
1514
|
+
txid: Uint8Array,
|
|
1515
|
+
vout: number,
|
|
1516
|
+
uniffiFutureCallback: UniffiForeignFutureCompleteRustBuffer,
|
|
1517
|
+
uniffiCallbackData: bigint
|
|
1518
|
+
) => UniffiForeignFuture;
|
|
1519
|
+
type UniffiCallbackInterfaceBitcoinChainServiceMethod5 = (
|
|
1438
1520
|
uniffiHandle: bigint,
|
|
1439
1521
|
tx: Uint8Array,
|
|
1440
1522
|
uniffiFutureCallback: UniffiForeignFutureCompleteVoid,
|
|
1441
1523
|
uniffiCallbackData: bigint
|
|
1442
1524
|
) => UniffiForeignFuture;
|
|
1443
|
-
type
|
|
1525
|
+
type UniffiCallbackInterfaceBitcoinChainServiceMethod6 = (
|
|
1526
|
+
uniffiHandle: bigint,
|
|
1527
|
+
uniffiFutureCallback: UniffiForeignFutureCompleteRustBuffer,
|
|
1528
|
+
uniffiCallbackData: bigint
|
|
1529
|
+
) => UniffiForeignFuture;
|
|
1530
|
+
type UniffiCallbackInterfaceCpfpSignerMethod0 = (
|
|
1444
1531
|
uniffiHandle: bigint,
|
|
1532
|
+
psbtBytes: Uint8Array,
|
|
1445
1533
|
uniffiFutureCallback: UniffiForeignFutureCompleteRustBuffer,
|
|
1446
1534
|
uniffiCallbackData: bigint
|
|
1447
1535
|
) => UniffiForeignFuture;
|
|
@@ -1554,13 +1642,14 @@ type UniffiCallbackInterfaceExternalSparkSignerMethod5 = (
|
|
|
1554
1642
|
) => UniffiForeignFuture;
|
|
1555
1643
|
type UniffiCallbackInterfaceExternalSparkSignerMethod6 = (
|
|
1556
1644
|
uniffiHandle: bigint,
|
|
1557
|
-
|
|
1645
|
+
leafId: Uint8Array,
|
|
1646
|
+
sighash: Uint8Array,
|
|
1558
1647
|
uniffiFutureCallback: UniffiForeignFutureCompleteRustBuffer,
|
|
1559
1648
|
uniffiCallbackData: bigint
|
|
1560
1649
|
) => UniffiForeignFuture;
|
|
1561
1650
|
type UniffiCallbackInterfaceExternalSparkSignerMethod7 = (
|
|
1562
1651
|
uniffiHandle: bigint,
|
|
1563
|
-
|
|
1652
|
+
jobs: Uint8Array,
|
|
1564
1653
|
uniffiFutureCallback: UniffiForeignFutureCompleteRustBuffer,
|
|
1565
1654
|
uniffiCallbackData: bigint
|
|
1566
1655
|
) => UniffiForeignFuture;
|
|
@@ -1612,6 +1701,12 @@ type UniffiCallbackInterfaceExternalSparkSignerMethod15 = (
|
|
|
1612
1701
|
uniffiFutureCallback: UniffiForeignFutureCompleteRustBuffer,
|
|
1613
1702
|
uniffiCallbackData: bigint
|
|
1614
1703
|
) => UniffiForeignFuture;
|
|
1704
|
+
type UniffiCallbackInterfaceExternalSparkSignerMethod16 = (
|
|
1705
|
+
uniffiHandle: bigint,
|
|
1706
|
+
request: Uint8Array,
|
|
1707
|
+
uniffiFutureCallback: UniffiForeignFutureCompleteRustBuffer,
|
|
1708
|
+
uniffiCallbackData: bigint
|
|
1709
|
+
) => UniffiForeignFuture;
|
|
1615
1710
|
type UniffiCallbackInterfaceFiatServiceMethod0 = (
|
|
1616
1711
|
uniffiHandle: bigint,
|
|
1617
1712
|
uniffiFutureCallback: UniffiForeignFutureCompleteRustBuffer,
|
|
@@ -1648,6 +1743,7 @@ type UniffiCallbackInterfacePrfProviderMethod1 = (
|
|
|
1648
1743
|
type UniffiCallbackInterfacePrfProviderMethod2 = (
|
|
1649
1744
|
uniffiHandle: bigint,
|
|
1650
1745
|
excludeCredentials: Uint8Array,
|
|
1746
|
+
salts: Uint8Array,
|
|
1651
1747
|
uniffiFutureCallback: UniffiForeignFutureCompleteRustBuffer,
|
|
1652
1748
|
uniffiCallbackData: bigint
|
|
1653
1749
|
) => UniffiForeignFuture;
|
|
@@ -1896,10 +1992,16 @@ export type UniffiVTableCallbackInterfaceLogger = {
|
|
|
1896
1992
|
};
|
|
1897
1993
|
export type UniffiVTableCallbackInterfaceBitcoinChainService = {
|
|
1898
1994
|
getAddressUtxos: UniffiCallbackInterfaceBitcoinChainServiceMethod0;
|
|
1899
|
-
|
|
1900
|
-
|
|
1901
|
-
|
|
1902
|
-
|
|
1995
|
+
getAddressTxos: UniffiCallbackInterfaceBitcoinChainServiceMethod1;
|
|
1996
|
+
getTransactionStatus: UniffiCallbackInterfaceBitcoinChainServiceMethod2;
|
|
1997
|
+
getTransactionHex: UniffiCallbackInterfaceBitcoinChainServiceMethod3;
|
|
1998
|
+
getOutspend: UniffiCallbackInterfaceBitcoinChainServiceMethod4;
|
|
1999
|
+
broadcastTransaction: UniffiCallbackInterfaceBitcoinChainServiceMethod5;
|
|
2000
|
+
recommendedFees: UniffiCallbackInterfaceBitcoinChainServiceMethod6;
|
|
2001
|
+
uniffiFree: UniffiCallbackInterfaceFree;
|
|
2002
|
+
};
|
|
2003
|
+
export type UniffiVTableCallbackInterfaceCpfpSigner = {
|
|
2004
|
+
signPsbt: UniffiCallbackInterfaceCpfpSignerMethod0;
|
|
1903
2005
|
uniffiFree: UniffiCallbackInterfaceFree;
|
|
1904
2006
|
};
|
|
1905
2007
|
export type UniffiVTableCallbackInterfaceExternalBreezSigner = {
|
|
@@ -1926,16 +2028,17 @@ export type UniffiVTableCallbackInterfaceExternalSparkSigner = {
|
|
|
1926
2028
|
getStaticDepositPublicKey: UniffiCallbackInterfaceExternalSparkSignerMethod3;
|
|
1927
2029
|
signAuthenticationChallenge: UniffiCallbackInterfaceExternalSparkSignerMethod4;
|
|
1928
2030
|
signMessage: UniffiCallbackInterfaceExternalSparkSignerMethod5;
|
|
1929
|
-
|
|
1930
|
-
|
|
1931
|
-
|
|
1932
|
-
|
|
1933
|
-
|
|
1934
|
-
|
|
1935
|
-
|
|
1936
|
-
|
|
1937
|
-
|
|
1938
|
-
|
|
2031
|
+
signLeafRefundSpend: UniffiCallbackInterfaceExternalSparkSignerMethod6;
|
|
2032
|
+
signFrost: UniffiCallbackInterfaceExternalSparkSignerMethod7;
|
|
2033
|
+
prepareTransfer: UniffiCallbackInterfaceExternalSparkSignerMethod8;
|
|
2034
|
+
prepareClaim: UniffiCallbackInterfaceExternalSparkSignerMethod9;
|
|
2035
|
+
prepareLightningReceive: UniffiCallbackInterfaceExternalSparkSignerMethod10;
|
|
2036
|
+
prepareStaticDeposit: UniffiCallbackInterfaceExternalSparkSignerMethod11;
|
|
2037
|
+
startStaticDepositRefund: UniffiCallbackInterfaceExternalSparkSignerMethod12;
|
|
2038
|
+
signStaticDepositRefund: UniffiCallbackInterfaceExternalSparkSignerMethod13;
|
|
2039
|
+
signSparkInvoice: UniffiCallbackInterfaceExternalSparkSignerMethod14;
|
|
2040
|
+
prepareTokenTransaction: UniffiCallbackInterfaceExternalSparkSignerMethod15;
|
|
2041
|
+
prepareStaticDepositClaim: UniffiCallbackInterfaceExternalSparkSignerMethod16;
|
|
1939
2042
|
uniffiFree: UniffiCallbackInterfaceFree;
|
|
1940
2043
|
};
|
|
1941
2044
|
export type UniffiVTableCallbackInterfaceFiatService = {
|