@btc-vision/bitcoin 6.3.4 → 6.3.5

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.
@@ -56,6 +56,7 @@ export function decompressPublicKey(realPubKey) {
56
56
  return;
57
57
  }
58
58
  if (![33, 65].includes(realPubKey.length)) {
59
+ console.trace(`Unsupported key length=${realPubKey.length}. Must be 33 (compressed) or 65 (uncompressed).`);
59
60
  throw new Error(`Unsupported key length=${realPubKey.length}. Must be 33 (compressed) or 65 (uncompressed).`);
60
61
  }
61
62
  let point;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@btc-vision/bitcoin",
3
3
  "type": "module",
4
- "version": "6.3.4",
4
+ "version": "6.3.5",
5
5
  "description": "Client-side Bitcoin JavaScript library",
6
6
  "engines": {
7
7
  "node": ">=16.0.0"
@@ -91,7 +91,6 @@
91
91
  "@types/proxyquire": "^1.3.31",
92
92
  "@types/randombytes": "^2.0.3",
93
93
  "better-npm-audit": "^3.11.0",
94
- "bip32": "^4.0.0",
95
94
  "bip39": "^3.1.0",
96
95
  "bip65": "^1.0.3",
97
96
  "bip68": "^1.0.4",
@@ -135,6 +134,7 @@
135
134
  "babel-plugin-transform-import-meta": "^2.2.1",
136
135
  "babel-preset-react": "^6.24.1",
137
136
  "babelify": "^10.0.0",
137
+ "bip32": "^4.0.0",
138
138
  "bech32": "^2.0.0",
139
139
  "bip174": "^2.1.1",
140
140
  "browserify-zlib": "^0.2.0",
@@ -92,6 +92,10 @@ export function decompressPublicKey(
92
92
  }
93
93
 
94
94
  if (![33, 65].includes(realPubKey.length)) {
95
+ console.trace(
96
+ `Unsupported key length=${realPubKey.length}. Must be 33 (compressed) or 65 (uncompressed).`,
97
+ );
98
+
95
99
  throw new Error(
96
100
  `Unsupported key length=${realPubKey.length}. Must be 33 (compressed) or 65 (uncompressed).`,
97
101
  );