What Is Taproot and What Are the Functions?

Update 26 Jan 2022 • Reading Time 5 Minute
Image What Is Taproot and What Are the Functions?
Reading Time: 5 minutes

Bitcoin recently completed its most significant network upgrade in four years. The update, called Taproot, aims to streamline Bitcoin transaction processing and make it more efficient in terms of speed and cost. What is Taproot and how does it work? We will discuss this further in this article.

block-heading joli-heading" id="article-summary">Article Summary

  • 🥕 Taproot is the latest Bitcoin update which was activated in block 709,632 on November 14, 2021.
  • 📈 Taproot will optimize scalability, privacy, and smart contract functionality within the Bitcoin network.
  • 💰 Taproot allows users to save on transaction fees.

What is Taproot?

Taproot is the latest Bitcoin update which was activated in block 709,632 on November 14, 2021. Bitcoin Taproot will optimize scalability, privacy, and smart contract functionality within the Bitcoin network.

This update generates a new address type, allowing bitcoins to look similar no matter whether they are sent for simple payments, multisig transactions, or using the Lightning Network. The new Taproot address allows users to save on transaction fees.

The taproot will reduce transaction size and make all transactions looks simple with only one signature. The taproot will also enable larger and more complex Bitcoin operations, which were previously not possible.

So what are the advantages of this latest update?

  1. Bitcoin transactions will become more efficient
  2. Transaction size will be reduced and simplified
  3. Enable complex smart contracts within the Bitcoin network
  4. Complex transactions will have low transaction costs like simple transactions
  5. Increase the privacy of Bitcoin transactions without compromising security

Why is it important to do Taproot?

Bitcoin is always evolving to make transactions more efficient without compromising bitcoin security. Among other things developed by the developer are wallet addresses, scripts, and new types.

Bitcoin has several types of addresses that can still be compatible with each other. Among other things, there are legacy addresses or often referred to as Pay to Public Key Hash (P2PKH), legacy wallet addresses usually start with the number 1…or 3…, and there is also a Segwit address which usually starts with bc1q….

For example, a legacy address is a popular bitcoin initial address, but a legacy address or P2PKH has several problems, including transactions using legacy addresses, which are not flexible and use large capacities, making transaction fees expensive. You can read What is Segwit in the previous article.

Previous Update, Segwit.

In 2017, Greg Maxwell and Pieter Wuille had an idea to reduce the bitcoin transaction capacity by separating the digital signature process to make transaction fees cheaper. Then came to the Segwit address and the bitcoin program went through a soft fork.

Segwit helps reduce errors, increases the number of transactions that can be processed, and reduces transaction costs by more than fifty percent. However, because there is still a scarcity of these old addresses, the sender of the transaction must pay attention to the recipient’s wallet’s policies — such as the contract or the script — which is both inconvenient and a severe privacy flaw. This is because the contract can be viewed by anybody, therefore the recipient’s privacy is compromised.

Privacy and efficiency are the drawbacks of old bitcoin addresses, so again in 2018 Greg Maxwell and Pieter Wuille proposed the latest update using Taproot.

What Is Taproot? 1
Taproot adoption timeline (by @valhal__la)

How to activate Taproot?

Since the bitcoin program is open source, applying for and executing this update is not easy. Without a central structure forcing them to agree to reforms, all parties around the world must concur. To conduct a “Speedy Trial” in this taproot update, all miner nodes must deliver a favorable signal before the code is executed.

Since May 2021, every miner has been obliged to vote on whether or not they approve of the taproot update, and it will only be implemented if at least 90% of miners indicate that they are ready to upgrade their program. This signal might be generated in 2160 blocks or during the period before the difficulty adjustment.

Finally on June 12, 2021, the miners reached a consensus and Taproot was locked to be activated. Speedy Trial – the green block indicates the miner wants to activate Taproot, and the red color does not yet want to activate it.

What Is Taproot? 2

How does Taproot work?

The Bitcoin blockchain consists of computer code. So, when you send a transaction, your bitcoins will be linked to the script. This script command will tell the blockchain what you can do. Usually, you have to use the private key to provide a “signature†and prove that you can spend your bitcoins.

But people can perform more complex transactions (i.e., smart contracts, or code that defines an agreement between sender and receiver), such as requesting multiple signatures (multisignature) or requiring a waiting period known as a “timelock†before bitcoins can be spent.

Merkelized Abstract Syntax Trees (MAST)

The Taproot upgrade introduces Merkelized Abstract Syntax Trees (MAST), a structure that allows bitcoin to perform its functions and only discloses the specific conditions of the contract used. For example, if there is a multisignature address that is owned by many people and that address wants to spend a certain amount of bitcoins, they can set one spending condition where they all have to come to a consensus and agree to spend the funds or if they can’t reach a consensus, there will be other conditions.

If the conditions are agreed upon by all multisignature parties, Taproot allows the multisignature to be converted into a single digital signature. Therefore, the bitcoin network will not even know if this transaction uses a contract, this significantly increases the privacy of all owners of multisignature addresses.

Schnoor Signature

In addition, Taproot also uses the Schnorr Signature which allows superior privacy, lower costs, and more flexible multisig. Taproot also has Pay to Taproot (P2TR) where users can create UTXOs that can be unlocked and used by the owner of the private key.

This design allows users to choose between complex and arbitrary scripts and simple public-key functionality at the time of purchase, not at the time of receipt. This makes all Taproot output look similar. Since multisig output, single sig output, and other complex smart contracts all look the same on the blockchain, many chain analysis heuristics will become unusable, preserving privacy for all its users.

The combination of Schnoor Signature, MAST, P2TR and Tapscript makes bitcoin transactions more private, more efficient, more sophisticated and more cost-effective.

When can Taproot be used?

Like the previous update, to use Taproot needs adjustment and waiting for adoption time from bitcoin users around the world. Because bitcoin is decentralized, anyone can choose to run the old or newer version of the bitcoin program. You can see the progress of taproot adoption on Bitcoin Wiki.

Reference

Author:Dea Rezkitha

Rate this article

Your rating will help us improve.

What's not good?

Any suggestions for this article?

Thank you for your review!Close
Failed to send review. Please try again.Close

Share