From b6addfdfc83aefa7fda6fd4366fc716010c0dfbe Mon Sep 17 00:00:00 2001 From: Kyle Drake Date: Sat, 24 May 2014 10:17:14 +1000 Subject: [PATCH] fix for a few readme examples --- README.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 84a8a04..f421dbc 100644 --- a/README.md +++ b/README.md @@ -67,12 +67,12 @@ These examples assume you are running bitcoinjs-lib in the browser. key = Bitcoin.ECKey.makeRandom() -// Print your private key (a hex string) -console.log(key.toString()) +// Print your private key (in WIF format) +console.log(key.toWIF()) // => 8c112cf628362ecf4d482f68af2dbb50c8a2cb90d226215de925417aa9336a48 -// Print your public key (defaults to a Bitcoin address) -console.log(key.pub.getAddress()) +// Print your public key (toString defaults to a Bitcoin address) +console.log(key.pub.getAddress().toString()) // => 14bZ7YWde4KdRb5YN7GYkToz3EHVCvRxkF ```