privkey = libs.ethUtil.bufferToHex(keyPair.d.toBuffer());
}
}
+ //TRX is different
+ if (networks[DOM.network.val()].name == "TRX - Tron") {
+ var pubkeyBuffer = keyPair.getPublicKeyBuffer();
+ var ethPubkey = libs.ethUtil.importPublic(pubkeyBuffer);
+ var addressBuffer = libs.ethUtil.publicToAddress(ethPubkey);
+ address = libs.bitcoin.address.toBase58Check(addressBuffer, 0x41);
+ if (hasPrivkey) {
+ privkey = keyPair.d.toBuffer().toString('hex');
+ }
+ }
// RSK values are different
if (networkIsRsk()) {
setHdCoin(159);
},
},
+ {
+ name: "TRX - Tron",
+ onSelect: function() {
+ setHdCoin(195);
+ },
+ },
{
name: "TWINS - TWINS",
onSelect: function() {