@breeztech/breez-sdk-spark-react-native 0.18.0-dev4 → 0.18.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@breeztech/breez-sdk-spark-react-native",
3
- "version": "0.18.0-dev4",
3
+ "version": "0.18.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",
@@ -209,7 +209,7 @@
209
209
  "version": "0.49.0"
210
210
  },
211
211
  "checksums": {
212
- "android": "fd65c68d895751af0f17cc47d231477c336e666ac011243ff1a19f839ab83b05",
213
- "ios": "ce2c643c155e5fc48d7b702394047d787b536ade23c0f1dc8954ad9c35ddf5c6"
212
+ "android": "869177a7b0ed22fb678fbb0b3412ad7eb6625f11733e8a796435b537d578888c",
213
+ "ios": "e44717a61f3f5521c8af9773cdc1183025d33fa0608b66bc5cc69d6e1f8c5b9d"
214
214
  }
215
215
  }
@@ -281,6 +281,36 @@ interface NativeModuleInterface {
281
281
  message: Uint8Array,
282
282
  path: Uint8Array
283
283
  ): bigint;
284
+ ubrn_uniffi_breez_sdk_spark_fn_clone_externalsigningsigner(
285
+ ptr: bigint,
286
+ uniffi_out_err: UniffiRustCallStatus
287
+ ): bigint;
288
+ ubrn_uniffi_breez_sdk_spark_fn_free_externalsigningsigner(
289
+ ptr: bigint,
290
+ uniffi_out_err: UniffiRustCallStatus
291
+ ): void;
292
+ ubrn_uniffi_breez_sdk_spark_fn_init_callback_vtable_externalsigningsigner(
293
+ vtable: UniffiVTableCallbackInterfaceExternalSigningSigner
294
+ ): void;
295
+ ubrn_uniffi_breez_sdk_spark_fn_method_externalsigningsigner_derive_public_key(
296
+ ptr: bigint,
297
+ path: Uint8Array
298
+ ): bigint;
299
+ ubrn_uniffi_breez_sdk_spark_fn_method_externalsigningsigner_sign_ecdsa(
300
+ ptr: bigint,
301
+ message: Uint8Array,
302
+ path: Uint8Array
303
+ ): bigint;
304
+ ubrn_uniffi_breez_sdk_spark_fn_method_externalsigningsigner_sign_ecdsa_recoverable(
305
+ ptr: bigint,
306
+ message: Uint8Array,
307
+ path: Uint8Array
308
+ ): bigint;
309
+ ubrn_uniffi_breez_sdk_spark_fn_method_externalsigningsigner_sign_hash_schnorr(
310
+ ptr: bigint,
311
+ hash: Uint8Array,
312
+ path: Uint8Array
313
+ ): bigint;
284
314
  ubrn_uniffi_breez_sdk_spark_fn_clone_externalsparksigner(
285
315
  ptr: bigint,
286
316
  uniffi_out_err: UniffiRustCallStatus
@@ -513,6 +543,12 @@ interface NativeModuleInterface {
513
543
  sparkSigner: bigint,
514
544
  uniffi_out_err: UniffiRustCallStatus
515
545
  ): bigint;
546
+ ubrn_uniffi_breez_sdk_spark_fn_constructor_sdkbuilder_new_with_signing_only_signer(
547
+ config: Uint8Array,
548
+ breezSigner: bigint,
549
+ sparkSigner: bigint,
550
+ uniffi_out_err: UniffiRustCallStatus
551
+ ): bigint;
516
552
  ubrn_uniffi_breez_sdk_spark_fn_method_sdkbuilder_build(ptr: bigint): bigint;
517
553
  ubrn_uniffi_breez_sdk_spark_fn_method_sdkbuilder_with_account_number(
518
554
  ptr: bigint,
@@ -779,9 +815,15 @@ interface NativeModuleInterface {
779
815
  ubrn_uniffi_breez_sdk_spark_fn_func_connect_with_signer(
780
816
  request: Uint8Array
781
817
  ): bigint;
818
+ ubrn_uniffi_breez_sdk_spark_fn_func_connect_with_signing_only_signer(
819
+ request: Uint8Array
820
+ ): bigint;
782
821
  ubrn_uniffi_breez_sdk_spark_fn_func_create_turnkey_signer(
783
822
  config: Uint8Array
784
823
  ): bigint;
824
+ ubrn_uniffi_breez_sdk_spark_fn_func_create_turnkey_signing_only_signer(
825
+ config: Uint8Array
826
+ ): bigint;
785
827
  ubrn_uniffi_breez_sdk_spark_fn_func_custom_storage(
786
828
  storage: bigint,
787
829
  uniffi_out_err: UniffiRustCallStatus
@@ -966,7 +1008,9 @@ interface NativeModuleInterface {
966
1008
  ): void;
967
1009
  ubrn_uniffi_breez_sdk_spark_checksum_func_connect(): number;
968
1010
  ubrn_uniffi_breez_sdk_spark_checksum_func_connect_with_signer(): number;
1011
+ ubrn_uniffi_breez_sdk_spark_checksum_func_connect_with_signing_only_signer(): number;
969
1012
  ubrn_uniffi_breez_sdk_spark_checksum_func_create_turnkey_signer(): number;
1013
+ ubrn_uniffi_breez_sdk_spark_checksum_func_create_turnkey_signing_only_signer(): number;
970
1014
  ubrn_uniffi_breez_sdk_spark_checksum_func_custom_storage(): number;
971
1015
  ubrn_uniffi_breez_sdk_spark_checksum_func_default_config(): number;
972
1016
  ubrn_uniffi_breez_sdk_spark_checksum_func_default_external_signers(): number;
@@ -1034,6 +1078,10 @@ interface NativeModuleInterface {
1034
1078
  ubrn_uniffi_breez_sdk_spark_checksum_method_externalbreezsigner_decrypt_ecies(): number;
1035
1079
  ubrn_uniffi_breez_sdk_spark_checksum_method_externalbreezsigner_sign_hash_schnorr(): number;
1036
1080
  ubrn_uniffi_breez_sdk_spark_checksum_method_externalbreezsigner_hmac_sha256(): number;
1081
+ ubrn_uniffi_breez_sdk_spark_checksum_method_externalsigningsigner_derive_public_key(): number;
1082
+ ubrn_uniffi_breez_sdk_spark_checksum_method_externalsigningsigner_sign_ecdsa(): number;
1083
+ ubrn_uniffi_breez_sdk_spark_checksum_method_externalsigningsigner_sign_ecdsa_recoverable(): number;
1084
+ ubrn_uniffi_breez_sdk_spark_checksum_method_externalsigningsigner_sign_hash_schnorr(): number;
1037
1085
  ubrn_uniffi_breez_sdk_spark_checksum_method_externalsparksigner_get_identity_public_key(): number;
1038
1086
  ubrn_uniffi_breez_sdk_spark_checksum_method_externalsparksigner_get_public_key_for_leaf(): number;
1039
1087
  ubrn_uniffi_breez_sdk_spark_checksum_method_externalsparksigner_get_static_deposit_public_key(): number;
@@ -1121,6 +1169,7 @@ interface NativeModuleInterface {
1121
1169
  ubrn_uniffi_breez_sdk_spark_checksum_constructor_passkeyclient_new(): number;
1122
1170
  ubrn_uniffi_breez_sdk_spark_checksum_constructor_sdkbuilder_new(): number;
1123
1171
  ubrn_uniffi_breez_sdk_spark_checksum_constructor_sdkbuilder_new_with_signer(): number;
1172
+ ubrn_uniffi_breez_sdk_spark_checksum_constructor_sdkbuilder_new_with_signing_only_signer(): number;
1124
1173
  ubrn_uniffi_breez_sdk_spark_checksum_method_eventlistener_on_event(): number;
1125
1174
  ubrn_uniffi_breez_sdk_spark_checksum_method_logger_log(): number;
1126
1175
  ubrn_ffi_breez_sdk_spark_uniffi_contract_version(): number;
@@ -1136,6 +1185,10 @@ interface NativeModuleInterface {
1136
1185
  pointer: bigint,
1137
1186
  uniffi_out_err: UniffiRustCallStatus
1138
1187
  ): UniffiRustArcPtr;
1188
+ ubrn_uniffi_internal_fn_method_externalsigningsigner_ffi__bless_pointer(
1189
+ pointer: bigint,
1190
+ uniffi_out_err: UniffiRustCallStatus
1191
+ ): UniffiRustArcPtr;
1139
1192
  ubrn_uniffi_internal_fn_method_externalsparksigner_ffi__bless_pointer(
1140
1193
  pointer: bigint,
1141
1194
  uniffi_out_err: UniffiRustCallStatus
@@ -1404,6 +1457,33 @@ type UniffiCallbackInterfaceExternalBreezSignerMethod6 = (
1404
1457
  uniffiFutureCallback: UniffiForeignFutureCompleteRustBuffer,
1405
1458
  uniffiCallbackData: bigint
1406
1459
  ) => UniffiForeignFuture;
1460
+ type UniffiCallbackInterfaceExternalSigningSignerMethod0 = (
1461
+ uniffiHandle: bigint,
1462
+ path: Uint8Array,
1463
+ uniffiFutureCallback: UniffiForeignFutureCompleteRustBuffer,
1464
+ uniffiCallbackData: bigint
1465
+ ) => UniffiForeignFuture;
1466
+ type UniffiCallbackInterfaceExternalSigningSignerMethod1 = (
1467
+ uniffiHandle: bigint,
1468
+ message: Uint8Array,
1469
+ path: Uint8Array,
1470
+ uniffiFutureCallback: UniffiForeignFutureCompleteRustBuffer,
1471
+ uniffiCallbackData: bigint
1472
+ ) => UniffiForeignFuture;
1473
+ type UniffiCallbackInterfaceExternalSigningSignerMethod2 = (
1474
+ uniffiHandle: bigint,
1475
+ message: Uint8Array,
1476
+ path: Uint8Array,
1477
+ uniffiFutureCallback: UniffiForeignFutureCompleteRustBuffer,
1478
+ uniffiCallbackData: bigint
1479
+ ) => UniffiForeignFuture;
1480
+ type UniffiCallbackInterfaceExternalSigningSignerMethod3 = (
1481
+ uniffiHandle: bigint,
1482
+ hash: Uint8Array,
1483
+ path: Uint8Array,
1484
+ uniffiFutureCallback: UniffiForeignFutureCompleteRustBuffer,
1485
+ uniffiCallbackData: bigint
1486
+ ) => UniffiForeignFuture;
1407
1487
  type UniffiCallbackInterfaceExternalSparkSignerMethod0 = (
1408
1488
  uniffiHandle: bigint,
1409
1489
  uniffiFutureCallback: UniffiForeignFutureCompleteRustBuffer,
@@ -1793,6 +1873,13 @@ export type UniffiVTableCallbackInterfaceExternalBreezSigner = {
1793
1873
  hmacSha256: UniffiCallbackInterfaceExternalBreezSignerMethod6;
1794
1874
  uniffiFree: UniffiCallbackInterfaceFree;
1795
1875
  };
1876
+ export type UniffiVTableCallbackInterfaceExternalSigningSigner = {
1877
+ derivePublicKey: UniffiCallbackInterfaceExternalSigningSignerMethod0;
1878
+ signEcdsa: UniffiCallbackInterfaceExternalSigningSignerMethod1;
1879
+ signEcdsaRecoverable: UniffiCallbackInterfaceExternalSigningSignerMethod2;
1880
+ signHashSchnorr: UniffiCallbackInterfaceExternalSigningSignerMethod3;
1881
+ uniffiFree: UniffiCallbackInterfaceFree;
1882
+ };
1796
1883
  export type UniffiVTableCallbackInterfaceExternalSparkSigner = {
1797
1884
  getIdentityPublicKey: UniffiCallbackInterfaceExternalSparkSignerMethod0;
1798
1885
  getPublicKeyForLeaf: UniffiCallbackInterfaceExternalSparkSignerMethod1;