HDWallet: now export all information by default
This commit is contained in:
parent
48503f252c
commit
c340f5cf83
2 changed files with 6 additions and 4 deletions
src
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue