Closed jiangbo0216 closed 6 years ago
@JQiMeng this is using master
branch, yes?
What does
console.log(keyPair)
Print?
use node.getPubkeyBuffer() instead of node.publicKey
@dabura667 our example links should ref the latest release, probably
thank your help, I use the command ( npm install bitcoinjs-lib) to install ,is it stable?
and i see code as follows:
ECPair.prototype.getAddress = function () { return baddress.toBase58Check(bcrypto.hash160(this.getPublicKeyBuffer()), this.getNetwork().pubKeyHash) }
so we can Modify the code as follows:
var keyPair = bitcoin.ECPair.makeRandom({ rng: rng })
keyPair.getAddress()
rather then var address = getAddress(keyPair)
is this right?
@JQiMeng that is stable. And that is right.
The master
branch on this repository is about to release to 4.0.0
.
Please see https://github.com/bitcoinjs/bitcoinjs-lib/blob/v3.3.2/test/integration/addresses.js#L13-L16 for the examples for 3.3.2
(latest release).
@dcousens So when the 4.0.0
version to release? I found the latest version is 3.3.2
@zhaozhiming hopefully soon :)
keyPair don't have publicKey