Categories

What previously-disabled opcodes did Bitcoin Cash reactivate?


Bitcoin Script, serving as the language for transactions, initially included various opcodes that were largely dormant during the cryptocurrency's early years. However, in 2010, the identification of bugs related to certain opcodes raised concerns about potential node crashes and unauthorized spending of coins. As a precautionary measure, numerous unexplored opcodes, including splicing, logical, and arithmetic operations, were disabled. This removal deprived the Bitcoin community of the chance to explore applications utilizing these functionalities.

Bitcoin Cash reactivated numerous opcodes between 2018 and 2019. These re-enabled opcodes encompass a range of functionalities, including splicing, bitwise logic, arithmetic, and more. The reintroduction of these fundamental building blocks allows for straightforward data manipulation with minimal overhead. This restoration of opcodes provides developers with greater flexibility, enabling them to create custom transactions and explore a variety of applications.

The re-enabled opcodes include:

  • OP_CAT
  • OP_AND
  • OP_OR
  • OP_XOR
  • OP_MUL
  • OP_DIV
  • OP_MOD
  • OP_LSHIFT
  • OP_RSHIFT

Learn more about the re-enabled opcodes and other Bitcoin Cash technical features in our broad exploration of Bitcoin Cash upgrades.

Was this article helpful?
0 out of 5 stars
5 Stars 0%
4 Stars 0%
3 Stars 0%
2 Stars 0%
1 Stars 0%
5
Please Share Your Feedback
How Can We Improve This Article?