HDWallet: now export all information by default

This commit is contained in:
Daniel Cousens 2014-06-03 16:20:37 +10:00
commit c340f5cf83
2 changed files with 6 additions and 4 deletions

View file

@ -159,6 +159,8 @@ HDWallet.prototype.toBase58 = function(isPrivate) {
}
HDWallet.prototype.toBuffer = function(isPrivate) {
if (isPrivate == undefined) isPrivate = !!this.priv
// Version
var version = isPrivate ? this.network.bip32.private : this.network.bip32.public
var buffer = new Buffer(HDWallet.LENGTH)