<p>Not sure how NBitcoin works, but it looks like so far you have derived your private and public key, you now need to hash it in the Ethereum method rather than the bitcoin way.</p>

<p>Look at step 3 in this answer: <a href="https://ethereum.stackexchange.com/questions/3542/how-are-ethereum-addresses-generated">https://ethereum.stackexchange.com/questions/3542/how-are-ethereum-addresses-generated</a></p>

<p>Edit:
Nethereum has implemented it in C#: <a href="https://github.com/Nethereum/Nethereum/blob/master/src/Nethereum.Signer/EthECKey.cs#L115" rel="nofollow noreferrer">https://github.com/Nethereum/Nethereum/blob/master/src/Nethereum.Signer/EthECKey.cs#L115</a></p>

CC BY-SA 3.0
2017-10-05T09:20:09.443Z
2017-10-05T22:20:16.310Z
2017-10-05T22:20:16.310Z
feedthedogs
<p>We documented on <a href="https://programmingblockchain.gitbook.io/programmingblockchain/key_generation/bip_32" rel="nofollow noreferrer">https://programmingblockchain.gitbook.io/programmingblockchain/key_generation/bip_32</a></p>
<p>That said, for tracking a hd wallet I advice you to use <a href="https://github.com/dgarage/NBXplorer/" rel="nofollow noreferrer">https://github.com/dgarage/NBXplorer/</a> this is an API that work on a bitcoin node, even pruned, that do the heavy lifting and is well integrated to NBitcoin.</p>

CC BY-SA 4.0
2021-07-11T14:41:59.417Z
2021-07-11T14:41:59.417Z
Nicolas Dorier
<p>I am using NBitcoin, C# and the Bip44 standard to create an hdroot to derive child keys from. I then create keys that I want to use for Litecoin and Ethereum addresses by setting the proper 'coin_type' in my derive statement:</p>

<pre><code>var ltcAddress = hdroot.Derive(new KeyPath("m/44'/2'/0'/0/0"));
var ethAddress = hdroot.Derive(new KeyPath("m/44'/60'/0'/0/0"));
</code></pre>

<p>Obviously these are Bitcoin addresses by default. How can I now convert them to the proper Litecoin and Ethereum counterparts?</p>

<litecoin><ethereum><c#><nbitcoin><bip44>
Using NBitcoin or C# to derive Litecoin and Ethereum Addresses from Master HD Key
INNVTV
# Using NBitcoin or C# to derive Litecoin and Ethereum Addresses from Master HD Key

(Asked by: username_0 on 2017-10-03)

I am using NBitcoin, C# and the Bip44 standard to create an hdroot to derive child keys from. I then create keys that I want to use for Litecoin and Ethereum addresses by setting the proper 'coin_type' in my derive statement:
var ltcAddress = hdroot.Derive(new KeyPath("m/44'/2'/0'/0/0"));
var ethAddress = hdroot.Derive(new KeyPath("m/44'/60'/0'/0/0"));

Obviously these are Bitcoin addresses by default. How can I now convert them to the proper Litecoin and Ethereum counterparts?

**Tags:** litecoin, ethereum, c#, nbitcoin, bip44


---

## 2 answers

### Answer by username_1 on 2017-10-05. Score: 2

Not sure how NBitcoin works, but it looks like so far you have derived your private and public key, you now need to hash it in the Ethereum method rather than the bitcoin way.

Look at step 3 in this answer: <https://ethereum.stackexchange.com/questions/3542/how-are-ethereum-addresses-generated>

Edit:
Nethereum has implemented it in C#: <https://github.com/Nethereum/Nethereum/blob/master/src/Nethereum.Signer/EthECKey.cs#L115>


---

### Answer by username_2 on 2021-07-11. Score: 0

We documented on <https://programmingblockchain.gitbook.io/programmingblockchain/key_generation/bip_32>

That said, for tracking a hd wallet I advice you to use <https://github.com/dgarage/NBXplorer/> this is an API that work on a bitcoin node, even pruned, that do the heavy lifting and is well integrated to NBitcoin.


---

