【English Twitter threads】Regression and application analysis of OP_CAT

This article is machine translated
Show original

Chainfeeds Introduction:

In the Bitcoin ecosystem, the return of OP_CAT has sparked widespread discussion and attention. Cryptocurrency KOL Alpha Xinjiang wrote an article to explore in depth what OP_CAT is and what new use cases and opportunities it brings to Bitcoin.

Article Source:

https://twitter.com/0xShinChannn/status/1790433144577114414

Article author:

Alpha ShinChan | 0xShinChan


View:

Alpha New Sauce | 0xShinChan: The TLDR meaning of OP_CAT is that it is an initiative to improve the capabilities of Bitcoin smart contracts, similar to Ethereum. Now, it has received an initial formal designation of BIP 347 as a potential upgrade. OP_CAT is an early opcode of 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. Bitcoin researchers Ethan Heilman and Armin Sabouri proposed a Bitcoin Improvement Proposal (BIP) to reintroduce the OP_CAT opcode into Bitcoin's scripting language. Such opcodes 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. How does OP_CAT theoretically work? (i) Pop value: First remove the top two items from the stack. (ii) Concatenate: Then it combines the two items together. If x1 and x2 are items, and x2 is the last item added, OP_CAT will concatenate them to form x1x2. (iii) Push back: put the newly combined items back on the top of the stack. However, OP_CAT will not work if there are less than two items in 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 them active without requiring major changes to the network. One side believes that Bitcoin should remain as is, retaining its core functionality of transacting BTC, while the other side believes that Bitcoin is not ready to ossify + it has room for improvement given all the emerging scalability solutions, bridges + L2 boom. At the heart of the issue is a critical decision: whether Bitcoin should scale to a more programmable chain or still remain a P2P payment settlement layer. 【Original text in English】

Content Sources

https://chainfeeds.substack.com

Source
Disclaimer: The content above is only the author's opinion which does not represent any position of Followin, and is not intended as, and shall not be understood or construed as, investment advice from Followin.
Like
Add to Favorites
Comments