Passer au contenu

Bitcoin accepté au paiement  |  Expédié depuis Laval, QC, Canada  |  Soutien expert depuis 2016

OP_CAT

Network & Protocol

Definition

OP_CAT is a Bitcoin Script opcode that takes the top two items on the stack, joins them into a single item, and pushes the result back. If the stack holds 0xB10C and 0xCAFE, running OP_CAT leaves 0xB10CCAFE. The operation is trivial on its own — "concatenate" is where the name comes from — but concatenation is a foundational primitive that unlocks far more expressive contracts than Bitcoin Script can express today, which is why a two-byte opcode carries one of the liveliest debates in Bitcoin protocol development.

Why it was disabled

OP_CAT shipped in Bitcoin's first release but was disabled by Satoshi Nakamoto in 2010, alongside several other opcodes, over denial-of-service concerns: without a size cap, repeated concatenation could double a stack item's length with each step, letting a small script exhaust a node's memory. The modern reactivation proposal — formalized as BIP-347 by Ethan Heilman and Armin Sabouri — re-enables it inside Tapscript with the existing strict 520-byte stack-element limit, which neutralizes that exponential-growth risk. Confining the change to Taproot script paths also means legacy script semantics are untouched.

What reactivation would enable

OP_CAT is not itself a covenant opcode, but it is a building block from which covenant-like behavior can be assembled. Combined with Schnorr signature tricks and Merkle proofs, concatenation lets a script reconstruct and inspect parts of the transaction that is spending it — a limited form of introspection. That opens the door to emulated covenants, vault constructions that force withdrawals through a delay-and-cancel path, equivocation bonds, and on-chain verification gadgets useful to systems like BitVM2. Researchers have also sketched STARK-verification and state-carrying constructions atop it. Supporters argue this leverage-per-line-of-code is exactly what a conservative soft fork should look like; skeptics counter that the same expressiveness makes the full consequence space hard to reason about in advance — the classic Bitcoin tension between capability and auditability.

The debate in practice

The strongest argument for OP_CAT is its history: it is a restoration, not an invention, and its semantics are simple enough to state in one sentence. The strongest argument against is that simple primitives compose into complex systems, and Bitcoin's culture — correctly — weighs what a change makes possible, not just what its authors intend. Both sides have produced working demonstrations on test networks and signet, which is how this debate should proceed: running code and adversarial review rather than slogans. Anyone following along can read the BIP text itself; it is one of the shortest consensus proposals ever written, which is part of its charm and part of the argument. Whatever the outcome, the process itself — years of open review before a single byte of consensus changes — is the feature, not the delay.

Where it stands

OP_CAT remains a proposal, not consensus. Activation would require a soft fork, and Bitcoin's bar for consensus changes is deliberately high: years of review, broad agreement, and demonstrated demand. It sits in the same design conversation as more targeted covenant proposals such as OP_CHECKTEMPLATEVERIFY (CTV), which constrains spends to a committed template, and AnyPrevOut, which rebinds signatures for channel protocols — each drawing the expressiveness line in a different place. For miners and node runners the debate matters practically: new script capabilities shape future transaction demand, fee markets, and what kinds of second layers settle to the chain your hardware secures.

D-Central presents this as an educational reference in research/proposal framing: understand what the opcode does, why it was disabled, and what the trade-offs of restoring it would be — and treat any claim that activation is imminent with the skepticism Bitcoin's actual change process has earned. Watch the BIP process and mailing-list review, not social-media countdowns.

In Simple Terms

OP_CAT is a Bitcoin Script opcode that takes the top two items on the stack, joins them into a single item, and pushes the result…

Explore the Full Glossary

Browse all Bitcoin mining terms from A to Z. Whether you are a beginner or expert, deepen your understanding of the mining ecosystem.

Glossaire du minage

ASIC Miner Database

Compare 500+ miners with real-time profitability data, home mining scores, and detailed specs.

Comparer les mineurs