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 /src/js | |
parent | 8b18bdbb2e2f17d48a75db61edba6ed166061224 (diff) | |
download | BIP39-d0239db48c485dc912bb41ef33c2f5b4fdf32b5e.tar.gz BIP39-d0239db48c485dc912bb41ef33c2f5b4fdf32b5e.tar.zst BIP39-d0239db48c485dc912bb41ef33c2f5b4fdf32b5e.zip |
Add hex prefix to ethereum keys
Diffstat (limited to 'src/js')
-rw-r--r-- | src/js/index.js | 2 |
1 files changed, 2 insertions, 0 deletions
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") { |