breez-sdk-spark 0.7.3__cp314-cp314-manylinux_2_31_aarch64.whl → 0.7.8__cp314-cp314-manylinux_2_31_aarch64.whl

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.
@@ -521,6 +521,8 @@ def _uniffi_check_api_checksums(lib):
521
521
  raise InternalError("UniFFI API checksum mismatch: try cleaning and rebuilding your project")
522
522
  if lib.uniffi_breez_sdk_spark_checksum_method_breezsdk_list_unclaimed_deposits() != 22486:
523
523
  raise InternalError("UniFFI API checksum mismatch: try cleaning and rebuilding your project")
524
+ if lib.uniffi_breez_sdk_spark_checksum_method_breezsdk_lnurl_auth() != 37942:
525
+ raise InternalError("UniFFI API checksum mismatch: try cleaning and rebuilding your project")
524
526
  if lib.uniffi_breez_sdk_spark_checksum_method_breezsdk_lnurl_pay() != 10147:
525
527
  raise InternalError("UniFFI API checksum mismatch: try cleaning and rebuilding your project")
526
528
  if lib.uniffi_breez_sdk_spark_checksum_method_breezsdk_lnurl_withdraw() != 45652:
@@ -551,43 +553,45 @@ def _uniffi_check_api_checksums(lib):
551
553
  raise InternalError("UniFFI API checksum mismatch: try cleaning and rebuilding your project")
552
554
  if lib.uniffi_breez_sdk_spark_checksum_method_breezsdk_update_user_settings() != 1721:
553
555
  raise InternalError("UniFFI API checksum mismatch: try cleaning and rebuilding your project")
554
- if lib.uniffi_breez_sdk_spark_checksum_method_externalsigner_identity_public_key() != 44711:
556
+ if lib.uniffi_breez_sdk_spark_checksum_method_externalsigner_identity_public_key() != 62941:
555
557
  raise InternalError("UniFFI API checksum mismatch: try cleaning and rebuilding your project")
556
- if lib.uniffi_breez_sdk_spark_checksum_method_externalsigner_derive_public_key() != 63908:
558
+ if lib.uniffi_breez_sdk_spark_checksum_method_externalsigner_derive_public_key() != 23137:
557
559
  raise InternalError("UniFFI API checksum mismatch: try cleaning and rebuilding your project")
558
- if lib.uniffi_breez_sdk_spark_checksum_method_externalsigner_sign_ecdsa() != 52291:
560
+ if lib.uniffi_breez_sdk_spark_checksum_method_externalsigner_sign_ecdsa() != 37648:
559
561
  raise InternalError("UniFFI API checksum mismatch: try cleaning and rebuilding your project")
560
- if lib.uniffi_breez_sdk_spark_checksum_method_externalsigner_sign_ecdsa_recoverable() != 8564:
562
+ if lib.uniffi_breez_sdk_spark_checksum_method_externalsigner_sign_ecdsa_recoverable() != 3107:
561
563
  raise InternalError("UniFFI API checksum mismatch: try cleaning and rebuilding your project")
562
- if lib.uniffi_breez_sdk_spark_checksum_method_externalsigner_ecies_encrypt() != 19449:
564
+ if lib.uniffi_breez_sdk_spark_checksum_method_externalsigner_encrypt_ecies() != 60224:
563
565
  raise InternalError("UniFFI API checksum mismatch: try cleaning and rebuilding your project")
564
- if lib.uniffi_breez_sdk_spark_checksum_method_externalsigner_ecies_decrypt() != 46414:
566
+ if lib.uniffi_breez_sdk_spark_checksum_method_externalsigner_decrypt_ecies() != 59601:
565
567
  raise InternalError("UniFFI API checksum mismatch: try cleaning and rebuilding your project")
566
568
  if lib.uniffi_breez_sdk_spark_checksum_method_externalsigner_sign_hash_schnorr() != 57220:
567
569
  raise InternalError("UniFFI API checksum mismatch: try cleaning and rebuilding your project")
568
- if lib.uniffi_breez_sdk_spark_checksum_method_externalsigner_generate_frost_signing_commitments() != 24826:
570
+ if lib.uniffi_breez_sdk_spark_checksum_method_externalsigner_hmac_sha256() != 57517:
571
+ raise InternalError("UniFFI API checksum mismatch: try cleaning and rebuilding your project")
572
+ if lib.uniffi_breez_sdk_spark_checksum_method_externalsigner_generate_random_signing_commitment() != 31862:
569
573
  raise InternalError("UniFFI API checksum mismatch: try cleaning and rebuilding your project")
570
- if lib.uniffi_breez_sdk_spark_checksum_method_externalsigner_get_public_key_for_node() != 32818:
574
+ if lib.uniffi_breez_sdk_spark_checksum_method_externalsigner_get_public_key_for_node() != 62425:
571
575
  raise InternalError("UniFFI API checksum mismatch: try cleaning and rebuilding your project")
572
- if lib.uniffi_breez_sdk_spark_checksum_method_externalsigner_generate_random_key() != 22789:
576
+ if lib.uniffi_breez_sdk_spark_checksum_method_externalsigner_generate_random_key() != 63908:
573
577
  raise InternalError("UniFFI API checksum mismatch: try cleaning and rebuilding your project")
574
- if lib.uniffi_breez_sdk_spark_checksum_method_externalsigner_get_static_deposit_private_key_source() != 37751:
578
+ if lib.uniffi_breez_sdk_spark_checksum_method_externalsigner_static_deposit_secret_encrypted() != 64635:
575
579
  raise InternalError("UniFFI API checksum mismatch: try cleaning and rebuilding your project")
576
- if lib.uniffi_breez_sdk_spark_checksum_method_externalsigner_get_static_deposit_private_key() != 55375:
580
+ if lib.uniffi_breez_sdk_spark_checksum_method_externalsigner_static_deposit_secret() != 35967:
577
581
  raise InternalError("UniFFI API checksum mismatch: try cleaning and rebuilding your project")
578
- if lib.uniffi_breez_sdk_spark_checksum_method_externalsigner_get_static_deposit_public_key() != 49264:
582
+ if lib.uniffi_breez_sdk_spark_checksum_method_externalsigner_static_deposit_signing_key() != 15562:
579
583
  raise InternalError("UniFFI API checksum mismatch: try cleaning and rebuilding your project")
580
- if lib.uniffi_breez_sdk_spark_checksum_method_externalsigner_subtract_private_keys() != 46671:
584
+ if lib.uniffi_breez_sdk_spark_checksum_method_externalsigner_subtract_secrets() != 43864:
581
585
  raise InternalError("UniFFI API checksum mismatch: try cleaning and rebuilding your project")
582
- if lib.uniffi_breez_sdk_spark_checksum_method_externalsigner_split_secret() != 840:
586
+ if lib.uniffi_breez_sdk_spark_checksum_method_externalsigner_split_secret_with_proofs() != 6228:
583
587
  raise InternalError("UniFFI API checksum mismatch: try cleaning and rebuilding your project")
584
- if lib.uniffi_breez_sdk_spark_checksum_method_externalsigner_encrypt_private_key_for_receiver() != 42476:
588
+ if lib.uniffi_breez_sdk_spark_checksum_method_externalsigner_encrypt_secret_for_receiver() != 61924:
585
589
  raise InternalError("UniFFI API checksum mismatch: try cleaning and rebuilding your project")
586
- if lib.uniffi_breez_sdk_spark_checksum_method_externalsigner_get_public_key_from_private_key_source() != 38684:
590
+ if lib.uniffi_breez_sdk_spark_checksum_method_externalsigner_public_key_from_secret() != 27909:
587
591
  raise InternalError("UniFFI API checksum mismatch: try cleaning and rebuilding your project")
588
- if lib.uniffi_breez_sdk_spark_checksum_method_externalsigner_sign_frost() != 1497:
592
+ if lib.uniffi_breez_sdk_spark_checksum_method_externalsigner_sign_frost() != 2993:
589
593
  raise InternalError("UniFFI API checksum mismatch: try cleaning and rebuilding your project")
590
- if lib.uniffi_breez_sdk_spark_checksum_method_externalsigner_aggregate_frost_signatures() != 26523:
594
+ if lib.uniffi_breez_sdk_spark_checksum_method_externalsigner_aggregate_frost() != 27769:
591
595
  raise InternalError("UniFFI API checksum mismatch: try cleaning and rebuilding your project")
592
596
  if lib.uniffi_breez_sdk_spark_checksum_method_fiatservice_fetch_fiat_currencies() != 19092:
593
597
  raise InternalError("UniFFI API checksum mismatch: try cleaning and rebuilding your project")
@@ -823,30 +827,32 @@ _UNIFFI_CALLBACK_INTERFACE_EXTERNAL_SIGNER_METHOD5 = ctypes.CFUNCTYPE(None,ctype
823
827
  )
824
828
  _UNIFFI_CALLBACK_INTERFACE_EXTERNAL_SIGNER_METHOD6 = ctypes.CFUNCTYPE(None,ctypes.c_uint64,_UniffiRustBuffer,_UniffiRustBuffer,_UNIFFI_FOREIGN_FUTURE_COMPLETE_RUST_BUFFER,ctypes.c_uint64,ctypes.POINTER(_UniffiForeignFuture),
825
829
  )
826
- _UNIFFI_CALLBACK_INTERFACE_EXTERNAL_SIGNER_METHOD7 = ctypes.CFUNCTYPE(None,ctypes.c_uint64,_UNIFFI_FOREIGN_FUTURE_COMPLETE_RUST_BUFFER,ctypes.c_uint64,ctypes.POINTER(_UniffiForeignFuture),
830
+ _UNIFFI_CALLBACK_INTERFACE_EXTERNAL_SIGNER_METHOD7 = ctypes.CFUNCTYPE(None,ctypes.c_uint64,_UniffiRustBuffer,_UniffiRustBuffer,_UNIFFI_FOREIGN_FUTURE_COMPLETE_RUST_BUFFER,ctypes.c_uint64,ctypes.POINTER(_UniffiForeignFuture),
827
831
  )
828
- _UNIFFI_CALLBACK_INTERFACE_EXTERNAL_SIGNER_METHOD8 = ctypes.CFUNCTYPE(None,ctypes.c_uint64,_UniffiRustBuffer,_UNIFFI_FOREIGN_FUTURE_COMPLETE_RUST_BUFFER,ctypes.c_uint64,ctypes.POINTER(_UniffiForeignFuture),
832
+ _UNIFFI_CALLBACK_INTERFACE_EXTERNAL_SIGNER_METHOD8 = ctypes.CFUNCTYPE(None,ctypes.c_uint64,_UNIFFI_FOREIGN_FUTURE_COMPLETE_RUST_BUFFER,ctypes.c_uint64,ctypes.POINTER(_UniffiForeignFuture),
829
833
  )
830
- _UNIFFI_CALLBACK_INTERFACE_EXTERNAL_SIGNER_METHOD9 = ctypes.CFUNCTYPE(None,ctypes.c_uint64,_UNIFFI_FOREIGN_FUTURE_COMPLETE_RUST_BUFFER,ctypes.c_uint64,ctypes.POINTER(_UniffiForeignFuture),
834
+ _UNIFFI_CALLBACK_INTERFACE_EXTERNAL_SIGNER_METHOD9 = ctypes.CFUNCTYPE(None,ctypes.c_uint64,_UniffiRustBuffer,_UNIFFI_FOREIGN_FUTURE_COMPLETE_RUST_BUFFER,ctypes.c_uint64,ctypes.POINTER(_UniffiForeignFuture),
831
835
  )
832
- _UNIFFI_CALLBACK_INTERFACE_EXTERNAL_SIGNER_METHOD10 = ctypes.CFUNCTYPE(None,ctypes.c_uint64,ctypes.c_uint32,_UNIFFI_FOREIGN_FUTURE_COMPLETE_RUST_BUFFER,ctypes.c_uint64,ctypes.POINTER(_UniffiForeignFuture),
836
+ _UNIFFI_CALLBACK_INTERFACE_EXTERNAL_SIGNER_METHOD10 = ctypes.CFUNCTYPE(None,ctypes.c_uint64,_UNIFFI_FOREIGN_FUTURE_COMPLETE_RUST_BUFFER,ctypes.c_uint64,ctypes.POINTER(_UniffiForeignFuture),
833
837
  )
834
838
  _UNIFFI_CALLBACK_INTERFACE_EXTERNAL_SIGNER_METHOD11 = ctypes.CFUNCTYPE(None,ctypes.c_uint64,ctypes.c_uint32,_UNIFFI_FOREIGN_FUTURE_COMPLETE_RUST_BUFFER,ctypes.c_uint64,ctypes.POINTER(_UniffiForeignFuture),
835
839
  )
836
840
  _UNIFFI_CALLBACK_INTERFACE_EXTERNAL_SIGNER_METHOD12 = ctypes.CFUNCTYPE(None,ctypes.c_uint64,ctypes.c_uint32,_UNIFFI_FOREIGN_FUTURE_COMPLETE_RUST_BUFFER,ctypes.c_uint64,ctypes.POINTER(_UniffiForeignFuture),
837
841
  )
838
- _UNIFFI_CALLBACK_INTERFACE_EXTERNAL_SIGNER_METHOD13 = ctypes.CFUNCTYPE(None,ctypes.c_uint64,_UniffiRustBuffer,_UniffiRustBuffer,_UNIFFI_FOREIGN_FUTURE_COMPLETE_RUST_BUFFER,ctypes.c_uint64,ctypes.POINTER(_UniffiForeignFuture),
842
+ _UNIFFI_CALLBACK_INTERFACE_EXTERNAL_SIGNER_METHOD13 = ctypes.CFUNCTYPE(None,ctypes.c_uint64,ctypes.c_uint32,_UNIFFI_FOREIGN_FUTURE_COMPLETE_RUST_BUFFER,ctypes.c_uint64,ctypes.POINTER(_UniffiForeignFuture),
839
843
  )
840
- _UNIFFI_CALLBACK_INTERFACE_EXTERNAL_SIGNER_METHOD14 = ctypes.CFUNCTYPE(None,ctypes.c_uint64,_UniffiRustBuffer,ctypes.c_uint32,ctypes.c_uint32,_UNIFFI_FOREIGN_FUTURE_COMPLETE_RUST_BUFFER,ctypes.c_uint64,ctypes.POINTER(_UniffiForeignFuture),
844
+ _UNIFFI_CALLBACK_INTERFACE_EXTERNAL_SIGNER_METHOD14 = ctypes.CFUNCTYPE(None,ctypes.c_uint64,_UniffiRustBuffer,_UniffiRustBuffer,_UNIFFI_FOREIGN_FUTURE_COMPLETE_RUST_BUFFER,ctypes.c_uint64,ctypes.POINTER(_UniffiForeignFuture),
841
845
  )
842
- _UNIFFI_CALLBACK_INTERFACE_EXTERNAL_SIGNER_METHOD15 = ctypes.CFUNCTYPE(None,ctypes.c_uint64,_UniffiRustBuffer,_UniffiRustBuffer,_UNIFFI_FOREIGN_FUTURE_COMPLETE_RUST_BUFFER,ctypes.c_uint64,ctypes.POINTER(_UniffiForeignFuture),
846
+ _UNIFFI_CALLBACK_INTERFACE_EXTERNAL_SIGNER_METHOD15 = ctypes.CFUNCTYPE(None,ctypes.c_uint64,_UniffiRustBuffer,ctypes.c_uint32,ctypes.c_uint32,_UNIFFI_FOREIGN_FUTURE_COMPLETE_RUST_BUFFER,ctypes.c_uint64,ctypes.POINTER(_UniffiForeignFuture),
843
847
  )
844
- _UNIFFI_CALLBACK_INTERFACE_EXTERNAL_SIGNER_METHOD16 = ctypes.CFUNCTYPE(None,ctypes.c_uint64,_UniffiRustBuffer,_UNIFFI_FOREIGN_FUTURE_COMPLETE_RUST_BUFFER,ctypes.c_uint64,ctypes.POINTER(_UniffiForeignFuture),
848
+ _UNIFFI_CALLBACK_INTERFACE_EXTERNAL_SIGNER_METHOD16 = ctypes.CFUNCTYPE(None,ctypes.c_uint64,_UniffiRustBuffer,_UniffiRustBuffer,_UNIFFI_FOREIGN_FUTURE_COMPLETE_RUST_BUFFER,ctypes.c_uint64,ctypes.POINTER(_UniffiForeignFuture),
845
849
  )
846
850
  _UNIFFI_CALLBACK_INTERFACE_EXTERNAL_SIGNER_METHOD17 = ctypes.CFUNCTYPE(None,ctypes.c_uint64,_UniffiRustBuffer,_UNIFFI_FOREIGN_FUTURE_COMPLETE_RUST_BUFFER,ctypes.c_uint64,ctypes.POINTER(_UniffiForeignFuture),
847
851
  )
848
852
  _UNIFFI_CALLBACK_INTERFACE_EXTERNAL_SIGNER_METHOD18 = ctypes.CFUNCTYPE(None,ctypes.c_uint64,_UniffiRustBuffer,_UNIFFI_FOREIGN_FUTURE_COMPLETE_RUST_BUFFER,ctypes.c_uint64,ctypes.POINTER(_UniffiForeignFuture),
849
853
  )
854
+ _UNIFFI_CALLBACK_INTERFACE_EXTERNAL_SIGNER_METHOD19 = ctypes.CFUNCTYPE(None,ctypes.c_uint64,_UniffiRustBuffer,_UNIFFI_FOREIGN_FUTURE_COMPLETE_RUST_BUFFER,ctypes.c_uint64,ctypes.POINTER(_UniffiForeignFuture),
855
+ )
850
856
  _UNIFFI_CALLBACK_INTERFACE_FIAT_SERVICE_METHOD0 = ctypes.CFUNCTYPE(None,ctypes.c_uint64,_UNIFFI_FOREIGN_FUTURE_COMPLETE_RUST_BUFFER,ctypes.c_uint64,ctypes.POINTER(_UniffiForeignFuture),
851
857
  )
852
858
  _UNIFFI_CALLBACK_INTERFACE_FIAT_SERVICE_METHOD1 = ctypes.CFUNCTYPE(None,ctypes.c_uint64,_UNIFFI_FOREIGN_FUTURE_COMPLETE_RUST_BUFFER,ctypes.c_uint64,ctypes.POINTER(_UniffiForeignFuture),
@@ -930,21 +936,22 @@ class _UniffiVTableCallbackInterfaceExternalSigner(ctypes.Structure):
930
936
  ("derive_public_key", _UNIFFI_CALLBACK_INTERFACE_EXTERNAL_SIGNER_METHOD1),
931
937
  ("sign_ecdsa", _UNIFFI_CALLBACK_INTERFACE_EXTERNAL_SIGNER_METHOD2),
932
938
  ("sign_ecdsa_recoverable", _UNIFFI_CALLBACK_INTERFACE_EXTERNAL_SIGNER_METHOD3),
933
- ("ecies_encrypt", _UNIFFI_CALLBACK_INTERFACE_EXTERNAL_SIGNER_METHOD4),
934
- ("ecies_decrypt", _UNIFFI_CALLBACK_INTERFACE_EXTERNAL_SIGNER_METHOD5),
939
+ ("encrypt_ecies", _UNIFFI_CALLBACK_INTERFACE_EXTERNAL_SIGNER_METHOD4),
940
+ ("decrypt_ecies", _UNIFFI_CALLBACK_INTERFACE_EXTERNAL_SIGNER_METHOD5),
935
941
  ("sign_hash_schnorr", _UNIFFI_CALLBACK_INTERFACE_EXTERNAL_SIGNER_METHOD6),
936
- ("generate_frost_signing_commitments", _UNIFFI_CALLBACK_INTERFACE_EXTERNAL_SIGNER_METHOD7),
937
- ("get_public_key_for_node", _UNIFFI_CALLBACK_INTERFACE_EXTERNAL_SIGNER_METHOD8),
938
- ("generate_random_key", _UNIFFI_CALLBACK_INTERFACE_EXTERNAL_SIGNER_METHOD9),
939
- ("get_static_deposit_private_key_source", _UNIFFI_CALLBACK_INTERFACE_EXTERNAL_SIGNER_METHOD10),
940
- ("get_static_deposit_private_key", _UNIFFI_CALLBACK_INTERFACE_EXTERNAL_SIGNER_METHOD11),
941
- ("get_static_deposit_public_key", _UNIFFI_CALLBACK_INTERFACE_EXTERNAL_SIGNER_METHOD12),
942
- ("subtract_private_keys", _UNIFFI_CALLBACK_INTERFACE_EXTERNAL_SIGNER_METHOD13),
943
- ("split_secret", _UNIFFI_CALLBACK_INTERFACE_EXTERNAL_SIGNER_METHOD14),
944
- ("encrypt_private_key_for_receiver", _UNIFFI_CALLBACK_INTERFACE_EXTERNAL_SIGNER_METHOD15),
945
- ("get_public_key_from_private_key_source", _UNIFFI_CALLBACK_INTERFACE_EXTERNAL_SIGNER_METHOD16),
946
- ("sign_frost", _UNIFFI_CALLBACK_INTERFACE_EXTERNAL_SIGNER_METHOD17),
947
- ("aggregate_frost_signatures", _UNIFFI_CALLBACK_INTERFACE_EXTERNAL_SIGNER_METHOD18),
942
+ ("hmac_sha256", _UNIFFI_CALLBACK_INTERFACE_EXTERNAL_SIGNER_METHOD7),
943
+ ("generate_random_signing_commitment", _UNIFFI_CALLBACK_INTERFACE_EXTERNAL_SIGNER_METHOD8),
944
+ ("get_public_key_for_node", _UNIFFI_CALLBACK_INTERFACE_EXTERNAL_SIGNER_METHOD9),
945
+ ("generate_random_key", _UNIFFI_CALLBACK_INTERFACE_EXTERNAL_SIGNER_METHOD10),
946
+ ("static_deposit_secret_encrypted", _UNIFFI_CALLBACK_INTERFACE_EXTERNAL_SIGNER_METHOD11),
947
+ ("static_deposit_secret", _UNIFFI_CALLBACK_INTERFACE_EXTERNAL_SIGNER_METHOD12),
948
+ ("static_deposit_signing_key", _UNIFFI_CALLBACK_INTERFACE_EXTERNAL_SIGNER_METHOD13),
949
+ ("subtract_secrets", _UNIFFI_CALLBACK_INTERFACE_EXTERNAL_SIGNER_METHOD14),
950
+ ("split_secret_with_proofs", _UNIFFI_CALLBACK_INTERFACE_EXTERNAL_SIGNER_METHOD15),
951
+ ("encrypt_secret_for_receiver", _UNIFFI_CALLBACK_INTERFACE_EXTERNAL_SIGNER_METHOD16),
952
+ ("public_key_from_secret", _UNIFFI_CALLBACK_INTERFACE_EXTERNAL_SIGNER_METHOD17),
953
+ ("sign_frost", _UNIFFI_CALLBACK_INTERFACE_EXTERNAL_SIGNER_METHOD18),
954
+ ("aggregate_frost", _UNIFFI_CALLBACK_INTERFACE_EXTERNAL_SIGNER_METHOD19),
948
955
  ("uniffi_free", _UNIFFI_CALLBACK_INTERFACE_FREE),
949
956
  ]
950
957
  class _UniffiVTableCallbackInterfaceFiatService(ctypes.Structure):
@@ -1137,6 +1144,11 @@ _UniffiLib.uniffi_breez_sdk_spark_fn_method_breezsdk_list_unclaimed_deposits.arg
1137
1144
  _UniffiRustBuffer,
1138
1145
  )
1139
1146
  _UniffiLib.uniffi_breez_sdk_spark_fn_method_breezsdk_list_unclaimed_deposits.restype = ctypes.c_uint64
1147
+ _UniffiLib.uniffi_breez_sdk_spark_fn_method_breezsdk_lnurl_auth.argtypes = (
1148
+ ctypes.c_void_p,
1149
+ _UniffiRustBuffer,
1150
+ )
1151
+ _UniffiLib.uniffi_breez_sdk_spark_fn_method_breezsdk_lnurl_auth.restype = ctypes.c_uint64
1140
1152
  _UniffiLib.uniffi_breez_sdk_spark_fn_method_breezsdk_lnurl_pay.argtypes = (
1141
1153
  ctypes.c_void_p,
1142
1154
  _UniffiRustBuffer,
@@ -1247,28 +1259,34 @@ _UniffiLib.uniffi_breez_sdk_spark_fn_method_externalsigner_sign_ecdsa_recoverabl
1247
1259
  _UniffiRustBuffer,
1248
1260
  )
1249
1261
  _UniffiLib.uniffi_breez_sdk_spark_fn_method_externalsigner_sign_ecdsa_recoverable.restype = ctypes.c_uint64
1250
- _UniffiLib.uniffi_breez_sdk_spark_fn_method_externalsigner_ecies_encrypt.argtypes = (
1262
+ _UniffiLib.uniffi_breez_sdk_spark_fn_method_externalsigner_encrypt_ecies.argtypes = (
1251
1263
  ctypes.c_void_p,
1252
1264
  _UniffiRustBuffer,
1253
1265
  _UniffiRustBuffer,
1254
1266
  )
1255
- _UniffiLib.uniffi_breez_sdk_spark_fn_method_externalsigner_ecies_encrypt.restype = ctypes.c_uint64
1256
- _UniffiLib.uniffi_breez_sdk_spark_fn_method_externalsigner_ecies_decrypt.argtypes = (
1267
+ _UniffiLib.uniffi_breez_sdk_spark_fn_method_externalsigner_encrypt_ecies.restype = ctypes.c_uint64
1268
+ _UniffiLib.uniffi_breez_sdk_spark_fn_method_externalsigner_decrypt_ecies.argtypes = (
1257
1269
  ctypes.c_void_p,
1258
1270
  _UniffiRustBuffer,
1259
1271
  _UniffiRustBuffer,
1260
1272
  )
1261
- _UniffiLib.uniffi_breez_sdk_spark_fn_method_externalsigner_ecies_decrypt.restype = ctypes.c_uint64
1273
+ _UniffiLib.uniffi_breez_sdk_spark_fn_method_externalsigner_decrypt_ecies.restype = ctypes.c_uint64
1262
1274
  _UniffiLib.uniffi_breez_sdk_spark_fn_method_externalsigner_sign_hash_schnorr.argtypes = (
1263
1275
  ctypes.c_void_p,
1264
1276
  _UniffiRustBuffer,
1265
1277
  _UniffiRustBuffer,
1266
1278
  )
1267
1279
  _UniffiLib.uniffi_breez_sdk_spark_fn_method_externalsigner_sign_hash_schnorr.restype = ctypes.c_uint64
1268
- _UniffiLib.uniffi_breez_sdk_spark_fn_method_externalsigner_generate_frost_signing_commitments.argtypes = (
1280
+ _UniffiLib.uniffi_breez_sdk_spark_fn_method_externalsigner_hmac_sha256.argtypes = (
1281
+ ctypes.c_void_p,
1282
+ _UniffiRustBuffer,
1283
+ _UniffiRustBuffer,
1284
+ )
1285
+ _UniffiLib.uniffi_breez_sdk_spark_fn_method_externalsigner_hmac_sha256.restype = ctypes.c_uint64
1286
+ _UniffiLib.uniffi_breez_sdk_spark_fn_method_externalsigner_generate_random_signing_commitment.argtypes = (
1269
1287
  ctypes.c_void_p,
1270
1288
  )
1271
- _UniffiLib.uniffi_breez_sdk_spark_fn_method_externalsigner_generate_frost_signing_commitments.restype = ctypes.c_uint64
1289
+ _UniffiLib.uniffi_breez_sdk_spark_fn_method_externalsigner_generate_random_signing_commitment.restype = ctypes.c_uint64
1272
1290
  _UniffiLib.uniffi_breez_sdk_spark_fn_method_externalsigner_get_public_key_for_node.argtypes = (
1273
1291
  ctypes.c_void_p,
1274
1292
  _UniffiRustBuffer,
@@ -1278,55 +1296,55 @@ _UniffiLib.uniffi_breez_sdk_spark_fn_method_externalsigner_generate_random_key.a
1278
1296
  ctypes.c_void_p,
1279
1297
  )
1280
1298
  _UniffiLib.uniffi_breez_sdk_spark_fn_method_externalsigner_generate_random_key.restype = ctypes.c_uint64
1281
- _UniffiLib.uniffi_breez_sdk_spark_fn_method_externalsigner_get_static_deposit_private_key_source.argtypes = (
1299
+ _UniffiLib.uniffi_breez_sdk_spark_fn_method_externalsigner_static_deposit_secret_encrypted.argtypes = (
1282
1300
  ctypes.c_void_p,
1283
1301
  ctypes.c_uint32,
1284
1302
  )
1285
- _UniffiLib.uniffi_breez_sdk_spark_fn_method_externalsigner_get_static_deposit_private_key_source.restype = ctypes.c_uint64
1286
- _UniffiLib.uniffi_breez_sdk_spark_fn_method_externalsigner_get_static_deposit_private_key.argtypes = (
1303
+ _UniffiLib.uniffi_breez_sdk_spark_fn_method_externalsigner_static_deposit_secret_encrypted.restype = ctypes.c_uint64
1304
+ _UniffiLib.uniffi_breez_sdk_spark_fn_method_externalsigner_static_deposit_secret.argtypes = (
1287
1305
  ctypes.c_void_p,
1288
1306
  ctypes.c_uint32,
1289
1307
  )
1290
- _UniffiLib.uniffi_breez_sdk_spark_fn_method_externalsigner_get_static_deposit_private_key.restype = ctypes.c_uint64
1291
- _UniffiLib.uniffi_breez_sdk_spark_fn_method_externalsigner_get_static_deposit_public_key.argtypes = (
1308
+ _UniffiLib.uniffi_breez_sdk_spark_fn_method_externalsigner_static_deposit_secret.restype = ctypes.c_uint64
1309
+ _UniffiLib.uniffi_breez_sdk_spark_fn_method_externalsigner_static_deposit_signing_key.argtypes = (
1292
1310
  ctypes.c_void_p,
1293
1311
  ctypes.c_uint32,
1294
1312
  )
1295
- _UniffiLib.uniffi_breez_sdk_spark_fn_method_externalsigner_get_static_deposit_public_key.restype = ctypes.c_uint64
1296
- _UniffiLib.uniffi_breez_sdk_spark_fn_method_externalsigner_subtract_private_keys.argtypes = (
1313
+ _UniffiLib.uniffi_breez_sdk_spark_fn_method_externalsigner_static_deposit_signing_key.restype = ctypes.c_uint64
1314
+ _UniffiLib.uniffi_breez_sdk_spark_fn_method_externalsigner_subtract_secrets.argtypes = (
1297
1315
  ctypes.c_void_p,
1298
1316
  _UniffiRustBuffer,
1299
1317
  _UniffiRustBuffer,
1300
1318
  )
1301
- _UniffiLib.uniffi_breez_sdk_spark_fn_method_externalsigner_subtract_private_keys.restype = ctypes.c_uint64
1302
- _UniffiLib.uniffi_breez_sdk_spark_fn_method_externalsigner_split_secret.argtypes = (
1319
+ _UniffiLib.uniffi_breez_sdk_spark_fn_method_externalsigner_subtract_secrets.restype = ctypes.c_uint64
1320
+ _UniffiLib.uniffi_breez_sdk_spark_fn_method_externalsigner_split_secret_with_proofs.argtypes = (
1303
1321
  ctypes.c_void_p,
1304
1322
  _UniffiRustBuffer,
1305
1323
  ctypes.c_uint32,
1306
1324
  ctypes.c_uint32,
1307
1325
  )
1308
- _UniffiLib.uniffi_breez_sdk_spark_fn_method_externalsigner_split_secret.restype = ctypes.c_uint64
1309
- _UniffiLib.uniffi_breez_sdk_spark_fn_method_externalsigner_encrypt_private_key_for_receiver.argtypes = (
1326
+ _UniffiLib.uniffi_breez_sdk_spark_fn_method_externalsigner_split_secret_with_proofs.restype = ctypes.c_uint64
1327
+ _UniffiLib.uniffi_breez_sdk_spark_fn_method_externalsigner_encrypt_secret_for_receiver.argtypes = (
1310
1328
  ctypes.c_void_p,
1311
1329
  _UniffiRustBuffer,
1312
1330
  _UniffiRustBuffer,
1313
1331
  )
1314
- _UniffiLib.uniffi_breez_sdk_spark_fn_method_externalsigner_encrypt_private_key_for_receiver.restype = ctypes.c_uint64
1315
- _UniffiLib.uniffi_breez_sdk_spark_fn_method_externalsigner_get_public_key_from_private_key_source.argtypes = (
1332
+ _UniffiLib.uniffi_breez_sdk_spark_fn_method_externalsigner_encrypt_secret_for_receiver.restype = ctypes.c_uint64
1333
+ _UniffiLib.uniffi_breez_sdk_spark_fn_method_externalsigner_public_key_from_secret.argtypes = (
1316
1334
  ctypes.c_void_p,
1317
1335
  _UniffiRustBuffer,
1318
1336
  )
1319
- _UniffiLib.uniffi_breez_sdk_spark_fn_method_externalsigner_get_public_key_from_private_key_source.restype = ctypes.c_uint64
1337
+ _UniffiLib.uniffi_breez_sdk_spark_fn_method_externalsigner_public_key_from_secret.restype = ctypes.c_uint64
1320
1338
  _UniffiLib.uniffi_breez_sdk_spark_fn_method_externalsigner_sign_frost.argtypes = (
1321
1339
  ctypes.c_void_p,
1322
1340
  _UniffiRustBuffer,
1323
1341
  )
1324
1342
  _UniffiLib.uniffi_breez_sdk_spark_fn_method_externalsigner_sign_frost.restype = ctypes.c_uint64
1325
- _UniffiLib.uniffi_breez_sdk_spark_fn_method_externalsigner_aggregate_frost_signatures.argtypes = (
1343
+ _UniffiLib.uniffi_breez_sdk_spark_fn_method_externalsigner_aggregate_frost.argtypes = (
1326
1344
  ctypes.c_void_p,
1327
1345
  _UniffiRustBuffer,
1328
1346
  )
1329
- _UniffiLib.uniffi_breez_sdk_spark_fn_method_externalsigner_aggregate_frost_signatures.restype = ctypes.c_uint64
1347
+ _UniffiLib.uniffi_breez_sdk_spark_fn_method_externalsigner_aggregate_frost.restype = ctypes.c_uint64
1330
1348
  _UniffiLib.uniffi_breez_sdk_spark_fn_clone_fiatservice.argtypes = (
1331
1349
  ctypes.c_void_p,
1332
1350
  ctypes.POINTER(_UniffiRustCallStatus),
@@ -2053,6 +2071,9 @@ _UniffiLib.uniffi_breez_sdk_spark_checksum_method_breezsdk_list_payments.restype
2053
2071
  _UniffiLib.uniffi_breez_sdk_spark_checksum_method_breezsdk_list_unclaimed_deposits.argtypes = (
2054
2072
  )
2055
2073
  _UniffiLib.uniffi_breez_sdk_spark_checksum_method_breezsdk_list_unclaimed_deposits.restype = ctypes.c_uint16
2074
+ _UniffiLib.uniffi_breez_sdk_spark_checksum_method_breezsdk_lnurl_auth.argtypes = (
2075
+ )
2076
+ _UniffiLib.uniffi_breez_sdk_spark_checksum_method_breezsdk_lnurl_auth.restype = ctypes.c_uint16
2056
2077
  _UniffiLib.uniffi_breez_sdk_spark_checksum_method_breezsdk_lnurl_pay.argtypes = (
2057
2078
  )
2058
2079
  _UniffiLib.uniffi_breez_sdk_spark_checksum_method_breezsdk_lnurl_pay.restype = ctypes.c_uint16
@@ -2110,51 +2131,54 @@ _UniffiLib.uniffi_breez_sdk_spark_checksum_method_externalsigner_sign_ecdsa.rest
2110
2131
  _UniffiLib.uniffi_breez_sdk_spark_checksum_method_externalsigner_sign_ecdsa_recoverable.argtypes = (
2111
2132
  )
2112
2133
  _UniffiLib.uniffi_breez_sdk_spark_checksum_method_externalsigner_sign_ecdsa_recoverable.restype = ctypes.c_uint16
2113
- _UniffiLib.uniffi_breez_sdk_spark_checksum_method_externalsigner_ecies_encrypt.argtypes = (
2134
+ _UniffiLib.uniffi_breez_sdk_spark_checksum_method_externalsigner_encrypt_ecies.argtypes = (
2114
2135
  )
2115
- _UniffiLib.uniffi_breez_sdk_spark_checksum_method_externalsigner_ecies_encrypt.restype = ctypes.c_uint16
2116
- _UniffiLib.uniffi_breez_sdk_spark_checksum_method_externalsigner_ecies_decrypt.argtypes = (
2136
+ _UniffiLib.uniffi_breez_sdk_spark_checksum_method_externalsigner_encrypt_ecies.restype = ctypes.c_uint16
2137
+ _UniffiLib.uniffi_breez_sdk_spark_checksum_method_externalsigner_decrypt_ecies.argtypes = (
2117
2138
  )
2118
- _UniffiLib.uniffi_breez_sdk_spark_checksum_method_externalsigner_ecies_decrypt.restype = ctypes.c_uint16
2139
+ _UniffiLib.uniffi_breez_sdk_spark_checksum_method_externalsigner_decrypt_ecies.restype = ctypes.c_uint16
2119
2140
  _UniffiLib.uniffi_breez_sdk_spark_checksum_method_externalsigner_sign_hash_schnorr.argtypes = (
2120
2141
  )
2121
2142
  _UniffiLib.uniffi_breez_sdk_spark_checksum_method_externalsigner_sign_hash_schnorr.restype = ctypes.c_uint16
2122
- _UniffiLib.uniffi_breez_sdk_spark_checksum_method_externalsigner_generate_frost_signing_commitments.argtypes = (
2143
+ _UniffiLib.uniffi_breez_sdk_spark_checksum_method_externalsigner_hmac_sha256.argtypes = (
2144
+ )
2145
+ _UniffiLib.uniffi_breez_sdk_spark_checksum_method_externalsigner_hmac_sha256.restype = ctypes.c_uint16
2146
+ _UniffiLib.uniffi_breez_sdk_spark_checksum_method_externalsigner_generate_random_signing_commitment.argtypes = (
2123
2147
  )
2124
- _UniffiLib.uniffi_breez_sdk_spark_checksum_method_externalsigner_generate_frost_signing_commitments.restype = ctypes.c_uint16
2148
+ _UniffiLib.uniffi_breez_sdk_spark_checksum_method_externalsigner_generate_random_signing_commitment.restype = ctypes.c_uint16
2125
2149
  _UniffiLib.uniffi_breez_sdk_spark_checksum_method_externalsigner_get_public_key_for_node.argtypes = (
2126
2150
  )
2127
2151
  _UniffiLib.uniffi_breez_sdk_spark_checksum_method_externalsigner_get_public_key_for_node.restype = ctypes.c_uint16
2128
2152
  _UniffiLib.uniffi_breez_sdk_spark_checksum_method_externalsigner_generate_random_key.argtypes = (
2129
2153
  )
2130
2154
  _UniffiLib.uniffi_breez_sdk_spark_checksum_method_externalsigner_generate_random_key.restype = ctypes.c_uint16
2131
- _UniffiLib.uniffi_breez_sdk_spark_checksum_method_externalsigner_get_static_deposit_private_key_source.argtypes = (
2155
+ _UniffiLib.uniffi_breez_sdk_spark_checksum_method_externalsigner_static_deposit_secret_encrypted.argtypes = (
2132
2156
  )
2133
- _UniffiLib.uniffi_breez_sdk_spark_checksum_method_externalsigner_get_static_deposit_private_key_source.restype = ctypes.c_uint16
2134
- _UniffiLib.uniffi_breez_sdk_spark_checksum_method_externalsigner_get_static_deposit_private_key.argtypes = (
2157
+ _UniffiLib.uniffi_breez_sdk_spark_checksum_method_externalsigner_static_deposit_secret_encrypted.restype = ctypes.c_uint16
2158
+ _UniffiLib.uniffi_breez_sdk_spark_checksum_method_externalsigner_static_deposit_secret.argtypes = (
2135
2159
  )
2136
- _UniffiLib.uniffi_breez_sdk_spark_checksum_method_externalsigner_get_static_deposit_private_key.restype = ctypes.c_uint16
2137
- _UniffiLib.uniffi_breez_sdk_spark_checksum_method_externalsigner_get_static_deposit_public_key.argtypes = (
2160
+ _UniffiLib.uniffi_breez_sdk_spark_checksum_method_externalsigner_static_deposit_secret.restype = ctypes.c_uint16
2161
+ _UniffiLib.uniffi_breez_sdk_spark_checksum_method_externalsigner_static_deposit_signing_key.argtypes = (
2138
2162
  )
2139
- _UniffiLib.uniffi_breez_sdk_spark_checksum_method_externalsigner_get_static_deposit_public_key.restype = ctypes.c_uint16
2140
- _UniffiLib.uniffi_breez_sdk_spark_checksum_method_externalsigner_subtract_private_keys.argtypes = (
2163
+ _UniffiLib.uniffi_breez_sdk_spark_checksum_method_externalsigner_static_deposit_signing_key.restype = ctypes.c_uint16
2164
+ _UniffiLib.uniffi_breez_sdk_spark_checksum_method_externalsigner_subtract_secrets.argtypes = (
2141
2165
  )
2142
- _UniffiLib.uniffi_breez_sdk_spark_checksum_method_externalsigner_subtract_private_keys.restype = ctypes.c_uint16
2143
- _UniffiLib.uniffi_breez_sdk_spark_checksum_method_externalsigner_split_secret.argtypes = (
2166
+ _UniffiLib.uniffi_breez_sdk_spark_checksum_method_externalsigner_subtract_secrets.restype = ctypes.c_uint16
2167
+ _UniffiLib.uniffi_breez_sdk_spark_checksum_method_externalsigner_split_secret_with_proofs.argtypes = (
2144
2168
  )
2145
- _UniffiLib.uniffi_breez_sdk_spark_checksum_method_externalsigner_split_secret.restype = ctypes.c_uint16
2146
- _UniffiLib.uniffi_breez_sdk_spark_checksum_method_externalsigner_encrypt_private_key_for_receiver.argtypes = (
2169
+ _UniffiLib.uniffi_breez_sdk_spark_checksum_method_externalsigner_split_secret_with_proofs.restype = ctypes.c_uint16
2170
+ _UniffiLib.uniffi_breez_sdk_spark_checksum_method_externalsigner_encrypt_secret_for_receiver.argtypes = (
2147
2171
  )
2148
- _UniffiLib.uniffi_breez_sdk_spark_checksum_method_externalsigner_encrypt_private_key_for_receiver.restype = ctypes.c_uint16
2149
- _UniffiLib.uniffi_breez_sdk_spark_checksum_method_externalsigner_get_public_key_from_private_key_source.argtypes = (
2172
+ _UniffiLib.uniffi_breez_sdk_spark_checksum_method_externalsigner_encrypt_secret_for_receiver.restype = ctypes.c_uint16
2173
+ _UniffiLib.uniffi_breez_sdk_spark_checksum_method_externalsigner_public_key_from_secret.argtypes = (
2150
2174
  )
2151
- _UniffiLib.uniffi_breez_sdk_spark_checksum_method_externalsigner_get_public_key_from_private_key_source.restype = ctypes.c_uint16
2175
+ _UniffiLib.uniffi_breez_sdk_spark_checksum_method_externalsigner_public_key_from_secret.restype = ctypes.c_uint16
2152
2176
  _UniffiLib.uniffi_breez_sdk_spark_checksum_method_externalsigner_sign_frost.argtypes = (
2153
2177
  )
2154
2178
  _UniffiLib.uniffi_breez_sdk_spark_checksum_method_externalsigner_sign_frost.restype = ctypes.c_uint16
2155
- _UniffiLib.uniffi_breez_sdk_spark_checksum_method_externalsigner_aggregate_frost_signatures.argtypes = (
2179
+ _UniffiLib.uniffi_breez_sdk_spark_checksum_method_externalsigner_aggregate_frost.argtypes = (
2156
2180
  )
2157
- _UniffiLib.uniffi_breez_sdk_spark_checksum_method_externalsigner_aggregate_frost_signatures.restype = ctypes.c_uint16
2181
+ _UniffiLib.uniffi_breez_sdk_spark_checksum_method_externalsigner_aggregate_frost.restype = ctypes.c_uint16
2158
2182
  _UniffiLib.uniffi_breez_sdk_spark_checksum_method_fiatservice_fetch_fiat_currencies.argtypes = (
2159
2183
  )
2160
2184
  _UniffiLib.uniffi_breez_sdk_spark_checksum_method_fiatservice_fetch_fiat_currencies.restype = ctypes.c_uint16
@@ -2977,6 +3001,58 @@ class BreezSdkProtocol(typing.Protocol):
2977
3001
 
2978
3002
  raise NotImplementedError
2979
3003
  def list_unclaimed_deposits(self, request: "ListUnclaimedDepositsRequest"):
3004
+ raise NotImplementedError
3005
+ def lnurl_auth(self, request_data: "LnurlAuthRequestDetails"):
3006
+ """
3007
+ Performs LNURL-auth with the service.
3008
+
3009
+ This method implements the LNURL-auth protocol as specified in LUD-04 and LUD-05.
3010
+ It derives a domain-specific linking key, signs the challenge, and sends the
3011
+ authentication request to the service.
3012
+
3013
+ # Arguments
3014
+
3015
+ * `request_data` - The parsed LNURL-auth request details obtained from [`parse`]
3016
+
3017
+ # Returns
3018
+
3019
+ * `Ok(LnurlCallbackStatus::Ok)` - Authentication was successful
3020
+ * `Ok(LnurlCallbackStatus::ErrorStatus{reason})` - Service returned an error
3021
+ * `Err(SdkError)` - An error occurred during the authentication process
3022
+
3023
+ # Example
3024
+
3025
+ ```rust,no_run
3026
+ # use breez_sdk_spark::{BreezSdk, InputType};
3027
+ # async fn example(sdk: BreezSdk) -> Result<(), Box<dyn std::error::Error>> {
3028
+ // 1. Parse the LNURL-auth string
3029
+ let input = sdk.parse("lnurl1...").await?;
3030
+ let auth_request = match input {
3031
+ InputType::LnurlAuth(data) => data,
3032
+ _ => return Err("Not an auth request".into()),
3033
+ };
3034
+
3035
+ // 2. Show user the domain and get confirmation
3036
+ println!("Authenticate with {}?", auth_request.domain);
3037
+
3038
+ // 3. Perform authentication
3039
+ let status = sdk.lnurl_auth(auth_request).await?;
3040
+ match status {
3041
+ breez_sdk_spark::LnurlCallbackStatus::Ok => println!("Success!"),
3042
+ breez_sdk_spark::LnurlCallbackStatus::ErrorStatus { error_details } => {
3043
+ println!("Error: {}", error_details.reason)
3044
+ }
3045
+ }
3046
+ # Ok(())
3047
+ # }
3048
+ ```
3049
+
3050
+ # See Also
3051
+
3052
+ * LUD-04: <https://github.com/lnurl/luds/blob/luds/04.md>
3053
+ * LUD-05: <https://github.com/lnurl/luds/blob/luds/05.md>
3054
+ """
3055
+
2980
3056
  raise NotImplementedError
2981
3057
  def lnurl_pay(self, request: "LnurlPayRequest"):
2982
3058
  raise NotImplementedError
@@ -3582,6 +3658,77 @@ _UniffiConverterTypeSdkError,
3582
3658
 
3583
3659
 
3584
3660
 
3661
+ async def lnurl_auth(self, request_data: "LnurlAuthRequestDetails") -> "LnurlCallbackStatus":
3662
+ """
3663
+ Performs LNURL-auth with the service.
3664
+
3665
+ This method implements the LNURL-auth protocol as specified in LUD-04 and LUD-05.
3666
+ It derives a domain-specific linking key, signs the challenge, and sends the
3667
+ authentication request to the service.
3668
+
3669
+ # Arguments
3670
+
3671
+ * `request_data` - The parsed LNURL-auth request details obtained from [`parse`]
3672
+
3673
+ # Returns
3674
+
3675
+ * `Ok(LnurlCallbackStatus::Ok)` - Authentication was successful
3676
+ * `Ok(LnurlCallbackStatus::ErrorStatus{reason})` - Service returned an error
3677
+ * `Err(SdkError)` - An error occurred during the authentication process
3678
+
3679
+ # Example
3680
+
3681
+ ```rust,no_run
3682
+ # use breez_sdk_spark::{BreezSdk, InputType};
3683
+ # async fn example(sdk: BreezSdk) -> Result<(), Box<dyn std::error::Error>> {
3684
+ // 1. Parse the LNURL-auth string
3685
+ let input = sdk.parse("lnurl1...").await?;
3686
+ let auth_request = match input {
3687
+ InputType::LnurlAuth(data) => data,
3688
+ _ => return Err("Not an auth request".into()),
3689
+ };
3690
+
3691
+ // 2. Show user the domain and get confirmation
3692
+ println!("Authenticate with {}?", auth_request.domain);
3693
+
3694
+ // 3. Perform authentication
3695
+ let status = sdk.lnurl_auth(auth_request).await?;
3696
+ match status {
3697
+ breez_sdk_spark::LnurlCallbackStatus::Ok => println!("Success!"),
3698
+ breez_sdk_spark::LnurlCallbackStatus::ErrorStatus { error_details } => {
3699
+ println!("Error: {}", error_details.reason)
3700
+ }
3701
+ }
3702
+ # Ok(())
3703
+ # }
3704
+ ```
3705
+
3706
+ # See Also
3707
+
3708
+ * LUD-04: <https://github.com/lnurl/luds/blob/luds/04.md>
3709
+ * LUD-05: <https://github.com/lnurl/luds/blob/luds/05.md>
3710
+ """
3711
+
3712
+ _UniffiConverterTypeLnurlAuthRequestDetails.check_lower(request_data)
3713
+
3714
+ return await _uniffi_rust_call_async(
3715
+ _UniffiLib.uniffi_breez_sdk_spark_fn_method_breezsdk_lnurl_auth(
3716
+ self._uniffi_clone_pointer(),
3717
+ _UniffiConverterTypeLnurlAuthRequestDetails.lower(request_data)
3718
+ ),
3719
+ _UniffiLib.ffi_breez_sdk_spark_rust_future_poll_rust_buffer,
3720
+ _UniffiLib.ffi_breez_sdk_spark_rust_future_complete_rust_buffer,
3721
+ _UniffiLib.ffi_breez_sdk_spark_rust_future_free_rust_buffer,
3722
+ # lift function
3723
+ _UniffiConverterTypeLnurlCallbackStatus.lift,
3724
+
3725
+ # Error FFI converter
3726
+ _UniffiConverterTypeSdkError,
3727
+
3728
+ )
3729
+
3730
+
3731
+
3585
3732
  async def lnurl_pay(self, request: "LnurlPayRequest") -> "LnurlPayResponse":
3586
3733
  _UniffiConverterTypeLnurlPayRequest.check_lower(request)
3587
3734
 
@@ -4002,6 +4149,8 @@ class ExternalSigner(typing.Protocol):
4002
4149
  def identity_public_key(self, ):
4003
4150
  """
4004
4151
  Returns the identity public key as 33 bytes (compressed secp256k1 key).
4152
+
4153
+ See also: [JavaScript `getIdentityPublicKey`](https://docs.spark.money/wallets/spark-signer#get-identity-public-key)
4005
4154
  """
4006
4155
 
4007
4156
  raise NotImplementedError
@@ -4014,15 +4163,19 @@ class ExternalSigner(typing.Protocol):
4014
4163
 
4015
4164
  # Returns
4016
4165
  The derived public key as 33 bytes, or a `SignerError`
4166
+
4167
+ See also: [JavaScript `getPublicKeyFromDerivation`](https://docs.spark.money/wallets/spark-signer#get-public-key-from-derivation)
4017
4168
  """
4018
4169
 
4019
4170
  raise NotImplementedError
4020
- def sign_ecdsa(self, message: "bytes",path: "str"):
4171
+ def sign_ecdsa(self, message: "MessageBytes",path: "str"):
4021
4172
  """
4022
4173
  Signs a message using ECDSA at the given derivation path.
4023
4174
 
4175
+ The message should be a 32-byte digest (typically a hash of the original data).
4176
+
4024
4177
  # Arguments
4025
- * `message` - The message to sign
4178
+ * `message` - The 32-byte message digest to sign
4026
4179
  * `path` - BIP32 derivation path as a string
4027
4180
 
4028
4181
  # Returns
@@ -4030,12 +4183,14 @@ class ExternalSigner(typing.Protocol):
4030
4183
  """
4031
4184
 
4032
4185
  raise NotImplementedError
4033
- def sign_ecdsa_recoverable(self, message: "bytes",path: "str"):
4186
+ def sign_ecdsa_recoverable(self, message: "MessageBytes",path: "str"):
4034
4187
  """
4035
4188
  Signs a message using recoverable ECDSA at the given derivation path.
4036
4189
 
4190
+ The message should be a 32-byte digest (typically a hash of the original data).
4191
+
4037
4192
  # Arguments
4038
- * `message` - The message to sign (will be double-SHA256 hashed)
4193
+ * `message` - The 32-byte message digest to sign
4039
4194
  * `path` - BIP32 derivation path as a string
4040
4195
 
4041
4196
  # Returns
@@ -4043,7 +4198,7 @@ class ExternalSigner(typing.Protocol):
4043
4198
  """
4044
4199
 
4045
4200
  raise NotImplementedError
4046
- def ecies_encrypt(self, message: "bytes",path: "str"):
4201
+ def encrypt_ecies(self, message: "bytes",path: "str"):
4047
4202
  """
4048
4203
  Encrypts a message using ECIES at the given derivation path.
4049
4204
 
@@ -4056,7 +4211,7 @@ class ExternalSigner(typing.Protocol):
4056
4211
  """
4057
4212
 
4058
4213
  raise NotImplementedError
4059
- def ecies_decrypt(self, message: "bytes",path: "str"):
4214
+ def decrypt_ecies(self, message: "bytes",path: "str"):
4060
4215
  """
4061
4216
  Decrypts a message using ECIES at the given derivation path.
4062
4217
 
@@ -4066,6 +4221,8 @@ class ExternalSigner(typing.Protocol):
4066
4221
 
4067
4222
  # Returns
4068
4223
  Decrypted data, or a `SignerError`
4224
+
4225
+ See also: [JavaScript `decryptEcies`](https://docs.spark.money/wallets/spark-signer#decrypt-ecies)
4069
4226
  """
4070
4227
 
4071
4228
  raise NotImplementedError
@@ -4082,12 +4239,29 @@ class ExternalSigner(typing.Protocol):
4082
4239
  """
4083
4240
 
4084
4241
  raise NotImplementedError
4085
- def generate_frost_signing_commitments(self, ):
4242
+ def hmac_sha256(self, message: "bytes",path: "str"):
4243
+ """
4244
+ HMAC-SHA256 of a message at the given derivation path.
4245
+
4246
+ # Arguments
4247
+ * `message` - The message to hash
4248
+ * `path` - BIP32 derivation path as a string
4249
+
4250
+ # Returns
4251
+ 32-byte HMAC-SHA256, or a `SignerError`
4252
+
4253
+ See also: [JavaScript `htlcHMAC`](https://docs.spark.money/wallets/spark-signer#generate-htlc-hmac)
4254
+ """
4255
+
4256
+ raise NotImplementedError
4257
+ def generate_random_signing_commitment(self, ):
4086
4258
  """
4087
4259
  Generates Frost signing commitments for multi-party signing.
4088
4260
 
4089
4261
  # Returns
4090
4262
  Frost commitments with nonces, or a `SignerError`
4263
+
4264
+ See also: [JavaScript `getRandomSigningCommitment`](https://docs.spark.money/wallets/spark-signer#get-random-signing-commitment)
4091
4265
  """
4092
4266
 
4093
4267
  raise NotImplementedError
@@ -4105,38 +4279,42 @@ class ExternalSigner(typing.Protocol):
4105
4279
  raise NotImplementedError
4106
4280
  def generate_random_key(self, ):
4107
4281
  """
4108
- Generates a random private key.
4282
+ Generates a random secret.
4109
4283
 
4110
4284
  # Returns
4111
- A randomly generated private key source, or an error string
4285
+ A randomly generated secret source, or an error string
4112
4286
  """
4113
4287
 
4114
4288
  raise NotImplementedError
4115
- def get_static_deposit_private_key_source(self, index: "int"):
4289
+ def static_deposit_secret_encrypted(self, index: "int"):
4116
4290
  """
4117
- Gets a static deposit private key source by index.
4291
+ Gets an encrypted static deposit secret by index.
4118
4292
 
4119
4293
  # Arguments
4120
4294
  * `index` - The index of the static deposit key
4121
4295
 
4122
4296
  # Returns
4123
- The private key source, or an error string
4297
+ The encrypted secret source, or an error string
4298
+
4299
+ This is the encrypted version of: [JavaScript `getStaticDepositSecretKey`](https://docs.spark.money/wallets/spark-signer#get-static-deposit-secret-key)
4124
4300
  """
4125
4301
 
4126
4302
  raise NotImplementedError
4127
- def get_static_deposit_private_key(self, index: "int"):
4303
+ def static_deposit_secret(self, index: "int"):
4128
4304
  """
4129
- Gets a static deposit private key by index.
4305
+ Gets a static deposit secret by index.
4130
4306
 
4131
4307
  # Arguments
4132
4308
  * `index` - The index of the static deposit key
4133
4309
 
4134
4310
  # Returns
4135
- The 32-byte private key, or an error string
4311
+ The 32-byte secret, or an error string
4312
+
4313
+ See also: [JavaScript `getStaticDepositSecretKey`](https://docs.spark.money/wallets/spark-signer#get-static-deposit-secret-key)
4136
4314
  """
4137
4315
 
4138
4316
  raise NotImplementedError
4139
- def get_static_deposit_public_key(self, index: "int"):
4317
+ def static_deposit_signing_key(self, index: "int"):
4140
4318
  """
4141
4319
  Gets a static deposit public key by index.
4142
4320
 
@@ -4145,23 +4323,28 @@ class ExternalSigner(typing.Protocol):
4145
4323
 
4146
4324
  # Returns
4147
4325
  The 33-byte public key, or an error string
4326
+
4327
+ See also: [JavaScript `getStaticDepositSigningKey`](https://docs.spark.money/wallets/spark-signer#get-static-deposit-signing-key)
4148
4328
  """
4149
4329
 
4150
4330
  raise NotImplementedError
4151
- def subtract_private_keys(self, signing_key: "ExternalPrivateKeySource",new_signing_key: "ExternalPrivateKeySource"):
4331
+ def subtract_secrets(self, signing_key: "ExternalSecretSource",new_signing_key: "ExternalSecretSource"):
4152
4332
  """
4153
- Subtracts one private key from another.
4333
+ Subtracts one secret from another.
4154
4334
 
4155
4335
  # Arguments
4156
- * `signing_key` - The first private key source
4157
- * `new_signing_key` - The second private key source to subtract
4336
+ * `signing_key` - The first secret source
4337
+ * `new_signing_key` - The second secret source to subtract
4158
4338
 
4159
4339
  # Returns
4160
- The resulting private key source, or an error string
4340
+ The resulting secret source, or an error string
4341
+
4342
+ See also: [JavaScript `subtractSplitAndEncrypt`](https://docs.spark.money/wallets/spark-signer#subtract,-split,-and-encrypt)
4343
+ (this method provides the subtraction step of that higher-level operation)
4161
4344
  """
4162
4345
 
4163
4346
  raise NotImplementedError
4164
- def split_secret(self, secret: "ExternalSecretToSplit",threshold: "int",num_shares: "int"):
4347
+ def split_secret_with_proofs(self, secret: "ExternalSecretToSplit",threshold: "int",num_shares: "int"):
4165
4348
  """
4166
4349
  Splits a secret with proofs using Shamir's Secret Sharing.
4167
4350
 
@@ -4172,15 +4355,17 @@ class ExternalSigner(typing.Protocol):
4172
4355
 
4173
4356
  # Returns
4174
4357
  Vector of verifiable secret shares, or an error string
4358
+
4359
+ See also: [JavaScript `splitSecretWithProofs`](https://docs.spark.money/wallets/spark-signer#split-secret-with-proofs)
4175
4360
  """
4176
4361
 
4177
4362
  raise NotImplementedError
4178
- def encrypt_private_key_for_receiver(self, private_key: "ExternalEncryptedPrivateKey",receiver_public_key: "PublicKeyBytes"):
4363
+ def encrypt_secret_for_receiver(self, encrypted_secret: "ExternalEncryptedSecret",receiver_public_key: "PublicKeyBytes"):
4179
4364
  """
4180
- Encrypts a private key for a specific receiver's public key.
4365
+ Encrypts a secret for a specific receiver's public key.
4181
4366
 
4182
4367
  # Arguments
4183
- * `private_key` - The encrypted private key to re-encrypt
4368
+ * `encrypted_secret` - The encrypted secret to re-encrypt
4184
4369
  * `receiver_public_key` - The receiver's 33-byte public key
4185
4370
 
4186
4371
  # Returns
@@ -4188,12 +4373,12 @@ class ExternalSigner(typing.Protocol):
4188
4373
  """
4189
4374
 
4190
4375
  raise NotImplementedError
4191
- def get_public_key_from_private_key_source(self, private_key: "ExternalPrivateKeySource"):
4376
+ def public_key_from_secret(self, secret: "ExternalSecretSource"):
4192
4377
  """
4193
- Gets the public key from a private key source.
4378
+ Gets the public key from a secret source.
4194
4379
 
4195
4380
  # Arguments
4196
- * `private_key` - The private key source
4381
+ * `secret` - The secret source
4197
4382
 
4198
4383
  # Returns
4199
4384
  The corresponding 33-byte public key, or an error string
@@ -4209,10 +4394,12 @@ class ExternalSigner(typing.Protocol):
4209
4394
 
4210
4395
  # Returns
4211
4396
  A signature share, or an error string
4397
+
4398
+ See also: [JavaScript `signFrost`](https://docs.spark.money/wallets/spark-signer#frost-signing)
4212
4399
  """
4213
4400
 
4214
4401
  raise NotImplementedError
4215
- def aggregate_frost_signatures(self, request: "ExternalAggregateFrostRequest"):
4402
+ def aggregate_frost(self, request: "ExternalAggregateFrostRequest"):
4216
4403
  """
4217
4404
  Aggregates Frost signature shares into a final signature.
4218
4405
 
@@ -4221,6 +4408,8 @@ class ExternalSigner(typing.Protocol):
4221
4408
 
4222
4409
  # Returns
4223
4410
  The aggregated Frost signature, or an error string
4411
+
4412
+ See also: [JavaScript `aggregateFrost`](https://docs.spark.money/wallets/spark-signer#aggregate-frost-signatures)
4224
4413
  """
4225
4414
 
4226
4415
  raise NotImplementedError
@@ -4268,6 +4457,8 @@ class ExternalSignerImpl:
4268
4457
  def identity_public_key(self, ) -> "PublicKeyBytes":
4269
4458
  """
4270
4459
  Returns the identity public key as 33 bytes (compressed secp256k1 key).
4460
+
4461
+ See also: [JavaScript `getIdentityPublicKey`](https://docs.spark.money/wallets/spark-signer#get-identity-public-key)
4271
4462
  """
4272
4463
 
4273
4464
  return _UniffiConverterTypePublicKeyBytes.lift(
@@ -4286,6 +4477,8 @@ class ExternalSignerImpl:
4286
4477
 
4287
4478
  # Returns
4288
4479
  The derived public key as 33 bytes, or a `SignerError`
4480
+
4481
+ See also: [JavaScript `getPublicKeyFromDerivation`](https://docs.spark.money/wallets/spark-signer#get-public-key-from-derivation)
4289
4482
  """
4290
4483
 
4291
4484
  _UniffiConverterString.check_lower(path)
@@ -4308,26 +4501,28 @@ _UniffiConverterTypeSignerError,
4308
4501
 
4309
4502
 
4310
4503
 
4311
- async def sign_ecdsa(self, message: "bytes",path: "str") -> "EcdsaSignatureBytes":
4504
+ async def sign_ecdsa(self, message: "MessageBytes",path: "str") -> "EcdsaSignatureBytes":
4312
4505
  """
4313
4506
  Signs a message using ECDSA at the given derivation path.
4314
4507
 
4508
+ The message should be a 32-byte digest (typically a hash of the original data).
4509
+
4315
4510
  # Arguments
4316
- * `message` - The message to sign
4511
+ * `message` - The 32-byte message digest to sign
4317
4512
  * `path` - BIP32 derivation path as a string
4318
4513
 
4319
4514
  # Returns
4320
4515
  64-byte compact ECDSA signature, or a `SignerError`
4321
4516
  """
4322
4517
 
4323
- _UniffiConverterBytes.check_lower(message)
4518
+ _UniffiConverterTypeMessageBytes.check_lower(message)
4324
4519
 
4325
4520
  _UniffiConverterString.check_lower(path)
4326
4521
 
4327
4522
  return await _uniffi_rust_call_async(
4328
4523
  _UniffiLib.uniffi_breez_sdk_spark_fn_method_externalsigner_sign_ecdsa(
4329
4524
  self._uniffi_clone_pointer(),
4330
- _UniffiConverterBytes.lower(message),
4525
+ _UniffiConverterTypeMessageBytes.lower(message),
4331
4526
  _UniffiConverterString.lower(path)
4332
4527
  ),
4333
4528
  _UniffiLib.ffi_breez_sdk_spark_rust_future_poll_rust_buffer,
@@ -4343,26 +4538,28 @@ _UniffiConverterTypeSignerError,
4343
4538
 
4344
4539
 
4345
4540
 
4346
- async def sign_ecdsa_recoverable(self, message: "bytes",path: "str") -> "RecoverableEcdsaSignatureBytes":
4541
+ async def sign_ecdsa_recoverable(self, message: "MessageBytes",path: "str") -> "RecoverableEcdsaSignatureBytes":
4347
4542
  """
4348
4543
  Signs a message using recoverable ECDSA at the given derivation path.
4349
4544
 
4545
+ The message should be a 32-byte digest (typically a hash of the original data).
4546
+
4350
4547
  # Arguments
4351
- * `message` - The message to sign (will be double-SHA256 hashed)
4548
+ * `message` - The 32-byte message digest to sign
4352
4549
  * `path` - BIP32 derivation path as a string
4353
4550
 
4354
4551
  # Returns
4355
4552
  65 bytes: recovery ID (31 + `recovery_id`) + 64-byte signature, or a `SignerError`
4356
4553
  """
4357
4554
 
4358
- _UniffiConverterBytes.check_lower(message)
4555
+ _UniffiConverterTypeMessageBytes.check_lower(message)
4359
4556
 
4360
4557
  _UniffiConverterString.check_lower(path)
4361
4558
 
4362
4559
  return await _uniffi_rust_call_async(
4363
4560
  _UniffiLib.uniffi_breez_sdk_spark_fn_method_externalsigner_sign_ecdsa_recoverable(
4364
4561
  self._uniffi_clone_pointer(),
4365
- _UniffiConverterBytes.lower(message),
4562
+ _UniffiConverterTypeMessageBytes.lower(message),
4366
4563
  _UniffiConverterString.lower(path)
4367
4564
  ),
4368
4565
  _UniffiLib.ffi_breez_sdk_spark_rust_future_poll_rust_buffer,
@@ -4378,7 +4575,7 @@ _UniffiConverterTypeSignerError,
4378
4575
 
4379
4576
 
4380
4577
 
4381
- async def ecies_encrypt(self, message: "bytes",path: "str") -> "bytes":
4578
+ async def encrypt_ecies(self, message: "bytes",path: "str") -> "bytes":
4382
4579
  """
4383
4580
  Encrypts a message using ECIES at the given derivation path.
4384
4581
 
@@ -4395,7 +4592,7 @@ _UniffiConverterTypeSignerError,
4395
4592
  _UniffiConverterString.check_lower(path)
4396
4593
 
4397
4594
  return await _uniffi_rust_call_async(
4398
- _UniffiLib.uniffi_breez_sdk_spark_fn_method_externalsigner_ecies_encrypt(
4595
+ _UniffiLib.uniffi_breez_sdk_spark_fn_method_externalsigner_encrypt_ecies(
4399
4596
  self._uniffi_clone_pointer(),
4400
4597
  _UniffiConverterBytes.lower(message),
4401
4598
  _UniffiConverterString.lower(path)
@@ -4413,7 +4610,7 @@ _UniffiConverterTypeSignerError,
4413
4610
 
4414
4611
 
4415
4612
 
4416
- async def ecies_decrypt(self, message: "bytes",path: "str") -> "bytes":
4613
+ async def decrypt_ecies(self, message: "bytes",path: "str") -> "bytes":
4417
4614
  """
4418
4615
  Decrypts a message using ECIES at the given derivation path.
4419
4616
 
@@ -4423,6 +4620,8 @@ _UniffiConverterTypeSignerError,
4423
4620
 
4424
4621
  # Returns
4425
4622
  Decrypted data, or a `SignerError`
4623
+
4624
+ See also: [JavaScript `decryptEcies`](https://docs.spark.money/wallets/spark-signer#decrypt-ecies)
4426
4625
  """
4427
4626
 
4428
4627
  _UniffiConverterBytes.check_lower(message)
@@ -4430,7 +4629,7 @@ _UniffiConverterTypeSignerError,
4430
4629
  _UniffiConverterString.check_lower(path)
4431
4630
 
4432
4631
  return await _uniffi_rust_call_async(
4433
- _UniffiLib.uniffi_breez_sdk_spark_fn_method_externalsigner_ecies_decrypt(
4632
+ _UniffiLib.uniffi_breez_sdk_spark_fn_method_externalsigner_decrypt_ecies(
4434
4633
  self._uniffi_clone_pointer(),
4435
4634
  _UniffiConverterBytes.lower(message),
4436
4635
  _UniffiConverterString.lower(path)
@@ -4483,16 +4682,55 @@ _UniffiConverterTypeSignerError,
4483
4682
 
4484
4683
 
4485
4684
 
4486
- async def generate_frost_signing_commitments(self, ) -> "ExternalFrostCommitments":
4685
+ async def hmac_sha256(self, message: "bytes",path: "str") -> "HashedMessageBytes":
4686
+ """
4687
+ HMAC-SHA256 of a message at the given derivation path.
4688
+
4689
+ # Arguments
4690
+ * `message` - The message to hash
4691
+ * `path` - BIP32 derivation path as a string
4692
+
4693
+ # Returns
4694
+ 32-byte HMAC-SHA256, or a `SignerError`
4695
+
4696
+ See also: [JavaScript `htlcHMAC`](https://docs.spark.money/wallets/spark-signer#generate-htlc-hmac)
4697
+ """
4698
+
4699
+ _UniffiConverterBytes.check_lower(message)
4700
+
4701
+ _UniffiConverterString.check_lower(path)
4702
+
4703
+ return await _uniffi_rust_call_async(
4704
+ _UniffiLib.uniffi_breez_sdk_spark_fn_method_externalsigner_hmac_sha256(
4705
+ self._uniffi_clone_pointer(),
4706
+ _UniffiConverterBytes.lower(message),
4707
+ _UniffiConverterString.lower(path)
4708
+ ),
4709
+ _UniffiLib.ffi_breez_sdk_spark_rust_future_poll_rust_buffer,
4710
+ _UniffiLib.ffi_breez_sdk_spark_rust_future_complete_rust_buffer,
4711
+ _UniffiLib.ffi_breez_sdk_spark_rust_future_free_rust_buffer,
4712
+ # lift function
4713
+ _UniffiConverterTypeHashedMessageBytes.lift,
4714
+
4715
+ # Error FFI converter
4716
+ _UniffiConverterTypeSignerError,
4717
+
4718
+ )
4719
+
4720
+
4721
+
4722
+ async def generate_random_signing_commitment(self, ) -> "ExternalFrostCommitments":
4487
4723
  """
4488
4724
  Generates Frost signing commitments for multi-party signing.
4489
4725
 
4490
4726
  # Returns
4491
4727
  Frost commitments with nonces, or a `SignerError`
4728
+
4729
+ See also: [JavaScript `getRandomSigningCommitment`](https://docs.spark.money/wallets/spark-signer#get-random-signing-commitment)
4492
4730
  """
4493
4731
 
4494
4732
  return await _uniffi_rust_call_async(
4495
- _UniffiLib.uniffi_breez_sdk_spark_fn_method_externalsigner_generate_frost_signing_commitments(
4733
+ _UniffiLib.uniffi_breez_sdk_spark_fn_method_externalsigner_generate_random_signing_commitment(
4496
4734
  self._uniffi_clone_pointer(),
4497
4735
  ),
4498
4736
  _UniffiLib.ffi_breez_sdk_spark_rust_future_poll_rust_buffer,
@@ -4539,12 +4777,12 @@ _UniffiConverterTypeSignerError,
4539
4777
 
4540
4778
 
4541
4779
 
4542
- async def generate_random_key(self, ) -> "ExternalPrivateKeySource":
4780
+ async def generate_random_key(self, ) -> "ExternalSecretSource":
4543
4781
  """
4544
- Generates a random private key.
4782
+ Generates a random secret.
4545
4783
 
4546
4784
  # Returns
4547
- A randomly generated private key source, or an error string
4785
+ A randomly generated secret source, or an error string
4548
4786
  """
4549
4787
 
4550
4788
  return await _uniffi_rust_call_async(
@@ -4555,7 +4793,7 @@ _UniffiConverterTypeSignerError,
4555
4793
  _UniffiLib.ffi_breez_sdk_spark_rust_future_complete_rust_buffer,
4556
4794
  _UniffiLib.ffi_breez_sdk_spark_rust_future_free_rust_buffer,
4557
4795
  # lift function
4558
- _UniffiConverterTypeExternalPrivateKeySource.lift,
4796
+ _UniffiConverterTypeExternalSecretSource.lift,
4559
4797
 
4560
4798
  # Error FFI converter
4561
4799
  _UniffiConverterTypeSignerError,
@@ -4564,21 +4802,23 @@ _UniffiConverterTypeSignerError,
4564
4802
 
4565
4803
 
4566
4804
 
4567
- async def get_static_deposit_private_key_source(self, index: "int") -> "ExternalPrivateKeySource":
4805
+ async def static_deposit_secret_encrypted(self, index: "int") -> "ExternalSecretSource":
4568
4806
  """
4569
- Gets a static deposit private key source by index.
4807
+ Gets an encrypted static deposit secret by index.
4570
4808
 
4571
4809
  # Arguments
4572
4810
  * `index` - The index of the static deposit key
4573
4811
 
4574
4812
  # Returns
4575
- The private key source, or an error string
4813
+ The encrypted secret source, or an error string
4814
+
4815
+ This is the encrypted version of: [JavaScript `getStaticDepositSecretKey`](https://docs.spark.money/wallets/spark-signer#get-static-deposit-secret-key)
4576
4816
  """
4577
4817
 
4578
4818
  _UniffiConverterUInt32.check_lower(index)
4579
4819
 
4580
4820
  return await _uniffi_rust_call_async(
4581
- _UniffiLib.uniffi_breez_sdk_spark_fn_method_externalsigner_get_static_deposit_private_key_source(
4821
+ _UniffiLib.uniffi_breez_sdk_spark_fn_method_externalsigner_static_deposit_secret_encrypted(
4582
4822
  self._uniffi_clone_pointer(),
4583
4823
  _UniffiConverterUInt32.lower(index)
4584
4824
  ),
@@ -4586,7 +4826,7 @@ _UniffiConverterTypeSignerError,
4586
4826
  _UniffiLib.ffi_breez_sdk_spark_rust_future_complete_rust_buffer,
4587
4827
  _UniffiLib.ffi_breez_sdk_spark_rust_future_free_rust_buffer,
4588
4828
  # lift function
4589
- _UniffiConverterTypeExternalPrivateKeySource.lift,
4829
+ _UniffiConverterTypeExternalSecretSource.lift,
4590
4830
 
4591
4831
  # Error FFI converter
4592
4832
  _UniffiConverterTypeSignerError,
@@ -4595,21 +4835,23 @@ _UniffiConverterTypeSignerError,
4595
4835
 
4596
4836
 
4597
4837
 
4598
- async def get_static_deposit_private_key(self, index: "int") -> "PrivateKeyBytes":
4838
+ async def static_deposit_secret(self, index: "int") -> "SecretBytes":
4599
4839
  """
4600
- Gets a static deposit private key by index.
4840
+ Gets a static deposit secret by index.
4601
4841
 
4602
4842
  # Arguments
4603
4843
  * `index` - The index of the static deposit key
4604
4844
 
4605
4845
  # Returns
4606
- The 32-byte private key, or an error string
4846
+ The 32-byte secret, or an error string
4847
+
4848
+ See also: [JavaScript `getStaticDepositSecretKey`](https://docs.spark.money/wallets/spark-signer#get-static-deposit-secret-key)
4607
4849
  """
4608
4850
 
4609
4851
  _UniffiConverterUInt32.check_lower(index)
4610
4852
 
4611
4853
  return await _uniffi_rust_call_async(
4612
- _UniffiLib.uniffi_breez_sdk_spark_fn_method_externalsigner_get_static_deposit_private_key(
4854
+ _UniffiLib.uniffi_breez_sdk_spark_fn_method_externalsigner_static_deposit_secret(
4613
4855
  self._uniffi_clone_pointer(),
4614
4856
  _UniffiConverterUInt32.lower(index)
4615
4857
  ),
@@ -4617,7 +4859,7 @@ _UniffiConverterTypeSignerError,
4617
4859
  _UniffiLib.ffi_breez_sdk_spark_rust_future_complete_rust_buffer,
4618
4860
  _UniffiLib.ffi_breez_sdk_spark_rust_future_free_rust_buffer,
4619
4861
  # lift function
4620
- _UniffiConverterTypePrivateKeyBytes.lift,
4862
+ _UniffiConverterTypeSecretBytes.lift,
4621
4863
 
4622
4864
  # Error FFI converter
4623
4865
  _UniffiConverterTypeSignerError,
@@ -4626,7 +4868,7 @@ _UniffiConverterTypeSignerError,
4626
4868
 
4627
4869
 
4628
4870
 
4629
- async def get_static_deposit_public_key(self, index: "int") -> "PublicKeyBytes":
4871
+ async def static_deposit_signing_key(self, index: "int") -> "PublicKeyBytes":
4630
4872
  """
4631
4873
  Gets a static deposit public key by index.
4632
4874
 
@@ -4635,12 +4877,14 @@ _UniffiConverterTypeSignerError,
4635
4877
 
4636
4878
  # Returns
4637
4879
  The 33-byte public key, or an error string
4880
+
4881
+ See also: [JavaScript `getStaticDepositSigningKey`](https://docs.spark.money/wallets/spark-signer#get-static-deposit-signing-key)
4638
4882
  """
4639
4883
 
4640
4884
  _UniffiConverterUInt32.check_lower(index)
4641
4885
 
4642
4886
  return await _uniffi_rust_call_async(
4643
- _UniffiLib.uniffi_breez_sdk_spark_fn_method_externalsigner_get_static_deposit_public_key(
4887
+ _UniffiLib.uniffi_breez_sdk_spark_fn_method_externalsigner_static_deposit_signing_key(
4644
4888
  self._uniffi_clone_pointer(),
4645
4889
  _UniffiConverterUInt32.lower(index)
4646
4890
  ),
@@ -4657,33 +4901,36 @@ _UniffiConverterTypeSignerError,
4657
4901
 
4658
4902
 
4659
4903
 
4660
- async def subtract_private_keys(self, signing_key: "ExternalPrivateKeySource",new_signing_key: "ExternalPrivateKeySource") -> "ExternalPrivateKeySource":
4904
+ async def subtract_secrets(self, signing_key: "ExternalSecretSource",new_signing_key: "ExternalSecretSource") -> "ExternalSecretSource":
4661
4905
  """
4662
- Subtracts one private key from another.
4906
+ Subtracts one secret from another.
4663
4907
 
4664
4908
  # Arguments
4665
- * `signing_key` - The first private key source
4666
- * `new_signing_key` - The second private key source to subtract
4909
+ * `signing_key` - The first secret source
4910
+ * `new_signing_key` - The second secret source to subtract
4667
4911
 
4668
4912
  # Returns
4669
- The resulting private key source, or an error string
4913
+ The resulting secret source, or an error string
4914
+
4915
+ See also: [JavaScript `subtractSplitAndEncrypt`](https://docs.spark.money/wallets/spark-signer#subtract,-split,-and-encrypt)
4916
+ (this method provides the subtraction step of that higher-level operation)
4670
4917
  """
4671
4918
 
4672
- _UniffiConverterTypeExternalPrivateKeySource.check_lower(signing_key)
4919
+ _UniffiConverterTypeExternalSecretSource.check_lower(signing_key)
4673
4920
 
4674
- _UniffiConverterTypeExternalPrivateKeySource.check_lower(new_signing_key)
4921
+ _UniffiConverterTypeExternalSecretSource.check_lower(new_signing_key)
4675
4922
 
4676
4923
  return await _uniffi_rust_call_async(
4677
- _UniffiLib.uniffi_breez_sdk_spark_fn_method_externalsigner_subtract_private_keys(
4924
+ _UniffiLib.uniffi_breez_sdk_spark_fn_method_externalsigner_subtract_secrets(
4678
4925
  self._uniffi_clone_pointer(),
4679
- _UniffiConverterTypeExternalPrivateKeySource.lower(signing_key),
4680
- _UniffiConverterTypeExternalPrivateKeySource.lower(new_signing_key)
4926
+ _UniffiConverterTypeExternalSecretSource.lower(signing_key),
4927
+ _UniffiConverterTypeExternalSecretSource.lower(new_signing_key)
4681
4928
  ),
4682
4929
  _UniffiLib.ffi_breez_sdk_spark_rust_future_poll_rust_buffer,
4683
4930
  _UniffiLib.ffi_breez_sdk_spark_rust_future_complete_rust_buffer,
4684
4931
  _UniffiLib.ffi_breez_sdk_spark_rust_future_free_rust_buffer,
4685
4932
  # lift function
4686
- _UniffiConverterTypeExternalPrivateKeySource.lift,
4933
+ _UniffiConverterTypeExternalSecretSource.lift,
4687
4934
 
4688
4935
  # Error FFI converter
4689
4936
  _UniffiConverterTypeSignerError,
@@ -4692,7 +4939,7 @@ _UniffiConverterTypeSignerError,
4692
4939
 
4693
4940
 
4694
4941
 
4695
- async def split_secret(self, secret: "ExternalSecretToSplit",threshold: "int",num_shares: "int") -> "typing.List[ExternalVerifiableSecretShare]":
4942
+ async def split_secret_with_proofs(self, secret: "ExternalSecretToSplit",threshold: "int",num_shares: "int") -> "typing.List[ExternalVerifiableSecretShare]":
4696
4943
  """
4697
4944
  Splits a secret with proofs using Shamir's Secret Sharing.
4698
4945
 
@@ -4703,6 +4950,8 @@ _UniffiConverterTypeSignerError,
4703
4950
 
4704
4951
  # Returns
4705
4952
  Vector of verifiable secret shares, or an error string
4953
+
4954
+ See also: [JavaScript `splitSecretWithProofs`](https://docs.spark.money/wallets/spark-signer#split-secret-with-proofs)
4706
4955
  """
4707
4956
 
4708
4957
  _UniffiConverterTypeExternalSecretToSplit.check_lower(secret)
@@ -4712,7 +4961,7 @@ _UniffiConverterTypeSignerError,
4712
4961
  _UniffiConverterUInt32.check_lower(num_shares)
4713
4962
 
4714
4963
  return await _uniffi_rust_call_async(
4715
- _UniffiLib.uniffi_breez_sdk_spark_fn_method_externalsigner_split_secret(
4964
+ _UniffiLib.uniffi_breez_sdk_spark_fn_method_externalsigner_split_secret_with_proofs(
4716
4965
  self._uniffi_clone_pointer(),
4717
4966
  _UniffiConverterTypeExternalSecretToSplit.lower(secret),
4718
4967
  _UniffiConverterUInt32.lower(threshold),
@@ -4731,26 +4980,26 @@ _UniffiConverterTypeSignerError,
4731
4980
 
4732
4981
 
4733
4982
 
4734
- async def encrypt_private_key_for_receiver(self, private_key: "ExternalEncryptedPrivateKey",receiver_public_key: "PublicKeyBytes") -> "bytes":
4983
+ async def encrypt_secret_for_receiver(self, encrypted_secret: "ExternalEncryptedSecret",receiver_public_key: "PublicKeyBytes") -> "bytes":
4735
4984
  """
4736
- Encrypts a private key for a specific receiver's public key.
4985
+ Encrypts a secret for a specific receiver's public key.
4737
4986
 
4738
4987
  # Arguments
4739
- * `private_key` - The encrypted private key to re-encrypt
4988
+ * `encrypted_secret` - The encrypted secret to re-encrypt
4740
4989
  * `receiver_public_key` - The receiver's 33-byte public key
4741
4990
 
4742
4991
  # Returns
4743
4992
  Encrypted data for the receiver, or an error string
4744
4993
  """
4745
4994
 
4746
- _UniffiConverterTypeExternalEncryptedPrivateKey.check_lower(private_key)
4995
+ _UniffiConverterTypeExternalEncryptedSecret.check_lower(encrypted_secret)
4747
4996
 
4748
4997
  _UniffiConverterTypePublicKeyBytes.check_lower(receiver_public_key)
4749
4998
 
4750
4999
  return await _uniffi_rust_call_async(
4751
- _UniffiLib.uniffi_breez_sdk_spark_fn_method_externalsigner_encrypt_private_key_for_receiver(
5000
+ _UniffiLib.uniffi_breez_sdk_spark_fn_method_externalsigner_encrypt_secret_for_receiver(
4752
5001
  self._uniffi_clone_pointer(),
4753
- _UniffiConverterTypeExternalEncryptedPrivateKey.lower(private_key),
5002
+ _UniffiConverterTypeExternalEncryptedSecret.lower(encrypted_secret),
4754
5003
  _UniffiConverterTypePublicKeyBytes.lower(receiver_public_key)
4755
5004
  ),
4756
5005
  _UniffiLib.ffi_breez_sdk_spark_rust_future_poll_rust_buffer,
@@ -4766,23 +5015,23 @@ _UniffiConverterTypeSignerError,
4766
5015
 
4767
5016
 
4768
5017
 
4769
- async def get_public_key_from_private_key_source(self, private_key: "ExternalPrivateKeySource") -> "PublicKeyBytes":
5018
+ async def public_key_from_secret(self, secret: "ExternalSecretSource") -> "PublicKeyBytes":
4770
5019
  """
4771
- Gets the public key from a private key source.
5020
+ Gets the public key from a secret source.
4772
5021
 
4773
5022
  # Arguments
4774
- * `private_key` - The private key source
5023
+ * `secret` - The secret source
4775
5024
 
4776
5025
  # Returns
4777
5026
  The corresponding 33-byte public key, or an error string
4778
5027
  """
4779
5028
 
4780
- _UniffiConverterTypeExternalPrivateKeySource.check_lower(private_key)
5029
+ _UniffiConverterTypeExternalSecretSource.check_lower(secret)
4781
5030
 
4782
5031
  return await _uniffi_rust_call_async(
4783
- _UniffiLib.uniffi_breez_sdk_spark_fn_method_externalsigner_get_public_key_from_private_key_source(
5032
+ _UniffiLib.uniffi_breez_sdk_spark_fn_method_externalsigner_public_key_from_secret(
4784
5033
  self._uniffi_clone_pointer(),
4785
- _UniffiConverterTypeExternalPrivateKeySource.lower(private_key)
5034
+ _UniffiConverterTypeExternalSecretSource.lower(secret)
4786
5035
  ),
4787
5036
  _UniffiLib.ffi_breez_sdk_spark_rust_future_poll_rust_buffer,
4788
5037
  _UniffiLib.ffi_breez_sdk_spark_rust_future_complete_rust_buffer,
@@ -4806,6 +5055,8 @@ _UniffiConverterTypeSignerError,
4806
5055
 
4807
5056
  # Returns
4808
5057
  A signature share, or an error string
5058
+
5059
+ See also: [JavaScript `signFrost`](https://docs.spark.money/wallets/spark-signer#frost-signing)
4809
5060
  """
4810
5061
 
4811
5062
  _UniffiConverterTypeExternalSignFrostRequest.check_lower(request)
@@ -4828,7 +5079,7 @@ _UniffiConverterTypeSignerError,
4828
5079
 
4829
5080
 
4830
5081
 
4831
- async def aggregate_frost_signatures(self, request: "ExternalAggregateFrostRequest") -> "ExternalFrostSignature":
5082
+ async def aggregate_frost(self, request: "ExternalAggregateFrostRequest") -> "ExternalFrostSignature":
4832
5083
  """
4833
5084
  Aggregates Frost signature shares into a final signature.
4834
5085
 
@@ -4837,12 +5088,14 @@ _UniffiConverterTypeSignerError,
4837
5088
 
4838
5089
  # Returns
4839
5090
  The aggregated Frost signature, or an error string
5091
+
5092
+ See also: [JavaScript `aggregateFrost`](https://docs.spark.money/wallets/spark-signer#aggregate-frost-signatures)
4840
5093
  """
4841
5094
 
4842
5095
  _UniffiConverterTypeExternalAggregateFrostRequest.check_lower(request)
4843
5096
 
4844
5097
  return await _uniffi_rust_call_async(
4845
- _UniffiLib.uniffi_breez_sdk_spark_fn_method_externalsigner_aggregate_frost_signatures(
5098
+ _UniffiLib.uniffi_breez_sdk_spark_fn_method_externalsigner_aggregate_frost(
4846
5099
  self._uniffi_clone_pointer(),
4847
5100
  _UniffiConverterTypeExternalAggregateFrostRequest.lower(request)
4848
5101
  ),
@@ -4932,7 +5185,7 @@ class _UniffiTraitImplExternalSigner:
4932
5185
  ):
4933
5186
  uniffi_obj = _UniffiConverterTypeExternalSigner._handle_map.get(uniffi_handle)
4934
5187
  def make_call():
4935
- args = (_UniffiConverterBytes.lift(message), _UniffiConverterString.lift(path), )
5188
+ args = (_UniffiConverterTypeMessageBytes.lift(message), _UniffiConverterString.lift(path), )
4936
5189
  method = uniffi_obj.sign_ecdsa
4937
5190
  return method(*args)
4938
5191
 
@@ -4967,7 +5220,7 @@ class _UniffiTraitImplExternalSigner:
4967
5220
  ):
4968
5221
  uniffi_obj = _UniffiConverterTypeExternalSigner._handle_map.get(uniffi_handle)
4969
5222
  def make_call():
4970
- args = (_UniffiConverterBytes.lift(message), _UniffiConverterString.lift(path), )
5223
+ args = (_UniffiConverterTypeMessageBytes.lift(message), _UniffiConverterString.lift(path), )
4971
5224
  method = uniffi_obj.sign_ecdsa_recoverable
4972
5225
  return method(*args)
4973
5226
 
@@ -4992,7 +5245,7 @@ class _UniffiTraitImplExternalSigner:
4992
5245
  uniffi_out_return[0] = _uniffi_trait_interface_call_async_with_error(make_call, handle_success, handle_error, SignerError, _UniffiConverterTypeSignerError.lower)
4993
5246
 
4994
5247
  @_UNIFFI_CALLBACK_INTERFACE_EXTERNAL_SIGNER_METHOD4
4995
- def ecies_encrypt(
5248
+ def encrypt_ecies(
4996
5249
  uniffi_handle,
4997
5250
  message,
4998
5251
  path,
@@ -5003,7 +5256,7 @@ class _UniffiTraitImplExternalSigner:
5003
5256
  uniffi_obj = _UniffiConverterTypeExternalSigner._handle_map.get(uniffi_handle)
5004
5257
  def make_call():
5005
5258
  args = (_UniffiConverterBytes.lift(message), _UniffiConverterString.lift(path), )
5006
- method = uniffi_obj.ecies_encrypt
5259
+ method = uniffi_obj.encrypt_ecies
5007
5260
  return method(*args)
5008
5261
 
5009
5262
 
@@ -5027,7 +5280,7 @@ class _UniffiTraitImplExternalSigner:
5027
5280
  uniffi_out_return[0] = _uniffi_trait_interface_call_async_with_error(make_call, handle_success, handle_error, SignerError, _UniffiConverterTypeSignerError.lower)
5028
5281
 
5029
5282
  @_UNIFFI_CALLBACK_INTERFACE_EXTERNAL_SIGNER_METHOD5
5030
- def ecies_decrypt(
5283
+ def decrypt_ecies(
5031
5284
  uniffi_handle,
5032
5285
  message,
5033
5286
  path,
@@ -5038,7 +5291,7 @@ class _UniffiTraitImplExternalSigner:
5038
5291
  uniffi_obj = _UniffiConverterTypeExternalSigner._handle_map.get(uniffi_handle)
5039
5292
  def make_call():
5040
5293
  args = (_UniffiConverterBytes.lift(message), _UniffiConverterString.lift(path), )
5041
- method = uniffi_obj.ecies_decrypt
5294
+ method = uniffi_obj.decrypt_ecies
5042
5295
  return method(*args)
5043
5296
 
5044
5297
 
@@ -5097,7 +5350,42 @@ class _UniffiTraitImplExternalSigner:
5097
5350
  uniffi_out_return[0] = _uniffi_trait_interface_call_async_with_error(make_call, handle_success, handle_error, SignerError, _UniffiConverterTypeSignerError.lower)
5098
5351
 
5099
5352
  @_UNIFFI_CALLBACK_INTERFACE_EXTERNAL_SIGNER_METHOD7
5100
- def generate_frost_signing_commitments(
5353
+ def hmac_sha256(
5354
+ uniffi_handle,
5355
+ message,
5356
+ path,
5357
+ uniffi_future_callback,
5358
+ uniffi_callback_data,
5359
+ uniffi_out_return,
5360
+ ):
5361
+ uniffi_obj = _UniffiConverterTypeExternalSigner._handle_map.get(uniffi_handle)
5362
+ def make_call():
5363
+ args = (_UniffiConverterBytes.lift(message), _UniffiConverterString.lift(path), )
5364
+ method = uniffi_obj.hmac_sha256
5365
+ return method(*args)
5366
+
5367
+
5368
+ def handle_success(return_value):
5369
+ uniffi_future_callback(
5370
+ uniffi_callback_data,
5371
+ _UniffiForeignFutureStructRustBuffer(
5372
+ _UniffiConverterTypeHashedMessageBytes.lower(return_value),
5373
+ _UniffiRustCallStatus.default()
5374
+ )
5375
+ )
5376
+
5377
+ def handle_error(status_code, rust_buffer):
5378
+ uniffi_future_callback(
5379
+ uniffi_callback_data,
5380
+ _UniffiForeignFutureStructRustBuffer(
5381
+ _UniffiRustBuffer.default(),
5382
+ _UniffiRustCallStatus(status_code, rust_buffer),
5383
+ )
5384
+ )
5385
+ uniffi_out_return[0] = _uniffi_trait_interface_call_async_with_error(make_call, handle_success, handle_error, SignerError, _UniffiConverterTypeSignerError.lower)
5386
+
5387
+ @_UNIFFI_CALLBACK_INTERFACE_EXTERNAL_SIGNER_METHOD8
5388
+ def generate_random_signing_commitment(
5101
5389
  uniffi_handle,
5102
5390
  uniffi_future_callback,
5103
5391
  uniffi_callback_data,
@@ -5106,7 +5394,7 @@ class _UniffiTraitImplExternalSigner:
5106
5394
  uniffi_obj = _UniffiConverterTypeExternalSigner._handle_map.get(uniffi_handle)
5107
5395
  def make_call():
5108
5396
  args = ()
5109
- method = uniffi_obj.generate_frost_signing_commitments
5397
+ method = uniffi_obj.generate_random_signing_commitment
5110
5398
  return method(*args)
5111
5399
 
5112
5400
 
@@ -5129,7 +5417,7 @@ class _UniffiTraitImplExternalSigner:
5129
5417
  )
5130
5418
  uniffi_out_return[0] = _uniffi_trait_interface_call_async_with_error(make_call, handle_success, handle_error, SignerError, _UniffiConverterTypeSignerError.lower)
5131
5419
 
5132
- @_UNIFFI_CALLBACK_INTERFACE_EXTERNAL_SIGNER_METHOD8
5420
+ @_UNIFFI_CALLBACK_INTERFACE_EXTERNAL_SIGNER_METHOD9
5133
5421
  def get_public_key_for_node(
5134
5422
  uniffi_handle,
5135
5423
  id,
@@ -5163,7 +5451,7 @@ class _UniffiTraitImplExternalSigner:
5163
5451
  )
5164
5452
  uniffi_out_return[0] = _uniffi_trait_interface_call_async_with_error(make_call, handle_success, handle_error, SignerError, _UniffiConverterTypeSignerError.lower)
5165
5453
 
5166
- @_UNIFFI_CALLBACK_INTERFACE_EXTERNAL_SIGNER_METHOD9
5454
+ @_UNIFFI_CALLBACK_INTERFACE_EXTERNAL_SIGNER_METHOD10
5167
5455
  def generate_random_key(
5168
5456
  uniffi_handle,
5169
5457
  uniffi_future_callback,
@@ -5181,7 +5469,7 @@ class _UniffiTraitImplExternalSigner:
5181
5469
  uniffi_future_callback(
5182
5470
  uniffi_callback_data,
5183
5471
  _UniffiForeignFutureStructRustBuffer(
5184
- _UniffiConverterTypeExternalPrivateKeySource.lower(return_value),
5472
+ _UniffiConverterTypeExternalSecretSource.lower(return_value),
5185
5473
  _UniffiRustCallStatus.default()
5186
5474
  )
5187
5475
  )
@@ -5196,8 +5484,8 @@ class _UniffiTraitImplExternalSigner:
5196
5484
  )
5197
5485
  uniffi_out_return[0] = _uniffi_trait_interface_call_async_with_error(make_call, handle_success, handle_error, SignerError, _UniffiConverterTypeSignerError.lower)
5198
5486
 
5199
- @_UNIFFI_CALLBACK_INTERFACE_EXTERNAL_SIGNER_METHOD10
5200
- def get_static_deposit_private_key_source(
5487
+ @_UNIFFI_CALLBACK_INTERFACE_EXTERNAL_SIGNER_METHOD11
5488
+ def static_deposit_secret_encrypted(
5201
5489
  uniffi_handle,
5202
5490
  index,
5203
5491
  uniffi_future_callback,
@@ -5207,7 +5495,7 @@ class _UniffiTraitImplExternalSigner:
5207
5495
  uniffi_obj = _UniffiConverterTypeExternalSigner._handle_map.get(uniffi_handle)
5208
5496
  def make_call():
5209
5497
  args = (_UniffiConverterUInt32.lift(index), )
5210
- method = uniffi_obj.get_static_deposit_private_key_source
5498
+ method = uniffi_obj.static_deposit_secret_encrypted
5211
5499
  return method(*args)
5212
5500
 
5213
5501
 
@@ -5215,7 +5503,7 @@ class _UniffiTraitImplExternalSigner:
5215
5503
  uniffi_future_callback(
5216
5504
  uniffi_callback_data,
5217
5505
  _UniffiForeignFutureStructRustBuffer(
5218
- _UniffiConverterTypeExternalPrivateKeySource.lower(return_value),
5506
+ _UniffiConverterTypeExternalSecretSource.lower(return_value),
5219
5507
  _UniffiRustCallStatus.default()
5220
5508
  )
5221
5509
  )
@@ -5230,8 +5518,8 @@ class _UniffiTraitImplExternalSigner:
5230
5518
  )
5231
5519
  uniffi_out_return[0] = _uniffi_trait_interface_call_async_with_error(make_call, handle_success, handle_error, SignerError, _UniffiConverterTypeSignerError.lower)
5232
5520
 
5233
- @_UNIFFI_CALLBACK_INTERFACE_EXTERNAL_SIGNER_METHOD11
5234
- def get_static_deposit_private_key(
5521
+ @_UNIFFI_CALLBACK_INTERFACE_EXTERNAL_SIGNER_METHOD12
5522
+ def static_deposit_secret(
5235
5523
  uniffi_handle,
5236
5524
  index,
5237
5525
  uniffi_future_callback,
@@ -5241,7 +5529,7 @@ class _UniffiTraitImplExternalSigner:
5241
5529
  uniffi_obj = _UniffiConverterTypeExternalSigner._handle_map.get(uniffi_handle)
5242
5530
  def make_call():
5243
5531
  args = (_UniffiConverterUInt32.lift(index), )
5244
- method = uniffi_obj.get_static_deposit_private_key
5532
+ method = uniffi_obj.static_deposit_secret
5245
5533
  return method(*args)
5246
5534
 
5247
5535
 
@@ -5249,7 +5537,7 @@ class _UniffiTraitImplExternalSigner:
5249
5537
  uniffi_future_callback(
5250
5538
  uniffi_callback_data,
5251
5539
  _UniffiForeignFutureStructRustBuffer(
5252
- _UniffiConverterTypePrivateKeyBytes.lower(return_value),
5540
+ _UniffiConverterTypeSecretBytes.lower(return_value),
5253
5541
  _UniffiRustCallStatus.default()
5254
5542
  )
5255
5543
  )
@@ -5264,8 +5552,8 @@ class _UniffiTraitImplExternalSigner:
5264
5552
  )
5265
5553
  uniffi_out_return[0] = _uniffi_trait_interface_call_async_with_error(make_call, handle_success, handle_error, SignerError, _UniffiConverterTypeSignerError.lower)
5266
5554
 
5267
- @_UNIFFI_CALLBACK_INTERFACE_EXTERNAL_SIGNER_METHOD12
5268
- def get_static_deposit_public_key(
5555
+ @_UNIFFI_CALLBACK_INTERFACE_EXTERNAL_SIGNER_METHOD13
5556
+ def static_deposit_signing_key(
5269
5557
  uniffi_handle,
5270
5558
  index,
5271
5559
  uniffi_future_callback,
@@ -5275,7 +5563,7 @@ class _UniffiTraitImplExternalSigner:
5275
5563
  uniffi_obj = _UniffiConverterTypeExternalSigner._handle_map.get(uniffi_handle)
5276
5564
  def make_call():
5277
5565
  args = (_UniffiConverterUInt32.lift(index), )
5278
- method = uniffi_obj.get_static_deposit_public_key
5566
+ method = uniffi_obj.static_deposit_signing_key
5279
5567
  return method(*args)
5280
5568
 
5281
5569
 
@@ -5298,8 +5586,8 @@ class _UniffiTraitImplExternalSigner:
5298
5586
  )
5299
5587
  uniffi_out_return[0] = _uniffi_trait_interface_call_async_with_error(make_call, handle_success, handle_error, SignerError, _UniffiConverterTypeSignerError.lower)
5300
5588
 
5301
- @_UNIFFI_CALLBACK_INTERFACE_EXTERNAL_SIGNER_METHOD13
5302
- def subtract_private_keys(
5589
+ @_UNIFFI_CALLBACK_INTERFACE_EXTERNAL_SIGNER_METHOD14
5590
+ def subtract_secrets(
5303
5591
  uniffi_handle,
5304
5592
  signing_key,
5305
5593
  new_signing_key,
@@ -5309,8 +5597,8 @@ class _UniffiTraitImplExternalSigner:
5309
5597
  ):
5310
5598
  uniffi_obj = _UniffiConverterTypeExternalSigner._handle_map.get(uniffi_handle)
5311
5599
  def make_call():
5312
- args = (_UniffiConverterTypeExternalPrivateKeySource.lift(signing_key), _UniffiConverterTypeExternalPrivateKeySource.lift(new_signing_key), )
5313
- method = uniffi_obj.subtract_private_keys
5600
+ args = (_UniffiConverterTypeExternalSecretSource.lift(signing_key), _UniffiConverterTypeExternalSecretSource.lift(new_signing_key), )
5601
+ method = uniffi_obj.subtract_secrets
5314
5602
  return method(*args)
5315
5603
 
5316
5604
 
@@ -5318,7 +5606,7 @@ class _UniffiTraitImplExternalSigner:
5318
5606
  uniffi_future_callback(
5319
5607
  uniffi_callback_data,
5320
5608
  _UniffiForeignFutureStructRustBuffer(
5321
- _UniffiConverterTypeExternalPrivateKeySource.lower(return_value),
5609
+ _UniffiConverterTypeExternalSecretSource.lower(return_value),
5322
5610
  _UniffiRustCallStatus.default()
5323
5611
  )
5324
5612
  )
@@ -5333,8 +5621,8 @@ class _UniffiTraitImplExternalSigner:
5333
5621
  )
5334
5622
  uniffi_out_return[0] = _uniffi_trait_interface_call_async_with_error(make_call, handle_success, handle_error, SignerError, _UniffiConverterTypeSignerError.lower)
5335
5623
 
5336
- @_UNIFFI_CALLBACK_INTERFACE_EXTERNAL_SIGNER_METHOD14
5337
- def split_secret(
5624
+ @_UNIFFI_CALLBACK_INTERFACE_EXTERNAL_SIGNER_METHOD15
5625
+ def split_secret_with_proofs(
5338
5626
  uniffi_handle,
5339
5627
  secret,
5340
5628
  threshold,
@@ -5346,7 +5634,7 @@ class _UniffiTraitImplExternalSigner:
5346
5634
  uniffi_obj = _UniffiConverterTypeExternalSigner._handle_map.get(uniffi_handle)
5347
5635
  def make_call():
5348
5636
  args = (_UniffiConverterTypeExternalSecretToSplit.lift(secret), _UniffiConverterUInt32.lift(threshold), _UniffiConverterUInt32.lift(num_shares), )
5349
- method = uniffi_obj.split_secret
5637
+ method = uniffi_obj.split_secret_with_proofs
5350
5638
  return method(*args)
5351
5639
 
5352
5640
 
@@ -5369,10 +5657,10 @@ class _UniffiTraitImplExternalSigner:
5369
5657
  )
5370
5658
  uniffi_out_return[0] = _uniffi_trait_interface_call_async_with_error(make_call, handle_success, handle_error, SignerError, _UniffiConverterTypeSignerError.lower)
5371
5659
 
5372
- @_UNIFFI_CALLBACK_INTERFACE_EXTERNAL_SIGNER_METHOD15
5373
- def encrypt_private_key_for_receiver(
5660
+ @_UNIFFI_CALLBACK_INTERFACE_EXTERNAL_SIGNER_METHOD16
5661
+ def encrypt_secret_for_receiver(
5374
5662
  uniffi_handle,
5375
- private_key,
5663
+ encrypted_secret,
5376
5664
  receiver_public_key,
5377
5665
  uniffi_future_callback,
5378
5666
  uniffi_callback_data,
@@ -5380,8 +5668,8 @@ class _UniffiTraitImplExternalSigner:
5380
5668
  ):
5381
5669
  uniffi_obj = _UniffiConverterTypeExternalSigner._handle_map.get(uniffi_handle)
5382
5670
  def make_call():
5383
- args = (_UniffiConverterTypeExternalEncryptedPrivateKey.lift(private_key), _UniffiConverterTypePublicKeyBytes.lift(receiver_public_key), )
5384
- method = uniffi_obj.encrypt_private_key_for_receiver
5671
+ args = (_UniffiConverterTypeExternalEncryptedSecret.lift(encrypted_secret), _UniffiConverterTypePublicKeyBytes.lift(receiver_public_key), )
5672
+ method = uniffi_obj.encrypt_secret_for_receiver
5385
5673
  return method(*args)
5386
5674
 
5387
5675
 
@@ -5404,18 +5692,18 @@ class _UniffiTraitImplExternalSigner:
5404
5692
  )
5405
5693
  uniffi_out_return[0] = _uniffi_trait_interface_call_async_with_error(make_call, handle_success, handle_error, SignerError, _UniffiConverterTypeSignerError.lower)
5406
5694
 
5407
- @_UNIFFI_CALLBACK_INTERFACE_EXTERNAL_SIGNER_METHOD16
5408
- def get_public_key_from_private_key_source(
5695
+ @_UNIFFI_CALLBACK_INTERFACE_EXTERNAL_SIGNER_METHOD17
5696
+ def public_key_from_secret(
5409
5697
  uniffi_handle,
5410
- private_key,
5698
+ secret,
5411
5699
  uniffi_future_callback,
5412
5700
  uniffi_callback_data,
5413
5701
  uniffi_out_return,
5414
5702
  ):
5415
5703
  uniffi_obj = _UniffiConverterTypeExternalSigner._handle_map.get(uniffi_handle)
5416
5704
  def make_call():
5417
- args = (_UniffiConverterTypeExternalPrivateKeySource.lift(private_key), )
5418
- method = uniffi_obj.get_public_key_from_private_key_source
5705
+ args = (_UniffiConverterTypeExternalSecretSource.lift(secret), )
5706
+ method = uniffi_obj.public_key_from_secret
5419
5707
  return method(*args)
5420
5708
 
5421
5709
 
@@ -5438,7 +5726,7 @@ class _UniffiTraitImplExternalSigner:
5438
5726
  )
5439
5727
  uniffi_out_return[0] = _uniffi_trait_interface_call_async_with_error(make_call, handle_success, handle_error, SignerError, _UniffiConverterTypeSignerError.lower)
5440
5728
 
5441
- @_UNIFFI_CALLBACK_INTERFACE_EXTERNAL_SIGNER_METHOD17
5729
+ @_UNIFFI_CALLBACK_INTERFACE_EXTERNAL_SIGNER_METHOD18
5442
5730
  def sign_frost(
5443
5731
  uniffi_handle,
5444
5732
  request,
@@ -5472,8 +5760,8 @@ class _UniffiTraitImplExternalSigner:
5472
5760
  )
5473
5761
  uniffi_out_return[0] = _uniffi_trait_interface_call_async_with_error(make_call, handle_success, handle_error, SignerError, _UniffiConverterTypeSignerError.lower)
5474
5762
 
5475
- @_UNIFFI_CALLBACK_INTERFACE_EXTERNAL_SIGNER_METHOD18
5476
- def aggregate_frost_signatures(
5763
+ @_UNIFFI_CALLBACK_INTERFACE_EXTERNAL_SIGNER_METHOD19
5764
+ def aggregate_frost(
5477
5765
  uniffi_handle,
5478
5766
  request,
5479
5767
  uniffi_future_callback,
@@ -5483,7 +5771,7 @@ class _UniffiTraitImplExternalSigner:
5483
5771
  uniffi_obj = _UniffiConverterTypeExternalSigner._handle_map.get(uniffi_handle)
5484
5772
  def make_call():
5485
5773
  args = (_UniffiConverterTypeExternalAggregateFrostRequest.lift(request), )
5486
- method = uniffi_obj.aggregate_frost_signatures
5774
+ method = uniffi_obj.aggregate_frost
5487
5775
  return method(*args)
5488
5776
 
5489
5777
 
@@ -5516,21 +5804,22 @@ class _UniffiTraitImplExternalSigner:
5516
5804
  derive_public_key,
5517
5805
  sign_ecdsa,
5518
5806
  sign_ecdsa_recoverable,
5519
- ecies_encrypt,
5520
- ecies_decrypt,
5807
+ encrypt_ecies,
5808
+ decrypt_ecies,
5521
5809
  sign_hash_schnorr,
5522
- generate_frost_signing_commitments,
5810
+ hmac_sha256,
5811
+ generate_random_signing_commitment,
5523
5812
  get_public_key_for_node,
5524
5813
  generate_random_key,
5525
- get_static_deposit_private_key_source,
5526
- get_static_deposit_private_key,
5527
- get_static_deposit_public_key,
5528
- subtract_private_keys,
5529
- split_secret,
5530
- encrypt_private_key_for_receiver,
5531
- get_public_key_from_private_key_source,
5814
+ static_deposit_secret_encrypted,
5815
+ static_deposit_secret,
5816
+ static_deposit_signing_key,
5817
+ subtract_secrets,
5818
+ split_secret_with_proofs,
5819
+ encrypt_secret_for_receiver,
5820
+ public_key_from_secret,
5532
5821
  sign_frost,
5533
- aggregate_frost_signatures,
5822
+ aggregate_frost,
5534
5823
  _uniffi_free
5535
5824
  )
5536
5825
  # Send Rust a pointer to the VTable. Note: this means we need to keep the struct alive forever,
@@ -10721,9 +11010,9 @@ class _UniffiConverterTypeExternalAggregateFrostRequest(_UniffiConverterRustBuff
10721
11010
  _UniffiConverterOptionalBytes.write(value.adaptor_public_key, buf)
10722
11011
 
10723
11012
 
10724
- class ExternalEncryptedPrivateKey:
11013
+ class ExternalEncryptedSecret:
10725
11014
  """
10726
- FFI-safe representation of `spark_wallet::EncryptedPrivateKey`
11015
+ FFI-safe representation of `spark_wallet::EncryptedSecret`
10727
11016
  """
10728
11017
 
10729
11018
  ciphertext: "bytes"
@@ -10735,17 +11024,17 @@ class ExternalEncryptedPrivateKey:
10735
11024
  self.ciphertext = ciphertext
10736
11025
 
10737
11026
  def __str__(self):
10738
- return "ExternalEncryptedPrivateKey(ciphertext={})".format(self.ciphertext)
11027
+ return "ExternalEncryptedSecret(ciphertext={})".format(self.ciphertext)
10739
11028
 
10740
11029
  def __eq__(self, other):
10741
11030
  if self.ciphertext != other.ciphertext:
10742
11031
  return False
10743
11032
  return True
10744
11033
 
10745
- class _UniffiConverterTypeExternalEncryptedPrivateKey(_UniffiConverterRustBuffer):
11034
+ class _UniffiConverterTypeExternalEncryptedSecret(_UniffiConverterRustBuffer):
10746
11035
  @staticmethod
10747
11036
  def read(buf):
10748
- return ExternalEncryptedPrivateKey(
11037
+ return ExternalEncryptedSecret(
10749
11038
  ciphertext=_UniffiConverterBytes.read(buf),
10750
11039
  )
10751
11040
 
@@ -11099,7 +11388,7 @@ class ExternalSignFrostRequest:
11099
11388
  The public key (33 bytes compressed)
11100
11389
  """
11101
11390
 
11102
- private_key: "ExternalPrivateKeySource"
11391
+ secret: "ExternalSecretSource"
11103
11392
  """
11104
11393
  The private key source
11105
11394
  """
@@ -11124,24 +11413,24 @@ class ExternalSignFrostRequest:
11124
11413
  Optional adaptor public key (33 bytes compressed)
11125
11414
  """
11126
11415
 
11127
- def __init__(self, *, message: "bytes", public_key: "bytes", private_key: "ExternalPrivateKeySource", verifying_key: "bytes", self_nonce_commitment: "ExternalFrostCommitments", statechain_commitments: "typing.List[IdentifierCommitmentPair]", adaptor_public_key: "typing.Optional[bytes]"):
11416
+ def __init__(self, *, message: "bytes", public_key: "bytes", secret: "ExternalSecretSource", verifying_key: "bytes", self_nonce_commitment: "ExternalFrostCommitments", statechain_commitments: "typing.List[IdentifierCommitmentPair]", adaptor_public_key: "typing.Optional[bytes]"):
11128
11417
  self.message = message
11129
11418
  self.public_key = public_key
11130
- self.private_key = private_key
11419
+ self.secret = secret
11131
11420
  self.verifying_key = verifying_key
11132
11421
  self.self_nonce_commitment = self_nonce_commitment
11133
11422
  self.statechain_commitments = statechain_commitments
11134
11423
  self.adaptor_public_key = adaptor_public_key
11135
11424
 
11136
11425
  def __str__(self):
11137
- return "ExternalSignFrostRequest(message={}, public_key={}, private_key={}, verifying_key={}, self_nonce_commitment={}, statechain_commitments={}, adaptor_public_key={})".format(self.message, self.public_key, self.private_key, self.verifying_key, self.self_nonce_commitment, self.statechain_commitments, self.adaptor_public_key)
11426
+ return "ExternalSignFrostRequest(message={}, public_key={}, secret={}, verifying_key={}, self_nonce_commitment={}, statechain_commitments={}, adaptor_public_key={})".format(self.message, self.public_key, self.secret, self.verifying_key, self.self_nonce_commitment, self.statechain_commitments, self.adaptor_public_key)
11138
11427
 
11139
11428
  def __eq__(self, other):
11140
11429
  if self.message != other.message:
11141
11430
  return False
11142
11431
  if self.public_key != other.public_key:
11143
11432
  return False
11144
- if self.private_key != other.private_key:
11433
+ if self.secret != other.secret:
11145
11434
  return False
11146
11435
  if self.verifying_key != other.verifying_key:
11147
11436
  return False
@@ -11159,7 +11448,7 @@ class _UniffiConverterTypeExternalSignFrostRequest(_UniffiConverterRustBuffer):
11159
11448
  return ExternalSignFrostRequest(
11160
11449
  message=_UniffiConverterBytes.read(buf),
11161
11450
  public_key=_UniffiConverterBytes.read(buf),
11162
- private_key=_UniffiConverterTypeExternalPrivateKeySource.read(buf),
11451
+ secret=_UniffiConverterTypeExternalSecretSource.read(buf),
11163
11452
  verifying_key=_UniffiConverterBytes.read(buf),
11164
11453
  self_nonce_commitment=_UniffiConverterTypeExternalFrostCommitments.read(buf),
11165
11454
  statechain_commitments=_UniffiConverterSequenceTypeIdentifierCommitmentPair.read(buf),
@@ -11170,7 +11459,7 @@ class _UniffiConverterTypeExternalSignFrostRequest(_UniffiConverterRustBuffer):
11170
11459
  def check_lower(value):
11171
11460
  _UniffiConverterBytes.check_lower(value.message)
11172
11461
  _UniffiConverterBytes.check_lower(value.public_key)
11173
- _UniffiConverterTypeExternalPrivateKeySource.check_lower(value.private_key)
11462
+ _UniffiConverterTypeExternalSecretSource.check_lower(value.secret)
11174
11463
  _UniffiConverterBytes.check_lower(value.verifying_key)
11175
11464
  _UniffiConverterTypeExternalFrostCommitments.check_lower(value.self_nonce_commitment)
11176
11465
  _UniffiConverterSequenceTypeIdentifierCommitmentPair.check_lower(value.statechain_commitments)
@@ -11180,7 +11469,7 @@ class _UniffiConverterTypeExternalSignFrostRequest(_UniffiConverterRustBuffer):
11180
11469
  def write(value, buf):
11181
11470
  _UniffiConverterBytes.write(value.message, buf)
11182
11471
  _UniffiConverterBytes.write(value.public_key, buf)
11183
- _UniffiConverterTypeExternalPrivateKeySource.write(value.private_key, buf)
11472
+ _UniffiConverterTypeExternalSecretSource.write(value.secret, buf)
11184
11473
  _UniffiConverterBytes.write(value.verifying_key, buf)
11185
11474
  _UniffiConverterTypeExternalFrostCommitments.write(value.self_nonce_commitment, buf)
11186
11475
  _UniffiConverterSequenceTypeIdentifierCommitmentPair.write(value.statechain_commitments, buf)
@@ -11715,6 +12004,35 @@ class _UniffiConverterTypeGetTokensMetadataResponse(_UniffiConverterRustBuffer):
11715
12004
  _UniffiConverterSequenceTypeTokenMetadata.write(value.tokens_metadata, buf)
11716
12005
 
11717
12006
 
12007
+ class HashedMessageBytes:
12008
+ bytes: "bytes"
12009
+ def __init__(self, *, bytes: "bytes"):
12010
+ self.bytes = bytes
12011
+
12012
+ def __str__(self):
12013
+ return "HashedMessageBytes(bytes={})".format(self.bytes)
12014
+
12015
+ def __eq__(self, other):
12016
+ if self.bytes != other.bytes:
12017
+ return False
12018
+ return True
12019
+
12020
+ class _UniffiConverterTypeHashedMessageBytes(_UniffiConverterRustBuffer):
12021
+ @staticmethod
12022
+ def read(buf):
12023
+ return HashedMessageBytes(
12024
+ bytes=_UniffiConverterBytes.read(buf),
12025
+ )
12026
+
12027
+ @staticmethod
12028
+ def check_lower(value):
12029
+ _UniffiConverterBytes.check_lower(value.bytes)
12030
+
12031
+ @staticmethod
12032
+ def write(value, buf):
12033
+ _UniffiConverterBytes.write(value.bytes, buf)
12034
+
12035
+
11718
12036
  class IdentifierCommitmentPair:
11719
12037
  """
11720
12038
  FFI-safe wrapper for (Identifier, `SigningCommitments`) pair
@@ -12393,6 +12711,39 @@ class _UniffiConverterTypeLnurlAuthRequestDetails(_UniffiConverterRustBuffer):
12393
12711
  _UniffiConverterString.write(value.url, buf)
12394
12712
 
12395
12713
 
12714
+ class LnurlErrorDetails:
12715
+ """
12716
+ LNURL error details
12717
+ """
12718
+
12719
+ reason: "str"
12720
+ def __init__(self, *, reason: "str"):
12721
+ self.reason = reason
12722
+
12723
+ def __str__(self):
12724
+ return "LnurlErrorDetails(reason={})".format(self.reason)
12725
+
12726
+ def __eq__(self, other):
12727
+ if self.reason != other.reason:
12728
+ return False
12729
+ return True
12730
+
12731
+ class _UniffiConverterTypeLnurlErrorDetails(_UniffiConverterRustBuffer):
12732
+ @staticmethod
12733
+ def read(buf):
12734
+ return LnurlErrorDetails(
12735
+ reason=_UniffiConverterString.read(buf),
12736
+ )
12737
+
12738
+ @staticmethod
12739
+ def check_lower(value):
12740
+ _UniffiConverterString.check_lower(value.reason)
12741
+
12742
+ @staticmethod
12743
+ def write(value, buf):
12744
+ _UniffiConverterString.write(value.reason, buf)
12745
+
12746
+
12396
12747
  class LnurlPayInfo:
12397
12748
  """
12398
12749
  Represents the payment LNURL info
@@ -13039,6 +13390,39 @@ class _UniffiConverterTypeLogEntry(_UniffiConverterRustBuffer):
13039
13390
  _UniffiConverterString.write(value.level, buf)
13040
13391
 
13041
13392
 
13393
+ class MessageBytes:
13394
+ """
13395
+ FFI-safe representation of a 32-byte message digest for ECDSA signing
13396
+ """
13397
+
13398
+ bytes: "bytes"
13399
+ def __init__(self, *, bytes: "bytes"):
13400
+ self.bytes = bytes
13401
+
13402
+ def __str__(self):
13403
+ return "MessageBytes(bytes={})".format(self.bytes)
13404
+
13405
+ def __eq__(self, other):
13406
+ if self.bytes != other.bytes:
13407
+ return False
13408
+ return True
13409
+
13410
+ class _UniffiConverterTypeMessageBytes(_UniffiConverterRustBuffer):
13411
+ @staticmethod
13412
+ def read(buf):
13413
+ return MessageBytes(
13414
+ bytes=_UniffiConverterBytes.read(buf),
13415
+ )
13416
+
13417
+ @staticmethod
13418
+ def check_lower(value):
13419
+ _UniffiConverterBytes.check_lower(value.bytes)
13420
+
13421
+ @staticmethod
13422
+ def write(value, buf):
13423
+ _UniffiConverterBytes.write(value.bytes, buf)
13424
+
13425
+
13042
13426
  class MessageSuccessActionData:
13043
13427
  message: "str"
13044
13428
  def __init__(self, *, message: "str"):
@@ -13700,39 +14084,6 @@ class _UniffiConverterTypePrepareSendPaymentResponse(_UniffiConverterRustBuffer)
13700
14084
  _UniffiConverterOptionalTypeConversionEstimate.write(value.conversion_estimate, buf)
13701
14085
 
13702
14086
 
13703
- class PrivateKeyBytes:
13704
- """
13705
- FFI-safe representation of a private key (32 bytes)
13706
- """
13707
-
13708
- bytes: "bytes"
13709
- def __init__(self, *, bytes: "bytes"):
13710
- self.bytes = bytes
13711
-
13712
- def __str__(self):
13713
- return "PrivateKeyBytes(bytes={})".format(self.bytes)
13714
-
13715
- def __eq__(self, other):
13716
- if self.bytes != other.bytes:
13717
- return False
13718
- return True
13719
-
13720
- class _UniffiConverterTypePrivateKeyBytes(_UniffiConverterRustBuffer):
13721
- @staticmethod
13722
- def read(buf):
13723
- return PrivateKeyBytes(
13724
- bytes=_UniffiConverterBytes.read(buf),
13725
- )
13726
-
13727
- @staticmethod
13728
- def check_lower(value):
13729
- _UniffiConverterBytes.check_lower(value.bytes)
13730
-
13731
- @staticmethod
13732
- def write(value, buf):
13733
- _UniffiConverterBytes.write(value.bytes, buf)
13734
-
13735
-
13736
14087
  class ProvisionalPayment:
13737
14088
  payment_id: "str"
13738
14089
  """
@@ -14351,6 +14702,39 @@ class _UniffiConverterTypeSchnorrSignatureBytes(_UniffiConverterRustBuffer):
14351
14702
  _UniffiConverterBytes.write(value.bytes, buf)
14352
14703
 
14353
14704
 
14705
+ class SecretBytes:
14706
+ """
14707
+ FFI-safe representation of a private key (32 bytes)
14708
+ """
14709
+
14710
+ bytes: "bytes"
14711
+ def __init__(self, *, bytes: "bytes"):
14712
+ self.bytes = bytes
14713
+
14714
+ def __str__(self):
14715
+ return "SecretBytes(bytes={})".format(self.bytes)
14716
+
14717
+ def __eq__(self, other):
14718
+ if self.bytes != other.bytes:
14719
+ return False
14720
+ return True
14721
+
14722
+ class _UniffiConverterTypeSecretBytes(_UniffiConverterRustBuffer):
14723
+ @staticmethod
14724
+ def read(buf):
14725
+ return SecretBytes(
14726
+ bytes=_UniffiConverterBytes.read(buf),
14727
+ )
14728
+
14729
+ @staticmethod
14730
+ def check_lower(value):
14731
+ _UniffiConverterBytes.check_lower(value.bytes)
14732
+
14733
+ @staticmethod
14734
+ def write(value, buf):
14735
+ _UniffiConverterBytes.write(value.bytes, buf)
14736
+
14737
+
14354
14738
  class SendOnchainFeeQuote:
14355
14739
  id: "str"
14356
14740
  expires_at: "int"
@@ -16507,13 +16891,13 @@ class _UniffiConverterTypeDepositClaimError(_UniffiConverterRustBuffer):
16507
16891
 
16508
16892
 
16509
16893
 
16510
- class ExternalPrivateKeySource:
16894
+ class ExternalSecretSource:
16511
16895
  """
16512
- FFI-safe representation of `spark_wallet::PrivateKeySource`
16896
+ FFI-safe representation of `spark_wallet::SecretSource`
16513
16897
  """
16514
16898
 
16515
16899
  def __init__(self):
16516
- raise RuntimeError("ExternalPrivateKeySource cannot be instantiated directly")
16900
+ raise RuntimeError("ExternalSecretSource cannot be instantiated directly")
16517
16901
 
16518
16902
  # Each enum variant is a nested class of the enum itself.
16519
16903
  class DERIVED:
@@ -16527,7 +16911,7 @@ class ExternalPrivateKeySource:
16527
16911
  self.node_id = node_id
16528
16912
 
16529
16913
  def __str__(self):
16530
- return "ExternalPrivateKeySource.DERIVED(node_id={})".format(self.node_id)
16914
+ return "ExternalSecretSource.DERIVED(node_id={})".format(self.node_id)
16531
16915
 
16532
16916
  def __eq__(self, other):
16533
16917
  if not other.is_derived():
@@ -16541,13 +16925,13 @@ class ExternalPrivateKeySource:
16541
16925
  Encrypted private key
16542
16926
  """
16543
16927
 
16544
- key: "ExternalEncryptedPrivateKey"
16928
+ key: "ExternalEncryptedSecret"
16545
16929
 
16546
- def __init__(self,key: "ExternalEncryptedPrivateKey"):
16930
+ def __init__(self,key: "ExternalEncryptedSecret"):
16547
16931
  self.key = key
16548
16932
 
16549
16933
  def __str__(self):
16550
- return "ExternalPrivateKeySource.ENCRYPTED(key={})".format(self.key)
16934
+ return "ExternalSecretSource.ENCRYPTED(key={})".format(self.key)
16551
16935
 
16552
16936
  def __eq__(self, other):
16553
16937
  if not other.is_encrypted():
@@ -16561,31 +16945,31 @@ class ExternalPrivateKeySource:
16561
16945
  # For each variant, we have an `is_NAME` method for easily checking
16562
16946
  # whether an instance is that variant.
16563
16947
  def is_derived(self) -> bool:
16564
- return isinstance(self, ExternalPrivateKeySource.DERIVED)
16948
+ return isinstance(self, ExternalSecretSource.DERIVED)
16565
16949
  def is_encrypted(self) -> bool:
16566
- return isinstance(self, ExternalPrivateKeySource.ENCRYPTED)
16950
+ return isinstance(self, ExternalSecretSource.ENCRYPTED)
16567
16951
 
16568
16952
 
16569
16953
  # Now, a little trick - we make each nested variant class be a subclass of the main
16570
16954
  # enum class, so that method calls and instance checks etc will work intuitively.
16571
16955
  # We might be able to do this a little more neatly with a metaclass, but this'll do.
16572
- ExternalPrivateKeySource.DERIVED = type("ExternalPrivateKeySource.DERIVED", (ExternalPrivateKeySource.DERIVED, ExternalPrivateKeySource,), {}) # type: ignore
16573
- ExternalPrivateKeySource.ENCRYPTED = type("ExternalPrivateKeySource.ENCRYPTED", (ExternalPrivateKeySource.ENCRYPTED, ExternalPrivateKeySource,), {}) # type: ignore
16956
+ ExternalSecretSource.DERIVED = type("ExternalSecretSource.DERIVED", (ExternalSecretSource.DERIVED, ExternalSecretSource,), {}) # type: ignore
16957
+ ExternalSecretSource.ENCRYPTED = type("ExternalSecretSource.ENCRYPTED", (ExternalSecretSource.ENCRYPTED, ExternalSecretSource,), {}) # type: ignore
16574
16958
 
16575
16959
 
16576
16960
 
16577
16961
 
16578
- class _UniffiConverterTypeExternalPrivateKeySource(_UniffiConverterRustBuffer):
16962
+ class _UniffiConverterTypeExternalSecretSource(_UniffiConverterRustBuffer):
16579
16963
  @staticmethod
16580
16964
  def read(buf):
16581
16965
  variant = buf.read_i32()
16582
16966
  if variant == 1:
16583
- return ExternalPrivateKeySource.DERIVED(
16967
+ return ExternalSecretSource.DERIVED(
16584
16968
  _UniffiConverterTypeExternalTreeNodeId.read(buf),
16585
16969
  )
16586
16970
  if variant == 2:
16587
- return ExternalPrivateKeySource.ENCRYPTED(
16588
- _UniffiConverterTypeExternalEncryptedPrivateKey.read(buf),
16971
+ return ExternalSecretSource.ENCRYPTED(
16972
+ _UniffiConverterTypeExternalEncryptedSecret.read(buf),
16589
16973
  )
16590
16974
  raise InternalError("Raw enum value doesn't match any cases")
16591
16975
 
@@ -16595,7 +16979,7 @@ class _UniffiConverterTypeExternalPrivateKeySource(_UniffiConverterRustBuffer):
16595
16979
  _UniffiConverterTypeExternalTreeNodeId.check_lower(value.node_id)
16596
16980
  return
16597
16981
  if value.is_encrypted():
16598
- _UniffiConverterTypeExternalEncryptedPrivateKey.check_lower(value.key)
16982
+ _UniffiConverterTypeExternalEncryptedSecret.check_lower(value.key)
16599
16983
  return
16600
16984
  raise ValueError(value)
16601
16985
 
@@ -16606,7 +16990,7 @@ class _UniffiConverterTypeExternalPrivateKeySource(_UniffiConverterRustBuffer):
16606
16990
  _UniffiConverterTypeExternalTreeNodeId.write(value.node_id, buf)
16607
16991
  if value.is_encrypted():
16608
16992
  buf.write_i32(2)
16609
- _UniffiConverterTypeExternalEncryptedPrivateKey.write(value.key, buf)
16993
+ _UniffiConverterTypeExternalEncryptedSecret.write(value.key, buf)
16610
16994
 
16611
16995
 
16612
16996
 
@@ -16623,21 +17007,21 @@ class ExternalSecretToSplit:
16623
17007
  raise RuntimeError("ExternalSecretToSplit cannot be instantiated directly")
16624
17008
 
16625
17009
  # Each enum variant is a nested class of the enum itself.
16626
- class PRIVATE_KEY:
17010
+ class SECRET_SOURCE:
16627
17011
  """
16628
- A private key to split
17012
+ A secret source to split
16629
17013
  """
16630
17014
 
16631
- source: "ExternalPrivateKeySource"
17015
+ source: "ExternalSecretSource"
16632
17016
 
16633
- def __init__(self,source: "ExternalPrivateKeySource"):
17017
+ def __init__(self,source: "ExternalSecretSource"):
16634
17018
  self.source = source
16635
17019
 
16636
17020
  def __str__(self):
16637
- return "ExternalSecretToSplit.PRIVATE_KEY(source={})".format(self.source)
17021
+ return "ExternalSecretToSplit.SECRET_SOURCE(source={})".format(self.source)
16638
17022
 
16639
17023
  def __eq__(self, other):
16640
- if not other.is_private_key():
17024
+ if not other.is_secret_source():
16641
17025
  return False
16642
17026
  if self.source != other.source:
16643
17027
  return False
@@ -16667,8 +17051,8 @@ class ExternalSecretToSplit:
16667
17051
 
16668
17052
  # For each variant, we have an `is_NAME` method for easily checking
16669
17053
  # whether an instance is that variant.
16670
- def is_private_key(self) -> bool:
16671
- return isinstance(self, ExternalSecretToSplit.PRIVATE_KEY)
17054
+ def is_secret_source(self) -> bool:
17055
+ return isinstance(self, ExternalSecretToSplit.SECRET_SOURCE)
16672
17056
  def is_preimage(self) -> bool:
16673
17057
  return isinstance(self, ExternalSecretToSplit.PREIMAGE)
16674
17058
 
@@ -16676,7 +17060,7 @@ class ExternalSecretToSplit:
16676
17060
  # Now, a little trick - we make each nested variant class be a subclass of the main
16677
17061
  # enum class, so that method calls and instance checks etc will work intuitively.
16678
17062
  # We might be able to do this a little more neatly with a metaclass, but this'll do.
16679
- ExternalSecretToSplit.PRIVATE_KEY = type("ExternalSecretToSplit.PRIVATE_KEY", (ExternalSecretToSplit.PRIVATE_KEY, ExternalSecretToSplit,), {}) # type: ignore
17063
+ ExternalSecretToSplit.SECRET_SOURCE = type("ExternalSecretToSplit.SECRET_SOURCE", (ExternalSecretToSplit.SECRET_SOURCE, ExternalSecretToSplit,), {}) # type: ignore
16680
17064
  ExternalSecretToSplit.PREIMAGE = type("ExternalSecretToSplit.PREIMAGE", (ExternalSecretToSplit.PREIMAGE, ExternalSecretToSplit,), {}) # type: ignore
16681
17065
 
16682
17066
 
@@ -16687,8 +17071,8 @@ class _UniffiConverterTypeExternalSecretToSplit(_UniffiConverterRustBuffer):
16687
17071
  def read(buf):
16688
17072
  variant = buf.read_i32()
16689
17073
  if variant == 1:
16690
- return ExternalSecretToSplit.PRIVATE_KEY(
16691
- _UniffiConverterTypeExternalPrivateKeySource.read(buf),
17074
+ return ExternalSecretToSplit.SECRET_SOURCE(
17075
+ _UniffiConverterTypeExternalSecretSource.read(buf),
16692
17076
  )
16693
17077
  if variant == 2:
16694
17078
  return ExternalSecretToSplit.PREIMAGE(
@@ -16698,8 +17082,8 @@ class _UniffiConverterTypeExternalSecretToSplit(_UniffiConverterRustBuffer):
16698
17082
 
16699
17083
  @staticmethod
16700
17084
  def check_lower(value):
16701
- if value.is_private_key():
16702
- _UniffiConverterTypeExternalPrivateKeySource.check_lower(value.source)
17085
+ if value.is_secret_source():
17086
+ _UniffiConverterTypeExternalSecretSource.check_lower(value.source)
16703
17087
  return
16704
17088
  if value.is_preimage():
16705
17089
  _UniffiConverterBytes.check_lower(value.data)
@@ -16708,9 +17092,9 @@ class _UniffiConverterTypeExternalSecretToSplit(_UniffiConverterRustBuffer):
16708
17092
 
16709
17093
  @staticmethod
16710
17094
  def write(value, buf):
16711
- if value.is_private_key():
17095
+ if value.is_secret_source():
16712
17096
  buf.write_i32(1)
16713
- _UniffiConverterTypeExternalPrivateKeySource.write(value.source, buf)
17097
+ _UniffiConverterTypeExternalSecretSource.write(value.source, buf)
16714
17098
  if value.is_preimage():
16715
17099
  buf.write_i32(2)
16716
17100
  _UniffiConverterBytes.write(value.data, buf)
@@ -17349,6 +17733,107 @@ class _UniffiConverterTypeKeySetType(_UniffiConverterRustBuffer):
17349
17733
 
17350
17734
 
17351
17735
 
17736
+ class LnurlCallbackStatus:
17737
+ """
17738
+ The response from a LNURL-auth callback, indicating success or failure.
17739
+ """
17740
+
17741
+ def __init__(self):
17742
+ raise RuntimeError("LnurlCallbackStatus cannot be instantiated directly")
17743
+
17744
+ # Each enum variant is a nested class of the enum itself.
17745
+ class OK:
17746
+ """
17747
+ On-wire format is: `{"status": "OK"}`
17748
+ """
17749
+
17750
+
17751
+ def __init__(self,):
17752
+ pass
17753
+
17754
+ def __str__(self):
17755
+ return "LnurlCallbackStatus.OK()".format()
17756
+
17757
+ def __eq__(self, other):
17758
+ if not other.is_ok():
17759
+ return False
17760
+ return True
17761
+
17762
+ class ERROR_STATUS:
17763
+ """
17764
+ On-wire format is: `{"status": "ERROR", "reason": "error details..."}`
17765
+ """
17766
+
17767
+ error_details: "LnurlErrorDetails"
17768
+
17769
+ def __init__(self,error_details: "LnurlErrorDetails"):
17770
+ self.error_details = error_details
17771
+
17772
+ def __str__(self):
17773
+ return "LnurlCallbackStatus.ERROR_STATUS(error_details={})".format(self.error_details)
17774
+
17775
+ def __eq__(self, other):
17776
+ if not other.is_error_status():
17777
+ return False
17778
+ if self.error_details != other.error_details:
17779
+ return False
17780
+ return True
17781
+
17782
+
17783
+
17784
+ # For each variant, we have an `is_NAME` method for easily checking
17785
+ # whether an instance is that variant.
17786
+ def is_ok(self) -> bool:
17787
+ return isinstance(self, LnurlCallbackStatus.OK)
17788
+ def is_error_status(self) -> bool:
17789
+ return isinstance(self, LnurlCallbackStatus.ERROR_STATUS)
17790
+
17791
+
17792
+ # Now, a little trick - we make each nested variant class be a subclass of the main
17793
+ # enum class, so that method calls and instance checks etc will work intuitively.
17794
+ # We might be able to do this a little more neatly with a metaclass, but this'll do.
17795
+ LnurlCallbackStatus.OK = type("LnurlCallbackStatus.OK", (LnurlCallbackStatus.OK, LnurlCallbackStatus,), {}) # type: ignore
17796
+ LnurlCallbackStatus.ERROR_STATUS = type("LnurlCallbackStatus.ERROR_STATUS", (LnurlCallbackStatus.ERROR_STATUS, LnurlCallbackStatus,), {}) # type: ignore
17797
+
17798
+
17799
+
17800
+
17801
+ class _UniffiConverterTypeLnurlCallbackStatus(_UniffiConverterRustBuffer):
17802
+ @staticmethod
17803
+ def read(buf):
17804
+ variant = buf.read_i32()
17805
+ if variant == 1:
17806
+ return LnurlCallbackStatus.OK(
17807
+ )
17808
+ if variant == 2:
17809
+ return LnurlCallbackStatus.ERROR_STATUS(
17810
+ _UniffiConverterTypeLnurlErrorDetails.read(buf),
17811
+ )
17812
+ raise InternalError("Raw enum value doesn't match any cases")
17813
+
17814
+ @staticmethod
17815
+ def check_lower(value):
17816
+ if value.is_ok():
17817
+ return
17818
+ if value.is_error_status():
17819
+ _UniffiConverterTypeLnurlErrorDetails.check_lower(value.error_details)
17820
+ return
17821
+ raise ValueError(value)
17822
+
17823
+ @staticmethod
17824
+ def write(value, buf):
17825
+ if value.is_ok():
17826
+ buf.write_i32(1)
17827
+ if value.is_error_status():
17828
+ buf.write_i32(2)
17829
+ _UniffiConverterTypeLnurlErrorDetails.write(value.error_details, buf)
17830
+
17831
+
17832
+
17833
+
17834
+
17835
+
17836
+
17352
17837
  class MaxFee:
17353
17838
  def __init__(self):
17354
17839
  raise RuntimeError("MaxFee cannot be instantiated directly")
@@ -23360,11 +23845,12 @@ __all__ = [
23360
23845
  "ConversionStatus",
23361
23846
  "ConversionType",
23362
23847
  "DepositClaimError",
23363
- "ExternalPrivateKeySource",
23848
+ "ExternalSecretSource",
23364
23849
  "ExternalSecretToSplit",
23365
23850
  "Fee",
23366
23851
  "InputType",
23367
23852
  "KeySetType",
23853
+ "LnurlCallbackStatus",
23368
23854
  "MaxFee",
23369
23855
  "Network",
23370
23856
  "OnchainConfirmationSpeed",
@@ -23425,7 +23911,7 @@ __all__ = [
23425
23911
  "DepositInfo",
23426
23912
  "EcdsaSignatureBytes",
23427
23913
  "ExternalAggregateFrostRequest",
23428
- "ExternalEncryptedPrivateKey",
23914
+ "ExternalEncryptedSecret",
23429
23915
  "ExternalFrostCommitments",
23430
23916
  "ExternalFrostSignature",
23431
23917
  "ExternalFrostSignatureShare",
@@ -23448,6 +23934,7 @@ __all__ = [
23448
23934
  "GetPaymentResponse",
23449
23935
  "GetTokensMetadataRequest",
23450
23936
  "GetTokensMetadataResponse",
23937
+ "HashedMessageBytes",
23451
23938
  "IdentifierCommitmentPair",
23452
23939
  "IdentifierPublicKeyPair",
23453
23940
  "IdentifierSignaturePair",
@@ -23462,6 +23949,7 @@ __all__ = [
23462
23949
  "ListUnclaimedDepositsRequest",
23463
23950
  "ListUnclaimedDepositsResponse",
23464
23951
  "LnurlAuthRequestDetails",
23952
+ "LnurlErrorDetails",
23465
23953
  "LnurlPayInfo",
23466
23954
  "LnurlPayRequest",
23467
23955
  "LnurlPayRequestDetails",
@@ -23474,6 +23962,7 @@ __all__ = [
23474
23962
  "LocaleOverrides",
23475
23963
  "LocalizedName",
23476
23964
  "LogEntry",
23965
+ "MessageBytes",
23477
23966
  "MessageSuccessActionData",
23478
23967
  "MintIssuerTokenRequest",
23479
23968
  "OptimizationConfig",
@@ -23486,7 +23975,6 @@ __all__ = [
23486
23975
  "PrepareLnurlPayResponse",
23487
23976
  "PrepareSendPaymentRequest",
23488
23977
  "PrepareSendPaymentResponse",
23489
- "PrivateKeyBytes",
23490
23978
  "ProvisionalPayment",
23491
23979
  "PublicKeyBytes",
23492
23980
  "Rate",
@@ -23502,6 +23990,7 @@ __all__ = [
23502
23990
  "RegisterLightningAddressRequest",
23503
23991
  "RestResponse",
23504
23992
  "SchnorrSignatureBytes",
23993
+ "SecretBytes",
23505
23994
  "SendOnchainFeeQuote",
23506
23995
  "SendOnchainSpeedFeeQuote",
23507
23996
  "SendPaymentRequest",