diff options
author | Ian Coleman <coleman.ian@gmail.com> | 2017-06-14 12:30:04 +1000 |
---|---|---|
committer | Ian Coleman <coleman.ian@gmail.com> | 2017-06-14 12:30:04 +1000 |
commit | d0239db48c485dc912bb41ef33c2f5b4fdf32b5e (patch) | |
tree | 5945d96660d989452dd4400b7894e551620eec6c | |
parent | 8b18bdbb2e2f17d48a75db61edba6ed166061224 (diff) | |
download | BIP39-d0239db48c485dc912bb41ef33c2f5b4fdf32b5e.tar.gz BIP39-d0239db48c485dc912bb41ef33c2f5b4fdf32b5e.tar.zst BIP39-d0239db48c485dc912bb41ef33c2f5b4fdf32b5e.zip |
Add hex prefix to ethereum keys
-rw-r--r-- | changelog.md | 1 | ||||
-rw-r--r-- | src/js/index.js | 2 |
2 files changed, 3 insertions, 0 deletions
diff --git a/changelog.md b/changelog.md index 37be5fd..26e79ba 100644 --- a/changelog.md +++ b/changelog.md | |||
@@ -2,3 +2,4 @@ | |||
2 | 2 | ||
3 | Add changelog | 3 | Add changelog |
4 | Display version number in top right | 4 | Display version number in top right |
5 | Add hex prefix to ethereum keys | ||
diff --git a/src/js/index.js b/src/js/index.js index b24a659..bb20938 100644 --- a/src/js/index.js +++ b/src/js/index.js | |||
@@ -592,6 +592,8 @@ | |||
592 | var hexAddress = addressBuffer.toString('hex'); | 592 | var hexAddress = addressBuffer.toString('hex'); |
593 | var checksumAddress = ethUtil.toChecksumAddress(hexAddress); | 593 | var checksumAddress = ethUtil.toChecksumAddress(hexAddress); |
594 | address = ethUtil.addHexPrefix(checksumAddress); | 594 | address = ethUtil.addHexPrefix(checksumAddress); |
595 | privkey = ethUtil.addHexPrefix(privkey); | ||
596 | pubkey = ethUtil.addHexPrefix(pubkey); | ||
595 | } | 597 | } |
596 | // Ripple values are different | 598 | // Ripple values are different |
597 | if (networks[DOM.network.val()].name == "Ripple") { | 599 | if (networks[DOM.network.val()].name == "Ripple") { |