Fixed, added console.log output on README
This commit is contained in:
parent
04bcbadc77
commit
eda94d4fe3
1 changed files with 2 additions and 1 deletions
|
@ -75,7 +75,7 @@ key = bitcoin.ECKey.makeRandom()
|
|||
|
||||
// Print your private key (in WIF format)
|
||||
console.log(key.toWIF())
|
||||
// => 8c112cf628362ecf4d482f68af2dbb50c8a2cb90d226215de925417aa9336a48
|
||||
// => Kxr9tQED9H44gCmp6HAdmemAzU3n84H3dGkuWTKvE23JgHMW8gct
|
||||
|
||||
// Print your public key (toString defaults to a Bitcoin address)
|
||||
console.log(key.pub.getAddress().toString())
|
||||
|
@ -120,6 +120,7 @@ var scriptPubKey = bitcoin.scripts.scriptHashOutput(redeemScript.getHash())
|
|||
var multisigAddress = bitcoin.Address.fromOutputScript(scriptPubKey).toString()
|
||||
|
||||
console.log("multisigP2SH:", multisigAddress)
|
||||
// => multisigP2SH: 35k9EWv2F1X5JKXHSF1DhTm7Ybdiwx4RkD
|
||||
```
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue