Close Menu
  • News
    • Bitcoin
    • Altcoins
    • DeFi
    • Market Cap
  • Blockchain
  • Web 3
    • NFT
    • Metaverse
  • Regulation
  • Analysis
  • Learn
  • Blog
What's Hot

Bitcoin is trading 20% ​​below mining costs as fears mount, but is a bullish rotation about to begin?

2026-03-07

SoFi uses BitGo to power the distribution of its SoFiUSD stablecoin

2026-03-07

Bitcoin – How to hope for a ceasefire, oil prices are driving crypto market volatility

2026-03-07
Facebook X (Twitter) Instagram
  • Contact
  • Terms & Conditions
  • Privacy Policy
  • DMCA
  • Advertise
Facebook X (Twitter) Instagram
Bitcoin Platform – Bitcoin | Altcoins | Blockchain | News Stories Updated Daily
  • News
    • Bitcoin
    • Altcoins
    • DeFi
    • Market Cap
  • Blockchain

    SoFi uses BitGo to power the distribution of its SoFiUSD stablecoin

    2026-03-07

    Interoperability is ‘essential’ for digital assets to reach their full potential: DTCC

    2026-03-07

    A groundbreaking leap into the consumer future of decentralized AI

    2026-03-07

    BitGo to Power SoFiUSD Stablecoin Infrastructure as SoFi Launches First Nationally Chartered Bank Token

    2026-03-07

    AINFT extends multi-chain AI services with BNB chain integration

    2026-03-07
  • Web 3
    • NFT
    • Metaverse
  • Regulation

    US lawmakers consider ban on prediction markets amid bets on Iran

    2026-03-06

    De volatiliteit van Bitcoin zou in april kunnen exploderen als SEC de markt achter de ETF-leverage beoordeelt

    2026-03-06

    Crypto company Kraken secures a direct link to Federal Reserve payments

    2026-03-04

    Bitcoin’s $85 billion derivatives engine may move onshore as CFTC eyes April approval

    2026-03-04

    De deadline voor stablecoins van het Witte Huis verstrijkt terwijl de CLARITY Act vastloopt

    2026-03-03
  • Analysis

    Billionaire Peter Thiel dumps a $74,400,000 stake in three assets, including one of Warren Buffett’s favorites

    2026-03-07

    Bitcoin Price Rally Slows, Consolidation Signals Possible Next Step

    2026-03-07

    XRP Price Ladder Shows What Conditions Are Needed for $18, $100, and $500

    2026-03-07

    Bitcoin’s rally from $73,000 faces a crucial test as momentum looks to change

    2026-03-06

    ‘Good Times Have Arrived’ – Trader Michaël van de Poppe Says the Bitcoin Bear Phase is Over – Here Are His Goals

    2026-03-06
  • Learn

    What Is Wrapped ETH (WETH) and Why Do You Need It in DeFi?

    2026-03-06

    What Is Crypto Protocol and Why Coins Need It

    2026-03-04

    Wat is Liquid Proof-of-Stake: uitgelegd voor beginners

    2026-03-02

    The 9 Most Common Crypto Scam Types

    2026-03-02

    Sidechains Explained: What They Are, How They Work, and Why They Matter

    2026-02-20
  • Blog
Bitcoin Platform – Bitcoin | Altcoins | Blockchain | News Stories Updated Daily
Home»Blockchain»Programming Taproot
Blockchain

Programming Taproot

2024-04-22No Comments9 Mins Read
Share
Facebook Twitter LinkedIn Pinterest Email

Highlights from Jimmy Song’s new technical workshop, Programming Taproot.

Last month I attended the first trip of Programming Taproot, a new workshop that Bitcoin developer Jimmy Song just launched. He held the one-day workshop at Bitcoin Commons in downtown Austin. It is a follow-up to his successful two-day Programming Blockchain workshop that he teaches around the world and which eventually became the basis for his excellent book Programming Bitcoin. I discuss the highlights of the workshop and the main ideas.

[This post is more technical than others. Don’t be scared. Even if you don’t understand everything, save this post and come back to it as your Bitcoin education develops. I’m in the process of developing an online class that will allow an educated but non-technical audience to fully understand the content of a post like this.]

The big idea of ​​Taproot is that it enables much greater complexity and privacy in Bitcoin scripts. Transactions using Taproot look no different on-chain than the most basic Bitcoin transactions, where Alice sends money to Bob. Complex transactions were possible with the Bitcoin script pre-Taproot, but they reveal a lot of information about the transaction and bloat the chain. Taproot uses smart Merkle trees and new signatures to hide all this information from the blockchain, and instead works at the wallet and node level. This is a natural evolution of software, pushing back-end processing out of sight of the public layer.

Schnorr signatures

The first step of Taproot is the Schnorr signature. Currently, Bitcoin uses Elliptic Curve Digital Signature Algorithm (ECDSA) signatures, which requires expensive computing and finite field division. Schnorr has a simpler signing and verification algorithm using hash functions. As you might guess, Satoshi’s favorite hash function is SHA-256. And that’s what Schnorr uses. In fact, Schnorr was invented when Satoshi wrote Bitcoin, but it was under patent protection. Schnorr’s simplicity is attractive and serves the same function as the original Bitcoin ECDSA signature: it proves that a bitcoin owner knows her private key without revealing that private key. Full nodes perform that verification every time the owner sends bitcoin over the network, and these verifications (signature operations or SigOps) are now much faster under Schnorr signatures.

Taproot

Taproot allows scripts now called Tap scripts to be turned into a Merkle tree with Tap leaves and Tap branches. A Merkle tree is a data structure already used in Bitcoin, designed for lightweight clients to verify transactions without keeping the entire blockchain on disk. In my lesson I show exactly how a lightweight client can perform a proof of inclusion using this Merkle tree. In short, Merkle trees are useful data structures to easily prove that certain data is stored in the tree. Because Merkle trees are binary search trees, they can efficiently store large amounts of data: they can 2128 levels deep, allowing many different scripts in the tree. This enables complex scripts in much more sophisticated financial transactions, where the calculations take place off-chain.

See also  QANplatform's quantum-resistant technology finds its way to the EU

MuSig

A multisig transaction in Bitcoin allows Bitcoin to be spent if multiple signatures unlock multiple public keys. Multisig is a great innovation that greatly improves usability and user experience because it avoids the stress and headache of managing a single key, which can forever prevent access to bitcoin if that key is lost. Michael Flaxman has excellent interviews on Stephen Livera’s podcast about the benefits of multisig, and several Bitcoin companies like Unchained and Casa have built their business around third-party multisig custody, where a custodian holds some of the keys.

The problem with multisig pre-Taproot is that it is clunky. It reveals all the spending terms for the chain, and it also bloats the chain because all those signatures and keys now have to be part of every transaction.

MuSig makes multisig possible, where everything takes place in the background. Suppose a group of individuals generate their own public keys and want to receive a payment to the group, which would then require signatures from all the people in order to send the money in a transaction. For example, large transfers of money from company to company may require the signatures of both the CEO and CFO, or transfers from a family estate may require the signatures of all members of the family. MuSig generates a group public key based on the individual public keys, then generates individual signatures based on the group public key, and finally a group signature based on the individual signatures. Ultimately, a single group signature can sign off on the group transaction to unlock the group’s public key. The most important innovation is that signing and verification are done within one Taproot transaction.

Why is this a big problem? Pre-Taproot required two types of authentication for multisig. The first was the verification of individual signatures, which happened at the signature layer. The second was the verification of the spending conditions, which happened at the script layer. With Taproot, it can all be done at the signature layer, and this is conceptually better. A multisig transaction is simply a more complex version of a single signature transaction and therefore should be treated conceptually the same way: at the signature layer. MuSig avoids the need to call complex scripts for a multisig transaction. And then there’s the privacy benefit, as these MuSig transactions look no different than peer-to-peer transactions between individuals on the Bitcoin network.

See also  Taproot Wizards bounces back from tech-marred debut to sell $11 million worth of Bitcoin NFTs

FROST

Flexible Round-Optimized Schnorr Threshold Signatures (FROST) was the last topic, a way to implement threshold signatures. This is the complete development of multisig on Taproot. The novelty here is that it uses Shamir’s secret exchange, a clever way to share a private key with a group using threshold technology. Shamir, the S in RSA, developed a clever approach to allow any group of people to discover a secret among the distributed shares, with the caveat that any smaller group would not be able to discover the private key (hence the threshold condition). There’s some elegant math in the background, using Lagrange interpolation to fit a polynomial to a set of discrete points. I liked this part of the workshop the most because it reminded me of how Bitcoin uses cool math to create new financial applications.

There is a very simple geometry that conveys the basic idea. Given any two points on a plane, you can find the line connecting the two points by solving for the slope and intersecting the point. With any three points you can find a quadratic equation. With any four points you can find a cubic equation, and so on. Lagrange interpolation generalizes this intuition, and Shamir’s secret sharing applies it to private key recovery. FROST implements this, to show that any fixed number of shared values ​​of a private key can reveal that private key, but no less.

Final thoughts

The Taproot Upgrade is a few years old, but I never really understood it until now. It is a tour de force of applied mathematics. I’m optimistic that this will unleash new financial applications, more privacy and better wallets. For me, it has inspired a path to rethink bank-to-bank transactions using this new toolkit that I will explore this year.

Jimmy is an excellent educator. He has done the hard work of taking all the information in the Bitcoin Improvement Proposals (BIPs) and putting it into his slides for you. If you are considering this workshop, I definitely recommend you take his two-day Blockchain Programming workshop, spend over 100 hours reading and absorbing his book Programming Bitcoin, or take my upcoming online class on Bitcoin Fundamentals. Jimmy focused his classes on developers, and in between mini-lectures we spent half the time coding Taproot in Python. If you are comfortable with coding and open to learning all Bitcoin specific infrastructure, I recommend the course. If you still want to know what’s going on under the hood without coding yourself, stay tuned to this newsletter as I communicate these ideas to a broader, non-technical audience. I conclude with some technical footnotes.

See also  RKVST secures patent to solve storage challenges and improve scalability

Technical footnotes

  1. One of Taproot’s most important principles is to minimize the footprint in the chain. There is one example where I think it went too far, namely the x-only public keys. Public keys in Bitcoin are points of an elliptic curve, so they have an x ​​and ay coordinate. There is a clever way to represent a public key in compressed form using only the x coordinate and the sign of the y coordinate. This uses Fermat’s little theorem and the unique symmetry of the elliptic curve over the x-axis. Taproot went even further by using as a baseline that the y-coordinate is even. If the y-coordinate is ever odd, the developer can reverse the sign of the private key so that the resulting y-coordinate of the public key will turn out to be even. This requires constant testing of the sign of the y-coordinate on the back end, which becomes tedious. I feel like this costs more overhead for developers with minimal benefit, which is a saving of just one byte on the blockchain.
  2. The Taproot Merkle tree is now sorted. Pre-taproot, the Merkle trees used for light client authentication were unsorted and required a fairly verbose message sent between the full node and the light client, something called flag bits. All this is easier if the tree is sorted at the start. It makes proof of inclusion much easier. I wish the earlier Merkle trees were sorted too!
  3. The main distinction between MuSig and FROST is the generation of the individual keys. At MuSig, the people with the keys come to the MuSig coordinator, while at FROST the dealer hands out the keys. This need for a trusted FROST dealer is not trivial and is probably the only downside I see at this point. Over time there will be ways to deliver the keys in a distributed manner, but that is still being explored.
  4. Ordinal numbers and inscriptions are the main use of Taproot these days, but I expect/hope this will change as Bitcoin grows.

I answer Bitcoin questions in the paid version of this newsletter, so send them to korok@tamu.edu

Source link

Programming Taproot
Share. Facebook Twitter Pinterest LinkedIn Tumblr Email

Related Posts

SoFi uses BitGo to power the distribution of its SoFiUSD stablecoin

2026-03-07

Interoperability is ‘essential’ for digital assets to reach their full potential: DTCC

2026-03-07

A groundbreaking leap into the consumer future of decentralized AI

2026-03-07

BitGo to Power SoFiUSD Stablecoin Infrastructure as SoFi Launches First Nationally Chartered Bank Token

2026-03-07
Add A Comment

Comments are closed.

Top Posts

Blockstream’s CEO expects Bitcoin to reach $100,000 before the halving

2023-12-03

Trade 350 App: This Trade 350 App Sets New Standard in AI-Driven Trading with Unmatched Security and User Approval

2025-05-31

How the Grinch Tried to Steal Coinbase’s Right to Operate

2023-06-30
Editors Picks

Ethereum is experiencing its longest monthly losing streak since 2018

2026-03-02

Multisynq Taper Chainlink-Build to promote real-time application layer

2025-05-16

Bitcoin vs. Gold: Which is the Better Inflation Hedge?

2024-04-12

Will there be a 30% rebound?

2025-11-12

Our mission is to develop a community of people who try to make financially sound decisions. The website strives to educate individuals in making wise choices about Cryptocurrencies, Defi, NFT, Metaverse and more.

We're social. Connect with us:

Facebook X (Twitter) Instagram Pinterest YouTube
Top Insights

Bitcoin is trading 20% ​​below mining costs as fears mount, but is a bullish rotation about to begin?

SoFi uses BitGo to power the distribution of its SoFiUSD stablecoin

Bitcoin – How to hope for a ceasefire, oil prices are driving crypto market volatility

Get Informed

Subscribe to Updates

Get the latest news and Update from Bitcoin Platform about Crypto, Metaverse, NFT and more.

  • Contact
  • Terms & Conditions
  • Privacy Policy
  • DMCA
  • Advertise
© 2026 Bitcoinplatform.com - All rights reserved.

Type above and press Enter to search. Press Esc to cancel.