lightning 7.0.6 → 7.0.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Versions
2
2
 
3
- ## 7.0.6
3
+ ## 7.0.7
4
4
 
5
5
  - `getChainAddresses`: Add method to get the list of chain addresses
6
6
 
@@ -11,6 +11,7 @@ const hexAsBuffer = hex => Buffer.from(hex, 'hex');
11
11
  const {isArray} = Array;
12
12
  const isHash = n => /^[0-9A-F]{64}$/i.test(n);
13
13
  const messageErrorLegacyVersion = 'error parsing all signer public keys: error parsing signer public key 0 for v1.0.0rc2 (compressed format): malformed public key: invalid length: 32';
14
+ const messageErrorLegacyKeys = 'error parsing signer public key 0: bad pubkey byte string size (want 32, have 33)';
14
15
  const method = 'muSig2CreateSession';
15
16
  const type = 'signer';
16
17
  const uniq = arr => Array.from(new Set(arr));
@@ -116,6 +117,10 @@ module.exports = (args, cbk) => {
116
117
  version: defaultVersion,
117
118
  },
118
119
  (err, res) => {
120
+ if (!!err && err.details === messageErrorLegacyKeys) {
121
+ return cbk(messageErrorLegacyVersion);
122
+ }
123
+
119
124
  if (!!err && err.details === messageErrorLegacyVersion) {
120
125
  return cbk(messageErrorLegacyVersion);
121
126
  }
package/package.json CHANGED
@@ -59,5 +59,5 @@
59
59
  "directory": "test/typescript"
60
60
  },
61
61
  "types": "index.d.ts",
62
- "version": "7.0.6"
62
+ "version": "7.0.7"
63
63
  }