<p>So far as I can tell:</p>
<p>OP_XOR is not implemented in BTC.</p>
<p>OP_XOR is <a href="https://github.com/schancel/spec/blob/5e9319028e85321c24eac9fe4b47e60c42b315bc/may-2018-reenabled-opcodes.md#op_xor" rel="nofollow noreferrer">implemented</a> <a href="https://reviews.bitcoinabc.org/D1090" rel="nofollow noreferrer">on BitcoinABC</a> and <a href="https://bitcoinmagazine.com/technical/infographic-map-bitcoin-forks" rel="nofollow noreferrer">subsequent forks</a> of that (e.g. <a href="https://github.com/bitpay/bitcore/blob/master/packages/bitcore-lib-cash/lib/script/interpreter.js#L1322" rel="nofollow noreferrer">BCH</a>, <a href="https://wiki.bitcoinsv.io/index.php/Opcodes_used_in_Bitcoin_Script" rel="nofollow noreferrer">BSV</a>), but P2SH has been depreciated on <a href="https://wiki.bitcoinsv.io/index.php/Complex_Script_Options" rel="nofollow noreferrer">BSV</a>:</p>
<blockquote>
<p>P2SH – Pay to Script Hash (deprecated with the Genesis upgrade after
Feb 4th 2020)</p>
</blockquote>
<p><em>from wiki.bitcoinsv.io</em></p>

CC BY-SA 4.0
2023-02-22T18:20:09.663Z
P2SH can be implemented with existing opcodes in the Script https://xiaohuiliu.medium.com/sun-rising-p2sh-7ebfca9283aa.
sinoTrinity
CC BY-SA 4.0
2022-01-20T10:55:32.743Z
2022-01-21T10:10:21.790Z
2022-01-21T10:10:21.790Z
Lee
<p>Why is <code>OP_XOR</code> <a href="https://en.bitcoin.it/wiki/Script#Transaction_with_a_message" rel="nofollow noreferrer">disabled</a>?</p>
<p>Are there any forks on which it has been enabled?</p>
<p>Are there any plans to enable it?</p>
<p>Perhaps <a href="https://bitcoin.stackexchange.com/a/48720/34190">this</a> is the answer, still perhaps there is another reason for the bitwise logic functions being disabled...</p>

CC BY-SA 4.0
2022-01-20T04:42:19.240Z
I think the answer you linked does answer your question too.
meshcollider
<transactions><script><transaction-verification><opcodes>
Why is OP_XOR disabled? Are there any forks on which it has been enabled?
Lee
# Why is OP_XOR disabled? Are there any forks on which it has been enabled?

(Asked by: username_0 on 2022-01-19)

Why is `OP_XOR` [disabled](https://en.bitcoin.it/wiki/Script#Transaction_with_a_message)?

Are there any forks on which it has been enabled?

Are there any plans to enable it?

Perhaps [this](https://bitcoin.stackexchange.com/a/48720/34190) is the answer, still perhaps there is another reason for the bitwise logic functions being disabled...

**Tags:** transactions, script, transaction-verification, opcodes

> **Comments:**
> **username_1**: I think the answer you linked does answer your question too.  

---

## 1 answers

### Answer by username_0 on 2022-01-20. Score: 0 | Accepted answer

So far as I can tell:

OP\_XOR is not implemented in BTC.

OP\_XOR is [implemented](https://github.com/schancel/spec/blob/5e9319028e85321c24eac9fe4b47e60c42b315bc/may-2018-reenabled-opcodes.md#op_xor) [on BitcoinABC](https://reviews.bitcoinabc.org/D1090) and [subsequent forks](https://bitcoinmagazine.com/technical/infographic-map-bitcoin-forks) of that (e.g. [BCH](https://github.com/bitpay/bitcore/blob/master/packages/bitcore-lib-cash/lib/script/interpreter.js#L1322), [BSV](https://wiki.bitcoinsv.io/index.php/Opcodes_used_in_Bitcoin_Script)), but P2SH has been depreciated on [BSV](https://wiki.bitcoinsv.io/index.php/Complex_Script_Options):

> P2SH – Pay to Script Hash (deprecated with the Genesis upgrade after
> Feb 4th 2020)

*from wiki.bitcoinsv.io*

> **Comments:**
> **username_2**: P2SH can be implemented with existing opcodes in the Script https://xiaohuiliu.medium.com/sun-rising-p2sh-7ebfca9283aa.  

---

