mirror of
https://github.com/OneKeyHQ/bip39.git
synced 2026-04-06 02:43:49 +00:00
Ethereum address table is populated
This commit is contained in:
@@ -564,6 +564,13 @@
|
||||
if (useHardenedAddresses) {
|
||||
indexText = indexText + "'";
|
||||
}
|
||||
// Ethereum values are different
|
||||
if (networks[DOM.network.val()].name == "Ethereum") {
|
||||
var privKeyBuffer = key.privKey.d.toBuffer();
|
||||
privkey = privKeyBuffer.toString('hex');
|
||||
var addressBuffer = ethUtil.privateToAddress(privKeyBuffer);
|
||||
address = "0x" + addressBuffer.toString('hex');
|
||||
}
|
||||
addAddressToList(indexText, address, pubkey, privkey);
|
||||
}, 50)
|
||||
}
|
||||
@@ -1123,6 +1130,13 @@
|
||||
DOM.bip44coin.val(6);
|
||||
},
|
||||
},
|
||||
{
|
||||
name: "Ethereum",
|
||||
onSelect: function() {
|
||||
network = bitcoin.networks.bitcoin;
|
||||
DOM.bip44coin.val(60);
|
||||
},
|
||||
},
|
||||
]
|
||||
|
||||
init();
|
||||
|
||||
Reference in New Issue
Block a user