<p>There are three partial remedies:</p>

<ul>
<li><code>bech32</code> addresses are invalid on BCH and BSV</li>
<li><code>CashAddr</code> is an alternative encoding (inspired by bech32) for <code>p2pkh</code> and <code>p2sh</code> addresses that is only valid on BCH and BSV</li>
<li>You can check whether the recipient address is subject to address reuse: if it was previously used on another network, you should request confirmation or another address from the recipient</li>
</ul>

<p>Unfortunately, BSV and BCH share all address formats, so you cannot distinguish which network an address was generated for between the two.</p>

<p>Likewise, the original <code>p2pkh</code> and <code>p2sh</code> addresses are valid on all three networks and there is no way to distinguish which network an address was intended for just from the address itself.</p>

CC BY-SA 4.0
2019-04-28T18:34:04.930Z
2019-04-28T18:34:04.930Z
Murch
<p>Simply, they don’t support the same addressing schemes. They use a modified version of bech32 that is incompatible. </p>

CC BY-SA 4.0
2019-03-29T17:49:57.267Z
I believe all three can do P2PKH, P2SH, AND Bech32? No?
Miyamoto Mustashi
CC BY-SA 4.0
2019-03-29T13:19:47.780Z
2019-03-29T13:19:47.780Z
Claris
<p>Since they share several common addressing schemes, can I figure out in code how to send them to the right chain?</p>

<bitcoin-cash><cross-chain-recovery><address-format>
Code prevention of sending bitcoin to an address on the wrong chain btc/bch/bsv
Miyamoto Mustashi
# Code prevention of sending bitcoin to an address on the wrong chain btc/bch/bsv

(Asked by: username_0 on 2019-03-29)

Since they share several common addressing schemes, can I figure out in code how to send them to the right chain?

**Tags:** bitcoin-cash, cross-chain-recovery, address-format


---

## 2 answers

### Answer by username_1 on 2019-04-28. Score: 1

There are three partial remedies:

* `bech32` addresses are invalid on BCH and BSV
* `CashAddr` is an alternative encoding (inspired by bech32) for `p2pkh` and `p2sh` addresses that is only valid on BCH and BSV
* You can check whether the recipient address is subject to address reuse: if it was previously used on another network, you should request confirmation or another address from the recipient

Unfortunately, BSV and BCH share all address formats, so you cannot distinguish which network an address was generated for between the two.

Likewise, the original `p2pkh` and `p2sh` addresses are valid on all three networks and there is no way to distinguish which network an address was intended for just from the address itself.


---

### Answer by username_2 on 2019-03-29. Score: 0

Simply, they don’t support the same addressing schemes. They use a modified version of bech32 that is incompatible.

> **Comments:**
> **username_0**: I believe all three can do P2PKH, P2SH, AND Bech32? No?  

---

