<p>Just found a <a href="https://github.com/cashaddress/SharpCashAddr" rel="nofollow noreferrer">SharpCashAddr library</a>.
Has pure C# implementation of address conversion in both ways.</p>

CC BY-SA 4.0
2018-05-05T21:13:21.603Z
2018-05-05T21:13:21.603Z
Igor Yalovoy
<p>I need to convert legacy Bitcoin Cash addresses to new format and back. I am aware of similar <a href="https://bitcoin.stackexchange.com/questions/69362/cashaddr-bech32-to-legacy-address-format-convertor-for-bitcoin-cash">question</a>, but it asks about PRC and has solution using python, JS. I need it done in C# with no dependencies.</p>

<p>Does anyone know a library? Or have working sample?</p>

<address><bitcoin-cash><c#>
C# code for Bitcoin Cash address conversion between legacy and new format
Igor Yalovoy
# C# code for Bitcoin Cash address conversion between legacy and new format

(Asked by: username_0 on 2018-05-05)

I need to convert legacy Bitcoin Cash addresses to new format and back. I am aware of similar [question](https://bitcoin.stackexchange.com/questions/69362/cashaddr-bech32-to-legacy-address-format-convertor-for-bitcoin-cash), but it asks about PRC and has solution using python, JS. I need it done in C# with no dependencies.

Does anyone know a library? Or have working sample?

**Tags:** address, bitcoin-cash, c#


---

## 1 answers

### Answer by username_0 on 2018-05-05. Score: 3

Just found a [SharpCashAddr library](https://github.com/cashaddress/SharpCashAddr).
Has pure C# implementation of address conversion in both ways.


---

