How to check if an address is valid in Bitcoin Cash?

1

A lot of users seem to be mistakenly sending Bitcoin Cash to Bitcoin addresses and vice versa. I understand Bitcoin Cash doesn't support SegWit and that if Bitcoin Cash is sent to a SegWit Bitcoin address then the Bitcoin Cash is not currently recoverable.

How can I check if a particular address is valid on Bitcoin Cash?

Highly Irregular

Posted 2017-10-24T21:14:05.897

Reputation: 10 514

I'm voting to close this question as off-topic because it is not about bitcoin.Anonymous 2019-02-06T22:51:53.060

@Anonymous, despite the name of the site, it is ok to ask questions about other cryptocurrencies (except Ethereum and Monero, since they have their own sites). Check the site Tour page.

Highly Irregular 2019-02-08T09:09:26.153

I’d like that rule to change due to substantially low quality questions, such as this one.Anonymous 2019-02-08T09:10:05.240

@Anonymous that's something to argue in Meta, rather than going against the site description and trying to change questions to suit your personal opinion. Note that this question has had more upvotes than downvotes, so it appears others are finding it useful.Highly Irregular 2019-02-08T09:12:08.983

I’m sure everything will be fine.Anonymous 2019-02-08T09:12:49.233

Answers

3

You can't. Most segwit addresses are actually p2sh addresses that are wrapped around segwit. As it is impossible to determine what the redeem script of a p2sh will look like there is no way of telling them apart. In summary: If an address starts with a 3 it is impossible to know if its segwit, multisig or something else. If an address starts with a 1 it is safe to send to it, the private key to access the funds will be the same on both chains.

blues

Posted 2017-10-24T21:14:05.897

Reputation: 276

How about if you have the private key? Does that make a difference?Highly Irregular 2017-10-24T21:58:45.713

2Yes, that does make a difference. If you have the private key you can generate a so called p2sh-p2wpkh address and compare with the address in question. If they are the same, this is a segwit address. If not it is either a p2sh that has been wrapped around a p2pkh which you can check for by generating the p2sh for your private key, or it is a multisig which you can only check if you know all involved keys, or it is some non-standard script which you have no way of checking.blues 2017-10-25T07:32:29.973

0

UPDATE

Bitcoin Cash wallets now use a different address format (called CashAddress, https://cashaddr.bitcoincash.org) in order to prevent loss of funds.

merc1er

Posted 2017-10-24T21:14:05.897

Reputation: 59