Segregated Witness and Taproot (BIPs by Pieter Wuile Eric Lombrozo and Johnson Lau). Two of the biggest Bitcoin Protocol changes have ever been implemented are (BIPs created by Pieter Wuille Jonas Nick Tim Ruffing Anthony Towns).
In order to overcome the limitations inherent in the old transaction structure, it was necessary for the first version of Bitcoin to fundamentally change the way transactions are structured and blocks created. This rearchitectured certain aspects of Bitcoin scripting, including how scripts were structured, validated and restructured. It also introduced a scheme to create cryptographic signatures.
These are two different things Massive Discounts on All Products Adding a single opcode, such as CHECKTIMELOCKVERIFY. (CLTV), does little more than give the recipient an option to stop their coins moving during a specified time period.
This change was made in order to fix the real flaws and limitations that Bitcoin has as a platform. Bitcoin’s foundational layer is a brilliant and invaluable innovation. It allows for a worldwide consensus to be maintained on Bitcoin as a whole, that is, all of the coins not yet spent. The technology is woefully unsuitable for the purpose of enabling everyone to use those coins directly.
Many of the flaws that Segregated Watch and Taproot addressed in the past have now been forgotten. As time has passed, the rationale and reasons behind design decisions were also distorted.
The two Bitcoin changes are not just solutions to big problems, they lay the groundwork to solving more problems or improving the protocol in the future.
It is worthwhile to go back and review the choices made in terms of design, especially since many people have now joined the network after these changes were activated.
Segregated Witnesses (BIP 1411)
A Bitcoin transaction can spend coins by referencing the TXID and output index of the previous transaction. It allows inputs to be unique identified, and it can be confirmed with certainty that they have not been used before.
Before Segregated witness, the transaction structure was as follows:
[Version] [Inputs] [Outputs] [Locktime]
TXIDs are hashes of these data. Problem is ScriptSig. Inputs that verify the validity of a transaction are included. You can modify the little instructions within a ScriptSig or the cryptographic signs themselves, without invalidating the signatures.
The following are some of the ways to get in touch with each other “malleations” Change the TXIDs. It is an issue for transactions that are pre-signed.
All scaling tools, such as the Lightning Network, Ark and Spark, BitVM or Discreet Log Contracts, rely on pre-signed transaction. Pre-signing transactions is required to guarantee the safety and execution of funds. Before you begin, please read the following: Signing and verifying the transaction. These systems all use multisignature verification to ensure safety against double-spending.
All pre-signed second layer transactions are nullified if the funding transaction has been malleated and changed translation ID before being confirmed as a block. These tools do not work when anyone is able to alter the funding TXID while it’s propagating across the network.
In the place of the ScriptSig, Segregated Witness places an opcode that is not defined as a blinding screen. All of the information from the ScriptSig field will be moved to a transaction called the “witness.” Here is a new way to structure transactions:
[Version] [Marker/Flag] [Inputs] [Outputs] [Witness] [Locktime]
It is important to note that the word “you” means “you”. “blinding curtain” The inputs allow old nodes simply to mark everything that is behind it as valid, while newer ones can actually apply the validation logic. The traditional TXID won’t change if the ScriptSig information in the witness is changed. It solved the pre-signed issue and allowed for all scaling solutions to use it.
A problem arises when the block header transaction merkle trees only commit to the conventional TXID. In a block, there is no committment to witness data. It is necessary to have the witness ID and commit the transaction. The same as the normal TXID merkle tree, each WTXID for a transaction must be committed and built in the transaction witness.
This is because the reserve value is added to the hash of the root. The value can be used to commit to new fields of data in the future. Luke Dashjr, who came up with the idea of witness tree commitments, had assumed that Segregated Witness was going to require a Hardfork as a result of the new transaction structure.
It is important to note that the word “you” means “you”. “blinding curtain” Design also allows for arbitrary upgrades of the scripting system, because new data are ignored by nodes that do not support it. It allows the new script system bypassing all limitations of the old script system. Schnorr’s signatures were integrated because of the flexibility in upgrading paths. Quantum-resistant signatures will be possible if required (quantum-resistant public keys, like signatures, are usually larger than the legacy data item size limit).
Segregated witnesses solved the fundamental issue of transaction ID malleability, that held back the development and scaling of second layers to bring Bitcoin to a wider audience. But it also laid down the foundations for scripting improvement to support those second layers.
Schnorr Signs2
Claus Schnorr created Schnorr’s signatures in 1991. He promptly patent them. It is true that ECDSA was developed because of the Schnorr patent. In February 2010, the patent for Schnorr Signatures expired, a little over a year following the launch of Bitcoin.
Without the Schnorr patent, Satoshi would probably have started using Schnorr’s signatures.
Schnorr Signatures offer a number of advantages over ECDSA.
- Schnorr’s signatures have been proven secure. The mathematical proof that Schnorr signatures are unforgeable/unbreakable is much stronger, and makes less assumptions, than that for ECDSA. It is a positive to have stronger cryptography security for Bitcoin.
- Schnorr Signatures are not malleable by nature. This means that issues that could be encountered with ECDSA, which allowed a person to alter a signature and still keep it valid are impossible with Schnorr Signatures.
- Schnorr’s signatures feature a linearity which allows for a simple and efficient addition key construction. Distributed key generation and distributed signature creation are also possible. The user can easily generate signatures and distribute keys. “add” Schnorr keys and generate signatures as a collective.
These are more reliable, secure and not susceptible to manipulation by third-parties. They also allow for a wide range of flexible and efficient cryptographic schemes that can be used to enhance multisignature verification.
When I discussed transaction malleability earlier, I said that all off-chain transactions using pre-signed ones depended upon multisignature authentication in order to protect user funds. The implicit limit on the amount of shared funds was created by this. The legacy multisig only allows for a certain amount of signatures. For version 0 witnesses (Segregated Witness), there are also transaction limits. There are only a limited number of participants who can join a multisignature, and therefore there is essentially fewer participants that have control over funds.
Schnorr-based multisignature systems avoid this limitation by aggregate public keys to a group public key, rather than building a script that explicitly includes each member key individually. Before Segregated Witness, a multisignature could have only 15 participants. After Segregated Witness, the maximum number of participants was increased to 20.
MuSig, a multisignature system based on Schnorr, is a great way to protect your digital identity.5 The FROST6 At least not at a level of consensus. The size of multisignature scripts is up to the user, so long as there are no disruptions or people refusing to sign.
The properties of key aggregation allow efficient adaptor signatures. A scheme which allows someone produce a sign that is invalid until secret information about the message has been disclosed. These properties allow a scheme powered by zero-knowledge to be used for signing a message that a person cannot see.
Taproot3,4
Taproot is a newer version of the concept known as Merkelized abstract Syntax Trees.7This is a form of pay-to-script hash (P2SH).8. P2SH originally was created to address two main problems.
- The unspent output from large scripts is bigger, requiring more storage space in the UTXO.
- The sender will pay a larger fee when using large scripts. This is because the transaction output for the scripts are greater.
Instead of explicitly including the entire output in the output, the recipient is required to include the complete script as input in order to verify the hash. It solved the issue of unspent storage and put the burden of large scripts onto the user, rather than the sender.
The problem remains. The script can be customized to include different ways of spending the coins, but the user still has to reveal all the branches, even if they aren’t necessary for verifying the conditions under which the coin was actually spent. It is not only inefficient but also increases the cost of spending.
MAST’s idea is to separate each spending condition from a script with multiple branches, and then create a tree of merkles for each spending route. Each spending path is hashed and then the root address of this merkle is determined. When spending time, the user must provide the path that they use along with merkle proof to prove that leaf. They also need the data required for that script.
This tree-like structure optimizes MAST’s spending and privacy, while solving the same issues as P2SH.).
Taproot integrates this concept in a way that preserves privacy by utilizing the linear Schnorr Signatures. In most cases, the outcome of most contracts is a positive one. Both users agree to how money will be dispersed. Then they just need to sign a contract. Taproot is the MAST roots and “tweaks” Schnorr’s public key results in the creation of a new key. By “tweaking” You can then use the MAST-based private key as the root of the public key.
The user can either spend the output with that modified key without leaving any trace of a MAST, or they can reveal their original public key along with MAST’s root and the actual spending path. If you do not want to include the key path in your output, you can use a NUMS value (Nothing Up My Sleeve) that is proven unspendable instead of using a standard public key. This will only allow MAST scripts for spending.
Taproot, taking advantage of Segregated witness’ design, introduced tapscript, an entirely new scripting language. The major changes here are deactivating OP_CHECKMULTISIG and OP_CHECKMULTISIGVERIFY. These are now replaced by OP_CHECKSIGADD which is a faster way of verifying multiple signatures. In combination with Schnorr Key Aggregation, this allows for the same functionality of legacy script.
Tapscript modifies OP_CHECKSIG to only accept Schnorr-signed signatures and replaces OP_NOP in legacy script with OP_SUCESS. OP_SUCCESS allows for cleaner, safer opcode upgrade than OP_NOP.
Watch Limits
Two issues have been left undiscussed up to now. Taproot’s increased witness size limits and Segregated Watch’s blockweight limitation.
These two decisions are causing a lot of controversy amongst a small but very powerful minority in the ecosystem. The blocksize was increased as part of the introduction of the blockweight limitation. This was done to satisfy dissenting users who wanted a hardfork. It was considered safe at the moment by the network. But the dynamics of the witness discount are important.
Bitcoin fees are calculated based on how much data is in the transaction. The amount being transferred has nothing to do with the transaction fees. This is only the bytes and number of witnesses (and inputs) of each. Before Segregated Witness, I had mentioned that the signatures, ScriptSig and other information were part of the inputs for transactions. There is an enormous amount of data in inputs, but it isn’t included in outputs.
What does that mean? The cost of inputs is higher than the output In a single transaction, the margin is large. It creates an incentive over time for users to prefer to spend large amounts of outputs, and to generate new ones instead of collecting many smaller ones. The long-term economic incentives encourages users to continually grow the UTXO dataset, which is needed for every fully validating network node.
Witness discount corrects this price margin by making it tiny instead of massive. It is important that responsible UTXO managers are financially rewarded, even if they simply do transactions.
Taproot eliminated the existing limits for witness data in a transaction. Segregated witnesses had a size limit of 10000 bytes. The reason for this was that the Taproot design mitigated any potential expensive transactions. Miniscript would have been more complex if such limitations were introduced. Taproot was not affected by the problem that such limitations were designed to solve. However, it added complexity to a tool intended to make scripts more accessible and safer for developers as well as users.
The Big Picture
Bitcoin: Both these Bitcoin changes removed The following are some examples of the use of The protocol was unable to be scaled up to allow more users to use it on their own. This meant that it had to undergo similar, massive modifications to its core.
The reader who was previously not familiar with these choices and the reasoning behind them will now be able to appreciate the thoughtfulness and care with which the designs were created. Bitcoin is a truly amazing invention, but its advantages are not available to a large percentage of people.
In order to try to fix Bitcoin’s scaling issues, Segregated Witness (SegWit) and Taproot were essential. All of the scalability and system layers that we use today wouldn’t exist without these two proposals.
Lightning, Ark, Spark, BitVM, DLCs – none of them would be possible to build.
The big picture is this. Bitcoin today may not be perfect, but there is a chance that it will scale up to a large enough audience to really make an impact, and to provide a viable alternative to those who wish to opt-out. These two upgrades to the protocol and the fundamental barriers that they remove are responsible for this.
Don’t miss your chance to own The Core Issue — featuring articles written by many Core Developers explaining the projects they work on themselves!
The latest issue of the magazine features a Letter to the Editor. Print Bitcoin Magazine The Core Issue. Here’s a sneak peek at what the core issue has to offer.
[1] https://github.com/bitcoin/bips/blob/master/bip-0141.mediawiki
[2] https://github.com/bitcoin/bips/blob/master/bip-0340.mediawiki
[3] https://github.com/bitcoin/bips/blob/master/bip-0341.mediawiki
[4] https://github.com/bitcoin/bips/blob/master/bip-0342.mediawiki
[5] https://github.com/bitcoin/bips/blob/master/bip-0327.mediawiki
[6] https://github.com/siv2r/bip-frost-signing
[7] https://github.com/bitcoin/bips/blob/master/bip-0114.mediawiki
[8] https://github.com/bitcoin/bips/blob/master/bip-0016.mediawiki
“This article is not financial advice.”
“Always do your own research before making any type of investment.”
“ItsDailyCrypto is not responsible for any activities you perform outside ItsDailyCrypto.”
Source: bitcoinmagazine.com

