]> git.immae.eu Git - perso/Immae/Projets/Cryptomonnaies/BIP39.git/commitdiff
Modify to use uncompressed public key as keccak256 input for TRX
authorzr <zr@coinhub.dev>
Fri, 18 Sep 2020 07:28:56 +0000 (15:28 +0800)
committerzr <zr@coinhub.dev>
Fri, 18 Sep 2020 07:28:56 +0000 (15:28 +0800)
src/js/index.js

index 2c02721d5ac75b9f61f1bf67295db04e2a902cef..e959c58ea288de79e2ff65b8c06893e736c316b5 100644 (file)
                 }
                 //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);