From 39484c755ee399228d51dbf562d7171324f8f0c0 Mon Sep 17 00:00:00 2001 From: Braydon Fuller Date: Wed, 28 Jan 2015 11:10:06 -0500 Subject: [PATCH] Fixed typo in docs --- docs/index.md | 2 +- lib/privatekey.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/index.md b/docs/index.md index e5bd508..7bc1033 100644 --- a/docs/index.md +++ b/docs/index.md @@ -53,7 +53,7 @@ var privateKey = new bitcore.PrivateKey(); var exported = privateKey.toWIF(); // e.g. L3T1s1TYP9oyhHpXgkyLoJFGniEgkv2Jhi138d7R2yJ9F4QdDU2m var imported = bitcore.PrivateKey.fromWIF(exported); -var hexa = exported.toString(); +var hexa = privateKey.toString(); // e.g. 'b9de6e778fe92aa7edb69395556f843f1dce0448350112e14906efc2a80fa61a' ``` diff --git a/lib/privatekey.js b/lib/privatekey.js index 72620f9..9dd6d0d 100644 --- a/lib/privatekey.js +++ b/lib/privatekey.js @@ -282,7 +282,7 @@ PrivateKey.isValid = function(data, network){ */ PrivateKey.prototype.toString = function() { return this.toBuffer().toString('hex'); -} +}; /** * Will output the PrivateKey to a WIF string