From d0239db48c485dc912bb41ef33c2f5b4fdf32b5e Mon Sep 17 00:00:00 2001 From: Ian Coleman Date: Wed, 14 Jun 2017 12:30:04 +1000 Subject: Add hex prefix to ethereum keys --- src/js/index.js | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src') 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 @@ 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") { -- cgit v1.2.3