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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1098,32 +1098,32 @@ export declare const ExternalAggregateFrostRequest: Readonly<{
1098
1098
  defaults: () => Partial<ExternalAggregateFrostRequest>;
1099
1099
  }>;
1100
1100
  /**
1101
- * FFI-safe representation of `spark_wallet::EncryptedPrivateKey`
1101
+ * FFI-safe representation of `spark_wallet::EncryptedSecret`
1102
1102
  */
1103
- export type ExternalEncryptedPrivateKey = {
1103
+ export type ExternalEncryptedSecret = {
1104
1104
  /**
1105
1105
  * The encrypted ciphertext
1106
1106
  */
1107
1107
  ciphertext: ArrayBuffer;
1108
1108
  };
1109
1109
  /**
1110
- * Generated factory for {@link ExternalEncryptedPrivateKey} record objects.
1110
+ * Generated factory for {@link ExternalEncryptedSecret} record objects.
1111
1111
  */
1112
- export declare const ExternalEncryptedPrivateKey: Readonly<{
1112
+ export declare const ExternalEncryptedSecret: Readonly<{
1113
1113
  /**
1114
- * Create a frozen instance of {@link ExternalEncryptedPrivateKey}, with defaults specified
1114
+ * Create a frozen instance of {@link ExternalEncryptedSecret}, with defaults specified
1115
1115
  * in Rust, in the {@link breez_sdk_spark} crate.
1116
1116
  */
1117
- create: (partial: Partial<ExternalEncryptedPrivateKey> & Required<Omit<ExternalEncryptedPrivateKey, never>>) => ExternalEncryptedPrivateKey;
1117
+ create: (partial: Partial<ExternalEncryptedSecret> & Required<Omit<ExternalEncryptedSecret, never>>) => ExternalEncryptedSecret;
1118
1118
  /**
1119
- * Create a frozen instance of {@link ExternalEncryptedPrivateKey}, with defaults specified
1119
+ * Create a frozen instance of {@link ExternalEncryptedSecret}, with defaults specified
1120
1120
  * in Rust, in the {@link breez_sdk_spark} crate.
1121
1121
  */
1122
- new: (partial: Partial<ExternalEncryptedPrivateKey> & Required<Omit<ExternalEncryptedPrivateKey, never>>) => ExternalEncryptedPrivateKey;
1122
+ new: (partial: Partial<ExternalEncryptedSecret> & Required<Omit<ExternalEncryptedSecret, never>>) => ExternalEncryptedSecret;
1123
1123
  /**
1124
1124
  * Defaults specified in the {@link breez_sdk_spark} crate.
1125
1125
  */
1126
- defaults: () => Partial<ExternalEncryptedPrivateKey>;
1126
+ defaults: () => Partial<ExternalEncryptedSecret>;
1127
1127
  }>;
1128
1128
  /**
1129
1129
  * FFI-safe representation of `spark_wallet::FrostSigningCommitmentsWithNonces`
@@ -1361,7 +1361,7 @@ export type ExternalSignFrostRequest = {
1361
1361
  /**
1362
1362
  * The private key source
1363
1363
  */
1364
- privateKey: ExternalSecretKeySource;
1364
+ secret: ExternalSecretSource;
1365
1365
  /**
1366
1366
  * The verifying key (33 bytes compressed)
1367
1367
  */
@@ -2973,31 +2973,6 @@ export declare const PrepareSendPaymentResponse: Readonly<{
2973
2973
  */
2974
2974
  defaults: () => Partial<PrepareSendPaymentResponse>;
2975
2975
  }>;
2976
- /**
2977
- * FFI-safe representation of a private key (32 bytes)
2978
- */
2979
- export type PrivateKeyBytes = {
2980
- bytes: ArrayBuffer;
2981
- };
2982
- /**
2983
- * Generated factory for {@link PrivateKeyBytes} record objects.
2984
- */
2985
- export declare const PrivateKeyBytes: Readonly<{
2986
- /**
2987
- * Create a frozen instance of {@link PrivateKeyBytes}, with defaults specified
2988
- * in Rust, in the {@link breez_sdk_spark} crate.
2989
- */
2990
- create: (partial: Partial<PrivateKeyBytes> & Required<Omit<PrivateKeyBytes, never>>) => PrivateKeyBytes;
2991
- /**
2992
- * Create a frozen instance of {@link PrivateKeyBytes}, with defaults specified
2993
- * in Rust, in the {@link breez_sdk_spark} crate.
2994
- */
2995
- new: (partial: Partial<PrivateKeyBytes> & Required<Omit<PrivateKeyBytes, never>>) => PrivateKeyBytes;
2996
- /**
2997
- * Defaults specified in the {@link breez_sdk_spark} crate.
2998
- */
2999
- defaults: () => Partial<PrivateKeyBytes>;
3000
- }>;
3001
2976
  export type ProvisionalPayment = {
3002
2977
  /**
3003
2978
  * Unique identifier for the payment
@@ -3374,6 +3349,31 @@ export declare const SchnorrSignatureBytes: Readonly<{
3374
3349
  */
3375
3350
  defaults: () => Partial<SchnorrSignatureBytes>;
3376
3351
  }>;
3352
+ /**
3353
+ * FFI-safe representation of a private key (32 bytes)
3354
+ */
3355
+ export type SecretBytes = {
3356
+ bytes: ArrayBuffer;
3357
+ };
3358
+ /**
3359
+ * Generated factory for {@link SecretBytes} record objects.
3360
+ */
3361
+ export declare const SecretBytes: Readonly<{
3362
+ /**
3363
+ * Create a frozen instance of {@link SecretBytes}, with defaults specified
3364
+ * in Rust, in the {@link breez_sdk_spark} crate.
3365
+ */
3366
+ create: (partial: Partial<SecretBytes> & Required<Omit<SecretBytes, never>>) => SecretBytes;
3367
+ /**
3368
+ * Create a frozen instance of {@link SecretBytes}, with defaults specified
3369
+ * in Rust, in the {@link breez_sdk_spark} crate.
3370
+ */
3371
+ new: (partial: Partial<SecretBytes> & Required<Omit<SecretBytes, never>>) => SecretBytes;
3372
+ /**
3373
+ * Defaults specified in the {@link breez_sdk_spark} crate.
3374
+ */
3375
+ defaults: () => Partial<SecretBytes>;
3376
+ }>;
3377
3377
  export type SendOnchainFeeQuote = {
3378
3378
  id: string;
3379
3379
  expiresAt: bigint;
@@ -4923,20 +4923,20 @@ export declare const DepositClaimError: Readonly<{
4923
4923
  };
4924
4924
  }>;
4925
4925
  export type DepositClaimError = InstanceType<(typeof DepositClaimError)[keyof Omit<typeof DepositClaimError, 'instanceOf'>]>;
4926
- export declare enum ExternalSecretKeySource_Tags {
4926
+ export declare enum ExternalSecretSource_Tags {
4927
4927
  Derived = "Derived",
4928
4928
  Encrypted = "Encrypted"
4929
4929
  }
4930
4930
  /**
4931
- * FFI-safe representation of `spark_wallet::SecretKeySource`
4931
+ * FFI-safe representation of `spark_wallet::SecretSource`
4932
4932
  */
4933
- export declare const ExternalSecretKeySource: Readonly<{
4934
- instanceOf: (obj: any) => obj is ExternalSecretKeySource;
4933
+ export declare const ExternalSecretSource: Readonly<{
4934
+ instanceOf: (obj: any) => obj is ExternalSecretSource;
4935
4935
  Derived: {
4936
4936
  new (inner: {
4937
4937
  nodeId: ExternalTreeNodeId;
4938
4938
  }): {
4939
- readonly tag: ExternalSecretKeySource_Tags.Derived;
4939
+ readonly tag: ExternalSecretSource_Tags.Derived;
4940
4940
  readonly inner: Readonly<{
4941
4941
  nodeId: ExternalTreeNodeId;
4942
4942
  }>;
@@ -4944,12 +4944,12 @@ export declare const ExternalSecretKeySource: Readonly<{
4944
4944
  * @private
4945
4945
  * This field is private and should not be used, use `tag` instead.
4946
4946
  */
4947
- readonly [uniffiTypeNameSymbol]: "ExternalSecretKeySource";
4947
+ readonly [uniffiTypeNameSymbol]: "ExternalSecretSource";
4948
4948
  };
4949
4949
  "new"(inner: {
4950
4950
  nodeId: ExternalTreeNodeId;
4951
4951
  }): {
4952
- readonly tag: ExternalSecretKeySource_Tags.Derived;
4952
+ readonly tag: ExternalSecretSource_Tags.Derived;
4953
4953
  readonly inner: Readonly<{
4954
4954
  nodeId: ExternalTreeNodeId;
4955
4955
  }>;
@@ -4957,10 +4957,10 @@ export declare const ExternalSecretKeySource: Readonly<{
4957
4957
  * @private
4958
4958
  * This field is private and should not be used, use `tag` instead.
4959
4959
  */
4960
- readonly [uniffiTypeNameSymbol]: "ExternalSecretKeySource";
4960
+ readonly [uniffiTypeNameSymbol]: "ExternalSecretSource";
4961
4961
  };
4962
4962
  instanceOf(obj: any): obj is {
4963
- readonly tag: ExternalSecretKeySource_Tags.Derived;
4963
+ readonly tag: ExternalSecretSource_Tags.Derived;
4964
4964
  readonly inner: Readonly<{
4965
4965
  nodeId: ExternalTreeNodeId;
4966
4966
  }>;
@@ -4968,55 +4968,55 @@ export declare const ExternalSecretKeySource: Readonly<{
4968
4968
  * @private
4969
4969
  * This field is private and should not be used, use `tag` instead.
4970
4970
  */
4971
- readonly [uniffiTypeNameSymbol]: "ExternalSecretKeySource";
4971
+ readonly [uniffiTypeNameSymbol]: "ExternalSecretSource";
4972
4972
  };
4973
4973
  };
4974
4974
  Encrypted: {
4975
4975
  new (inner: {
4976
- key: ExternalEncryptedPrivateKey;
4976
+ key: ExternalEncryptedSecret;
4977
4977
  }): {
4978
- readonly tag: ExternalSecretKeySource_Tags.Encrypted;
4978
+ readonly tag: ExternalSecretSource_Tags.Encrypted;
4979
4979
  readonly inner: Readonly<{
4980
- key: ExternalEncryptedPrivateKey;
4980
+ key: ExternalEncryptedSecret;
4981
4981
  }>;
4982
4982
  /**
4983
4983
  * @private
4984
4984
  * This field is private and should not be used, use `tag` instead.
4985
4985
  */
4986
- readonly [uniffiTypeNameSymbol]: "ExternalSecretKeySource";
4986
+ readonly [uniffiTypeNameSymbol]: "ExternalSecretSource";
4987
4987
  };
4988
4988
  "new"(inner: {
4989
- key: ExternalEncryptedPrivateKey;
4989
+ key: ExternalEncryptedSecret;
4990
4990
  }): {
4991
- readonly tag: ExternalSecretKeySource_Tags.Encrypted;
4991
+ readonly tag: ExternalSecretSource_Tags.Encrypted;
4992
4992
  readonly inner: Readonly<{
4993
- key: ExternalEncryptedPrivateKey;
4993
+ key: ExternalEncryptedSecret;
4994
4994
  }>;
4995
4995
  /**
4996
4996
  * @private
4997
4997
  * This field is private and should not be used, use `tag` instead.
4998
4998
  */
4999
- readonly [uniffiTypeNameSymbol]: "ExternalSecretKeySource";
4999
+ readonly [uniffiTypeNameSymbol]: "ExternalSecretSource";
5000
5000
  };
5001
5001
  instanceOf(obj: any): obj is {
5002
- readonly tag: ExternalSecretKeySource_Tags.Encrypted;
5002
+ readonly tag: ExternalSecretSource_Tags.Encrypted;
5003
5003
  readonly inner: Readonly<{
5004
- key: ExternalEncryptedPrivateKey;
5004
+ key: ExternalEncryptedSecret;
5005
5005
  }>;
5006
5006
  /**
5007
5007
  * @private
5008
5008
  * This field is private and should not be used, use `tag` instead.
5009
5009
  */
5010
- readonly [uniffiTypeNameSymbol]: "ExternalSecretKeySource";
5010
+ readonly [uniffiTypeNameSymbol]: "ExternalSecretSource";
5011
5011
  };
5012
5012
  };
5013
5013
  }>;
5014
5014
  /**
5015
- * FFI-safe representation of `spark_wallet::SecretKeySource`
5015
+ * FFI-safe representation of `spark_wallet::SecretSource`
5016
5016
  */
5017
- export type ExternalSecretKeySource = InstanceType<(typeof ExternalSecretKeySource)[keyof Omit<typeof ExternalSecretKeySource, 'instanceOf'>]>;
5017
+ export type ExternalSecretSource = InstanceType<(typeof ExternalSecretSource)[keyof Omit<typeof ExternalSecretSource, 'instanceOf'>]>;
5018
5018
  export declare enum ExternalSecretToSplit_Tags {
5019
- PrivateKey = "PrivateKey",
5019
+ SecretSource = "SecretSource",
5020
5020
  Preimage = "Preimage"
5021
5021
  }
5022
5022
  /**
@@ -5024,13 +5024,13 @@ export declare enum ExternalSecretToSplit_Tags {
5024
5024
  */
5025
5025
  export declare const ExternalSecretToSplit: Readonly<{
5026
5026
  instanceOf: (obj: any) => obj is ExternalSecretToSplit;
5027
- PrivateKey: {
5027
+ SecretSource: {
5028
5028
  new (inner: {
5029
- source: ExternalSecretKeySource;
5029
+ source: ExternalSecretSource;
5030
5030
  }): {
5031
- readonly tag: ExternalSecretToSplit_Tags.PrivateKey;
5031
+ readonly tag: ExternalSecretToSplit_Tags.SecretSource;
5032
5032
  readonly inner: Readonly<{
5033
- source: ExternalSecretKeySource;
5033
+ source: ExternalSecretSource;
5034
5034
  }>;
5035
5035
  /**
5036
5036
  * @private
@@ -5039,11 +5039,11 @@ export declare const ExternalSecretToSplit: Readonly<{
5039
5039
  readonly [uniffiTypeNameSymbol]: "ExternalSecretToSplit";
5040
5040
  };
5041
5041
  "new"(inner: {
5042
- source: ExternalSecretKeySource;
5042
+ source: ExternalSecretSource;
5043
5043
  }): {
5044
- readonly tag: ExternalSecretToSplit_Tags.PrivateKey;
5044
+ readonly tag: ExternalSecretToSplit_Tags.SecretSource;
5045
5045
  readonly inner: Readonly<{
5046
- source: ExternalSecretKeySource;
5046
+ source: ExternalSecretSource;
5047
5047
  }>;
5048
5048
  /**
5049
5049
  * @private
@@ -5052,9 +5052,9 @@ export declare const ExternalSecretToSplit: Readonly<{
5052
5052
  readonly [uniffiTypeNameSymbol]: "ExternalSecretToSplit";
5053
5053
  };
5054
5054
  instanceOf(obj: any): obj is {
5055
- readonly tag: ExternalSecretToSplit_Tags.PrivateKey;
5055
+ readonly tag: ExternalSecretToSplit_Tags.SecretSource;
5056
5056
  readonly inner: Readonly<{
5057
- source: ExternalSecretKeySource;
5057
+ source: ExternalSecretSource;
5058
5058
  }>;
5059
5059
  /**
5060
5060
  * @private
@@ -11631,40 +11631,42 @@ export interface ExternalSigner {
11631
11631
  signal: AbortSignal;
11632
11632
  }): Promise<PublicKeyBytes>;
11633
11633
  /**
11634
- * Generates a random secret key.
11634
+ * Generates a random secret.
11635
11635
  *
11636
11636
  * # Returns
11637
- * A randomly generated secret key source, or an error string
11637
+ * A randomly generated secret source, or an error string
11638
11638
  */
11639
11639
  generateRandomKey(asyncOpts_?: {
11640
11640
  signal: AbortSignal;
11641
- }): Promise<ExternalSecretKeySource>;
11641
+ }): Promise<ExternalSecretSource>;
11642
11642
  /**
11643
- * Gets an encrypted static deposit secret key by index.
11643
+ * Gets an encrypted static deposit secret by index.
11644
11644
  *
11645
11645
  * # Arguments
11646
11646
  * * `index` - The index of the static deposit key
11647
11647
  *
11648
11648
  * # Returns
11649
- * The encrypted secret key, or an error string
11649
+ * The encrypted secret source, or an error string
11650
+ *
11651
+ * This is the encrypted version of: [JavaScript `getStaticDepositSecretKey`](https://docs.spark.money/wallets/spark-signer#get-static-deposit-secret-key)
11650
11652
  */
11651
- staticDepositSecretKeyEncrypted(index: number, asyncOpts_?: {
11653
+ staticDepositSecretEncrypted(index: number, asyncOpts_?: {
11652
11654
  signal: AbortSignal;
11653
- }): Promise<ExternalSecretKeySource>;
11655
+ }): Promise<ExternalSecretSource>;
11654
11656
  /**
11655
- * Gets a static deposit secret key by index.
11657
+ * Gets a static deposit secret by index.
11656
11658
  *
11657
11659
  * # Arguments
11658
11660
  * * `index` - The index of the static deposit key
11659
11661
  *
11660
11662
  * # Returns
11661
- * The 32-byte secret key, or an error string
11663
+ * The 32-byte secret, or an error string
11662
11664
  *
11663
11665
  * See also: [JavaScript `getStaticDepositSecretKey`](https://docs.spark.money/wallets/spark-signer#get-static-deposit-secret-key)
11664
11666
  */
11665
- staticDepositSecretKey(index: number, asyncOpts_?: {
11667
+ staticDepositSecret(index: number, asyncOpts_?: {
11666
11668
  signal: AbortSignal;
11667
- }): Promise<PrivateKeyBytes>;
11669
+ }): Promise<SecretBytes>;
11668
11670
  /**
11669
11671
  * Gets a static deposit public key by index.
11670
11672
  *
@@ -11680,21 +11682,21 @@ export interface ExternalSigner {
11680
11682
  signal: AbortSignal;
11681
11683
  }): Promise<PublicKeyBytes>;
11682
11684
  /**
11683
- * Subtracts one secret key from another.
11685
+ * Subtracts one secret from another.
11684
11686
  *
11685
11687
  * # Arguments
11686
- * * `signing_key` - The first secret key source
11687
- * * `new_signing_key` - The second secret key source to subtract
11688
+ * * `signing_key` - The first secret source
11689
+ * * `new_signing_key` - The second secret source to subtract
11688
11690
  *
11689
11691
  * # Returns
11690
- * The resulting secret key source, or an error string
11692
+ * The resulting secret source, or an error string
11691
11693
  *
11692
11694
  * See also: [JavaScript `subtractSplitAndEncrypt`](https://docs.spark.money/wallets/spark-signer#subtract,-split,-and-encrypt)
11693
11695
  * (this method provides the subtraction step of that higher-level operation)
11694
11696
  */
11695
- subtractSecretKeys(signingKey: ExternalSecretKeySource, newSigningKey: ExternalSecretKeySource, asyncOpts_?: {
11697
+ subtractSecrets(signingKey: ExternalSecretSource, newSigningKey: ExternalSecretSource, asyncOpts_?: {
11696
11698
  signal: AbortSignal;
11697
- }): Promise<ExternalSecretKeySource>;
11699
+ }): Promise<ExternalSecretSource>;
11698
11700
  /**
11699
11701
  * Splits a secret with proofs using Shamir's Secret Sharing.
11700
11702
  *
@@ -11712,28 +11714,28 @@ export interface ExternalSigner {
11712
11714
  signal: AbortSignal;
11713
11715
  }): Promise<Array<ExternalVerifiableSecretShare>>;
11714
11716
  /**
11715
- * Encrypts a secret key for a specific receiver's public key.
11717
+ * Encrypts a secret for a specific receiver's public key.
11716
11718
  *
11717
11719
  * # Arguments
11718
- * * `secret_key` - The encrypted secret key to re-encrypt
11720
+ * * `encrypted_secret` - The encrypted secret to re-encrypt
11719
11721
  * * `receiver_public_key` - The receiver's 33-byte public key
11720
11722
  *
11721
11723
  * # Returns
11722
11724
  * Encrypted data for the receiver, or an error string
11723
11725
  */
11724
- encryptSecretKeyForReceiver(secretKey: ExternalEncryptedPrivateKey, receiverPublicKey: PublicKeyBytes, asyncOpts_?: {
11726
+ encryptSecretForReceiver(encryptedSecret: ExternalEncryptedSecret, receiverPublicKey: PublicKeyBytes, asyncOpts_?: {
11725
11727
  signal: AbortSignal;
11726
11728
  }): Promise<ArrayBuffer>;
11727
11729
  /**
11728
- * Gets the public key from a secret key source.
11730
+ * Gets the public key from a secret source.
11729
11731
  *
11730
11732
  * # Arguments
11731
- * * `secret_key` - The secret key source
11733
+ * * `secret` - The secret source
11732
11734
  *
11733
11735
  * # Returns
11734
11736
  * The corresponding 33-byte public key, or an error string
11735
11737
  */
11736
- publicKeyFromSecretKeySource(secretKey: ExternalSecretKeySource, asyncOpts_?: {
11738
+ publicKeyFromSecret(secret: ExternalSecretSource, asyncOpts_?: {
11737
11739
  signal: AbortSignal;
11738
11740
  }): Promise<PublicKeyBytes>;
11739
11741
  /**
@@ -11913,40 +11915,42 @@ export declare class ExternalSignerImpl extends UniffiAbstractObject implements
11913
11915
  signal: AbortSignal;
11914
11916
  }): Promise<PublicKeyBytes>;
11915
11917
  /**
11916
- * Generates a random secret key.
11918
+ * Generates a random secret.
11917
11919
  *
11918
11920
  * # Returns
11919
- * A randomly generated secret key source, or an error string
11921
+ * A randomly generated secret source, or an error string
11920
11922
  */
11921
11923
  generateRandomKey(asyncOpts_?: {
11922
11924
  signal: AbortSignal;
11923
- }): Promise<ExternalSecretKeySource>;
11925
+ }): Promise<ExternalSecretSource>;
11924
11926
  /**
11925
- * Gets an encrypted static deposit secret key by index.
11927
+ * Gets an encrypted static deposit secret by index.
11926
11928
  *
11927
11929
  * # Arguments
11928
11930
  * * `index` - The index of the static deposit key
11929
11931
  *
11930
11932
  * # Returns
11931
- * The encrypted secret key, or an error string
11933
+ * The encrypted secret source, or an error string
11934
+ *
11935
+ * This is the encrypted version of: [JavaScript `getStaticDepositSecretKey`](https://docs.spark.money/wallets/spark-signer#get-static-deposit-secret-key)
11932
11936
  */
11933
- staticDepositSecretKeyEncrypted(index: number, asyncOpts_?: {
11937
+ staticDepositSecretEncrypted(index: number, asyncOpts_?: {
11934
11938
  signal: AbortSignal;
11935
- }): Promise<ExternalSecretKeySource>;
11939
+ }): Promise<ExternalSecretSource>;
11936
11940
  /**
11937
- * Gets a static deposit secret key by index.
11941
+ * Gets a static deposit secret by index.
11938
11942
  *
11939
11943
  * # Arguments
11940
11944
  * * `index` - The index of the static deposit key
11941
11945
  *
11942
11946
  * # Returns
11943
- * The 32-byte secret key, or an error string
11947
+ * The 32-byte secret, or an error string
11944
11948
  *
11945
11949
  * See also: [JavaScript `getStaticDepositSecretKey`](https://docs.spark.money/wallets/spark-signer#get-static-deposit-secret-key)
11946
11950
  */
11947
- staticDepositSecretKey(index: number, asyncOpts_?: {
11951
+ staticDepositSecret(index: number, asyncOpts_?: {
11948
11952
  signal: AbortSignal;
11949
- }): Promise<PrivateKeyBytes>;
11953
+ }): Promise<SecretBytes>;
11950
11954
  /**
11951
11955
  * Gets a static deposit public key by index.
11952
11956
  *
@@ -11962,21 +11966,21 @@ export declare class ExternalSignerImpl extends UniffiAbstractObject implements
11962
11966
  signal: AbortSignal;
11963
11967
  }): Promise<PublicKeyBytes>;
11964
11968
  /**
11965
- * Subtracts one secret key from another.
11969
+ * Subtracts one secret from another.
11966
11970
  *
11967
11971
  * # Arguments
11968
- * * `signing_key` - The first secret key source
11969
- * * `new_signing_key` - The second secret key source to subtract
11972
+ * * `signing_key` - The first secret source
11973
+ * * `new_signing_key` - The second secret source to subtract
11970
11974
  *
11971
11975
  * # Returns
11972
- * The resulting secret key source, or an error string
11976
+ * The resulting secret source, or an error string
11973
11977
  *
11974
11978
  * See also: [JavaScript `subtractSplitAndEncrypt`](https://docs.spark.money/wallets/spark-signer#subtract,-split,-and-encrypt)
11975
11979
  * (this method provides the subtraction step of that higher-level operation)
11976
11980
  */
11977
- subtractSecretKeys(signingKey: ExternalSecretKeySource, newSigningKey: ExternalSecretKeySource, asyncOpts_?: {
11981
+ subtractSecrets(signingKey: ExternalSecretSource, newSigningKey: ExternalSecretSource, asyncOpts_?: {
11978
11982
  signal: AbortSignal;
11979
- }): Promise<ExternalSecretKeySource>;
11983
+ }): Promise<ExternalSecretSource>;
11980
11984
  /**
11981
11985
  * Splits a secret with proofs using Shamir's Secret Sharing.
11982
11986
  *
@@ -11994,28 +11998,28 @@ export declare class ExternalSignerImpl extends UniffiAbstractObject implements
11994
11998
  signal: AbortSignal;
11995
11999
  }): Promise<Array<ExternalVerifiableSecretShare>>;
11996
12000
  /**
11997
- * Encrypts a secret key for a specific receiver's public key.
12001
+ * Encrypts a secret for a specific receiver's public key.
11998
12002
  *
11999
12003
  * # Arguments
12000
- * * `secret_key` - The encrypted secret key to re-encrypt
12004
+ * * `encrypted_secret` - The encrypted secret to re-encrypt
12001
12005
  * * `receiver_public_key` - The receiver's 33-byte public key
12002
12006
  *
12003
12007
  * # Returns
12004
12008
  * Encrypted data for the receiver, or an error string
12005
12009
  */
12006
- encryptSecretKeyForReceiver(secretKey: ExternalEncryptedPrivateKey, receiverPublicKey: PublicKeyBytes, asyncOpts_?: {
12010
+ encryptSecretForReceiver(encryptedSecret: ExternalEncryptedSecret, receiverPublicKey: PublicKeyBytes, asyncOpts_?: {
12007
12011
  signal: AbortSignal;
12008
12012
  }): Promise<ArrayBuffer>;
12009
12013
  /**
12010
- * Gets the public key from a secret key source.
12014
+ * Gets the public key from a secret source.
12011
12015
  *
12012
12016
  * # Arguments
12013
- * * `secret_key` - The secret key source
12017
+ * * `secret` - The secret source
12014
12018
  *
12015
12019
  * # Returns
12016
12020
  * The corresponding 33-byte public key, or an error string
12017
12021
  */
12018
- publicKeyFromSecretKeySource(secretKey: ExternalSecretKeySource, asyncOpts_?: {
12022
+ publicKeyFromSecret(secret: ExternalSecretSource, asyncOpts_?: {
12019
12023
  signal: AbortSignal;
12020
12024
  }): Promise<PublicKeyBytes>;
12021
12025
  /**
@@ -13323,12 +13327,12 @@ declare const _default: Readonly<{
13323
13327
  lift(value: UniffiByteArray): ExternalAggregateFrostRequest;
13324
13328
  lower(value: ExternalAggregateFrostRequest): UniffiByteArray;
13325
13329
  };
13326
- FfiConverterTypeExternalEncryptedPrivateKey: {
13327
- read(from: RustBuffer): ExternalEncryptedPrivateKey;
13328
- write(value: ExternalEncryptedPrivateKey, into: RustBuffer): void;
13329
- allocationSize(value: ExternalEncryptedPrivateKey): number;
13330
- lift(value: UniffiByteArray): ExternalEncryptedPrivateKey;
13331
- lower(value: ExternalEncryptedPrivateKey): UniffiByteArray;
13330
+ FfiConverterTypeExternalEncryptedSecret: {
13331
+ read(from: RustBuffer): ExternalEncryptedSecret;
13332
+ write(value: ExternalEncryptedSecret, into: RustBuffer): void;
13333
+ allocationSize(value: ExternalEncryptedSecret): number;
13334
+ lift(value: UniffiByteArray): ExternalEncryptedSecret;
13335
+ lower(value: ExternalEncryptedSecret): UniffiByteArray;
13332
13336
  };
13333
13337
  FfiConverterTypeExternalFrostCommitments: {
13334
13338
  read(from: RustBuffer): ExternalFrostCommitments;
@@ -13372,13 +13376,6 @@ declare const _default: Readonly<{
13372
13376
  lift(value: UniffiByteArray): ExternalScalar;
13373
13377
  lower(value: ExternalScalar): UniffiByteArray;
13374
13378
  };
13375
- FfiConverterTypeExternalSecretKeySource: {
13376
- read(from: RustBuffer): ExternalSecretKeySource;
13377
- write(value: ExternalSecretKeySource, into: RustBuffer): void;
13378
- allocationSize(value: ExternalSecretKeySource): number;
13379
- lift(value: UniffiByteArray): ExternalSecretKeySource;
13380
- lower(value: ExternalSecretKeySource): UniffiByteArray;
13381
- };
13382
13379
  FfiConverterTypeExternalSecretShare: {
13383
13380
  read(from: RustBuffer): ExternalSecretShare;
13384
13381
  write(value: ExternalSecretShare, into: RustBuffer): void;
@@ -13386,6 +13383,13 @@ declare const _default: Readonly<{
13386
13383
  lift(value: UniffiByteArray): ExternalSecretShare;
13387
13384
  lower(value: ExternalSecretShare): UniffiByteArray;
13388
13385
  };
13386
+ FfiConverterTypeExternalSecretSource: {
13387
+ read(from: RustBuffer): ExternalSecretSource;
13388
+ write(value: ExternalSecretSource, into: RustBuffer): void;
13389
+ allocationSize(value: ExternalSecretSource): number;
13390
+ lift(value: UniffiByteArray): ExternalSecretSource;
13391
+ lower(value: ExternalSecretSource): UniffiByteArray;
13392
+ };
13389
13393
  FfiConverterTypeExternalSecretToSplit: {
13390
13394
  read(from: RustBuffer): ExternalSecretToSplit;
13391
13395
  write(value: ExternalSecretToSplit, into: RustBuffer): void;
@@ -13879,13 +13883,6 @@ declare const _default: Readonly<{
13879
13883
  lift(value: UniffiByteArray): PrepareSendPaymentResponse;
13880
13884
  lower(value: PrepareSendPaymentResponse): UniffiByteArray;
13881
13885
  };
13882
- FfiConverterTypePrivateKeyBytes: {
13883
- read(from: RustBuffer): PrivateKeyBytes;
13884
- write(value: PrivateKeyBytes, into: RustBuffer): void;
13885
- allocationSize(value: PrivateKeyBytes): number;
13886
- lift(value: UniffiByteArray): PrivateKeyBytes;
13887
- lower(value: PrivateKeyBytes): UniffiByteArray;
13888
- };
13889
13886
  FfiConverterTypeProvisionalPayment: {
13890
13887
  read(from: RustBuffer): ProvisionalPayment;
13891
13888
  write(value: ProvisionalPayment, into: RustBuffer): void;
@@ -14014,6 +14011,13 @@ declare const _default: Readonly<{
14014
14011
  lift(value: UniffiByteArray): SdkEvent;
14015
14012
  lower(value: SdkEvent): UniffiByteArray;
14016
14013
  };
14014
+ FfiConverterTypeSecretBytes: {
14015
+ read(from: RustBuffer): SecretBytes;
14016
+ write(value: SecretBytes, into: RustBuffer): void;
14017
+ allocationSize(value: SecretBytes): number;
14018
+ lift(value: UniffiByteArray): SecretBytes;
14019
+ lower(value: SecretBytes): UniffiByteArray;
14020
+ };
14017
14021
  FfiConverterTypeSeed: {
14018
14022
  read(from: RustBuffer): Seed;
14019
14023
  write(value: Seed, into: RustBuffer): void;