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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -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 secret_key,
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_key,
201
201
  UniffiForeignFutureCompleteRustBuffer uniffi_future_callback,
202
202
  uint64_t uniffi_callback_data, UniffiForeignFuture *uniffi_out_return);
203
203
  typedef void (*UniffiCallbackInterfaceExternalSignerMethod18)(
@@ -355,15 +355,14 @@ typedef struct UniffiVTableCallbackInterfaceExternalSigner {
355
355
  UniffiCallbackInterfaceExternalSignerMethod9 get_public_key_for_node;
356
356
  UniffiCallbackInterfaceExternalSignerMethod10 generate_random_key;
357
357
  UniffiCallbackInterfaceExternalSignerMethod11
358
- get_static_deposit_private_key_source;
358
+ static_deposit_secret_key_encrypted;
359
359
  UniffiCallbackInterfaceExternalSignerMethod12 static_deposit_secret_key;
360
360
  UniffiCallbackInterfaceExternalSignerMethod13 static_deposit_signing_key;
361
361
  UniffiCallbackInterfaceExternalSignerMethod14 subtract_secret_keys;
362
362
  UniffiCallbackInterfaceExternalSignerMethod15 split_secret_with_proofs;
363
- UniffiCallbackInterfaceExternalSignerMethod16
364
- encrypt_private_key_for_receiver;
363
+ UniffiCallbackInterfaceExternalSignerMethod16 encrypt_secret_key_for_receiver;
365
364
  UniffiCallbackInterfaceExternalSignerMethod17
366
- get_public_key_from_private_key_source;
365
+ public_key_from_secret_key_source;
367
366
  UniffiCallbackInterfaceExternalSignerMethod18 sign_frost;
368
367
  UniffiCallbackInterfaceExternalSignerMethod19 aggregate_frost;
369
368
  UniffiCallbackInterfaceFree uniffi_free;
@@ -571,7 +570,7 @@ uniffi_breez_sdk_spark_fn_method_externalsigner_get_public_key_for_node(
571
570
  /*handle*/ uint64_t
572
571
  uniffi_breez_sdk_spark_fn_method_externalsigner_generate_random_key(void *ptr);
573
572
  /*handle*/ uint64_t
574
- uniffi_breez_sdk_spark_fn_method_externalsigner_get_static_deposit_private_key_source(
573
+ uniffi_breez_sdk_spark_fn_method_externalsigner_static_deposit_secret_key_encrypted(
575
574
  void *ptr, uint32_t index);
576
575
  /*handle*/ uint64_t
577
576
  uniffi_breez_sdk_spark_fn_method_externalsigner_static_deposit_secret_key(
@@ -586,11 +585,11 @@ uniffi_breez_sdk_spark_fn_method_externalsigner_subtract_secret_keys(
586
585
  uniffi_breez_sdk_spark_fn_method_externalsigner_split_secret_with_proofs(
587
586
  void *ptr, RustBuffer secret, uint32_t threshold, uint32_t num_shares);
588
587
  /*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);
588
+ uniffi_breez_sdk_spark_fn_method_externalsigner_encrypt_secret_key_for_receiver(
589
+ void *ptr, RustBuffer secret_key, RustBuffer receiver_public_key);
591
590
  /*handle*/ uint64_t
592
- uniffi_breez_sdk_spark_fn_method_externalsigner_get_public_key_from_private_key_source(
593
- void *ptr, RustBuffer private_key);
591
+ uniffi_breez_sdk_spark_fn_method_externalsigner_public_key_from_secret_key_source(
592
+ void *ptr, RustBuffer secret_key);
594
593
  /*handle*/ uint64_t
595
594
  uniffi_breez_sdk_spark_fn_method_externalsigner_sign_frost(void *ptr,
596
595
  RustBuffer request);
@@ -991,7 +990,7 @@ uniffi_breez_sdk_spark_checksum_method_externalsigner_get_public_key_for_node();
991
990
  uint16_t
992
991
  uniffi_breez_sdk_spark_checksum_method_externalsigner_generate_random_key();
993
992
  uint16_t
994
- uniffi_breez_sdk_spark_checksum_method_externalsigner_get_static_deposit_private_key_source();
993
+ uniffi_breez_sdk_spark_checksum_method_externalsigner_static_deposit_secret_key_encrypted();
995
994
  uint16_t
996
995
  uniffi_breez_sdk_spark_checksum_method_externalsigner_static_deposit_secret_key();
997
996
  uint16_t
@@ -1001,9 +1000,9 @@ uniffi_breez_sdk_spark_checksum_method_externalsigner_subtract_secret_keys();
1001
1000
  uint16_t
1002
1001
  uniffi_breez_sdk_spark_checksum_method_externalsigner_split_secret_with_proofs();
1003
1002
  uint16_t
1004
- uniffi_breez_sdk_spark_checksum_method_externalsigner_encrypt_private_key_for_receiver();
1003
+ uniffi_breez_sdk_spark_checksum_method_externalsigner_encrypt_secret_key_for_receiver();
1005
1004
  uint16_t
1006
- uniffi_breez_sdk_spark_checksum_method_externalsigner_get_public_key_from_private_key_source();
1005
+ uniffi_breez_sdk_spark_checksum_method_externalsigner_public_key_from_secret_key_source();
1007
1006
  uint16_t uniffi_breez_sdk_spark_checksum_method_externalsigner_sign_frost();
1008
1007
  uint16_t
1009
1008
  uniffi_breez_sdk_spark_checksum_method_externalsigner_aggregate_frost();
@@ -6810,7 +6809,7 @@ static std::function<void(uint64_t, RustBuffer, RustBuffer,
6810
6809
  static void body(jsi::Runtime &rt,
6811
6810
  std::shared_ptr<uniffi_runtime::UniffiCallInvoker> callInvoker,
6812
6811
  std::shared_ptr<jsi::Value> callbackValue,
6813
- uint64_t rs_uniffiHandle, RustBuffer rs_privateKey,
6812
+ uint64_t rs_uniffiHandle, RustBuffer rs_secretKey,
6814
6813
  RustBuffer rs_receiverPublicKey,
6815
6814
  UniffiForeignFutureCompleteRustBuffer rs_uniffiFutureCallback,
6816
6815
  uint64_t rs_uniffiCallbackData,
@@ -6820,8 +6819,8 @@ static void body(jsi::Runtime &rt,
6820
6819
  // We'll use the Bridging class to do this…
6821
6820
  auto js_uniffiHandle =
6822
6821
  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);
6822
+ auto js_secretKey = uniffi::breez_sdk_spark::Bridging<RustBuffer>::toJs(
6823
+ rt, callInvoker, rs_secretKey);
6825
6824
  auto js_receiverPublicKey =
6826
6825
  uniffi::breez_sdk_spark::Bridging<RustBuffer>::toJs(rt, callInvoker,
6827
6826
  rs_receiverPublicKey);
@@ -6838,7 +6837,7 @@ static void body(jsi::Runtime &rt,
6838
6837
  // Getting the callback function
6839
6838
  auto cb = callbackValue->asObject(rt).asFunction(rt);
6840
6839
  auto uniffiResult =
6841
- cb.call(rt, js_uniffiHandle, js_privateKey, js_receiverPublicKey,
6840
+ cb.call(rt, js_uniffiHandle, js_secretKey, js_receiverPublicKey,
6842
6841
  js_uniffiFutureCallback, js_uniffiCallbackData);
6843
6842
 
6844
6843
  // Finally, we need to copy the return value back into the Rust pointer.
@@ -6854,7 +6853,7 @@ static void body(jsi::Runtime &rt,
6854
6853
  }
6855
6854
 
6856
6855
  static void
6857
- callback(uint64_t rs_uniffiHandle, RustBuffer rs_privateKey,
6856
+ callback(uint64_t rs_uniffiHandle, RustBuffer rs_secretKey,
6858
6857
  RustBuffer rs_receiverPublicKey,
6859
6858
  UniffiForeignFutureCompleteRustBuffer rs_uniffiFutureCallback,
6860
6859
  uint64_t rs_uniffiCallbackData,
@@ -6874,7 +6873,7 @@ callback(uint64_t rs_uniffiHandle, RustBuffer rs_privateKey,
6874
6873
 
6875
6874
  // The runtime, the actual callback jsi::funtion, and the callInvoker
6876
6875
  // are all in the lambda.
6877
- rsLambda(rs_uniffiHandle, rs_privateKey, rs_receiverPublicKey,
6876
+ rsLambda(rs_uniffiHandle, rs_secretKey, rs_receiverPublicKey,
6878
6877
  rs_uniffiFutureCallback, rs_uniffiCallbackData, rs_uniffiOutReturn);
6879
6878
  }
6880
6879
 
@@ -6898,7 +6897,7 @@ makeCallbackFunction( // uniffi::breez_sdk_spark::cb::callbackinterfaceexternals
6898
6897
  auto callbackFunction = value.asObject(rt).asFunction(rt);
6899
6898
  auto callbackValue = std::make_shared<jsi::Value>(rt, callbackFunction);
6900
6899
  rsLambda = [&rt, callInvoker, callbackValue](
6901
- uint64_t rs_uniffiHandle, RustBuffer rs_privateKey,
6900
+ uint64_t rs_uniffiHandle, RustBuffer rs_secretKey,
6902
6901
  RustBuffer rs_receiverPublicKey,
6903
6902
  UniffiForeignFutureCompleteRustBuffer rs_uniffiFutureCallback,
6904
6903
  uint64_t rs_uniffiCallbackData,
@@ -6906,10 +6905,10 @@ makeCallbackFunction( // uniffi::breez_sdk_spark::cb::callbackinterfaceexternals
6906
6905
  // We immediately make a lambda which will do the work of transforming the
6907
6906
  // arguments into JSI values and calling the callback.
6908
6907
  uniffi_runtime::UniffiCallFunc jsLambda =
6909
- [callInvoker, callbackValue, rs_uniffiHandle, rs_privateKey,
6908
+ [callInvoker, callbackValue, rs_uniffiHandle, rs_secretKey,
6910
6909
  rs_receiverPublicKey, rs_uniffiFutureCallback, rs_uniffiCallbackData,
6911
6910
  rs_uniffiOutReturn](jsi::Runtime &rt) mutable {
6912
- body(rt, callInvoker, callbackValue, rs_uniffiHandle, rs_privateKey,
6911
+ body(rt, callInvoker, callbackValue, rs_uniffiHandle, rs_secretKey,
6913
6912
  rs_receiverPublicKey, rs_uniffiFutureCallback,
6914
6913
  rs_uniffiCallbackData, rs_uniffiOutReturn);
6915
6914
  };
@@ -6961,7 +6960,7 @@ static std::function<void(uint64_t, RustBuffer,
6961
6960
  static void body(jsi::Runtime &rt,
6962
6961
  std::shared_ptr<uniffi_runtime::UniffiCallInvoker> callInvoker,
6963
6962
  std::shared_ptr<jsi::Value> callbackValue,
6964
- uint64_t rs_uniffiHandle, RustBuffer rs_privateKey,
6963
+ uint64_t rs_uniffiHandle, RustBuffer rs_secretKey,
6965
6964
  UniffiForeignFutureCompleteRustBuffer rs_uniffiFutureCallback,
6966
6965
  uint64_t rs_uniffiCallbackData,
6967
6966
  UniffiForeignFuture *rs_uniffiOutReturn) {
@@ -6970,8 +6969,8 @@ static void body(jsi::Runtime &rt,
6970
6969
  // We'll use the Bridging class to do this…
6971
6970
  auto js_uniffiHandle =
6972
6971
  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);
6972
+ auto js_secretKey = uniffi::breez_sdk_spark::Bridging<RustBuffer>::toJs(
6973
+ rt, callInvoker, rs_secretKey);
6975
6974
  auto js_uniffiFutureCallback = uniffi::breez_sdk_spark::Bridging<
6976
6975
  UniffiForeignFutureCompleteRustBuffer>::toJs(rt, callInvoker,
6977
6976
  rs_uniffiFutureCallback);
@@ -6984,7 +6983,7 @@ static void body(jsi::Runtime &rt,
6984
6983
  try {
6985
6984
  // Getting the callback function
6986
6985
  auto cb = callbackValue->asObject(rt).asFunction(rt);
6987
- auto uniffiResult = cb.call(rt, js_uniffiHandle, js_privateKey,
6986
+ auto uniffiResult = cb.call(rt, js_uniffiHandle, js_secretKey,
6988
6987
  js_uniffiFutureCallback, js_uniffiCallbackData);
6989
6988
 
6990
6989
  // Finally, we need to copy the return value back into the Rust pointer.
@@ -7000,7 +6999,7 @@ static void body(jsi::Runtime &rt,
7000
6999
  }
7001
7000
 
7002
7001
  static void
7003
- callback(uint64_t rs_uniffiHandle, RustBuffer rs_privateKey,
7002
+ callback(uint64_t rs_uniffiHandle, RustBuffer rs_secretKey,
7004
7003
  UniffiForeignFutureCompleteRustBuffer rs_uniffiFutureCallback,
7005
7004
  uint64_t rs_uniffiCallbackData,
7006
7005
  UniffiForeignFuture *rs_uniffiOutReturn) {
@@ -7019,7 +7018,7 @@ callback(uint64_t rs_uniffiHandle, RustBuffer rs_privateKey,
7019
7018
 
7020
7019
  // The runtime, the actual callback jsi::funtion, and the callInvoker
7021
7020
  // are all in the lambda.
7022
- rsLambda(rs_uniffiHandle, rs_privateKey, rs_uniffiFutureCallback,
7021
+ rsLambda(rs_uniffiHandle, rs_secretKey, rs_uniffiFutureCallback,
7023
7022
  rs_uniffiCallbackData, rs_uniffiOutReturn);
7024
7023
  }
7025
7024
 
@@ -7043,17 +7042,17 @@ makeCallbackFunction( // uniffi::breez_sdk_spark::cb::callbackinterfaceexternals
7043
7042
  auto callbackFunction = value.asObject(rt).asFunction(rt);
7044
7043
  auto callbackValue = std::make_shared<jsi::Value>(rt, callbackFunction);
7045
7044
  rsLambda = [&rt, callInvoker, callbackValue](
7046
- uint64_t rs_uniffiHandle, RustBuffer rs_privateKey,
7045
+ uint64_t rs_uniffiHandle, RustBuffer rs_secretKey,
7047
7046
  UniffiForeignFutureCompleteRustBuffer rs_uniffiFutureCallback,
7048
7047
  uint64_t rs_uniffiCallbackData,
7049
7048
  UniffiForeignFuture *rs_uniffiOutReturn) {
7050
7049
  // We immediately make a lambda which will do the work of transforming the
7051
7050
  // arguments into JSI values and calling the callback.
7052
7051
  uniffi_runtime::UniffiCallFunc jsLambda =
7053
- [callInvoker, callbackValue, rs_uniffiHandle, rs_privateKey,
7052
+ [callInvoker, callbackValue, rs_uniffiHandle, rs_secretKey,
7054
7053
  rs_uniffiFutureCallback, rs_uniffiCallbackData,
7055
7054
  rs_uniffiOutReturn](jsi::Runtime &rt) mutable {
7056
- body(rt, callInvoker, callbackValue, rs_uniffiHandle, rs_privateKey,
7055
+ body(rt, callInvoker, callbackValue, rs_uniffiHandle, rs_secretKey,
7057
7056
  rs_uniffiFutureCallback, rs_uniffiCallbackData,
7058
7057
  rs_uniffiOutReturn);
7059
7058
  };
@@ -11653,10 +11652,10 @@ template <> struct Bridging<UniffiVTableCallbackInterfaceExternalSigner> {
11653
11652
  rsObject.generate_random_key = uniffi::breez_sdk_spark::cb::
11654
11653
  callbackinterfaceexternalsignermethod10::makeCallbackFunction(
11655
11654
  rt, callInvoker, jsObject.getProperty(rt, "generateRandomKey"));
11656
- rsObject.get_static_deposit_private_key_source = uniffi::breez_sdk_spark::
11657
- cb::callbackinterfaceexternalsignermethod11::makeCallbackFunction(
11655
+ rsObject.static_deposit_secret_key_encrypted = uniffi::breez_sdk_spark::cb::
11656
+ callbackinterfaceexternalsignermethod11::makeCallbackFunction(
11658
11657
  rt, callInvoker,
11659
- jsObject.getProperty(rt, "getStaticDepositPrivateKeySource"));
11658
+ jsObject.getProperty(rt, "staticDepositSecretKeyEncrypted"));
11660
11659
  rsObject.static_deposit_secret_key = uniffi::breez_sdk_spark::cb::
11661
11660
  callbackinterfaceexternalsignermethod12::makeCallbackFunction(
11662
11661
  rt, callInvoker,
@@ -11671,14 +11670,14 @@ template <> struct Bridging<UniffiVTableCallbackInterfaceExternalSigner> {
11671
11670
  rsObject.split_secret_with_proofs = uniffi::breez_sdk_spark::cb::
11672
11671
  callbackinterfaceexternalsignermethod15::makeCallbackFunction(
11673
11672
  rt, callInvoker, jsObject.getProperty(rt, "splitSecretWithProofs"));
11674
- rsObject.encrypt_private_key_for_receiver = uniffi::breez_sdk_spark::cb::
11673
+ rsObject.encrypt_secret_key_for_receiver = uniffi::breez_sdk_spark::cb::
11675
11674
  callbackinterfaceexternalsignermethod16::makeCallbackFunction(
11676
11675
  rt, callInvoker,
11677
- jsObject.getProperty(rt, "encryptPrivateKeyForReceiver"));
11678
- rsObject.get_public_key_from_private_key_source = uniffi::breez_sdk_spark::
11679
- cb::callbackinterfaceexternalsignermethod17::makeCallbackFunction(
11676
+ jsObject.getProperty(rt, "encryptSecretKeyForReceiver"));
11677
+ rsObject.public_key_from_secret_key_source = uniffi::breez_sdk_spark::cb::
11678
+ callbackinterfaceexternalsignermethod17::makeCallbackFunction(
11680
11679
  rt, callInvoker,
11681
- jsObject.getProperty(rt, "getPublicKeyFromPrivateKeySource"));
11680
+ jsObject.getProperty(rt, "publicKeyFromSecretKeySource"));
11682
11681
  rsObject.sign_frost = uniffi::breez_sdk_spark::cb::
11683
11682
  callbackinterfaceexternalsignermethod18::makeCallbackFunction(
11684
11683
  rt, callInvoker, jsObject.getProperty(rt, "signFrost"));
@@ -12703,17 +12702,17 @@ NativeBreezSdkSpark::NativeBreezSdkSpark(
12703
12702
  ->cpp_uniffi_breez_sdk_spark_fn_method_externalsigner_generate_random_key(
12704
12703
  rt, thisVal, args, count);
12705
12704
  });
12706
- props["ubrn_uniffi_breez_sdk_spark_fn_method_externalsigner_get_static_"
12707
- "deposit_private_key_source"] = jsi::Function::createFromHostFunction(
12705
+ props["ubrn_uniffi_breez_sdk_spark_fn_method_externalsigner_static_deposit_"
12706
+ "secret_key_encrypted"] = jsi::Function::createFromHostFunction(
12708
12707
  rt,
12709
12708
  jsi::PropNameID::forAscii(
12710
- rt, "ubrn_uniffi_breez_sdk_spark_fn_method_externalsigner_get_static_"
12711
- "deposit_private_key_source"),
12709
+ rt, "ubrn_uniffi_breez_sdk_spark_fn_method_externalsigner_static_"
12710
+ "deposit_secret_key_encrypted"),
12712
12711
  2,
12713
12712
  [this](jsi::Runtime &rt, const jsi::Value &thisVal,
12714
12713
  const jsi::Value *args, size_t count) -> jsi::Value {
12715
12714
  return this
12716
- ->cpp_uniffi_breez_sdk_spark_fn_method_externalsigner_get_static_deposit_private_key_source(
12715
+ ->cpp_uniffi_breez_sdk_spark_fn_method_externalsigner_static_deposit_secret_key_encrypted(
12717
12716
  rt, thisVal, args, count);
12718
12717
  });
12719
12718
  props["ubrn_uniffi_breez_sdk_spark_fn_method_externalsigner_static_deposit_"
@@ -12765,30 +12764,30 @@ NativeBreezSdkSpark::NativeBreezSdkSpark(
12765
12764
  ->cpp_uniffi_breez_sdk_spark_fn_method_externalsigner_split_secret_with_proofs(
12766
12765
  rt, thisVal, args, count);
12767
12766
  });
12768
- props["ubrn_uniffi_breez_sdk_spark_fn_method_externalsigner_encrypt_private_"
12767
+ props["ubrn_uniffi_breez_sdk_spark_fn_method_externalsigner_encrypt_secret_"
12769
12768
  "key_for_receiver"] = jsi::Function::createFromHostFunction(
12770
12769
  rt,
12771
12770
  jsi::PropNameID::forAscii(
12772
12771
  rt, "ubrn_uniffi_breez_sdk_spark_fn_method_externalsigner_encrypt_"
12773
- "private_key_for_receiver"),
12772
+ "secret_key_for_receiver"),
12774
12773
  3,
12775
12774
  [this](jsi::Runtime &rt, const jsi::Value &thisVal,
12776
12775
  const jsi::Value *args, size_t count) -> jsi::Value {
12777
12776
  return this
12778
- ->cpp_uniffi_breez_sdk_spark_fn_method_externalsigner_encrypt_private_key_for_receiver(
12777
+ ->cpp_uniffi_breez_sdk_spark_fn_method_externalsigner_encrypt_secret_key_for_receiver(
12779
12778
  rt, thisVal, args, count);
12780
12779
  });
12781
- props["ubrn_uniffi_breez_sdk_spark_fn_method_externalsigner_get_public_key_"
12782
- "from_private_key_source"] = jsi::Function::createFromHostFunction(
12780
+ props["ubrn_uniffi_breez_sdk_spark_fn_method_externalsigner_public_key_from_"
12781
+ "secret_key_source"] = jsi::Function::createFromHostFunction(
12783
12782
  rt,
12784
12783
  jsi::PropNameID::forAscii(
12785
- rt, "ubrn_uniffi_breez_sdk_spark_fn_method_externalsigner_get_public_"
12786
- "key_from_private_key_source"),
12784
+ rt, "ubrn_uniffi_breez_sdk_spark_fn_method_externalsigner_public_key_"
12785
+ "from_secret_key_source"),
12787
12786
  2,
12788
12787
  [this](jsi::Runtime &rt, const jsi::Value &thisVal,
12789
12788
  const jsi::Value *args, size_t count) -> jsi::Value {
12790
12789
  return this
12791
- ->cpp_uniffi_breez_sdk_spark_fn_method_externalsigner_get_public_key_from_private_key_source(
12790
+ ->cpp_uniffi_breez_sdk_spark_fn_method_externalsigner_public_key_from_secret_key_source(
12792
12791
  rt, thisVal, args, count);
12793
12792
  });
12794
12793
  props["ubrn_uniffi_breez_sdk_spark_fn_method_externalsigner_sign_frost"] =
@@ -14872,17 +14871,17 @@ NativeBreezSdkSpark::NativeBreezSdkSpark(
14872
14871
  ->cpp_uniffi_breez_sdk_spark_checksum_method_externalsigner_generate_random_key(
14873
14872
  rt, thisVal, args, count);
14874
14873
  });
14875
- props["ubrn_uniffi_breez_sdk_spark_checksum_method_externalsigner_get_static_"
14876
- "deposit_private_key_source"] = jsi::Function::createFromHostFunction(
14874
+ props["ubrn_uniffi_breez_sdk_spark_checksum_method_externalsigner_static_"
14875
+ "deposit_secret_key_encrypted"] = jsi::Function::createFromHostFunction(
14877
14876
  rt,
14878
14877
  jsi::PropNameID::forAscii(
14879
- rt, "ubrn_uniffi_breez_sdk_spark_checksum_method_externalsigner_get_"
14880
- "static_deposit_private_key_source"),
14878
+ rt, "ubrn_uniffi_breez_sdk_spark_checksum_method_externalsigner_"
14879
+ "static_deposit_secret_key_encrypted"),
14881
14880
  0,
14882
14881
  [this](jsi::Runtime &rt, const jsi::Value &thisVal,
14883
14882
  const jsi::Value *args, size_t count) -> jsi::Value {
14884
14883
  return this
14885
- ->cpp_uniffi_breez_sdk_spark_checksum_method_externalsigner_get_static_deposit_private_key_source(
14884
+ ->cpp_uniffi_breez_sdk_spark_checksum_method_externalsigner_static_deposit_secret_key_encrypted(
14886
14885
  rt, thisVal, args, count);
14887
14886
  });
14888
14887
  props["ubrn_uniffi_breez_sdk_spark_checksum_method_externalsigner_static_"
@@ -14938,29 +14937,29 @@ NativeBreezSdkSpark::NativeBreezSdkSpark(
14938
14937
  rt, thisVal, args, count);
14939
14938
  });
14940
14939
  props["ubrn_uniffi_breez_sdk_spark_checksum_method_externalsigner_encrypt_"
14941
- "private_key_for_receiver"] = jsi::Function::createFromHostFunction(
14940
+ "secret_key_for_receiver"] = jsi::Function::createFromHostFunction(
14942
14941
  rt,
14943
14942
  jsi::PropNameID::forAscii(
14944
14943
  rt, "ubrn_uniffi_breez_sdk_spark_checksum_method_externalsigner_"
14945
- "encrypt_private_key_for_receiver"),
14944
+ "encrypt_secret_key_for_receiver"),
14946
14945
  0,
14947
14946
  [this](jsi::Runtime &rt, const jsi::Value &thisVal,
14948
14947
  const jsi::Value *args, size_t count) -> jsi::Value {
14949
14948
  return this
14950
- ->cpp_uniffi_breez_sdk_spark_checksum_method_externalsigner_encrypt_private_key_for_receiver(
14949
+ ->cpp_uniffi_breez_sdk_spark_checksum_method_externalsigner_encrypt_secret_key_for_receiver(
14951
14950
  rt, thisVal, args, count);
14952
14951
  });
14953
- props["ubrn_uniffi_breez_sdk_spark_checksum_method_externalsigner_get_public_"
14954
- "key_from_private_key_source"] = jsi::Function::createFromHostFunction(
14952
+ props["ubrn_uniffi_breez_sdk_spark_checksum_method_externalsigner_public_key_"
14953
+ "from_secret_key_source"] = jsi::Function::createFromHostFunction(
14955
14954
  rt,
14956
14955
  jsi::PropNameID::forAscii(
14957
- rt, "ubrn_uniffi_breez_sdk_spark_checksum_method_externalsigner_get_"
14958
- "public_key_from_private_key_source"),
14956
+ rt, "ubrn_uniffi_breez_sdk_spark_checksum_method_externalsigner_"
14957
+ "public_key_from_secret_key_source"),
14959
14958
  0,
14960
14959
  [this](jsi::Runtime &rt, const jsi::Value &thisVal,
14961
14960
  const jsi::Value *args, size_t count) -> jsi::Value {
14962
14961
  return this
14963
- ->cpp_uniffi_breez_sdk_spark_checksum_method_externalsigner_get_public_key_from_private_key_source(
14962
+ ->cpp_uniffi_breez_sdk_spark_checksum_method_externalsigner_public_key_from_secret_key_source(
14964
14963
  rt, thisVal, args, count);
14965
14964
  });
14966
14965
  props["ubrn_uniffi_breez_sdk_spark_checksum_method_externalsigner_sign_"
@@ -16933,11 +16932,11 @@ jsi::Value NativeBreezSdkSpark::
16933
16932
  value);
16934
16933
  }
16935
16934
  jsi::Value NativeBreezSdkSpark::
16936
- cpp_uniffi_breez_sdk_spark_fn_method_externalsigner_get_static_deposit_private_key_source(
16935
+ cpp_uniffi_breez_sdk_spark_fn_method_externalsigner_static_deposit_secret_key_encrypted(
16937
16936
  jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
16938
16937
  size_t count) {
16939
16938
  auto value =
16940
- uniffi_breez_sdk_spark_fn_method_externalsigner_get_static_deposit_private_key_source(
16939
+ uniffi_breez_sdk_spark_fn_method_externalsigner_static_deposit_secret_key_encrypted(
16941
16940
  uniffi_jsi::Bridging<void *>::fromJs(rt, callInvoker, args[0]),
16942
16941
  uniffi_jsi::Bridging<uint32_t>::fromJs(rt, callInvoker, args[1]));
16943
16942
 
@@ -16999,11 +16998,11 @@ jsi::Value NativeBreezSdkSpark::
16999
16998
  value);
17000
16999
  }
17001
17000
  jsi::Value NativeBreezSdkSpark::
17002
- cpp_uniffi_breez_sdk_spark_fn_method_externalsigner_encrypt_private_key_for_receiver(
17001
+ cpp_uniffi_breez_sdk_spark_fn_method_externalsigner_encrypt_secret_key_for_receiver(
17003
17002
  jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
17004
17003
  size_t count) {
17005
17004
  auto value =
17006
- uniffi_breez_sdk_spark_fn_method_externalsigner_encrypt_private_key_for_receiver(
17005
+ uniffi_breez_sdk_spark_fn_method_externalsigner_encrypt_secret_key_for_receiver(
17007
17006
  uniffi_jsi::Bridging<void *>::fromJs(rt, callInvoker, args[0]),
17008
17007
  uniffi::breez_sdk_spark::Bridging<RustBuffer>::fromJs(rt, callInvoker,
17009
17008
  args[1]),
@@ -17014,11 +17013,11 @@ jsi::Value NativeBreezSdkSpark::
17014
17013
  value);
17015
17014
  }
17016
17015
  jsi::Value NativeBreezSdkSpark::
17017
- cpp_uniffi_breez_sdk_spark_fn_method_externalsigner_get_public_key_from_private_key_source(
17016
+ cpp_uniffi_breez_sdk_spark_fn_method_externalsigner_public_key_from_secret_key_source(
17018
17017
  jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
17019
17018
  size_t count) {
17020
17019
  auto value =
17021
- uniffi_breez_sdk_spark_fn_method_externalsigner_get_public_key_from_private_key_source(
17020
+ uniffi_breez_sdk_spark_fn_method_externalsigner_public_key_from_secret_key_source(
17022
17021
  uniffi_jsi::Bridging<void *>::fromJs(rt, callInvoker, args[0]),
17023
17022
  uniffi::breez_sdk_spark::Bridging<RustBuffer>::fromJs(rt, callInvoker,
17024
17023
  args[1]));
@@ -18990,11 +18989,11 @@ jsi::Value NativeBreezSdkSpark::
18990
18989
  return uniffi_jsi::Bridging<uint16_t>::toJs(rt, callInvoker, value);
18991
18990
  }
18992
18991
  jsi::Value NativeBreezSdkSpark::
18993
- cpp_uniffi_breez_sdk_spark_checksum_method_externalsigner_get_static_deposit_private_key_source(
18992
+ cpp_uniffi_breez_sdk_spark_checksum_method_externalsigner_static_deposit_secret_key_encrypted(
18994
18993
  jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
18995
18994
  size_t count) {
18996
18995
  auto value =
18997
- uniffi_breez_sdk_spark_checksum_method_externalsigner_get_static_deposit_private_key_source();
18996
+ uniffi_breez_sdk_spark_checksum_method_externalsigner_static_deposit_secret_key_encrypted();
18998
18997
 
18999
18998
  return uniffi_jsi::Bridging<uint16_t>::toJs(rt, callInvoker, value);
19000
18999
  }
@@ -19035,20 +19034,20 @@ jsi::Value NativeBreezSdkSpark::
19035
19034
  return uniffi_jsi::Bridging<uint16_t>::toJs(rt, callInvoker, value);
19036
19035
  }
19037
19036
  jsi::Value NativeBreezSdkSpark::
19038
- cpp_uniffi_breez_sdk_spark_checksum_method_externalsigner_encrypt_private_key_for_receiver(
19037
+ cpp_uniffi_breez_sdk_spark_checksum_method_externalsigner_encrypt_secret_key_for_receiver(
19039
19038
  jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
19040
19039
  size_t count) {
19041
19040
  auto value =
19042
- uniffi_breez_sdk_spark_checksum_method_externalsigner_encrypt_private_key_for_receiver();
19041
+ uniffi_breez_sdk_spark_checksum_method_externalsigner_encrypt_secret_key_for_receiver();
19043
19042
 
19044
19043
  return uniffi_jsi::Bridging<uint16_t>::toJs(rt, callInvoker, value);
19045
19044
  }
19046
19045
  jsi::Value NativeBreezSdkSpark::
19047
- cpp_uniffi_breez_sdk_spark_checksum_method_externalsigner_get_public_key_from_private_key_source(
19046
+ cpp_uniffi_breez_sdk_spark_checksum_method_externalsigner_public_key_from_secret_key_source(
19048
19047
  jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
19049
19048
  size_t count) {
19050
19049
  auto value =
19051
- uniffi_breez_sdk_spark_checksum_method_externalsigner_get_public_key_from_private_key_source();
19050
+ uniffi_breez_sdk_spark_checksum_method_externalsigner_public_key_from_secret_key_source();
19052
19051
 
19053
19052
  return uniffi_jsi::Bridging<uint16_t>::toJs(rt, callInvoker, value);
19054
19053
  }
@@ -225,7 +225,7 @@ protected:
225
225
  jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
226
226
  size_t count);
227
227
  jsi::Value
228
- cpp_uniffi_breez_sdk_spark_fn_method_externalsigner_get_static_deposit_private_key_source(
228
+ cpp_uniffi_breez_sdk_spark_fn_method_externalsigner_static_deposit_secret_key_encrypted(
229
229
  jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
230
230
  size_t count);
231
231
  jsi::Value
@@ -245,11 +245,11 @@ protected:
245
245
  jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
246
246
  size_t count);
247
247
  jsi::Value
248
- cpp_uniffi_breez_sdk_spark_fn_method_externalsigner_encrypt_private_key_for_receiver(
248
+ cpp_uniffi_breez_sdk_spark_fn_method_externalsigner_encrypt_secret_key_for_receiver(
249
249
  jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
250
250
  size_t count);
251
251
  jsi::Value
252
- cpp_uniffi_breez_sdk_spark_fn_method_externalsigner_get_public_key_from_private_key_source(
252
+ cpp_uniffi_breez_sdk_spark_fn_method_externalsigner_public_key_from_secret_key_source(
253
253
  jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
254
254
  size_t count);
255
255
  jsi::Value cpp_uniffi_breez_sdk_spark_fn_method_externalsigner_sign_frost(
@@ -843,7 +843,7 @@ protected:
843
843
  jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
844
844
  size_t count);
845
845
  jsi::Value
846
- cpp_uniffi_breez_sdk_spark_checksum_method_externalsigner_get_static_deposit_private_key_source(
846
+ cpp_uniffi_breez_sdk_spark_checksum_method_externalsigner_static_deposit_secret_key_encrypted(
847
847
  jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
848
848
  size_t count);
849
849
  jsi::Value
@@ -863,11 +863,11 @@ protected:
863
863
  jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
864
864
  size_t count);
865
865
  jsi::Value
866
- cpp_uniffi_breez_sdk_spark_checksum_method_externalsigner_encrypt_private_key_for_receiver(
866
+ cpp_uniffi_breez_sdk_spark_checksum_method_externalsigner_encrypt_secret_key_for_receiver(
867
867
  jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
868
868
  size_t count);
869
869
  jsi::Value
870
- cpp_uniffi_breez_sdk_spark_checksum_method_externalsigner_get_public_key_from_private_key_source(
870
+ cpp_uniffi_breez_sdk_spark_checksum_method_externalsigner_public_key_from_secret_key_source(
871
871
  jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
872
872
  size_t count);
873
873
  jsi::Value