<p>Bitcoin and Litecoin have different inner workings, so many of their parts shouldn't be interchangeable. </p>

<p>A short answer to your question could be: do you know C++ ? In this case, you could take a look at the parts of the reference implementation of Litecoin where the addresses are generated, and adapt it to C#.</p>

<p>Another answer would be to find an alternative library, independent of Litecoin reference implementation. One such implementation seems to be <a href="https://github.com/MadCapsule/Litecoin-PHP-Library" rel="nofollow">Litecoin-PHP-Library</a>, that is a heavily commented PHP code, where you can find answers to your questions. Good luck.</p>

CC BY-SA 3.0
2015-02-19T06:35:06.573Z
`Bitcoin and Litecoin have different inner workings, so many of their parts shouldn't be interchangeable.` That's not really true. They're vastly similar.
Nick ODell
CC BY-SA 3.0
2015-02-19T11:52:49.553Z
Similar doesn't mean equal or interchangeable.
hgfernan
CC BY-SA 3.0
2015-02-19T04:28:42.527Z
2015-02-19T06:15:26.407Z
2015-02-19T06:15:26.407Z
hgfernan
<p>That's odd, since BAU's docs say that they ought to work with Litecoin. In the drop-down menu that selects the coin type, have you selected Litecoin?</p>

<p>Alternately, if you're willing to run an RPC node, you could use <a href="https://github.com/GeorgeKimionis/BitcoinLib" rel="nofollow">BitcoinLib</a>, and call <code>CoinService.GetNewAddress(String)</code>.</p>

<p>Generally, it's exactly the same as generating Bitcoin addresses, except that the version byte is 48 instead of 0.</p>

CC BY-SA 3.0
2015-02-19T12:49:25.187Z
I accepted your answer because of your Alternative suggestion of using CoinService.GetNewAddress(String). That sounds like a very good idea, since Bitcoinlib supports not just Bitcoin but other altcoins. Thanks a lot!

For the record - Selecting Litecoin in the Drop Down Menu DOESN'T WORK, it generates wrong addresses. it looks that Bitcoin_Address_Utility is just  working 100% for Bitcoin.
Gustir
CC BY-SA 3.0
2015-02-19T06:26:20.437Z
2015-02-19T06:34:58.570Z
2015-02-19T06:34:58.570Z
Nick ODell
<p>I found this C# tool to generate addresses for Bitcoin (compressed and uncompressed):</p>

<p><a href="https://en.bitcoin.it/wiki/Bitcoin_Address_Utility" rel="nofollow">https://en.bitcoin.it/wiki/Bitcoin_Address_Utility</a></p>

<p><a href="https://github.com/casascius/Bitcoin-Address-Utility" rel="nofollow">https://github.com/casascius/Bitcoin-Address-Utility</a></p>

<p>It works perfectly for Bitcoin, but for Litecoin it seems not to work.</p>

<p>Any ideas how to use similar code to generate Litecoin Addresses?</p>

<p>Thanks</p>

<blockchain><litecoin><cryptography><c#>
How to generate a Litecoin Private key and correspondent Public Address in C#
Gustir
# How to generate a Litecoin Private key and correspondent Public Address in C#

(Asked by: username_0 on 2015-02-19)

I found this C# tool to generate addresses for Bitcoin (compressed and uncompressed):

<https://en.bitcoin.it/wiki/Bitcoin_Address_Utility>

<https://github.com/casascius/Bitcoin-Address-Utility>

It works perfectly for Bitcoin, but for Litecoin it seems not to work.

Any ideas how to use similar code to generate Litecoin Addresses?

Thanks

**Tags:** blockchain, litecoin, cryptography, c#


---

## 2 answers

### Answer by username_2 on 2015-02-19. Score: 3 | Accepted answer

That's odd, since BAU's docs say that they ought to work with Litecoin. In the drop-down menu that selects the coin type, have you selected Litecoin?

Alternately, if you're willing to run an RPC node, you could use [BitcoinLib](https://github.com/GeorgeKimionis/BitcoinLib), and call `CoinService.GetNewAddress(String)`.

Generally, it's exactly the same as generating Bitcoin addresses, except that the version byte is 48 instead of 0.

> **Comments:**
> **username_0**: I accepted your answer because of your Alternative suggestion of using CoinService.GetNewAddress(String). That sounds like a very good idea, since Bitcoinlib supports not just Bitcoin but other altcoins. Thanks a lot!  For the record - Selecting Litecoin in the Drop Down Menu DOESN'T WORK, it generates wrong addresses. it looks that Bitcoin_Address_Utility is just  working 100% for Bitcoin.  

---

### Answer by username_1 on 2015-02-19. Score: -2

Bitcoin and Litecoin have different inner workings, so many of their parts shouldn't be interchangeable.

A short answer to your question could be: do you know C++ ? In this case, you could take a look at the parts of the reference implementation of Litecoin where the addresses are generated, and adapt it to C#.

Another answer would be to find an alternative library, independent of Litecoin reference implementation. One such implementation seems to be [Litecoin-PHP-Library](https://github.com/MadCapsule/Litecoin-PHP-Library), that is a heavily commented PHP code, where you can find answers to your questions. Good luck.

> **Comments:**
> **username_2**: `Bitcoin and Litecoin have different inner workings, so many of their parts shouldn't be interchangeable.` That's not really true. They're vastly similar.  
> **username_1**: Similar doesn't mean equal or interchangeable.  

---

