From 36d854b255503dbebd34f43914c35d4bd5e0731c Mon Sep 17 00:00:00 2001 From: Esteban Ordano Date: Fri, 6 Feb 2015 09:38:21 -0300 Subject: [PATCH] HDPublicKey: Fix JSDocs --- lib/hdpublickey.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/lib/hdpublickey.js b/lib/hdpublickey.js index 7b38fdda3..2a8504893 100644 --- a/lib/hdpublickey.js +++ b/lib/hdpublickey.js @@ -91,7 +91,7 @@ HDPublicKey.isValidPath = function(arg) { * * If the first argument is a string, it's parsed as the full path of * derivation. Valid values for this argument include "m" (which returns the - * same private key), "m/0/1/40/2/1000". + * same public key), "m/0/1/40/2/1000". * * Note that hardened keys can't be derived from a public extended key. * @@ -167,10 +167,10 @@ HDPublicKey.prototype._deriveFromString = function (path) { }; /** - * Verifies that a given serialized private key in base58 with checksum format + * Verifies that a given serialized public key in base58 with checksum format * is valid. * - * @param {string|Buffer} data - the serialized private key + * @param {string|Buffer} data - the serialized public key * @param {string|Network=} network - optional, if present, checks that the * network provided matches the network serialized. * @return {boolean} @@ -180,10 +180,10 @@ HDPublicKey.isValidSerialized = function (data, network) { }; /** - * Checks what's the error that causes the validation of a serialized private key + * Checks what's the error that causes the validation of a serialized public key * in base58 with checksum to fail. * - * @param {string|Buffer} data - the serialized private key + * @param {string|Buffer} data - the serialized public key * @param {string|Network=} network - optional, if present, checks that the * network provided matches the network serialized. * @return {errors|null}