From 56a88b8a70d6ca992a57989aaa57ca47e5492e43 Mon Sep 17 00:00:00 2001 From: Daniel Cousens Date: Wed, 4 Jun 2014 14:36:19 +1000 Subject: [PATCH] HDNode: shorten comment for Q validation --- src/hdnode.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/hdnode.js b/src/hdnode.js index 4486ec5..d726ce3 100644 --- a/src/hdnode.js +++ b/src/hdnode.js @@ -118,7 +118,8 @@ HDNode.fromBuffer = function(buffer) { var decode = ECPointFp.decodeFrom(ecparams.getCurve(), data) assert.equal(decode.compressed, true, 'Invalid public key') - // When importing a serialized extended public key, implementations must verify whether the X coordinate in the public key data corresponds to a point on the curve. If not, the extended public key is invalid. + // Verify that the X coordinate in the public point corresponds to a point on the curve. + // If not, the extended public key is invalid. decode.Q.validate() hd = new HDNode(decode.Q, chainCode, params.network)