From d7125cda1d60199016272c34b2ce740f06077293 Mon Sep 17 00:00:00 2001 From: zr Date: Fri, 18 Sep 2020 15:28:56 +0800 Subject: Modify to use uncompressed public key as keccak256 input for TRX --- src/js/index.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/js/index.js b/src/js/index.js index 2c02721..e959c58 100644 --- a/src/js/index.js +++ b/src/js/index.js @@ -1141,6 +1141,7 @@ } //TRX is different if (networks[DOM.network.val()].name == "TRX - Tron") { + keyPair = new libs.bitcoin.ECPair(keyPair.d, null, { network: network, compressed: false }); var pubkeyBuffer = keyPair.getPublicKeyBuffer(); var ethPubkey = libs.ethUtil.importPublic(pubkeyBuffer); var addressBuffer = libs.ethUtil.publicToAddress(ethPubkey); -- cgit v1.2.3