Site iconSite icon ForkLog

Add the cat: why Bitcoin’s potential OP_CAT upgrade matters

Add the cat: why Bitcoin’s potential OP_CAT upgrade matters

Upgrades to the bitcoin network are infrequent—the last soft fork, Taproot, was activated in November 2021. By comparison, since then Ethereum has shipped Shapella, Dencun and The Merge, with the Pectra upgrade already slated for the first quarter of 2025.

Meanwhile, the community is only debating the possible implementation of an improvement proposal dubbed OP_CAT (BIP-347). Here is why it matters, and why developers’ ideas move so slowly from concept to code.

Remove, don’t add

Shortly before disappearing in 2010, bitcoin’s creator Satoshi Nakamoto made several significant changes to the protocol of the first cryptocurrency:

These changes enabled the development of digital gold while preserving decentralisation. Even so, the peculiarities of Script have long hampered bitcoin’s programmability:

In late 2021 the Taproot soft fork introduced support for Schnorr signatures (BIP-340) and the TapScript scripting environment (BIP-342). The latter capped the maximum size of a stack element at 520 bytes, thereby removing OP_CAT’s potential vulnerability.

Don’t remove, add

The BIP-347 draft was published in 2023 by developers Ethan Heilman and Armin Sabouri. They proposed reviving OP_CAT via a soft fork by assigning its semantics to the existing OP_SUCCESS126.

Smart contracts enable funds to move automatically without intermediaries. In bitcoin, however, their functionality is largely limited to locking and unlocking.

Covenants—conditions or restrictions that enforce certain rules when interacting with assets or functions in a contract—could broaden bitcoin’s smart-contract capabilities.

OP_CAT’s core function is conCATenation: joining two or more strings or other sequences into one. The BIP-347 authors propose using reverse concatenation to create recursive covenants and to split stack elements into multiple parts.

If a smart contract receives a user’s signature and public key, it could verify them independently, ensuring both pertain to the same transaction.

Introducing OP_CAT would help minimise the threat from quantum computers and enable on bitcoin:

Taproot Wizards co-founders Eric Wall and Udi Wertheimer have fronted a PR campaign to bring OP_CAT back under the slogan BIP-420 and launched the Quantum Cats inscriptions collection to highlight the boost to bitcoin’s quantum resilience after the upgrade.

Quantum Cats collection. Data: Magic Eden

According to CoinGecko, in April 2024 the floor price of a “quantum cat” reached 0.47 BTC. At the time of writing the NFTs trade around 0.28 BTC.

OP_CAT is not the only proposal to support covenants. Developers have put forward several other approaches:

The community is also discussing cross-chain bridges and L2 networks if OP_CAT is adopted. For example, Taproot Wizards has begun work on a bitcoin-scaling protocol, CatVM, as an alternative to the existing BitVM, where users have to rely on operators to move funds.

StarkWare, the company behind StarkNet, has announced plans to make its L2 network a single scaling layer for the first cryptocurrency. According to co-founder Eli Ben-Sasson, this could be achieved six months after OP_CAT is implemented:

“Once OP_CAT is accepted, implementing a STARK verifier into Bitcoin script becomes real. This will open the path for secure and self-custodial movement between the first cryptocurrency’s blockchain and StarkNet, creating a single scaling layer for both Ethereum and BTC.”

Why it takes so long

Bitcoin is an open protocol that lets anyone with the requisite skills publish a BIP. After that, however, the proposal must be accepted by a group of editors and then approved by 95% of miners.

BIP life cycle. Data: Forklog.

For a long time the only BIP editor was Luke Dashjr, who has voiced controversial views on bitcoin’s future. For instance, early this year he proposed blocking Ordinals at the code level, but failed to gain sufficient support.

In April 2024 Bitcoin Core developer Ava Chow proposed forming a group of editors to speed up decision-making and relieve Luke Dashjr of excessive responsibility.

The team includes bitcoin developers Brian Bishop (Kanzure) and John Atack, bitdevs.org contributors Mark Erhardt (Murch) and Ruben Somsen, and Lightning Labs CTO Olaoluwa Osuntokun (Roasbeef).

Ava Chow introduces the new BIP editors. Data: gnusha.org.

The change helped accelerate the next potential upgrade: on 24 April 2024 the editors assigned OP_CAT the number BIP-347.

“Assigning a number does not signal community consensus, but it makes it easier to discuss and write software for the proposal, because it now has a unique identifier everyone agrees on,” noted Ethan Heilman in an interview with CoinDesk.

Conclusions

OP_CAT would expand bitcoin’s functionality and allow advanced smart contracts on the network of the first cryptocurrency.

For SegWit and Taproot, the path from first mention to implementation took about two years, and activation came roughly a year after community approval. On that precedent, BIP-347 could be implemented in 2026.

Exit mobile version