Fix getPublicKeyString() and getPrivateKeyString()

This commit is contained in:
Alex Beregszaszi 2016-03-07 22:28:16 +00:00
parent d7e60df91d
commit 25ccfac7b4
1 changed files with 2 additions and 2 deletions

View File

@ -22,7 +22,7 @@ Wallet.prototype.getPrivateKey = function () {
}
Wallet.prototype.getPrivateKeyString = function () {
return this.getPrivateKey.toString('hex')
return '0x' + this.getPrivateKey().toString('hex')
}
Wallet.prototype.getPublicKey = function () {
@ -30,7 +30,7 @@ Wallet.prototype.getPublicKey = function () {
}
Wallet.prototype.getPublicKeyString = function () {
return this.getPublicKey.toString('hex')
return '0x' + this.getPublicKey().toString('hex')
}
Wallet.prototype.getAddress = function () {