From 6067220cbab33f664d3cfd388915207d020e853a Mon Sep 17 00:00:00 2001 From: Thomas Kerin Date: Fri, 14 Oct 2016 20:07:52 +0200 Subject: [PATCH] Remove redundant check for uncompressed public key --- src/hdnode.js | 1 - 1 file changed, 1 deletion(-) diff --git a/src/hdnode.js b/src/hdnode.js index 65dc555..128a3dd 100644 --- a/src/hdnode.js +++ b/src/hdnode.js @@ -107,7 +107,6 @@ HDNode.fromBase58 = function (string, networks) { // 33 bytes: public key data (0x02 + X or 0x03 + X) } else { var Q = ecurve.Point.decodeFrom(curve, buffer.slice(45, 78)) - if (!Q.compressed) throw new Error('Invalid public key') // Verify that the X coordinate in the public point corresponds to a point on the curve. // If not, the extended public key is invalid.