Home web3.0 Bitcoin Soft Fork: Does the Currency Really Need These New OP_Codes?

Bitcoin Soft Fork: Does the Currency Really Need These New OP_Codes?

Jul 12, 2024 pm 04:14 PM

Some developers are pushing again for a soft fork that has much less consensus than previous ones. It is not easy to alter the bitcoin code.

Bitcoin Soft Fork: Does the Currency Really Need These New OP_Codes?

Some developers are pushing again for a soft fork that has much less consensus than previous ones.

Bitcoin Soft ForkIt is not easy to alter the bitcoin code. We are incentivized to never modify the part of the code corresponding to the 21 million limit.

Some evolutions are nevertheless necessary, others much less so. Unfortunately, there will always be developers who want to bring their bad grain of salt.

Code evolutions are proposed via “Pull Requests.” Most are minor, but some are major. They then become BIPs (Bitcoin Improvement Proposals) which are sometimes “soft forks.”

As a reminder, a hard fork is an evolution of the code incompatible with the old one. The typical example is BCH (Bitcoin Cash). BTC network nodes do not validate BCH blocks because they can exceed the 1 MB limit per block. Such a change triggers a hard fork.

In the case of a soft fork, the two codes coexist on the same blockchain. This is called backward compatibility. For example, we could change the block size to 0.3 MB. This is less than the 1 MB limit and thus backward compatible with the original protocol.

The latest soft forks were SegWit (2016) and Taproot (2021). Some developers are currently pushing for a new fork to allow the creation of “covenants” by adding new OP_codes.

Blockstream Research recently published a fairly detailed summary on the topic:

It is essential to understand the mechanics of bitcoin transactions to understand what covenants are. The magic happens thanks to a computer execution language called “script.” It is a very simple language with a limited number of instructions.

These instructions are called OP_codes. See them as little digital gears that get going when a transaction is validated.

Specifically, making a bitcoin transaction means creating an “utxo” from one (or more) other “utxo” which is destroyed in the process. A utxo is a piece of code (a script) that mathematically links a quantity of bitcoins to a bitcoin address (a public key).

In essence, making a transaction means changing the public key (the bitcoin address) to which the amount of bitcoins is linked.

During a transaction, the star OP_code is OP_CHECKSIG. This checks that the signature matches the public key of the spent utxo. If everything is in order, a new utxo containing the receiver’s public key is created.

Overall, Bitcoin Script is a rather simple “stacked based” programming language that limits the field of possibilities.

Blockstream writes about this:

“As things currently stand, it is not possible to pre-configure how bitcoins from a utxo can be spent or the speed at which they can be spent. The only solution is to tinker using PSBTs (partially signed bitcoin transactions) which cannot properly include transaction fees, among other limitations.”

“The simplicity of the Script programming language, although it is at the heart of Bitcoin’s security model, introduces significant limitations in its ability to support the most elementary smart contracts.”

More Arithmetic in the Stack“Stack based” means that the data needed for transaction mechanics is placed in a “stack” where logical operations are performed.

Example of a transaction verification mechanism:

The OP_code OP_DUP will DUPlicate the public key of a utxo and place it in the stack.

The OP_code OP_HASH will hash this key (which transforms it into an address to which the bitcoins were mathematically linked in the utxo)

OP_EQUALVERIFY verifies that the resulting hash indeed belongs to the utxo in question.

OP_CHECKSIG verifies that the provided signature matches the public key of the utxo.

Bitcoin Script has just under 100 non-trivial OP_codes. However, it is not possible to multiply, divide, or concatenate (combine) data in the stack.

Satoshi disabled several OP_codes in 2010 (OP_OR, OP_MUL [multiply], OP_DIV [divide], and OP_CAT [concatenate]). These OP_codes were removed because their original implementations had exploitable vulnerabilities that could compromise network security.

Their absence, however, makes it difficult to create certain exotic spending conditions (smart contracts). Notably, the inability to define spending conditions in the utxo based on transaction data.

Blockstream explains:

“If the script had the ability to interpret more details inside transaction data, we could build much more robust contracts that allow for specific spending conditions.”

CovenantsCurrently, the only “smart contract” possible with bitcoin is simply the classic act of locking and unlocking bitcoins linked to a public key. Making a transaction, in essence.

Covenants aim to create a new type of utxo allowing the sender of a transaction to impose certain conditions on how the recipient can spend the bitcoins subsequently.

Here are two OP_codes grouped under the term “covenants” with limited capabilities that

The above is the detailed content of Bitcoin Soft Fork: Does the Currency Really Need These New OP_Codes?. For more information, please follow other related articles on the PHP Chinese website!

Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

AI Hentai Generator

AI Hentai Generator

Generate AI Hentai for free.

Hot Article

R.E.P.O. Energy Crystals Explained and What They Do (Yellow Crystal)
4 weeks ago By 尊渡假赌尊渡假赌尊渡假赌
R.E.P.O. Best Graphic Settings
4 weeks ago By 尊渡假赌尊渡假赌尊渡假赌
R.E.P.O. How to Fix Audio if You Can't Hear Anyone
4 weeks ago By 尊渡假赌尊渡假赌尊渡假赌
WWE 2K25: How To Unlock Everything In MyRise
1 months ago By 尊渡假赌尊渡假赌尊渡假赌

Hot Tools

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

Pi Network (PI) Price Falls Despite Successful PiFest 2025 Event Pi Network (PI) Price Falls Despite Successful PiFest 2025 Event Apr 03, 2025 am 10:08 AM

Pi Network recently held PiFest 2025, an event aimed at increasing the token's adoption. Over 125,000 sellers and 58,000 merchants participated

Qubetics ($TICS): The Revolutionizing AI Crypto Qubetics ($TICS): The Revolutionizing AI Crypto Mar 23, 2025 am 10:08 AM

Cryptocurrency has always been a realm where the cutting edge of technology meets bold ambition, and it's only getting more exciting in the future. As artificial intelligence continues to grow in influence, there are a handful of digital assets that

Bitcoin [BTC] was on a downtrend after losing the $92,000-support level in the final week of February Bitcoin [BTC] was on a downtrend after losing the $92,000-support level in the final week of February Mar 16, 2025 am 10:10 AM

Technical indicators such as the OBV showed that selling pressure has been dominant, meaning more losses may be likely ahead.

BlockDAG Launches Beta Testnet With $200M Raised, Ethereum Approaches $2,000 & Tether Expands Into Media BlockDAG Launches Beta Testnet With $200M Raised, Ethereum Approaches $2,000 & Tether Expands Into Media Apr 03, 2025 am 10:34 AM

Ethereum (ETH) price edges toward resistance, Tether news reveals a €10M media deal, and BlockDAG reaches new milestones with Beta Testnet and growing adoption.

Where to download the genuine Ouyi? Official website download. Global Where to download the genuine Ouyi? Official website download. Global Mar 31, 2025 pm 02:09 PM

Ouyi usually refers to Ouyi OKX. The global way to download Ouyi OKX APP is as follows: 1. Android device: Download the APK file through the official website and install it. 2. iOS device: access the official website through the browser and directly download the APP.

okx Ouyi Exchange web version enter link click to enter okx Ouyi Exchange web version enter link click to enter Mar 31, 2025 pm 06:21 PM

1. Enter the web version of okx Euyi Exchange ☜☜☜☜☜☜ Click to save 2. Click the link of okx Euyi Exchange app ☜☜☜☜ Click to save 3. After entering the official website, the clear interface provides a login and registration portal. Users can choose to log in to an existing account or register a new account according to their own situation. Whether it is viewing real-time market conditions, conducting transactions, or managing assets, the OKX web version provides a simple and smooth operating experience, suitable for beginners and veterans. Visit OKX official website now for easy experience

Cyber criminals were able to steal cryptocurrency worth 1.5 billion US dollars Cyber criminals were able to steal cryptocurrency worth 1.5 billion US dollars Mar 16, 2025 am 11:12 AM

Since then, the provider has been investigating how this could have happened and how it will (hopefully) not happen again in the future.

gate.io registration tutorial gate.io registration tutorial Mar 31, 2025 pm 11:09 PM

This article provides a detailed Gate.io registration tutorial, covering every step from accessing the official website to completing registration, including filling in registration information, verifying, reading user agreements, etc. The article also emphasizes security measures after successful registration, such as setting up secondary verification and completing real-name authentication, and gives tips from beginners to help users safely start their digital asset trading journey.