OP_CAT With Ethan Heilman

OP_CAT co-author Ethan Heilman gives a rundown of the proposed reactivation of the Satoshi-era opcode. 

  • On a basic level, OP_CAT adds the top two elements of a stack for a transaction. 
  • OP_CAT is short for “concatenate,” because it concatenates (combines) two values on a stack
  • OP_CAT was included in Bitcoin originally, but it was removed in August 2010 along with 14 other opcodes
  • We don’t actually know why OP_CAT was disabled, Heilman says. 
  • To bring back OP_CAT: 1) it would only be activated in Tapscript; 2) activation would use OP_SUCCESS for a softfork; 3) same opcode as the original
  • OP_CAT code has been assigned BIP 347 and the code is ready, but there’s currently no clear consensus for activation 
  • OP_CAT would enable: vaults,  general computation, certain types of covenants
  • Stack elements are currently siloed in Bitcoin Script, meaning that they can’t influence each other. OP_CAT changes this
  • “CAT isn’t special”: many opcodes could deliver similar functionality, but CAT is the most simple, Heilman says
  • There are generally two perspectives on opcodes: 1) they should be monolithic, or 2) new opcodes should be simple and modular
  • We can do covenants today, but the methods are generally expensive (or VERY expensive in the case of ColliderScript)
  • CAT_based covenants are large and hard to write
  • Will we only get a chance at one covenant opcodes? Heilman thinks so, but CAT is not a dedicated covenant opcode
  • While CAT can technically achieve covenants, “CAT is not a reason not to do a covenant opcode,” Heilman said, adding that he would like to see CTV activated as well

Related Episodes

Want to do more with bitcoin? Bitcoin miner MARA has a sidechain for you!
Nov 18, 2024
Weikeng Chen of L2 Iterative walks us through the use of STARKs on Bitcoin, plus some talk on OP_CAT!
Nov 18, 2024
What if we created Bitcoin covenants using fancy encryption? That's the idea behind Bitcoin PIPEs!
Nov 18, 2024
Miner extractable value is a fundamental problem when it comes to Bitcoin's scaling choices. How do we limit or eliminate MEV is a pretty difficult ask, however.
Nov 18, 2024
Ark picks up where on-chain Bitcoin and Lightning drops off.
Nov 14, 2024
Bitcoin is going to break at some point. It's just in the math. But how do we stop that from happening beforehand? Hunter takes us into quantum proofing Bitcoin.
Nov 14, 2024
How can we get better safety and security around storing Bitcoin? There's an OP_CODE for that!
Nov 14, 2024
Have we really hit a block size limit with the Bitcoin L1? Lightning Network co-inventor Tadge Dryja thinks not.
Nov 12, 2024
Kindly Drop an email to access the story

By subscribing, you agree to the Blockspace Privacy Policy and Terms and Conditions.

The Blockspace Newsletter, Free of Charge

The best in Bitcoin news & analysis, read by over 8,000 Bitcoiners.