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