OP_INVERT, OP_AND, OP_OR, OP_XOR - Disabled Bitwise Ops
From TeachMeBitcoin, the free encyclopedia
Reading time: 1 min
8. OP_INVERT, OP_AND, OP_OR, OP_XOR — Disabled Bitwise Ops
Overview
Bitcoin Script originally included a suite of bitwise manipulation opcodes for performing logical operations at the individual bit level. All four were disabled in August 2010 as part of the same sweep that removed the string opcodes:
| Opcode | Hex | Operation | |
☕ Help support TeachMeBitcoin
TeachMeBitcoin is an ad-free, open-source educational repository curated by a passionate team of Bitcoin researchers and educators for public benefit. If you found our articles helpful, please consider supporting our hosting and ongoing content updates with a clean donation:
Ethereum:
0x578417C51783663D8A6A811B3544E1f779D39A85
Bitcoin:
bc1q77k9e95rn669kpzyjr8ke9w95zhk7pa5s63qzz
Solana:
4ycT2ayqeMucixj3wS8Ay8Tq9NRDYRPKYbj3UGESyQ4J