Add hex prefix to ethereum keys

This commit is contained in:
Ian Coleman
2017-06-14 12:30:04 +10:00
parent 8b18bdbb2e
commit d0239db48c
2 changed files with 3 additions and 0 deletions

View File

@@ -2,3 +2,4 @@
Add changelog
Display version number in top right
Add hex prefix to ethereum keys

View File

@@ -592,6 +592,8 @@
var hexAddress = addressBuffer.toString('hex');
var checksumAddress = ethUtil.toChecksumAddress(hexAddress);
address = ethUtil.addHexPrefix(checksumAddress);
privkey = ethUtil.addHexPrefix(privkey);
pubkey = ethUtil.addHexPrefix(pubkey);
}
// Ripple values are different
if (networks[DOM.network.val()].name == "Ripple") {