@breeztech/breez-sdk-spark 0.7.8 → 0.7.9

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.
Binary file
@@ -1033,9 +1033,9 @@ export class DefaultSigner {
1033
1033
  subtractPrivateKeys(signing_key: ExternalSecretSource, new_signing_key: ExternalSecretSource): Promise<ExternalSecretSource>;
1034
1034
  derivePublicKey(path: string): Promise<PublicKeyBytes>;
1035
1035
  signHashSchnorr(hash: Uint8Array, path: string): Promise<SchnorrSignatureBytes>;
1036
- generateRandomKey(): Promise<ExternalSecretSource>;
1037
1036
  identityPublicKey(): PublicKeyBytes;
1038
1037
  getStaticDepositPrivateKey(index: number): Promise<SecretBytes>;
1038
+ generateRandomSecret(): Promise<ExternalEncryptedSecret>;
1039
1039
  getPublicKeyFromSecretSource(private_key: ExternalSecretSource): Promise<PublicKeyBytes>;
1040
1040
  signEcdsaRecoverable(message: MessageBytes, path: string): Promise<RecoverableEcdsaSignatureBytes>;
1041
1041
  getPublicKeyForNode(id: ExternalTreeNodeId): Promise<PublicKeyBytes>;
@@ -762,13 +762,6 @@ export class DefaultSigner {
762
762
  const ret = wasm.defaultsigner_signHashSchnorr(this.__wbg_ptr, ptr0, len0, ptr1, len1);
763
763
  return ret;
764
764
  }
765
- /**
766
- * @returns {Promise<ExternalSecretSource>}
767
- */
768
- generateRandomKey() {
769
- const ret = wasm.defaultsigner_generateRandomKey(this.__wbg_ptr);
770
- return ret;
771
- }
772
765
  /**
773
766
  * @returns {PublicKeyBytes}
774
767
  */
@@ -787,6 +780,13 @@ export class DefaultSigner {
787
780
  const ret = wasm.defaultsigner_getStaticDepositPrivateKey(this.__wbg_ptr, index);
788
781
  return ret;
789
782
  }
783
+ /**
784
+ * @returns {Promise<ExternalEncryptedSecret>}
785
+ */
786
+ generateRandomSecret() {
787
+ const ret = wasm.defaultsigner_generateRandomSecret(this.__wbg_ptr);
788
+ return ret;
789
+ }
790
790
  /**
791
791
  * @param {ExternalSecretSource} private_key
792
792
  * @returns {Promise<PublicKeyBytes>}
@@ -1487,8 +1487,8 @@ export function __wbg_generateFrostSigningCommitments_0630bbabc5b72b42() { retur
1487
1487
  return ret;
1488
1488
  }, arguments) };
1489
1489
 
1490
- export function __wbg_generateRandomKey_48fd8bb84246b45f() { return handleError(function (arg0) {
1491
- const ret = arg0.generateRandomKey();
1490
+ export function __wbg_generateRandomSecret_3dcc7ca4a61a1d4d() { return handleError(function (arg0) {
1491
+ const ret = arg0.generateRandomSecret();
1492
1492
  return ret;
1493
1493
  }, arguments) };
1494
1494
 
@@ -2383,12 +2383,12 @@ export function __wbindgen_cb_drop(arg0) {
2383
2383
  return ret;
2384
2384
  };
2385
2385
 
2386
- export function __wbindgen_closure_wrapper11277(arg0, arg1, arg2) {
2386
+ export function __wbindgen_closure_wrapper11279(arg0, arg1, arg2) {
2387
2387
  const ret = makeMutClosure(arg0, arg1, 817, __wbg_adapter_64);
2388
2388
  return ret;
2389
2389
  };
2390
2390
 
2391
- export function __wbindgen_closure_wrapper13182(arg0, arg1, arg2) {
2391
+ export function __wbindgen_closure_wrapper13184(arg0, arg1, arg2) {
2392
2392
  const ret = makeMutClosure(arg0, arg1, 1053, __wbg_adapter_67);
2393
2393
  return ret;
2394
2394
  };
@@ -51,7 +51,7 @@ export const defaultsigner_eciesDecrypt: (a: number, b: number, c: number, d: nu
51
51
  export const defaultsigner_eciesEncrypt: (a: number, b: number, c: number, d: number, e: number) => any;
52
52
  export const defaultsigner_encryptPrivateKeyForReceiver: (a: number, b: any, c: any) => any;
53
53
  export const defaultsigner_generateFrostSigningCommitments: (a: number) => any;
54
- export const defaultsigner_generateRandomKey: (a: number) => any;
54
+ export const defaultsigner_generateRandomSecret: (a: number) => any;
55
55
  export const defaultsigner_getPublicKeyForNode: (a: number, b: any) => any;
56
56
  export const defaultsigner_getPublicKeyFromSecretSource: (a: number, b: any) => any;
57
57
  export const defaultsigner_getStaticDepositPrivateKey: (a: number, b: number) => any;
@@ -1033,9 +1033,9 @@ export class DefaultSigner {
1033
1033
  subtractPrivateKeys(signing_key: ExternalSecretSource, new_signing_key: ExternalSecretSource): Promise<ExternalSecretSource>;
1034
1034
  derivePublicKey(path: string): Promise<PublicKeyBytes>;
1035
1035
  signHashSchnorr(hash: Uint8Array, path: string): Promise<SchnorrSignatureBytes>;
1036
- generateRandomKey(): Promise<ExternalSecretSource>;
1037
1036
  identityPublicKey(): PublicKeyBytes;
1038
1037
  getStaticDepositPrivateKey(index: number): Promise<SecretBytes>;
1038
+ generateRandomSecret(): Promise<ExternalEncryptedSecret>;
1039
1039
  getPublicKeyFromSecretSource(private_key: ExternalSecretSource): Promise<PublicKeyBytes>;
1040
1040
  signEcdsaRecoverable(message: MessageBytes, path: string): Promise<RecoverableEcdsaSignatureBytes>;
1041
1041
  getPublicKeyForNode(id: ExternalTreeNodeId): Promise<PublicKeyBytes>;
@@ -745,13 +745,6 @@ export class DefaultSigner {
745
745
  const ret = wasm.defaultsigner_signHashSchnorr(this.__wbg_ptr, ptr0, len0, ptr1, len1);
746
746
  return ret;
747
747
  }
748
- /**
749
- * @returns {Promise<ExternalSecretSource>}
750
- */
751
- generateRandomKey() {
752
- const ret = wasm.defaultsigner_generateRandomKey(this.__wbg_ptr);
753
- return ret;
754
- }
755
748
  /**
756
749
  * @returns {PublicKeyBytes}
757
750
  */
@@ -770,6 +763,13 @@ export class DefaultSigner {
770
763
  const ret = wasm.defaultsigner_getStaticDepositPrivateKey(this.__wbg_ptr, index);
771
764
  return ret;
772
765
  }
766
+ /**
767
+ * @returns {Promise<ExternalEncryptedSecret>}
768
+ */
769
+ generateRandomSecret() {
770
+ const ret = wasm.defaultsigner_generateRandomSecret(this.__wbg_ptr);
771
+ return ret;
772
+ }
773
773
  /**
774
774
  * @param {ExternalSecretSource} private_key
775
775
  * @returns {Promise<PublicKeyBytes>}
@@ -1428,8 +1428,8 @@ const imports = {
1428
1428
  const ret = arg0.generateFrostSigningCommitments();
1429
1429
  return ret;
1430
1430
  }, arguments) },
1431
- __wbg_generateRandomKey_48fd8bb84246b45f: function() { return handleError(function (arg0) {
1432
- const ret = arg0.generateRandomKey();
1431
+ __wbg_generateRandomSecret_3dcc7ca4a61a1d4d: function() { return handleError(function (arg0) {
1432
+ const ret = arg0.generateRandomSecret();
1433
1433
  return ret;
1434
1434
  }, arguments) },
1435
1435
  __wbg_getAddressUtxos_328ceb8b4a63a6da: function() { return handleError(function (arg0, arg1, arg2) {
@@ -2182,11 +2182,11 @@ const imports = {
2182
2182
  const ret = false;
2183
2183
  return ret;
2184
2184
  },
2185
- __wbindgen_closure_wrapper11277: function(arg0, arg1, arg2) {
2185
+ __wbindgen_closure_wrapper11279: function(arg0, arg1, arg2) {
2186
2186
  const ret = makeMutClosure(arg0, arg1, 817, __wbg_adapter_64);
2187
2187
  return ret;
2188
2188
  },
2189
- __wbindgen_closure_wrapper13182: function(arg0, arg1, arg2) {
2189
+ __wbindgen_closure_wrapper13184: function(arg0, arg1, arg2) {
2190
2190
  const ret = makeMutClosure(arg0, arg1, 1053, __wbg_adapter_67);
2191
2191
  return ret;
2192
2192
  },
Binary file
@@ -51,7 +51,7 @@ export const defaultsigner_eciesDecrypt: (a: number, b: number, c: number, d: nu
51
51
  export const defaultsigner_eciesEncrypt: (a: number, b: number, c: number, d: number, e: number) => any;
52
52
  export const defaultsigner_encryptPrivateKeyForReceiver: (a: number, b: any, c: any) => any;
53
53
  export const defaultsigner_generateFrostSigningCommitments: (a: number) => any;
54
- export const defaultsigner_generateRandomKey: (a: number) => any;
54
+ export const defaultsigner_generateRandomSecret: (a: number) => any;
55
55
  export const defaultsigner_getPublicKeyForNode: (a: number, b: any) => any;
56
56
  export const defaultsigner_getPublicKeyFromSecretSource: (a: number, b: any) => any;
57
57
  export const defaultsigner_getStaticDepositPrivateKey: (a: number, b: number) => any;
@@ -1033,9 +1033,9 @@ export class DefaultSigner {
1033
1033
  subtractPrivateKeys(signing_key: ExternalSecretSource, new_signing_key: ExternalSecretSource): Promise<ExternalSecretSource>;
1034
1034
  derivePublicKey(path: string): Promise<PublicKeyBytes>;
1035
1035
  signHashSchnorr(hash: Uint8Array, path: string): Promise<SchnorrSignatureBytes>;
1036
- generateRandomKey(): Promise<ExternalSecretSource>;
1037
1036
  identityPublicKey(): PublicKeyBytes;
1038
1037
  getStaticDepositPrivateKey(index: number): Promise<SecretBytes>;
1038
+ generateRandomSecret(): Promise<ExternalEncryptedSecret>;
1039
1039
  getPublicKeyFromSecretSource(private_key: ExternalSecretSource): Promise<PublicKeyBytes>;
1040
1040
  signEcdsaRecoverable(message: MessageBytes, path: string): Promise<RecoverableEcdsaSignatureBytes>;
1041
1041
  getPublicKeyForNode(id: ExternalTreeNodeId): Promise<PublicKeyBytes>;
@@ -759,13 +759,6 @@ class DefaultSigner {
759
759
  const ret = wasm.defaultsigner_signHashSchnorr(this.__wbg_ptr, ptr0, len0, ptr1, len1);
760
760
  return ret;
761
761
  }
762
- /**
763
- * @returns {Promise<ExternalSecretSource>}
764
- */
765
- generateRandomKey() {
766
- const ret = wasm.defaultsigner_generateRandomKey(this.__wbg_ptr);
767
- return ret;
768
- }
769
762
  /**
770
763
  * @returns {PublicKeyBytes}
771
764
  */
@@ -784,6 +777,13 @@ class DefaultSigner {
784
777
  const ret = wasm.defaultsigner_getStaticDepositPrivateKey(this.__wbg_ptr, index);
785
778
  return ret;
786
779
  }
780
+ /**
781
+ * @returns {Promise<ExternalEncryptedSecret>}
782
+ */
783
+ generateRandomSecret() {
784
+ const ret = wasm.defaultsigner_generateRandomSecret(this.__wbg_ptr);
785
+ return ret;
786
+ }
787
787
  /**
788
788
  * @param {ExternalSecretSource} private_key
789
789
  * @returns {Promise<PublicKeyBytes>}
@@ -1490,8 +1490,8 @@ module.exports.__wbg_generateFrostSigningCommitments_0630bbabc5b72b42 = function
1490
1490
  return ret;
1491
1491
  }, arguments) };
1492
1492
 
1493
- module.exports.__wbg_generateRandomKey_48fd8bb84246b45f = function() { return handleError(function (arg0) {
1494
- const ret = arg0.generateRandomKey();
1493
+ module.exports.__wbg_generateRandomSecret_3dcc7ca4a61a1d4d = function() { return handleError(function (arg0) {
1494
+ const ret = arg0.generateRandomSecret();
1495
1495
  return ret;
1496
1496
  }, arguments) };
1497
1497
 
@@ -2386,12 +2386,12 @@ module.exports.__wbindgen_cb_drop = function(arg0) {
2386
2386
  return ret;
2387
2387
  };
2388
2388
 
2389
- module.exports.__wbindgen_closure_wrapper11277 = function(arg0, arg1, arg2) {
2389
+ module.exports.__wbindgen_closure_wrapper11279 = function(arg0, arg1, arg2) {
2390
2390
  const ret = makeMutClosure(arg0, arg1, 817, __wbg_adapter_64);
2391
2391
  return ret;
2392
2392
  };
2393
2393
 
2394
- module.exports.__wbindgen_closure_wrapper13182 = function(arg0, arg1, arg2) {
2394
+ module.exports.__wbindgen_closure_wrapper13184 = function(arg0, arg1, arg2) {
2395
2395
  const ret = makeMutClosure(arg0, arg1, 1053, __wbg_adapter_67);
2396
2396
  return ret;
2397
2397
  };
Binary file
@@ -51,7 +51,7 @@ export const defaultsigner_eciesDecrypt: (a: number, b: number, c: number, d: nu
51
51
  export const defaultsigner_eciesEncrypt: (a: number, b: number, c: number, d: number, e: number) => any;
52
52
  export const defaultsigner_encryptPrivateKeyForReceiver: (a: number, b: any, c: any) => any;
53
53
  export const defaultsigner_generateFrostSigningCommitments: (a: number) => any;
54
- export const defaultsigner_generateRandomKey: (a: number) => any;
54
+ export const defaultsigner_generateRandomSecret: (a: number) => any;
55
55
  export const defaultsigner_getPublicKeyForNode: (a: number, b: any) => any;
56
56
  export const defaultsigner_getPublicKeyFromSecretSource: (a: number, b: any) => any;
57
57
  export const defaultsigner_getStaticDepositPrivateKey: (a: number, b: number) => any;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@breeztech/breez-sdk-spark",
3
- "version": "0.7.8",
3
+ "version": "0.7.9",
4
4
  "description": "Breez Spark SDK",
5
5
  "repository": "https://github.com/breez/spark-sdk",
6
6
  "author": "Breez <contact@breez.technology> (https://github.com/breez)",
@@ -1033,9 +1033,9 @@ export class DefaultSigner {
1033
1033
  subtractPrivateKeys(signing_key: ExternalSecretSource, new_signing_key: ExternalSecretSource): Promise<ExternalSecretSource>;
1034
1034
  derivePublicKey(path: string): Promise<PublicKeyBytes>;
1035
1035
  signHashSchnorr(hash: Uint8Array, path: string): Promise<SchnorrSignatureBytes>;
1036
- generateRandomKey(): Promise<ExternalSecretSource>;
1037
1036
  identityPublicKey(): PublicKeyBytes;
1038
1037
  getStaticDepositPrivateKey(index: number): Promise<SecretBytes>;
1038
+ generateRandomSecret(): Promise<ExternalEncryptedSecret>;
1039
1039
  getPublicKeyFromSecretSource(private_key: ExternalSecretSource): Promise<PublicKeyBytes>;
1040
1040
  signEcdsaRecoverable(message: MessageBytes, path: string): Promise<RecoverableEcdsaSignatureBytes>;
1041
1041
  getPublicKeyForNode(id: ExternalTreeNodeId): Promise<PublicKeyBytes>;
@@ -1148,7 +1148,7 @@ export interface InitOutput {
1148
1148
  readonly defaultsigner_eciesEncrypt: (a: number, b: number, c: number, d: number, e: number) => any;
1149
1149
  readonly defaultsigner_encryptPrivateKeyForReceiver: (a: number, b: any, c: any) => any;
1150
1150
  readonly defaultsigner_generateFrostSigningCommitments: (a: number) => any;
1151
- readonly defaultsigner_generateRandomKey: (a: number) => any;
1151
+ readonly defaultsigner_generateRandomSecret: (a: number) => any;
1152
1152
  readonly defaultsigner_getPublicKeyForNode: (a: number, b: any) => any;
1153
1153
  readonly defaultsigner_getPublicKeyFromSecretSource: (a: number, b: any) => any;
1154
1154
  readonly defaultsigner_getStaticDepositPrivateKey: (a: number, b: number) => any;
@@ -754,13 +754,6 @@ export class DefaultSigner {
754
754
  const ret = wasm.defaultsigner_signHashSchnorr(this.__wbg_ptr, ptr0, len0, ptr1, len1);
755
755
  return ret;
756
756
  }
757
- /**
758
- * @returns {Promise<ExternalSecretSource>}
759
- */
760
- generateRandomKey() {
761
- const ret = wasm.defaultsigner_generateRandomKey(this.__wbg_ptr);
762
- return ret;
763
- }
764
757
  /**
765
758
  * @returns {PublicKeyBytes}
766
759
  */
@@ -779,6 +772,13 @@ export class DefaultSigner {
779
772
  const ret = wasm.defaultsigner_getStaticDepositPrivateKey(this.__wbg_ptr, index);
780
773
  return ret;
781
774
  }
775
+ /**
776
+ * @returns {Promise<ExternalEncryptedSecret>}
777
+ */
778
+ generateRandomSecret() {
779
+ const ret = wasm.defaultsigner_generateRandomSecret(this.__wbg_ptr);
780
+ return ret;
781
+ }
782
782
  /**
783
783
  * @param {ExternalSecretSource} private_key
784
784
  * @returns {Promise<PublicKeyBytes>}
@@ -1469,8 +1469,8 @@ function __wbg_get_imports() {
1469
1469
  const ret = arg0.generateFrostSigningCommitments();
1470
1470
  return ret;
1471
1471
  }, arguments) };
1472
- imports.wbg.__wbg_generateRandomKey_48fd8bb84246b45f = function() { return handleError(function (arg0) {
1473
- const ret = arg0.generateRandomKey();
1472
+ imports.wbg.__wbg_generateRandomSecret_3dcc7ca4a61a1d4d = function() { return handleError(function (arg0) {
1473
+ const ret = arg0.generateRandomSecret();
1474
1474
  return ret;
1475
1475
  }, arguments) };
1476
1476
  imports.wbg.__wbg_getAddressUtxos_328ceb8b4a63a6da = function() { return handleError(function (arg0, arg1, arg2) {
@@ -2223,11 +2223,11 @@ function __wbg_get_imports() {
2223
2223
  const ret = false;
2224
2224
  return ret;
2225
2225
  };
2226
- imports.wbg.__wbindgen_closure_wrapper11277 = function(arg0, arg1, arg2) {
2226
+ imports.wbg.__wbindgen_closure_wrapper11279 = function(arg0, arg1, arg2) {
2227
2227
  const ret = makeMutClosure(arg0, arg1, 817, __wbg_adapter_64);
2228
2228
  return ret;
2229
2229
  };
2230
- imports.wbg.__wbindgen_closure_wrapper13182 = function(arg0, arg1, arg2) {
2230
+ imports.wbg.__wbindgen_closure_wrapper13184 = function(arg0, arg1, arg2) {
2231
2231
  const ret = makeMutClosure(arg0, arg1, 1053, __wbg_adapter_67);
2232
2232
  return ret;
2233
2233
  };
Binary file
@@ -51,7 +51,7 @@ export const defaultsigner_eciesDecrypt: (a: number, b: number, c: number, d: nu
51
51
  export const defaultsigner_eciesEncrypt: (a: number, b: number, c: number, d: number, e: number) => any;
52
52
  export const defaultsigner_encryptPrivateKeyForReceiver: (a: number, b: any, c: any) => any;
53
53
  export const defaultsigner_generateFrostSigningCommitments: (a: number) => any;
54
- export const defaultsigner_generateRandomKey: (a: number) => any;
54
+ export const defaultsigner_generateRandomSecret: (a: number) => any;
55
55
  export const defaultsigner_getPublicKeyForNode: (a: number, b: any) => any;
56
56
  export const defaultsigner_getPublicKeyFromSecretSource: (a: number, b: any) => any;
57
57
  export const defaultsigner_getStaticDepositPrivateKey: (a: number, b: number) => any;