@breeztech/breez-sdk-spark 0.7.5 → 0.7.6

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
@@ -1038,8 +1038,8 @@ export class DefaultSigner {
1038
1038
  signEcdsaRecoverable(message: MessageBytes, path: string): Promise<RecoverableEcdsaSignatureBytes>;
1039
1039
  getPublicKeyForNode(id: ExternalTreeNodeId): Promise<PublicKeyBytes>;
1040
1040
  splitSecretWithProofs(secret: ExternalSecretToSplit, threshold: number, num_shares: number): Promise<ExternalVerifiableSecretShare[]>;
1041
- getStaticDepositPublicKey(index: number): Promise<PublicKeyBytes>;
1042
1041
  getStaticDepositPrivateKey(index: number): Promise<PrivateKeyBytes>;
1042
+ getStaticDepositPublicKey(index: number): Promise<PublicKeyBytes>;
1043
1043
  encryptPrivateKeyForReceiver(private_key: ExternalEncryptedPrivateKey, receiver_public_key: PublicKeyBytes): Promise<Uint8Array>;
1044
1044
  generateFrostSigningCommitments(): Promise<ExternalFrostCommitments>;
1045
1045
  getStaticDepositPrivateKeySource(index: number): Promise<ExternalPrivateKeySource>;
@@ -810,18 +810,18 @@ export class DefaultSigner {
810
810
  }
811
811
  /**
812
812
  * @param {number} index
813
- * @returns {Promise<PublicKeyBytes>}
813
+ * @returns {Promise<PrivateKeyBytes>}
814
814
  */
815
- getStaticDepositPublicKey(index) {
816
- const ret = wasm.defaultsigner_getStaticDepositPublicKey(this.__wbg_ptr, index);
815
+ getStaticDepositPrivateKey(index) {
816
+ const ret = wasm.defaultsigner_getStaticDepositPrivateKey(this.__wbg_ptr, index);
817
817
  return ret;
818
818
  }
819
819
  /**
820
820
  * @param {number} index
821
- * @returns {Promise<PrivateKeyBytes>}
821
+ * @returns {Promise<PublicKeyBytes>}
822
822
  */
823
- getStaticDepositPrivateKey(index) {
824
- const ret = wasm.defaultsigner_getStaticDepositPrivateKey(this.__wbg_ptr, index);
823
+ getStaticDepositPublicKey(index) {
824
+ const ret = wasm.defaultsigner_getStaticDepositPublicKey(this.__wbg_ptr, index);
825
825
  return ret;
826
826
  }
827
827
  /**
@@ -1404,7 +1404,7 @@ export function __wbg_done_769e5ede4b31c67b(arg0) {
1404
1404
  return ret;
1405
1405
  };
1406
1406
 
1407
- export function __wbg_eciesDecrypt_4edc97146456d67b() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
1407
+ export function __wbg_eciesDecrypt_f54e495a0988c2cc() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
1408
1408
  let deferred1_0;
1409
1409
  let deferred1_1;
1410
1410
  try {
@@ -1419,7 +1419,7 @@ export function __wbg_eciesDecrypt_4edc97146456d67b() { return handleError(funct
1419
1419
  }
1420
1420
  }, arguments) };
1421
1421
 
1422
- export function __wbg_eciesEncrypt_040d338cf1cb289f() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
1422
+ export function __wbg_eciesEncrypt_d1c5b3c6a4602a28() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
1423
1423
  let deferred1_0;
1424
1424
  let deferred1_1;
1425
1425
  try {
@@ -1482,7 +1482,7 @@ export function __wbg_fetch_f156d10be9a5c88a(arg0) {
1482
1482
  return ret;
1483
1483
  };
1484
1484
 
1485
- export function __wbg_generateFrostSigningCommitments_3473ea4923985769() { return handleError(function (arg0) {
1485
+ export function __wbg_generateFrostSigningCommitments_0630bbabc5b72b42() { return handleError(function (arg0) {
1486
1486
  const ret = arg0.generateFrostSigningCommitments();
1487
1487
  return ret;
1488
1488
  }, arguments) };
@@ -1585,12 +1585,12 @@ export function __wbg_getStaticDepositPrivateKeySource_7b2991ed6d3d4711() { retu
1585
1585
  return ret;
1586
1586
  }, arguments) };
1587
1587
 
1588
- export function __wbg_getStaticDepositPrivateKey_c4cc635b7e2348a8() { return handleError(function (arg0, arg1) {
1588
+ export function __wbg_getStaticDepositPrivateKey_a7a4ab43f45f0713() { return handleError(function (arg0, arg1) {
1589
1589
  const ret = arg0.getStaticDepositPrivateKey(arg1 >>> 0);
1590
1590
  return ret;
1591
1591
  }, arguments) };
1592
1592
 
1593
- export function __wbg_getStaticDepositPublicKey_86535a86c4cf3d04() { return handleError(function (arg0, arg1) {
1593
+ export function __wbg_getStaticDepositPublicKey_4551dec44c20efe6() { return handleError(function (arg0, arg1) {
1594
1594
  const ret = arg0.getStaticDepositPublicKey(arg1 >>> 0);
1595
1595
  return ret;
1596
1596
  }, arguments) };
@@ -2218,7 +2218,7 @@ export function __wbg_subarray_aa9065fa9dc5df96(arg0, arg1, arg2) {
2218
2218
  return ret;
2219
2219
  };
2220
2220
 
2221
- export function __wbg_subtractPrivateKeys_8b281bbbac58f672() { return handleError(function (arg0, arg1, arg2) {
2221
+ export function __wbg_subtractPrivateKeys_113f7f7e343541b9() { return handleError(function (arg0, arg1, arg2) {
2222
2222
  const ret = arg0.subtractPrivateKeys(arg1, arg2);
2223
2223
  return ret;
2224
2224
  }, arguments) };
@@ -1038,8 +1038,8 @@ export class DefaultSigner {
1038
1038
  signEcdsaRecoverable(message: MessageBytes, path: string): Promise<RecoverableEcdsaSignatureBytes>;
1039
1039
  getPublicKeyForNode(id: ExternalTreeNodeId): Promise<PublicKeyBytes>;
1040
1040
  splitSecretWithProofs(secret: ExternalSecretToSplit, threshold: number, num_shares: number): Promise<ExternalVerifiableSecretShare[]>;
1041
- getStaticDepositPublicKey(index: number): Promise<PublicKeyBytes>;
1042
1041
  getStaticDepositPrivateKey(index: number): Promise<PrivateKeyBytes>;
1042
+ getStaticDepositPublicKey(index: number): Promise<PublicKeyBytes>;
1043
1043
  encryptPrivateKeyForReceiver(private_key: ExternalEncryptedPrivateKey, receiver_public_key: PublicKeyBytes): Promise<Uint8Array>;
1044
1044
  generateFrostSigningCommitments(): Promise<ExternalFrostCommitments>;
1045
1045
  getStaticDepositPrivateKeySource(index: number): Promise<ExternalPrivateKeySource>;
@@ -793,18 +793,18 @@ export class DefaultSigner {
793
793
  }
794
794
  /**
795
795
  * @param {number} index
796
- * @returns {Promise<PublicKeyBytes>}
796
+ * @returns {Promise<PrivateKeyBytes>}
797
797
  */
798
- getStaticDepositPublicKey(index) {
799
- const ret = wasm.defaultsigner_getStaticDepositPublicKey(this.__wbg_ptr, index);
798
+ getStaticDepositPrivateKey(index) {
799
+ const ret = wasm.defaultsigner_getStaticDepositPrivateKey(this.__wbg_ptr, index);
800
800
  return ret;
801
801
  }
802
802
  /**
803
803
  * @param {number} index
804
- * @returns {Promise<PrivateKeyBytes>}
804
+ * @returns {Promise<PublicKeyBytes>}
805
805
  */
806
- getStaticDepositPrivateKey(index) {
807
- const ret = wasm.defaultsigner_getStaticDepositPrivateKey(this.__wbg_ptr, index);
806
+ getStaticDepositPublicKey(index) {
807
+ const ret = wasm.defaultsigner_getStaticDepositPublicKey(this.__wbg_ptr, index);
808
808
  return ret;
809
809
  }
810
810
  /**
@@ -1358,7 +1358,7 @@ const imports = {
1358
1358
  const ret = arg0.done;
1359
1359
  return ret;
1360
1360
  },
1361
- __wbg_eciesDecrypt_4edc97146456d67b: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
1361
+ __wbg_eciesDecrypt_f54e495a0988c2cc: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
1362
1362
  let deferred1_0;
1363
1363
  let deferred1_1;
1364
1364
  try {
@@ -1372,7 +1372,7 @@ const imports = {
1372
1372
  wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
1373
1373
  }
1374
1374
  }, arguments) },
1375
- __wbg_eciesEncrypt_040d338cf1cb289f: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
1375
+ __wbg_eciesEncrypt_d1c5b3c6a4602a28: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
1376
1376
  let deferred1_0;
1377
1377
  let deferred1_1;
1378
1378
  try {
@@ -1424,7 +1424,7 @@ const imports = {
1424
1424
  const ret = fetch(arg0);
1425
1425
  return ret;
1426
1426
  },
1427
- __wbg_generateFrostSigningCommitments_3473ea4923985769: function() { return handleError(function (arg0) {
1427
+ __wbg_generateFrostSigningCommitments_0630bbabc5b72b42: function() { return handleError(function (arg0) {
1428
1428
  const ret = arg0.generateFrostSigningCommitments();
1429
1429
  return ret;
1430
1430
  }, arguments) },
@@ -1514,11 +1514,11 @@ const imports = {
1514
1514
  const ret = arg0.getStaticDepositPrivateKeySource(arg1 >>> 0);
1515
1515
  return ret;
1516
1516
  }, arguments) },
1517
- __wbg_getStaticDepositPrivateKey_c4cc635b7e2348a8: function() { return handleError(function (arg0, arg1) {
1517
+ __wbg_getStaticDepositPrivateKey_a7a4ab43f45f0713: function() { return handleError(function (arg0, arg1) {
1518
1518
  const ret = arg0.getStaticDepositPrivateKey(arg1 >>> 0);
1519
1519
  return ret;
1520
1520
  }, arguments) },
1521
- __wbg_getStaticDepositPublicKey_86535a86c4cf3d04: function() { return handleError(function (arg0, arg1) {
1521
+ __wbg_getStaticDepositPublicKey_4551dec44c20efe6: function() { return handleError(function (arg0, arg1) {
1522
1522
  const ret = arg0.getStaticDepositPublicKey(arg1 >>> 0);
1523
1523
  return ret;
1524
1524
  }, arguments) },
@@ -2046,7 +2046,7 @@ const imports = {
2046
2046
  const ret = arg0.subarray(arg1 >>> 0, arg2 >>> 0);
2047
2047
  return ret;
2048
2048
  },
2049
- __wbg_subtractPrivateKeys_8b281bbbac58f672: function() { return handleError(function (arg0, arg1, arg2) {
2049
+ __wbg_subtractPrivateKeys_113f7f7e343541b9: function() { return handleError(function (arg0, arg1, arg2) {
2050
2050
  const ret = arg0.subtractPrivateKeys(arg1, arg2);
2051
2051
  return ret;
2052
2052
  }, arguments) },
Binary file
@@ -1038,8 +1038,8 @@ export class DefaultSigner {
1038
1038
  signEcdsaRecoverable(message: MessageBytes, path: string): Promise<RecoverableEcdsaSignatureBytes>;
1039
1039
  getPublicKeyForNode(id: ExternalTreeNodeId): Promise<PublicKeyBytes>;
1040
1040
  splitSecretWithProofs(secret: ExternalSecretToSplit, threshold: number, num_shares: number): Promise<ExternalVerifiableSecretShare[]>;
1041
- getStaticDepositPublicKey(index: number): Promise<PublicKeyBytes>;
1042
1041
  getStaticDepositPrivateKey(index: number): Promise<PrivateKeyBytes>;
1042
+ getStaticDepositPublicKey(index: number): Promise<PublicKeyBytes>;
1043
1043
  encryptPrivateKeyForReceiver(private_key: ExternalEncryptedPrivateKey, receiver_public_key: PublicKeyBytes): Promise<Uint8Array>;
1044
1044
  generateFrostSigningCommitments(): Promise<ExternalFrostCommitments>;
1045
1045
  getStaticDepositPrivateKeySource(index: number): Promise<ExternalPrivateKeySource>;
@@ -807,18 +807,18 @@ class DefaultSigner {
807
807
  }
808
808
  /**
809
809
  * @param {number} index
810
- * @returns {Promise<PublicKeyBytes>}
810
+ * @returns {Promise<PrivateKeyBytes>}
811
811
  */
812
- getStaticDepositPublicKey(index) {
813
- const ret = wasm.defaultsigner_getStaticDepositPublicKey(this.__wbg_ptr, index);
812
+ getStaticDepositPrivateKey(index) {
813
+ const ret = wasm.defaultsigner_getStaticDepositPrivateKey(this.__wbg_ptr, index);
814
814
  return ret;
815
815
  }
816
816
  /**
817
817
  * @param {number} index
818
- * @returns {Promise<PrivateKeyBytes>}
818
+ * @returns {Promise<PublicKeyBytes>}
819
819
  */
820
- getStaticDepositPrivateKey(index) {
821
- const ret = wasm.defaultsigner_getStaticDepositPrivateKey(this.__wbg_ptr, index);
820
+ getStaticDepositPublicKey(index) {
821
+ const ret = wasm.defaultsigner_getStaticDepositPublicKey(this.__wbg_ptr, index);
822
822
  return ret;
823
823
  }
824
824
  /**
@@ -1407,7 +1407,7 @@ module.exports.__wbg_done_769e5ede4b31c67b = function(arg0) {
1407
1407
  return ret;
1408
1408
  };
1409
1409
 
1410
- module.exports.__wbg_eciesDecrypt_4edc97146456d67b = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
1410
+ module.exports.__wbg_eciesDecrypt_f54e495a0988c2cc = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
1411
1411
  let deferred1_0;
1412
1412
  let deferred1_1;
1413
1413
  try {
@@ -1422,7 +1422,7 @@ module.exports.__wbg_eciesDecrypt_4edc97146456d67b = function() { return handleE
1422
1422
  }
1423
1423
  }, arguments) };
1424
1424
 
1425
- module.exports.__wbg_eciesEncrypt_040d338cf1cb289f = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
1425
+ module.exports.__wbg_eciesEncrypt_d1c5b3c6a4602a28 = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
1426
1426
  let deferred1_0;
1427
1427
  let deferred1_1;
1428
1428
  try {
@@ -1485,7 +1485,7 @@ module.exports.__wbg_fetch_f156d10be9a5c88a = function(arg0) {
1485
1485
  return ret;
1486
1486
  };
1487
1487
 
1488
- module.exports.__wbg_generateFrostSigningCommitments_3473ea4923985769 = function() { return handleError(function (arg0) {
1488
+ module.exports.__wbg_generateFrostSigningCommitments_0630bbabc5b72b42 = function() { return handleError(function (arg0) {
1489
1489
  const ret = arg0.generateFrostSigningCommitments();
1490
1490
  return ret;
1491
1491
  }, arguments) };
@@ -1588,12 +1588,12 @@ module.exports.__wbg_getStaticDepositPrivateKeySource_7b2991ed6d3d4711 = functio
1588
1588
  return ret;
1589
1589
  }, arguments) };
1590
1590
 
1591
- module.exports.__wbg_getStaticDepositPrivateKey_c4cc635b7e2348a8 = function() { return handleError(function (arg0, arg1) {
1591
+ module.exports.__wbg_getStaticDepositPrivateKey_a7a4ab43f45f0713 = function() { return handleError(function (arg0, arg1) {
1592
1592
  const ret = arg0.getStaticDepositPrivateKey(arg1 >>> 0);
1593
1593
  return ret;
1594
1594
  }, arguments) };
1595
1595
 
1596
- module.exports.__wbg_getStaticDepositPublicKey_86535a86c4cf3d04 = function() { return handleError(function (arg0, arg1) {
1596
+ module.exports.__wbg_getStaticDepositPublicKey_4551dec44c20efe6 = function() { return handleError(function (arg0, arg1) {
1597
1597
  const ret = arg0.getStaticDepositPublicKey(arg1 >>> 0);
1598
1598
  return ret;
1599
1599
  }, arguments) };
@@ -2221,7 +2221,7 @@ module.exports.__wbg_subarray_aa9065fa9dc5df96 = function(arg0, arg1, arg2) {
2221
2221
  return ret;
2222
2222
  };
2223
2223
 
2224
- module.exports.__wbg_subtractPrivateKeys_8b281bbbac58f672 = function() { return handleError(function (arg0, arg1, arg2) {
2224
+ module.exports.__wbg_subtractPrivateKeys_113f7f7e343541b9 = function() { return handleError(function (arg0, arg1, arg2) {
2225
2225
  const ret = arg0.subtractPrivateKeys(arg1, arg2);
2226
2226
  return ret;
2227
2227
  }, arguments) };
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@breeztech/breez-sdk-spark",
3
- "version": "0.7.5",
3
+ "version": "0.7.6",
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)",
@@ -1038,8 +1038,8 @@ export class DefaultSigner {
1038
1038
  signEcdsaRecoverable(message: MessageBytes, path: string): Promise<RecoverableEcdsaSignatureBytes>;
1039
1039
  getPublicKeyForNode(id: ExternalTreeNodeId): Promise<PublicKeyBytes>;
1040
1040
  splitSecretWithProofs(secret: ExternalSecretToSplit, threshold: number, num_shares: number): Promise<ExternalVerifiableSecretShare[]>;
1041
- getStaticDepositPublicKey(index: number): Promise<PublicKeyBytes>;
1042
1041
  getStaticDepositPrivateKey(index: number): Promise<PrivateKeyBytes>;
1042
+ getStaticDepositPublicKey(index: number): Promise<PublicKeyBytes>;
1043
1043
  encryptPrivateKeyForReceiver(private_key: ExternalEncryptedPrivateKey, receiver_public_key: PublicKeyBytes): Promise<Uint8Array>;
1044
1044
  generateFrostSigningCommitments(): Promise<ExternalFrostCommitments>;
1045
1045
  getStaticDepositPrivateKeySource(index: number): Promise<ExternalPrivateKeySource>;
@@ -802,18 +802,18 @@ export class DefaultSigner {
802
802
  }
803
803
  /**
804
804
  * @param {number} index
805
- * @returns {Promise<PublicKeyBytes>}
805
+ * @returns {Promise<PrivateKeyBytes>}
806
806
  */
807
- getStaticDepositPublicKey(index) {
808
- const ret = wasm.defaultsigner_getStaticDepositPublicKey(this.__wbg_ptr, index);
807
+ getStaticDepositPrivateKey(index) {
808
+ const ret = wasm.defaultsigner_getStaticDepositPrivateKey(this.__wbg_ptr, index);
809
809
  return ret;
810
810
  }
811
811
  /**
812
812
  * @param {number} index
813
- * @returns {Promise<PrivateKeyBytes>}
813
+ * @returns {Promise<PublicKeyBytes>}
814
814
  */
815
- getStaticDepositPrivateKey(index) {
816
- const ret = wasm.defaultsigner_getStaticDepositPrivateKey(this.__wbg_ptr, index);
815
+ getStaticDepositPublicKey(index) {
816
+ const ret = wasm.defaultsigner_getStaticDepositPublicKey(this.__wbg_ptr, index);
817
817
  return ret;
818
818
  }
819
819
  /**
@@ -1399,7 +1399,7 @@ function __wbg_get_imports() {
1399
1399
  const ret = arg0.done;
1400
1400
  return ret;
1401
1401
  };
1402
- imports.wbg.__wbg_eciesDecrypt_4edc97146456d67b = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
1402
+ imports.wbg.__wbg_eciesDecrypt_f54e495a0988c2cc = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
1403
1403
  let deferred1_0;
1404
1404
  let deferred1_1;
1405
1405
  try {
@@ -1413,7 +1413,7 @@ function __wbg_get_imports() {
1413
1413
  wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
1414
1414
  }
1415
1415
  }, arguments) };
1416
- imports.wbg.__wbg_eciesEncrypt_040d338cf1cb289f = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
1416
+ imports.wbg.__wbg_eciesEncrypt_d1c5b3c6a4602a28 = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
1417
1417
  let deferred1_0;
1418
1418
  let deferred1_1;
1419
1419
  try {
@@ -1465,7 +1465,7 @@ function __wbg_get_imports() {
1465
1465
  const ret = fetch(arg0);
1466
1466
  return ret;
1467
1467
  };
1468
- imports.wbg.__wbg_generateFrostSigningCommitments_3473ea4923985769 = function() { return handleError(function (arg0) {
1468
+ imports.wbg.__wbg_generateFrostSigningCommitments_0630bbabc5b72b42 = function() { return handleError(function (arg0) {
1469
1469
  const ret = arg0.generateFrostSigningCommitments();
1470
1470
  return ret;
1471
1471
  }, arguments) };
@@ -1555,11 +1555,11 @@ function __wbg_get_imports() {
1555
1555
  const ret = arg0.getStaticDepositPrivateKeySource(arg1 >>> 0);
1556
1556
  return ret;
1557
1557
  }, arguments) };
1558
- imports.wbg.__wbg_getStaticDepositPrivateKey_c4cc635b7e2348a8 = function() { return handleError(function (arg0, arg1) {
1558
+ imports.wbg.__wbg_getStaticDepositPrivateKey_a7a4ab43f45f0713 = function() { return handleError(function (arg0, arg1) {
1559
1559
  const ret = arg0.getStaticDepositPrivateKey(arg1 >>> 0);
1560
1560
  return ret;
1561
1561
  }, arguments) };
1562
- imports.wbg.__wbg_getStaticDepositPublicKey_86535a86c4cf3d04 = function() { return handleError(function (arg0, arg1) {
1562
+ imports.wbg.__wbg_getStaticDepositPublicKey_4551dec44c20efe6 = function() { return handleError(function (arg0, arg1) {
1563
1563
  const ret = arg0.getStaticDepositPublicKey(arg1 >>> 0);
1564
1564
  return ret;
1565
1565
  }, arguments) };
@@ -2087,7 +2087,7 @@ function __wbg_get_imports() {
2087
2087
  const ret = arg0.subarray(arg1 >>> 0, arg2 >>> 0);
2088
2088
  return ret;
2089
2089
  };
2090
- imports.wbg.__wbg_subtractPrivateKeys_8b281bbbac58f672 = function() { return handleError(function (arg0, arg1, arg2) {
2090
+ imports.wbg.__wbg_subtractPrivateKeys_113f7f7e343541b9 = function() { return handleError(function (arg0, arg1, arg2) {
2091
2091
  const ret = arg0.subtractPrivateKeys(arg1, arg2);
2092
2092
  return ret;
2093
2093
  }, arguments) };
Binary file