Merge pull request #190 from coinpunk/readmefixes

fix for a few readme examples
This commit is contained in:
Kyle Drake 2014-05-24 18:22:41 +10:00
commit f88b5cbbb9

View file

@ -67,12 +67,12 @@ These examples assume you are running bitcoinjs-lib in the browser.
key = Bitcoin.ECKey.makeRandom() key = Bitcoin.ECKey.makeRandom()
// Print your private key (a hex string) // Print your private key (in WIF format)
console.log(key.toString()) console.log(key.toWIF())
// => 8c112cf628362ecf4d482f68af2dbb50c8a2cb90d226215de925417aa9336a48 // => 8c112cf628362ecf4d482f68af2dbb50c8a2cb90d226215de925417aa9336a48
// Print your public key (defaults to a Bitcoin address) // Print your public key (toString defaults to a Bitcoin address)
console.log(key.pub.getAddress()) console.log(key.pub.getAddress().toString())
// => 14bZ7YWde4KdRb5YN7GYkToz3EHVCvRxkF // => 14bZ7YWde4KdRb5YN7GYkToz3EHVCvRxkF
``` ```