Coinlive- We Make Blockchain Simpler
Download and install the Coinlive app
Open

Should BTC restore OP_CAT? What new use cases can OP_CAT bring?

Author: 0xShinChann, Crypto KOL; Translation: 0xjs@黄金财经

OP_CAT was once an opcode removed from the BTC script language by Satoshi Nakamoto, but now it has once again become the center of community discussion (Note: OP_CAT was the most discussed by Bitcoin developers during the Bitcoin Asia conference).

As a potential upgrade, it has received the initial formal designation Bitcoin Improvement Proposal (BIP) 347.

DmFwgZAWNdiTlTVW89hiMrxxNlw9M57bzIHVPqFN.png

OP_CAT is an initiative to improve the functionality of Bitcoin smart contracts (similar to Ethereum). This article explains in detail what OP_CAT is, how it works, what use cases it has, and what controversies the community has.

1. Some background: How OP_CAT came about

OP_CAT is an early opcode in Bitcoin. It was originally created by Bitcoin founder Satoshi Nakamoto as a programming shortcut. But it was removed in 2010 due to concerns about high memory usage + potential security vulnerabilities.

In October 2023, Bitcoin researchers Ethan Heilman and Armin Sabouri proposed a Bitcoin Improvement Proposal (BIP) to reintroduce the OP_CAT opcode into the Bitcoin Script language.

This opcode will allow developers to build and evaluate Merkle trees and other hash data structures in Tapscript, the native scripting language used to enable new transaction types in the Taproot upgrade.

 2. How does OP_CAT theoretically work?

(i) Popping Values: First remove the top two items from the stack.  

(ii) Concatenate: The two items are then combined. If x1 and x2 are items and x2 is the last item added, OP_CAT will concatenate them to form x1x2.  

(iii) Push back: The newly combined item is then put back on the top of the stack.

However, OP_CAT will not work if there are less than two items on the stack, or if the size of the combined items exceeds 520 bytes (which is the limit for script elements in Bitcoin). If enabled via a soft fork, it will replace existing unused operations in the script, making it active without major changes to the network.

 3. Why is OP_CAT needed? What is it used for?

Simplify data processing: OP_CAT allows merging two stack values ​​in Tapscript. This simplifies the creation of complex data structures + enhances script functionality.

Extend Bitcoin functionality: OP_CAT introduces common functions that do not exist in Bitcoin but are crucial in Ethereum. This can simplify the development of L2, DEX + dApp, making the Bitcoin network versatile.

Multi-signature scripts: OP_CAT can help reduce the size of multi-signature scripts, making them more efficient and less cumbersome.

Facilitate complex contracts: OP_CAT supports advanced contracts such as vaults, which can protect funds even if private keys are leaked.

 4. Controversy over the role of OP_CAT in Bitcoin: Is OP_CAT perfect? ​​

This proposal is a bit controversial because it affects the path of how Bitcoin will or will not develop as a blockchain in the future.

One camp believes that Bitcoin should remain as it is, retaining its core function of trading BTC, while others believe that Bitcoin has not yet ossified and see room for all emerging scalability solutions (such as bridges and L2) to flourish.

At the heart of the issue is a critical decision: whether Bitcoin should expand into a more programmable public chain, or remain a P2P payment settlement layer.

For more information about BIP 347, please refer to this address: https://github.com/bitcoin/bips/blob/master/bip-0347.mediawiki

More news about op cat btc

  • Jun 06, 2024 12:45 pm
    【オピニオン】OP_CATのビットコインへの急な適用はセキュリティリスク増大の恐れ
    最近、ビットコイン(BTC)の「Operation Concatenate(OP_CAT)」を再有効化することへの支持が急増している。 source: https://jp.cointelegraph.com/news/rushing-op-cat-bitcoin-immense-security-cost
  • Jun 02, 2024 8:45 am
    Opinion: If OP_CAT is promoted, use cases on every chain may return to the Bitcoin ecosystem
    Henry Elder, an investor at Taproot Wizards and head of UTXO Management, said in an interview that if the innovation OP_CAT is advanced, then every use case on every chain has the potential to return to Bitcoin. For example, OP_CAT can enable so-called non-equivocation contracts, where Bitcoin contracts can punish people who try to use the same coin twice. Or, if someone's wallet is hacked, the owner may have time to reverse the hacked transaction. Blockstream CEO Adam Back said this is a good idea because Bitcoin custody benefits from some additional programmability, and additional programmability can enable more Layer2 functions. For example, these functions can build better bridges with Layer2 chains to make transactions safer and easier. (Bloomberg)
  • Jun 02, 2024 8:31 am
    Taproot Wizards CEO: OP_CAT function may make the Bitcoin chain more powerful
    As efforts to add new features through software upgrade code continue to advance, the Bitcoin chain's reputation as the network that mainly supports digital gold may change. "In fact, you can execute smart contracts on the Bitcoin chain that are very similar to those on other chains. Bitcoin can become more powerful. Now it's time to talk about actual technical upgrades." The OP_CAT function was proposed by Ethan Heilman and Armin Sabouri in October and was recently launched on the Bitcoin test network Signet. It was assigned the BIP-420 number, indicating that the ecosystem is seriously considering upgrading it. Many well-known people in the crypto industry, such as Solana Labs co-founder Anatoly Yakovenko, added "BIP-420" to their usernames on the X platform. Taproot Wizards launched the Quantum Cats Ordinals series in February to promote OP_CAT. In April, Taproot Wizards released a white paper outlining a framework for building applications using OP_CAT. (Bloomberg)
  • May 01, 2024 11:55 am
    OP_CAT, Also Known As BIP-420, Goes Live On Bitcoin's Official Testnet 'SIGNET'
    According to PANews, OP_CAT, also known as BIP-420, has been launched on Bitcoin's official testnet 'SIGNET'. This will allow developers to build advanced OP_CAT applications using CatVM and conduct real-time testing on the official test network. Previously, 'signet' was the name of the Bitcoin test network, designed specifically for developers to test their software. There are no miners on 'signet', with 'signet' operators creating a block every 10 minutes on average, without the need for proof of work. For those familiar with the Ethereum test network, Bitcoin's 'signet' is similar to Ethereum's 'sepolia' network.
  • May 01, 2024 11:37 am
    '비트코인 스마트컨트랙트 도입' OP_CAT 코드, 시그넷 테스트넷서 활성화
    비트코인 오디널스 프로토콜 기반 인스크립션 프로젝트 탭루트위저드(Taproot Wizards) 공동 설립자 우디 베르트하이머(Udi Wertheimer)가 X(구 트위터)를 통해 "비트코인에 이더리움(ETH)과 같은 스마트 컨트랙트 기능을 도입하는 내용을 골자로 한 OP_CAT 코드가 비트코인 시그넷(SIGNET) 테스트넷에서 활성화됐다"고 1일 밝혔다. 이에 따라 개발자는 시그넷 테스트넷서 캣VM(CatVM)을 활용, OP_CAT 기반 애플리케이션을 구축할 수 있다는 설명이다. OP_CAT은 최초의 op_code(비트코인에 내장된 프로그래밍 단축키) 중 하나로 포함된 적 있지만, 이후 과도한 메모리 사용과 보안 취약점 가능성에 대한 우려가 제기된 후 비트코인 창시자 사토시 나카모토에 의해 2010년 제거된 바 있다.
  • May 01, 2024 11:25 am
    Taproot Wizards founder: OP_CAT has been launched on Bitcoin testnet Signet
    Udi Wertheimer, founder of Taproot Wizards, announced on the X platform that OP_CAT (i.e. BIP-420) has been launched on the Bitcoin Signet test network. It is reported that Signet is a Bitcoin test network designed for developers to test software. It has no miners, does not require proof of work, and creates a block every 10 minutes on average. Earlier news, Bitcoin Improvement Proposal BIP-420 has officially introduced the restoration of the OP_CAT opcode, which aims to enable Bitcoin covenants and support the development of smart contracts, security bridges, and on-chain transactions. The BIP-420 proposal was written by Ethan Heilman and Armin Sabouri, and aims to reintroduce OP_CAT into Bitcoin through a backward-compatible soft fork by "redefining the opcode OP_SUCCESS126."
  • Apr 28, 2024 11:34 am
    OP_CAT Expected To Launch On Bitcoin Testnet Signet Next Week
    According to Foresight News, Udi Wertheimer, the advocate of OP_CAT and co-founder of Taproot Wizards, has announced that OP_CAT, also known as BIP-42, is expected to launch on the Bitcoin testnet Signet next Tuesday, April 30. This will allow developers to build OP_CAT applications using CatVM and conduct real-time testing on the official test network. Signet is the name of the Bitcoin test network designed for developers to test their software. It operates without miners and does not require proof of work, creating a block every 10 minutes on average.
  • Apr 28, 2024 11:07 am
    OP_CAT will be launched on the Bitcoin Signet testnet next Tuesday
    OP_CAT (i.e. BIP-420) is scheduled to be launched on the Bitcoin Signet testnet at block height 193,536 (expected to be next Tuesday). Signet is a Bitcoin testnet designed for developers to test software. It has no miners, does not require proof of work, and creates a block every 10 minutes on average. Previous news, Bitcoin Improvement Proposal BIP-420 has officially introduced the restoration of the OP_CAT opcode, which aims to enable Bitcoin covenants and support the development of smart contracts, security bridges, and on-chain transactions. The BIP-420 proposal was written by Ethan Heilman and Armin Sabouri, and aims to reintroduce OP_CAT into Bitcoin through a backward-compatible soft fork by "redefining the opcode OP_SUCCESS126."
  • Apr 25, 2024 6:57 am
    OP_CAT's proposal to bring smart contracts to Bitcoin gets BIP 347
    A serious attempt to bring Ethereum-like smart contract functionality to Bitcoin, called OP_CAT, has finally received the "BIP number" 347. This is the first step to actually launch the long-proposed software upgrade. "Getting a BIP number does not mean that the community has reached any consensus. It just makes it easier to discuss and write software," Ethan Heilman, one of the co-authors of the proposal, Armin Sabouri, said in an interview.
  • Apr 23, 2024 11:13 pm
    Bitcoin Improvement Proposal BIP-420 officially incorporates OP_CAT opcode
    Bitcoin Improvement Proposal BIP-420 has officially introduced the restoration of the OP_CAT opcode, which aims to enable Bitcoin covenants and support the development of smart contracts, secure bridges, and on-chain transactions. The BIP-420 proposal was written by Ethan Heilman and Armin Sabouri and aims to reintroduce OP_CAT into Bitcoin through a backward-compatible soft fork by "redefining the opcode OP_SUCCESS126." (TheBlock)

More news about op cat btc

0 Comments
Earliest
Load more comments