]> git.immae.eu Git - perso/Immae/Projets/Cryptomonnaies/BIP39.git/blobdiff - src/js/index.js
Modify to use uncompressed public key as keccak256 input for TRX
[perso/Immae/Projets/Cryptomonnaies/BIP39.git] / 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);