]> git.immae.eu Git - perso/Immae/Projets/Cryptomonnaies/BIP39.git/commitdiff
Add hex prefix to ethereum keys
authorIan Coleman <coleman.ian@gmail.com>
Wed, 14 Jun 2017 02:30:04 +0000 (12:30 +1000)
committerIan Coleman <coleman.ian@gmail.com>
Wed, 14 Jun 2017 02:30:04 +0000 (12:30 +1000)
changelog.md
src/js/index.js

index 37be5fdb67e814e627dcbddf311e3b58de0d2f65..26e79ba74676d933e2c1b3f8f674094fcba58d34 100644 (file)
@@ -2,3 +2,4 @@
 
 Add changelog
 Display version number in top right
+Add hex prefix to ethereum keys
index b24a6591d02bf886f577d57c7c74167720f36b9f..bb2093831200c7b021250c7b8c8114cd0f31d428 100644 (file)
                     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") {