@breeztech/breez-sdk-spark-react-native 0.7.6 → 0.7.8

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.
@@ -192,12 +192,12 @@ typedef void (*UniffiCallbackInterfaceExternalSignerMethod15)(
192
192
  UniffiForeignFutureCompleteRustBuffer uniffi_future_callback,
193
193
  uint64_t uniffi_callback_data, UniffiForeignFuture *uniffi_out_return);
194
194
  typedef void (*UniffiCallbackInterfaceExternalSignerMethod16)(
195
- uint64_t uniffi_handle, RustBuffer private_key,
195
+ uint64_t uniffi_handle, RustBuffer encrypted_secret,
196
196
  RustBuffer receiver_public_key,
197
197
  UniffiForeignFutureCompleteRustBuffer uniffi_future_callback,
198
198
  uint64_t uniffi_callback_data, UniffiForeignFuture *uniffi_out_return);
199
199
  typedef void (*UniffiCallbackInterfaceExternalSignerMethod17)(
200
- uint64_t uniffi_handle, RustBuffer private_key,
200
+ uint64_t uniffi_handle, RustBuffer secret,
201
201
  UniffiForeignFutureCompleteRustBuffer uniffi_future_callback,
202
202
  uint64_t uniffi_callback_data, UniffiForeignFuture *uniffi_out_return);
203
203
  typedef void (*UniffiCallbackInterfaceExternalSignerMethod18)(
@@ -354,16 +354,13 @@ typedef struct UniffiVTableCallbackInterfaceExternalSigner {
354
354
  generate_random_signing_commitment;
355
355
  UniffiCallbackInterfaceExternalSignerMethod9 get_public_key_for_node;
356
356
  UniffiCallbackInterfaceExternalSignerMethod10 generate_random_key;
357
- UniffiCallbackInterfaceExternalSignerMethod11
358
- get_static_deposit_private_key_source;
359
- UniffiCallbackInterfaceExternalSignerMethod12 static_deposit_secret_key;
357
+ UniffiCallbackInterfaceExternalSignerMethod11 static_deposit_secret_encrypted;
358
+ UniffiCallbackInterfaceExternalSignerMethod12 static_deposit_secret;
360
359
  UniffiCallbackInterfaceExternalSignerMethod13 static_deposit_signing_key;
361
- UniffiCallbackInterfaceExternalSignerMethod14 subtract_secret_keys;
360
+ UniffiCallbackInterfaceExternalSignerMethod14 subtract_secrets;
362
361
  UniffiCallbackInterfaceExternalSignerMethod15 split_secret_with_proofs;
363
- UniffiCallbackInterfaceExternalSignerMethod16
364
- encrypt_private_key_for_receiver;
365
- UniffiCallbackInterfaceExternalSignerMethod17
366
- get_public_key_from_private_key_source;
362
+ UniffiCallbackInterfaceExternalSignerMethod16 encrypt_secret_for_receiver;
363
+ UniffiCallbackInterfaceExternalSignerMethod17 public_key_from_secret;
367
364
  UniffiCallbackInterfaceExternalSignerMethod18 sign_frost;
368
365
  UniffiCallbackInterfaceExternalSignerMethod19 aggregate_frost;
369
366
  UniffiCallbackInterfaceFree uniffi_free;
@@ -571,26 +568,26 @@ uniffi_breez_sdk_spark_fn_method_externalsigner_get_public_key_for_node(
571
568
  /*handle*/ uint64_t
572
569
  uniffi_breez_sdk_spark_fn_method_externalsigner_generate_random_key(void *ptr);
573
570
  /*handle*/ uint64_t
574
- uniffi_breez_sdk_spark_fn_method_externalsigner_get_static_deposit_private_key_source(
571
+ uniffi_breez_sdk_spark_fn_method_externalsigner_static_deposit_secret_encrypted(
575
572
  void *ptr, uint32_t index);
576
573
  /*handle*/ uint64_t
577
- uniffi_breez_sdk_spark_fn_method_externalsigner_static_deposit_secret_key(
574
+ uniffi_breez_sdk_spark_fn_method_externalsigner_static_deposit_secret(
578
575
  void *ptr, uint32_t index);
579
576
  /*handle*/ uint64_t
580
577
  uniffi_breez_sdk_spark_fn_method_externalsigner_static_deposit_signing_key(
581
578
  void *ptr, uint32_t index);
582
579
  /*handle*/ uint64_t
583
- uniffi_breez_sdk_spark_fn_method_externalsigner_subtract_secret_keys(
580
+ uniffi_breez_sdk_spark_fn_method_externalsigner_subtract_secrets(
584
581
  void *ptr, RustBuffer signing_key, RustBuffer new_signing_key);
585
582
  /*handle*/ uint64_t
586
583
  uniffi_breez_sdk_spark_fn_method_externalsigner_split_secret_with_proofs(
587
584
  void *ptr, RustBuffer secret, uint32_t threshold, uint32_t num_shares);
588
585
  /*handle*/ uint64_t
589
- uniffi_breez_sdk_spark_fn_method_externalsigner_encrypt_private_key_for_receiver(
590
- void *ptr, RustBuffer private_key, RustBuffer receiver_public_key);
586
+ uniffi_breez_sdk_spark_fn_method_externalsigner_encrypt_secret_for_receiver(
587
+ void *ptr, RustBuffer encrypted_secret, RustBuffer receiver_public_key);
591
588
  /*handle*/ uint64_t
592
- uniffi_breez_sdk_spark_fn_method_externalsigner_get_public_key_from_private_key_source(
593
- void *ptr, RustBuffer private_key);
589
+ uniffi_breez_sdk_spark_fn_method_externalsigner_public_key_from_secret(
590
+ void *ptr, RustBuffer secret);
594
591
  /*handle*/ uint64_t
595
592
  uniffi_breez_sdk_spark_fn_method_externalsigner_sign_frost(void *ptr,
596
593
  RustBuffer request);
@@ -991,19 +988,19 @@ uniffi_breez_sdk_spark_checksum_method_externalsigner_get_public_key_for_node();
991
988
  uint16_t
992
989
  uniffi_breez_sdk_spark_checksum_method_externalsigner_generate_random_key();
993
990
  uint16_t
994
- uniffi_breez_sdk_spark_checksum_method_externalsigner_get_static_deposit_private_key_source();
991
+ uniffi_breez_sdk_spark_checksum_method_externalsigner_static_deposit_secret_encrypted();
995
992
  uint16_t
996
- uniffi_breez_sdk_spark_checksum_method_externalsigner_static_deposit_secret_key();
993
+ uniffi_breez_sdk_spark_checksum_method_externalsigner_static_deposit_secret();
997
994
  uint16_t
998
995
  uniffi_breez_sdk_spark_checksum_method_externalsigner_static_deposit_signing_key();
999
996
  uint16_t
1000
- uniffi_breez_sdk_spark_checksum_method_externalsigner_subtract_secret_keys();
997
+ uniffi_breez_sdk_spark_checksum_method_externalsigner_subtract_secrets();
1001
998
  uint16_t
1002
999
  uniffi_breez_sdk_spark_checksum_method_externalsigner_split_secret_with_proofs();
1003
1000
  uint16_t
1004
- uniffi_breez_sdk_spark_checksum_method_externalsigner_encrypt_private_key_for_receiver();
1001
+ uniffi_breez_sdk_spark_checksum_method_externalsigner_encrypt_secret_for_receiver();
1005
1002
  uint16_t
1006
- uniffi_breez_sdk_spark_checksum_method_externalsigner_get_public_key_from_private_key_source();
1003
+ uniffi_breez_sdk_spark_checksum_method_externalsigner_public_key_from_secret();
1007
1004
  uint16_t uniffi_breez_sdk_spark_checksum_method_externalsigner_sign_frost();
1008
1005
  uint16_t
1009
1006
  uniffi_breez_sdk_spark_checksum_method_externalsigner_aggregate_frost();
@@ -6810,7 +6807,7 @@ static std::function<void(uint64_t, RustBuffer, RustBuffer,
6810
6807
  static void body(jsi::Runtime &rt,
6811
6808
  std::shared_ptr<uniffi_runtime::UniffiCallInvoker> callInvoker,
6812
6809
  std::shared_ptr<jsi::Value> callbackValue,
6813
- uint64_t rs_uniffiHandle, RustBuffer rs_privateKey,
6810
+ uint64_t rs_uniffiHandle, RustBuffer rs_encryptedSecret,
6814
6811
  RustBuffer rs_receiverPublicKey,
6815
6812
  UniffiForeignFutureCompleteRustBuffer rs_uniffiFutureCallback,
6816
6813
  uint64_t rs_uniffiCallbackData,
@@ -6820,8 +6817,8 @@ static void body(jsi::Runtime &rt,
6820
6817
  // We'll use the Bridging class to do this…
6821
6818
  auto js_uniffiHandle =
6822
6819
  uniffi_jsi::Bridging<uint64_t>::toJs(rt, callInvoker, rs_uniffiHandle);
6823
- auto js_privateKey = uniffi::breez_sdk_spark::Bridging<RustBuffer>::toJs(
6824
- rt, callInvoker, rs_privateKey);
6820
+ auto js_encryptedSecret = uniffi::breez_sdk_spark::Bridging<RustBuffer>::toJs(
6821
+ rt, callInvoker, rs_encryptedSecret);
6825
6822
  auto js_receiverPublicKey =
6826
6823
  uniffi::breez_sdk_spark::Bridging<RustBuffer>::toJs(rt, callInvoker,
6827
6824
  rs_receiverPublicKey);
@@ -6838,7 +6835,7 @@ static void body(jsi::Runtime &rt,
6838
6835
  // Getting the callback function
6839
6836
  auto cb = callbackValue->asObject(rt).asFunction(rt);
6840
6837
  auto uniffiResult =
6841
- cb.call(rt, js_uniffiHandle, js_privateKey, js_receiverPublicKey,
6838
+ cb.call(rt, js_uniffiHandle, js_encryptedSecret, js_receiverPublicKey,
6842
6839
  js_uniffiFutureCallback, js_uniffiCallbackData);
6843
6840
 
6844
6841
  // Finally, we need to copy the return value back into the Rust pointer.
@@ -6854,7 +6851,7 @@ static void body(jsi::Runtime &rt,
6854
6851
  }
6855
6852
 
6856
6853
  static void
6857
- callback(uint64_t rs_uniffiHandle, RustBuffer rs_privateKey,
6854
+ callback(uint64_t rs_uniffiHandle, RustBuffer rs_encryptedSecret,
6858
6855
  RustBuffer rs_receiverPublicKey,
6859
6856
  UniffiForeignFutureCompleteRustBuffer rs_uniffiFutureCallback,
6860
6857
  uint64_t rs_uniffiCallbackData,
@@ -6874,7 +6871,7 @@ callback(uint64_t rs_uniffiHandle, RustBuffer rs_privateKey,
6874
6871
 
6875
6872
  // The runtime, the actual callback jsi::funtion, and the callInvoker
6876
6873
  // are all in the lambda.
6877
- rsLambda(rs_uniffiHandle, rs_privateKey, rs_receiverPublicKey,
6874
+ rsLambda(rs_uniffiHandle, rs_encryptedSecret, rs_receiverPublicKey,
6878
6875
  rs_uniffiFutureCallback, rs_uniffiCallbackData, rs_uniffiOutReturn);
6879
6876
  }
6880
6877
 
@@ -6898,7 +6895,7 @@ makeCallbackFunction( // uniffi::breez_sdk_spark::cb::callbackinterfaceexternals
6898
6895
  auto callbackFunction = value.asObject(rt).asFunction(rt);
6899
6896
  auto callbackValue = std::make_shared<jsi::Value>(rt, callbackFunction);
6900
6897
  rsLambda = [&rt, callInvoker, callbackValue](
6901
- uint64_t rs_uniffiHandle, RustBuffer rs_privateKey,
6898
+ uint64_t rs_uniffiHandle, RustBuffer rs_encryptedSecret,
6902
6899
  RustBuffer rs_receiverPublicKey,
6903
6900
  UniffiForeignFutureCompleteRustBuffer rs_uniffiFutureCallback,
6904
6901
  uint64_t rs_uniffiCallbackData,
@@ -6906,12 +6903,13 @@ makeCallbackFunction( // uniffi::breez_sdk_spark::cb::callbackinterfaceexternals
6906
6903
  // We immediately make a lambda which will do the work of transforming the
6907
6904
  // arguments into JSI values and calling the callback.
6908
6905
  uniffi_runtime::UniffiCallFunc jsLambda =
6909
- [callInvoker, callbackValue, rs_uniffiHandle, rs_privateKey,
6906
+ [callInvoker, callbackValue, rs_uniffiHandle, rs_encryptedSecret,
6910
6907
  rs_receiverPublicKey, rs_uniffiFutureCallback, rs_uniffiCallbackData,
6911
6908
  rs_uniffiOutReturn](jsi::Runtime &rt) mutable {
6912
- body(rt, callInvoker, callbackValue, rs_uniffiHandle, rs_privateKey,
6913
- rs_receiverPublicKey, rs_uniffiFutureCallback,
6914
- rs_uniffiCallbackData, rs_uniffiOutReturn);
6909
+ body(rt, callInvoker, callbackValue, rs_uniffiHandle,
6910
+ rs_encryptedSecret, rs_receiverPublicKey,
6911
+ rs_uniffiFutureCallback, rs_uniffiCallbackData,
6912
+ rs_uniffiOutReturn);
6915
6913
  };
6916
6914
  // We'll then call that lambda from the callInvoker which will
6917
6915
  // look after calling it on the correct thread.
@@ -6961,7 +6959,7 @@ static std::function<void(uint64_t, RustBuffer,
6961
6959
  static void body(jsi::Runtime &rt,
6962
6960
  std::shared_ptr<uniffi_runtime::UniffiCallInvoker> callInvoker,
6963
6961
  std::shared_ptr<jsi::Value> callbackValue,
6964
- uint64_t rs_uniffiHandle, RustBuffer rs_privateKey,
6962
+ uint64_t rs_uniffiHandle, RustBuffer rs_secret,
6965
6963
  UniffiForeignFutureCompleteRustBuffer rs_uniffiFutureCallback,
6966
6964
  uint64_t rs_uniffiCallbackData,
6967
6965
  UniffiForeignFuture *rs_uniffiOutReturn) {
@@ -6970,8 +6968,8 @@ static void body(jsi::Runtime &rt,
6970
6968
  // We'll use the Bridging class to do this…
6971
6969
  auto js_uniffiHandle =
6972
6970
  uniffi_jsi::Bridging<uint64_t>::toJs(rt, callInvoker, rs_uniffiHandle);
6973
- auto js_privateKey = uniffi::breez_sdk_spark::Bridging<RustBuffer>::toJs(
6974
- rt, callInvoker, rs_privateKey);
6971
+ auto js_secret = uniffi::breez_sdk_spark::Bridging<RustBuffer>::toJs(
6972
+ rt, callInvoker, rs_secret);
6975
6973
  auto js_uniffiFutureCallback = uniffi::breez_sdk_spark::Bridging<
6976
6974
  UniffiForeignFutureCompleteRustBuffer>::toJs(rt, callInvoker,
6977
6975
  rs_uniffiFutureCallback);
@@ -6984,7 +6982,7 @@ static void body(jsi::Runtime &rt,
6984
6982
  try {
6985
6983
  // Getting the callback function
6986
6984
  auto cb = callbackValue->asObject(rt).asFunction(rt);
6987
- auto uniffiResult = cb.call(rt, js_uniffiHandle, js_privateKey,
6985
+ auto uniffiResult = cb.call(rt, js_uniffiHandle, js_secret,
6988
6986
  js_uniffiFutureCallback, js_uniffiCallbackData);
6989
6987
 
6990
6988
  // Finally, we need to copy the return value back into the Rust pointer.
@@ -7000,7 +6998,7 @@ static void body(jsi::Runtime &rt,
7000
6998
  }
7001
6999
 
7002
7000
  static void
7003
- callback(uint64_t rs_uniffiHandle, RustBuffer rs_privateKey,
7001
+ callback(uint64_t rs_uniffiHandle, RustBuffer rs_secret,
7004
7002
  UniffiForeignFutureCompleteRustBuffer rs_uniffiFutureCallback,
7005
7003
  uint64_t rs_uniffiCallbackData,
7006
7004
  UniffiForeignFuture *rs_uniffiOutReturn) {
@@ -7019,7 +7017,7 @@ callback(uint64_t rs_uniffiHandle, RustBuffer rs_privateKey,
7019
7017
 
7020
7018
  // The runtime, the actual callback jsi::funtion, and the callInvoker
7021
7019
  // are all in the lambda.
7022
- rsLambda(rs_uniffiHandle, rs_privateKey, rs_uniffiFutureCallback,
7020
+ rsLambda(rs_uniffiHandle, rs_secret, rs_uniffiFutureCallback,
7023
7021
  rs_uniffiCallbackData, rs_uniffiOutReturn);
7024
7022
  }
7025
7023
 
@@ -7043,17 +7041,17 @@ makeCallbackFunction( // uniffi::breez_sdk_spark::cb::callbackinterfaceexternals
7043
7041
  auto callbackFunction = value.asObject(rt).asFunction(rt);
7044
7042
  auto callbackValue = std::make_shared<jsi::Value>(rt, callbackFunction);
7045
7043
  rsLambda = [&rt, callInvoker, callbackValue](
7046
- uint64_t rs_uniffiHandle, RustBuffer rs_privateKey,
7044
+ uint64_t rs_uniffiHandle, RustBuffer rs_secret,
7047
7045
  UniffiForeignFutureCompleteRustBuffer rs_uniffiFutureCallback,
7048
7046
  uint64_t rs_uniffiCallbackData,
7049
7047
  UniffiForeignFuture *rs_uniffiOutReturn) {
7050
7048
  // We immediately make a lambda which will do the work of transforming the
7051
7049
  // arguments into JSI values and calling the callback.
7052
7050
  uniffi_runtime::UniffiCallFunc jsLambda =
7053
- [callInvoker, callbackValue, rs_uniffiHandle, rs_privateKey,
7051
+ [callInvoker, callbackValue, rs_uniffiHandle, rs_secret,
7054
7052
  rs_uniffiFutureCallback, rs_uniffiCallbackData,
7055
7053
  rs_uniffiOutReturn](jsi::Runtime &rt) mutable {
7056
- body(rt, callInvoker, callbackValue, rs_uniffiHandle, rs_privateKey,
7054
+ body(rt, callInvoker, callbackValue, rs_uniffiHandle, rs_secret,
7057
7055
  rs_uniffiFutureCallback, rs_uniffiCallbackData,
7058
7056
  rs_uniffiOutReturn);
7059
7057
  };
@@ -11653,32 +11651,30 @@ template <> struct Bridging<UniffiVTableCallbackInterfaceExternalSigner> {
11653
11651
  rsObject.generate_random_key = uniffi::breez_sdk_spark::cb::
11654
11652
  callbackinterfaceexternalsignermethod10::makeCallbackFunction(
11655
11653
  rt, callInvoker, jsObject.getProperty(rt, "generateRandomKey"));
11656
- rsObject.get_static_deposit_private_key_source = uniffi::breez_sdk_spark::
11657
- cb::callbackinterfaceexternalsignermethod11::makeCallbackFunction(
11654
+ rsObject.static_deposit_secret_encrypted = uniffi::breez_sdk_spark::cb::
11655
+ callbackinterfaceexternalsignermethod11::makeCallbackFunction(
11658
11656
  rt, callInvoker,
11659
- jsObject.getProperty(rt, "getStaticDepositPrivateKeySource"));
11660
- rsObject.static_deposit_secret_key = uniffi::breez_sdk_spark::cb::
11657
+ jsObject.getProperty(rt, "staticDepositSecretEncrypted"));
11658
+ rsObject.static_deposit_secret = uniffi::breez_sdk_spark::cb::
11661
11659
  callbackinterfaceexternalsignermethod12::makeCallbackFunction(
11662
- rt, callInvoker,
11663
- jsObject.getProperty(rt, "staticDepositSecretKey"));
11660
+ rt, callInvoker, jsObject.getProperty(rt, "staticDepositSecret"));
11664
11661
  rsObject.static_deposit_signing_key = uniffi::breez_sdk_spark::cb::
11665
11662
  callbackinterfaceexternalsignermethod13::makeCallbackFunction(
11666
11663
  rt, callInvoker,
11667
11664
  jsObject.getProperty(rt, "staticDepositSigningKey"));
11668
- rsObject.subtract_secret_keys = uniffi::breez_sdk_spark::cb::
11665
+ rsObject.subtract_secrets = uniffi::breez_sdk_spark::cb::
11669
11666
  callbackinterfaceexternalsignermethod14::makeCallbackFunction(
11670
- rt, callInvoker, jsObject.getProperty(rt, "subtractSecretKeys"));
11667
+ rt, callInvoker, jsObject.getProperty(rt, "subtractSecrets"));
11671
11668
  rsObject.split_secret_with_proofs = uniffi::breez_sdk_spark::cb::
11672
11669
  callbackinterfaceexternalsignermethod15::makeCallbackFunction(
11673
11670
  rt, callInvoker, jsObject.getProperty(rt, "splitSecretWithProofs"));
11674
- rsObject.encrypt_private_key_for_receiver = uniffi::breez_sdk_spark::cb::
11671
+ rsObject.encrypt_secret_for_receiver = uniffi::breez_sdk_spark::cb::
11675
11672
  callbackinterfaceexternalsignermethod16::makeCallbackFunction(
11676
11673
  rt, callInvoker,
11677
- jsObject.getProperty(rt, "encryptPrivateKeyForReceiver"));
11678
- rsObject.get_public_key_from_private_key_source = uniffi::breez_sdk_spark::
11679
- cb::callbackinterfaceexternalsignermethod17::makeCallbackFunction(
11680
- rt, callInvoker,
11681
- jsObject.getProperty(rt, "getPublicKeyFromPrivateKeySource"));
11674
+ jsObject.getProperty(rt, "encryptSecretForReceiver"));
11675
+ rsObject.public_key_from_secret = uniffi::breez_sdk_spark::cb::
11676
+ callbackinterfaceexternalsignermethod17::makeCallbackFunction(
11677
+ rt, callInvoker, jsObject.getProperty(rt, "publicKeyFromSecret"));
11682
11678
  rsObject.sign_frost = uniffi::breez_sdk_spark::cb::
11683
11679
  callbackinterfaceexternalsignermethod18::makeCallbackFunction(
11684
11680
  rt, callInvoker, jsObject.getProperty(rt, "signFrost"));
@@ -12703,29 +12699,29 @@ NativeBreezSdkSpark::NativeBreezSdkSpark(
12703
12699
  ->cpp_uniffi_breez_sdk_spark_fn_method_externalsigner_generate_random_key(
12704
12700
  rt, thisVal, args, count);
12705
12701
  });
12706
- props["ubrn_uniffi_breez_sdk_spark_fn_method_externalsigner_get_static_"
12707
- "deposit_private_key_source"] = jsi::Function::createFromHostFunction(
12702
+ props["ubrn_uniffi_breez_sdk_spark_fn_method_externalsigner_static_deposit_"
12703
+ "secret_encrypted"] = jsi::Function::createFromHostFunction(
12708
12704
  rt,
12709
12705
  jsi::PropNameID::forAscii(
12710
- rt, "ubrn_uniffi_breez_sdk_spark_fn_method_externalsigner_get_static_"
12711
- "deposit_private_key_source"),
12706
+ rt, "ubrn_uniffi_breez_sdk_spark_fn_method_externalsigner_static_"
12707
+ "deposit_secret_encrypted"),
12712
12708
  2,
12713
12709
  [this](jsi::Runtime &rt, const jsi::Value &thisVal,
12714
12710
  const jsi::Value *args, size_t count) -> jsi::Value {
12715
12711
  return this
12716
- ->cpp_uniffi_breez_sdk_spark_fn_method_externalsigner_get_static_deposit_private_key_source(
12712
+ ->cpp_uniffi_breez_sdk_spark_fn_method_externalsigner_static_deposit_secret_encrypted(
12717
12713
  rt, thisVal, args, count);
12718
12714
  });
12719
12715
  props["ubrn_uniffi_breez_sdk_spark_fn_method_externalsigner_static_deposit_"
12720
- "secret_key"] = jsi::Function::createFromHostFunction(
12716
+ "secret"] = jsi::Function::createFromHostFunction(
12721
12717
  rt,
12722
12718
  jsi::PropNameID::forAscii(rt, "ubrn_uniffi_breez_sdk_spark_fn_method_"
12723
- "externalsigner_static_deposit_secret_key"),
12719
+ "externalsigner_static_deposit_secret"),
12724
12720
  2,
12725
12721
  [this](jsi::Runtime &rt, const jsi::Value &thisVal,
12726
12722
  const jsi::Value *args, size_t count) -> jsi::Value {
12727
12723
  return this
12728
- ->cpp_uniffi_breez_sdk_spark_fn_method_externalsigner_static_deposit_secret_key(
12724
+ ->cpp_uniffi_breez_sdk_spark_fn_method_externalsigner_static_deposit_secret(
12729
12725
  rt, thisVal, args, count);
12730
12726
  });
12731
12727
  props["ubrn_uniffi_breez_sdk_spark_fn_method_externalsigner_static_deposit_"
@@ -12741,16 +12737,16 @@ NativeBreezSdkSpark::NativeBreezSdkSpark(
12741
12737
  ->cpp_uniffi_breez_sdk_spark_fn_method_externalsigner_static_deposit_signing_key(
12742
12738
  rt, thisVal, args, count);
12743
12739
  });
12744
- props["ubrn_uniffi_breez_sdk_spark_fn_method_externalsigner_subtract_secret_"
12745
- "keys"] = jsi::Function::createFromHostFunction(
12740
+ props["ubrn_uniffi_breez_sdk_spark_fn_method_externalsigner_subtract_"
12741
+ "secrets"] = jsi::Function::createFromHostFunction(
12746
12742
  rt,
12747
12743
  jsi::PropNameID::forAscii(rt, "ubrn_uniffi_breez_sdk_spark_fn_method_"
12748
- "externalsigner_subtract_secret_keys"),
12744
+ "externalsigner_subtract_secrets"),
12749
12745
  3,
12750
12746
  [this](jsi::Runtime &rt, const jsi::Value &thisVal,
12751
12747
  const jsi::Value *args, size_t count) -> jsi::Value {
12752
12748
  return this
12753
- ->cpp_uniffi_breez_sdk_spark_fn_method_externalsigner_subtract_secret_keys(
12749
+ ->cpp_uniffi_breez_sdk_spark_fn_method_externalsigner_subtract_secrets(
12754
12750
  rt, thisVal, args, count);
12755
12751
  });
12756
12752
  props["ubrn_uniffi_breez_sdk_spark_fn_method_externalsigner_split_secret_"
@@ -12765,30 +12761,29 @@ NativeBreezSdkSpark::NativeBreezSdkSpark(
12765
12761
  ->cpp_uniffi_breez_sdk_spark_fn_method_externalsigner_split_secret_with_proofs(
12766
12762
  rt, thisVal, args, count);
12767
12763
  });
12768
- props["ubrn_uniffi_breez_sdk_spark_fn_method_externalsigner_encrypt_private_"
12769
- "key_for_receiver"] = jsi::Function::createFromHostFunction(
12764
+ props["ubrn_uniffi_breez_sdk_spark_fn_method_externalsigner_encrypt_secret_"
12765
+ "for_receiver"] = jsi::Function::createFromHostFunction(
12770
12766
  rt,
12771
- jsi::PropNameID::forAscii(
12772
- rt, "ubrn_uniffi_breez_sdk_spark_fn_method_externalsigner_encrypt_"
12773
- "private_key_for_receiver"),
12767
+ jsi::PropNameID::forAscii(rt,
12768
+ "ubrn_uniffi_breez_sdk_spark_fn_method_"
12769
+ "externalsigner_encrypt_secret_for_receiver"),
12774
12770
  3,
12775
12771
  [this](jsi::Runtime &rt, const jsi::Value &thisVal,
12776
12772
  const jsi::Value *args, size_t count) -> jsi::Value {
12777
12773
  return this
12778
- ->cpp_uniffi_breez_sdk_spark_fn_method_externalsigner_encrypt_private_key_for_receiver(
12774
+ ->cpp_uniffi_breez_sdk_spark_fn_method_externalsigner_encrypt_secret_for_receiver(
12779
12775
  rt, thisVal, args, count);
12780
12776
  });
12781
- props["ubrn_uniffi_breez_sdk_spark_fn_method_externalsigner_get_public_key_"
12782
- "from_private_key_source"] = jsi::Function::createFromHostFunction(
12777
+ props["ubrn_uniffi_breez_sdk_spark_fn_method_externalsigner_public_key_from_"
12778
+ "secret"] = jsi::Function::createFromHostFunction(
12783
12779
  rt,
12784
- jsi::PropNameID::forAscii(
12785
- rt, "ubrn_uniffi_breez_sdk_spark_fn_method_externalsigner_get_public_"
12786
- "key_from_private_key_source"),
12780
+ jsi::PropNameID::forAscii(rt, "ubrn_uniffi_breez_sdk_spark_fn_method_"
12781
+ "externalsigner_public_key_from_secret"),
12787
12782
  2,
12788
12783
  [this](jsi::Runtime &rt, const jsi::Value &thisVal,
12789
12784
  const jsi::Value *args, size_t count) -> jsi::Value {
12790
12785
  return this
12791
- ->cpp_uniffi_breez_sdk_spark_fn_method_externalsigner_get_public_key_from_private_key_source(
12786
+ ->cpp_uniffi_breez_sdk_spark_fn_method_externalsigner_public_key_from_secret(
12792
12787
  rt, thisVal, args, count);
12793
12788
  });
12794
12789
  props["ubrn_uniffi_breez_sdk_spark_fn_method_externalsigner_sign_frost"] =
@@ -14872,30 +14867,30 @@ NativeBreezSdkSpark::NativeBreezSdkSpark(
14872
14867
  ->cpp_uniffi_breez_sdk_spark_checksum_method_externalsigner_generate_random_key(
14873
14868
  rt, thisVal, args, count);
14874
14869
  });
14875
- props["ubrn_uniffi_breez_sdk_spark_checksum_method_externalsigner_get_static_"
14876
- "deposit_private_key_source"] = jsi::Function::createFromHostFunction(
14870
+ props["ubrn_uniffi_breez_sdk_spark_checksum_method_externalsigner_static_"
14871
+ "deposit_secret_encrypted"] = jsi::Function::createFromHostFunction(
14877
14872
  rt,
14878
14873
  jsi::PropNameID::forAscii(
14879
- rt, "ubrn_uniffi_breez_sdk_spark_checksum_method_externalsigner_get_"
14880
- "static_deposit_private_key_source"),
14874
+ rt, "ubrn_uniffi_breez_sdk_spark_checksum_method_externalsigner_"
14875
+ "static_deposit_secret_encrypted"),
14881
14876
  0,
14882
14877
  [this](jsi::Runtime &rt, const jsi::Value &thisVal,
14883
14878
  const jsi::Value *args, size_t count) -> jsi::Value {
14884
14879
  return this
14885
- ->cpp_uniffi_breez_sdk_spark_checksum_method_externalsigner_get_static_deposit_private_key_source(
14880
+ ->cpp_uniffi_breez_sdk_spark_checksum_method_externalsigner_static_deposit_secret_encrypted(
14886
14881
  rt, thisVal, args, count);
14887
14882
  });
14888
14883
  props["ubrn_uniffi_breez_sdk_spark_checksum_method_externalsigner_static_"
14889
- "deposit_secret_key"] = jsi::Function::createFromHostFunction(
14884
+ "deposit_secret"] = jsi::Function::createFromHostFunction(
14890
14885
  rt,
14891
14886
  jsi::PropNameID::forAscii(rt,
14892
14887
  "ubrn_uniffi_breez_sdk_spark_checksum_method_"
14893
- "externalsigner_static_deposit_secret_key"),
14888
+ "externalsigner_static_deposit_secret"),
14894
14889
  0,
14895
14890
  [this](jsi::Runtime &rt, const jsi::Value &thisVal,
14896
14891
  const jsi::Value *args, size_t count) -> jsi::Value {
14897
14892
  return this
14898
- ->cpp_uniffi_breez_sdk_spark_checksum_method_externalsigner_static_deposit_secret_key(
14893
+ ->cpp_uniffi_breez_sdk_spark_checksum_method_externalsigner_static_deposit_secret(
14899
14894
  rt, thisVal, args, count);
14900
14895
  });
14901
14896
  props["ubrn_uniffi_breez_sdk_spark_checksum_method_externalsigner_static_"
@@ -14912,16 +14907,15 @@ NativeBreezSdkSpark::NativeBreezSdkSpark(
14912
14907
  rt, thisVal, args, count);
14913
14908
  });
14914
14909
  props["ubrn_uniffi_breez_sdk_spark_checksum_method_externalsigner_subtract_"
14915
- "secret_keys"] = jsi::Function::createFromHostFunction(
14910
+ "secrets"] = jsi::Function::createFromHostFunction(
14916
14911
  rt,
14917
- jsi::PropNameID::forAscii(rt,
14918
- "ubrn_uniffi_breez_sdk_spark_checksum_method_"
14919
- "externalsigner_subtract_secret_keys"),
14912
+ jsi::PropNameID::forAscii(rt, "ubrn_uniffi_breez_sdk_spark_checksum_"
14913
+ "method_externalsigner_subtract_secrets"),
14920
14914
  0,
14921
14915
  [this](jsi::Runtime &rt, const jsi::Value &thisVal,
14922
14916
  const jsi::Value *args, size_t count) -> jsi::Value {
14923
14917
  return this
14924
- ->cpp_uniffi_breez_sdk_spark_checksum_method_externalsigner_subtract_secret_keys(
14918
+ ->cpp_uniffi_breez_sdk_spark_checksum_method_externalsigner_subtract_secrets(
14925
14919
  rt, thisVal, args, count);
14926
14920
  });
14927
14921
  props["ubrn_uniffi_breez_sdk_spark_checksum_method_externalsigner_split_"
@@ -14938,29 +14932,29 @@ NativeBreezSdkSpark::NativeBreezSdkSpark(
14938
14932
  rt, thisVal, args, count);
14939
14933
  });
14940
14934
  props["ubrn_uniffi_breez_sdk_spark_checksum_method_externalsigner_encrypt_"
14941
- "private_key_for_receiver"] = jsi::Function::createFromHostFunction(
14935
+ "secret_for_receiver"] = jsi::Function::createFromHostFunction(
14942
14936
  rt,
14943
- jsi::PropNameID::forAscii(
14944
- rt, "ubrn_uniffi_breez_sdk_spark_checksum_method_externalsigner_"
14945
- "encrypt_private_key_for_receiver"),
14937
+ jsi::PropNameID::forAscii(rt,
14938
+ "ubrn_uniffi_breez_sdk_spark_checksum_method_"
14939
+ "externalsigner_encrypt_secret_for_receiver"),
14946
14940
  0,
14947
14941
  [this](jsi::Runtime &rt, const jsi::Value &thisVal,
14948
14942
  const jsi::Value *args, size_t count) -> jsi::Value {
14949
14943
  return this
14950
- ->cpp_uniffi_breez_sdk_spark_checksum_method_externalsigner_encrypt_private_key_for_receiver(
14944
+ ->cpp_uniffi_breez_sdk_spark_checksum_method_externalsigner_encrypt_secret_for_receiver(
14951
14945
  rt, thisVal, args, count);
14952
14946
  });
14953
- props["ubrn_uniffi_breez_sdk_spark_checksum_method_externalsigner_get_public_"
14954
- "key_from_private_key_source"] = jsi::Function::createFromHostFunction(
14947
+ props["ubrn_uniffi_breez_sdk_spark_checksum_method_externalsigner_public_key_"
14948
+ "from_secret"] = jsi::Function::createFromHostFunction(
14955
14949
  rt,
14956
- jsi::PropNameID::forAscii(
14957
- rt, "ubrn_uniffi_breez_sdk_spark_checksum_method_externalsigner_get_"
14958
- "public_key_from_private_key_source"),
14950
+ jsi::PropNameID::forAscii(rt,
14951
+ "ubrn_uniffi_breez_sdk_spark_checksum_method_"
14952
+ "externalsigner_public_key_from_secret"),
14959
14953
  0,
14960
14954
  [this](jsi::Runtime &rt, const jsi::Value &thisVal,
14961
14955
  const jsi::Value *args, size_t count) -> jsi::Value {
14962
14956
  return this
14963
- ->cpp_uniffi_breez_sdk_spark_checksum_method_externalsigner_get_public_key_from_private_key_source(
14957
+ ->cpp_uniffi_breez_sdk_spark_checksum_method_externalsigner_public_key_from_secret(
14964
14958
  rt, thisVal, args, count);
14965
14959
  });
14966
14960
  props["ubrn_uniffi_breez_sdk_spark_checksum_method_externalsigner_sign_"
@@ -16933,11 +16927,11 @@ jsi::Value NativeBreezSdkSpark::
16933
16927
  value);
16934
16928
  }
16935
16929
  jsi::Value NativeBreezSdkSpark::
16936
- cpp_uniffi_breez_sdk_spark_fn_method_externalsigner_get_static_deposit_private_key_source(
16930
+ cpp_uniffi_breez_sdk_spark_fn_method_externalsigner_static_deposit_secret_encrypted(
16937
16931
  jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
16938
16932
  size_t count) {
16939
16933
  auto value =
16940
- uniffi_breez_sdk_spark_fn_method_externalsigner_get_static_deposit_private_key_source(
16934
+ uniffi_breez_sdk_spark_fn_method_externalsigner_static_deposit_secret_encrypted(
16941
16935
  uniffi_jsi::Bridging<void *>::fromJs(rt, callInvoker, args[0]),
16942
16936
  uniffi_jsi::Bridging<uint32_t>::fromJs(rt, callInvoker, args[1]));
16943
16937
 
@@ -16945,11 +16939,11 @@ jsi::Value NativeBreezSdkSpark::
16945
16939
  value);
16946
16940
  }
16947
16941
  jsi::Value NativeBreezSdkSpark::
16948
- cpp_uniffi_breez_sdk_spark_fn_method_externalsigner_static_deposit_secret_key(
16942
+ cpp_uniffi_breez_sdk_spark_fn_method_externalsigner_static_deposit_secret(
16949
16943
  jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
16950
16944
  size_t count) {
16951
16945
  auto value =
16952
- uniffi_breez_sdk_spark_fn_method_externalsigner_static_deposit_secret_key(
16946
+ uniffi_breez_sdk_spark_fn_method_externalsigner_static_deposit_secret(
16953
16947
  uniffi_jsi::Bridging<void *>::fromJs(rt, callInvoker, args[0]),
16954
16948
  uniffi_jsi::Bridging<uint32_t>::fromJs(rt, callInvoker, args[1]));
16955
16949
 
@@ -16969,16 +16963,15 @@ jsi::Value NativeBreezSdkSpark::
16969
16963
  value);
16970
16964
  }
16971
16965
  jsi::Value NativeBreezSdkSpark::
16972
- cpp_uniffi_breez_sdk_spark_fn_method_externalsigner_subtract_secret_keys(
16966
+ cpp_uniffi_breez_sdk_spark_fn_method_externalsigner_subtract_secrets(
16973
16967
  jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
16974
16968
  size_t count) {
16975
- auto value =
16976
- uniffi_breez_sdk_spark_fn_method_externalsigner_subtract_secret_keys(
16977
- uniffi_jsi::Bridging<void *>::fromJs(rt, callInvoker, args[0]),
16978
- uniffi::breez_sdk_spark::Bridging<RustBuffer>::fromJs(rt, callInvoker,
16979
- args[1]),
16980
- uniffi::breez_sdk_spark::Bridging<RustBuffer>::fromJs(rt, callInvoker,
16981
- args[2]));
16969
+ auto value = uniffi_breez_sdk_spark_fn_method_externalsigner_subtract_secrets(
16970
+ uniffi_jsi::Bridging<void *>::fromJs(rt, callInvoker, args[0]),
16971
+ uniffi::breez_sdk_spark::Bridging<RustBuffer>::fromJs(rt, callInvoker,
16972
+ args[1]),
16973
+ uniffi::breez_sdk_spark::Bridging<RustBuffer>::fromJs(rt, callInvoker,
16974
+ args[2]));
16982
16975
 
16983
16976
  return uniffi_jsi::Bridging</*handle*/ uint64_t>::toJs(rt, callInvoker,
16984
16977
  value);
@@ -16999,11 +16992,11 @@ jsi::Value NativeBreezSdkSpark::
16999
16992
  value);
17000
16993
  }
17001
16994
  jsi::Value NativeBreezSdkSpark::
17002
- cpp_uniffi_breez_sdk_spark_fn_method_externalsigner_encrypt_private_key_for_receiver(
16995
+ cpp_uniffi_breez_sdk_spark_fn_method_externalsigner_encrypt_secret_for_receiver(
17003
16996
  jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
17004
16997
  size_t count) {
17005
16998
  auto value =
17006
- uniffi_breez_sdk_spark_fn_method_externalsigner_encrypt_private_key_for_receiver(
16999
+ uniffi_breez_sdk_spark_fn_method_externalsigner_encrypt_secret_for_receiver(
17007
17000
  uniffi_jsi::Bridging<void *>::fromJs(rt, callInvoker, args[0]),
17008
17001
  uniffi::breez_sdk_spark::Bridging<RustBuffer>::fromJs(rt, callInvoker,
17009
17002
  args[1]),
@@ -17014,11 +17007,11 @@ jsi::Value NativeBreezSdkSpark::
17014
17007
  value);
17015
17008
  }
17016
17009
  jsi::Value NativeBreezSdkSpark::
17017
- cpp_uniffi_breez_sdk_spark_fn_method_externalsigner_get_public_key_from_private_key_source(
17010
+ cpp_uniffi_breez_sdk_spark_fn_method_externalsigner_public_key_from_secret(
17018
17011
  jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
17019
17012
  size_t count) {
17020
17013
  auto value =
17021
- uniffi_breez_sdk_spark_fn_method_externalsigner_get_public_key_from_private_key_source(
17014
+ uniffi_breez_sdk_spark_fn_method_externalsigner_public_key_from_secret(
17022
17015
  uniffi_jsi::Bridging<void *>::fromJs(rt, callInvoker, args[0]),
17023
17016
  uniffi::breez_sdk_spark::Bridging<RustBuffer>::fromJs(rt, callInvoker,
17024
17017
  args[1]));
@@ -18990,20 +18983,20 @@ jsi::Value NativeBreezSdkSpark::
18990
18983
  return uniffi_jsi::Bridging<uint16_t>::toJs(rt, callInvoker, value);
18991
18984
  }
18992
18985
  jsi::Value NativeBreezSdkSpark::
18993
- cpp_uniffi_breez_sdk_spark_checksum_method_externalsigner_get_static_deposit_private_key_source(
18986
+ cpp_uniffi_breez_sdk_spark_checksum_method_externalsigner_static_deposit_secret_encrypted(
18994
18987
  jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
18995
18988
  size_t count) {
18996
18989
  auto value =
18997
- uniffi_breez_sdk_spark_checksum_method_externalsigner_get_static_deposit_private_key_source();
18990
+ uniffi_breez_sdk_spark_checksum_method_externalsigner_static_deposit_secret_encrypted();
18998
18991
 
18999
18992
  return uniffi_jsi::Bridging<uint16_t>::toJs(rt, callInvoker, value);
19000
18993
  }
19001
18994
  jsi::Value NativeBreezSdkSpark::
19002
- cpp_uniffi_breez_sdk_spark_checksum_method_externalsigner_static_deposit_secret_key(
18995
+ cpp_uniffi_breez_sdk_spark_checksum_method_externalsigner_static_deposit_secret(
19003
18996
  jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
19004
18997
  size_t count) {
19005
18998
  auto value =
19006
- uniffi_breez_sdk_spark_checksum_method_externalsigner_static_deposit_secret_key();
18999
+ uniffi_breez_sdk_spark_checksum_method_externalsigner_static_deposit_secret();
19007
19000
 
19008
19001
  return uniffi_jsi::Bridging<uint16_t>::toJs(rt, callInvoker, value);
19009
19002
  }
@@ -19017,11 +19010,11 @@ jsi::Value NativeBreezSdkSpark::
19017
19010
  return uniffi_jsi::Bridging<uint16_t>::toJs(rt, callInvoker, value);
19018
19011
  }
19019
19012
  jsi::Value NativeBreezSdkSpark::
19020
- cpp_uniffi_breez_sdk_spark_checksum_method_externalsigner_subtract_secret_keys(
19013
+ cpp_uniffi_breez_sdk_spark_checksum_method_externalsigner_subtract_secrets(
19021
19014
  jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
19022
19015
  size_t count) {
19023
19016
  auto value =
19024
- uniffi_breez_sdk_spark_checksum_method_externalsigner_subtract_secret_keys();
19017
+ uniffi_breez_sdk_spark_checksum_method_externalsigner_subtract_secrets();
19025
19018
 
19026
19019
  return uniffi_jsi::Bridging<uint16_t>::toJs(rt, callInvoker, value);
19027
19020
  }
@@ -19035,20 +19028,20 @@ jsi::Value NativeBreezSdkSpark::
19035
19028
  return uniffi_jsi::Bridging<uint16_t>::toJs(rt, callInvoker, value);
19036
19029
  }
19037
19030
  jsi::Value NativeBreezSdkSpark::
19038
- cpp_uniffi_breez_sdk_spark_checksum_method_externalsigner_encrypt_private_key_for_receiver(
19031
+ cpp_uniffi_breez_sdk_spark_checksum_method_externalsigner_encrypt_secret_for_receiver(
19039
19032
  jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
19040
19033
  size_t count) {
19041
19034
  auto value =
19042
- uniffi_breez_sdk_spark_checksum_method_externalsigner_encrypt_private_key_for_receiver();
19035
+ uniffi_breez_sdk_spark_checksum_method_externalsigner_encrypt_secret_for_receiver();
19043
19036
 
19044
19037
  return uniffi_jsi::Bridging<uint16_t>::toJs(rt, callInvoker, value);
19045
19038
  }
19046
19039
  jsi::Value NativeBreezSdkSpark::
19047
- cpp_uniffi_breez_sdk_spark_checksum_method_externalsigner_get_public_key_from_private_key_source(
19040
+ cpp_uniffi_breez_sdk_spark_checksum_method_externalsigner_public_key_from_secret(
19048
19041
  jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
19049
19042
  size_t count) {
19050
19043
  auto value =
19051
- uniffi_breez_sdk_spark_checksum_method_externalsigner_get_public_key_from_private_key_source();
19044
+ uniffi_breez_sdk_spark_checksum_method_externalsigner_public_key_from_secret();
19052
19045
 
19053
19046
  return uniffi_jsi::Bridging<uint16_t>::toJs(rt, callInvoker, value);
19054
19047
  }