BOMBARCHIVE
Explore

A living reference collection. Written in the wiki, preserved in Git.

The archiveBitcoin

Taproot

Taproot is the Bitcoin soft fork that activated on mainnet at block 709,632 on 14 November 2021. The deployed upgrade combines BIP 340 Schnorr signatures, BIP 341's version-1 SegWit spending rules, and BIP 342's Tapscript semantics.

For this archive, Taproot matters twice. It is an important Bitcoin protocol upgrade in its own right, and it is part of the technical substrate later used by Ordinals inscriptions. Those are not the same historical event.

Origin

Gregory Maxwell's 23 January 2018 bitcoin-dev post, Taproot: Privacy preserving switchable scripting, proposed combining a public-key spend with a hidden script alternative. Its motivating problem was privacy and efficiency: if all parties cooperate, a complex contract should be able to settle looking like a simple signature spend, while alternative conditions stay hidden unless they are actually needed. Contemporary proposal

The deployed design was developed further by Pieter Wuille, Jonas Nick, Anthony Towns, Tim Ruffing and others. BIPs 340, 341 and 342 were assigned on 19 January 2020. BIP 341 defines Taproot's SegWit-v1 spending rules, BIP 340 specifies Schnorr signatures for secp256k1, and BIP 342 defines the initial script language used by Taproot script-path spends. BIP 340 · BIP 341 · BIP 342

How a Taproot output spends

A BIP 341 Taproot output is a native SegWit output with witness version 1 and a 32-byte witness program representing a tweaked public key. The spend can take two materially different paths. BIP 341

Key path
After optional annex handling, a witness with one element is interpreted as a Schnorr signature for the Taproot output key. No script tree needs to be revealed.
Script path
With two or more witness elements, the penultimate element is the script and the final element is the control block. The control block proves that the revealed script leaf was committed to by the Taproot output. Other unspent leaves do not need to be exposed.

That split preserves the original privacy idea: a cooperative spend can look like a simple key spend, while a fallback branch can be revealed only when used.

Tapscript changed the resource envelope

BIP 342 changed several script resource rules. Most important for the later inscription story, the old 10,000-byte maximum script-size limit does not apply to tapscript. BIP 342 says tapscript size is instead implicitly bounded by transaction and block weight. The old 201-non-push-opcode ceiling is also removed. At the same time, the maximum 520-byte stack element size remains, as does the combined 1,000-element stack and altstack limit. BIP 342 resource limits

That combination is easy to misdescribe. A tapscript can be much larger than 10 kB, but an individual pushed data element is still limited. This is why inscription bodies are split into a sequence of smaller pushes.

SegWit still supplies the weight accounting

Taproot is a SegWit-v1 construction, so its witness bytes inherit SegWit's transaction-weight model. BIP 141 defines block weight as base transaction data counted four times plus total transaction data counted once. Equivalently, a non-witness byte contributes four weight units while a witness byte contributes one. BIP 141

That makes witness-carried data cheaper per byte in fee terms, but not free and not outside the block. Witness data is committed into the block through the SegWit witness commitment and contributes to the four-million-weight-unit block limit.

Signing Taproot transactions with other wallets

BIP 371 extended PSBT in 2021 with fields for Taproot internal keys, script leaves, control blocks and Schnorr signatures; Bitcoin Core's implementation merged in June 2022. The fields coordinate signing off-chain. They do not alter Bitcoin's Taproot validation rules or identify the sat that an inscription may occupy. Original proposal · Implementation record

BIP 327 standardizes MuSig2, which lets several designated signers cooperate on one BIP 340 signature that can authorize a Taproot key-path spend. Its basic form is n-of-n, not an arbitrary threshold rule. The canonical BIP merged in March 2023, after a 2022 draft security correction concerning individually tweaked signing keys and concurrent nonce sessions. libsecp256k1 first released a corresponding module in November 2024; wallet implementations arrived separately. This is an off-chain signing protocol, not a change to the Taproot soft fork that activated in 2021. MuSig2 proposal and historical review · Library release · Maintained BIP

Relationship to Ordinals inscriptions

The current ord documentation describes inscription creation as a two-transaction Taproot commit/reveal procedure. The commit transaction creates a Taproot output that commits to a script containing the inscription. The reveal transaction then spends that output through the script path, exposing the tapscript and its inscription bytes in witness data. Ordinals inscription documentation

Inside that script, Ordinals uses an unexecuted conditional:

OP_FALSE
OP_IF
  OP_PUSH "ord"
  ...
OP_ENDIF

The envelope is an Ordinals convention, not a Taproot field. Bitcoin validates the tapscript and transaction. ord and compatible indexers separately recognize the "ord" marker, parse fields and body data, assign an inscription ID, and use Ordinal theory to determine which sat carries the inscription.

This gives a clean four-layer model:

  1. Bitcoin / SegWit — transaction validity, witness commitment and weight.
  2. Taproot / Tapscript — version-1 output, script commitment, reveal path and script resource rules.
  3. Ordinals inscription protocol — the envelope and application-level fields.
  4. Ordinal theory — the sat identity and transfer convention.

A Bitcoin node can fully validate the first two layers while knowing nothing about the latter two.

Chronology

23 January 2018
Gregory Maxwell published *Taproot: Privacy preserving switchable scripting* to bitcoin-dev. Contemporary proposal
6 May 2019
BIP 341's historical record points to this date for public bitcoin-dev discussion of the later Taproot soft-fork proposal developed by Pieter Wuille and collaborators. BIP 341 historical record
19 January 2020
BIPs 340, 341 and 342 were assigned, separating Schnorr signatures, Taproot spending rules and tapscript validation into linked specifications. BIP 340 · BIP 341 · BIP 342
15 October 2020
Bitcoin Core PR #19953 merged validation for BIPs 340–342. The rules were implemented in Core, but not yet active on mainnet. Direct repository record
1 May 2021
Bitcoin Core 0.21.1 was released with mainnet activation parameters and the Speedy Trial signaling mechanism. Its release notes distinguished paying Taproot addresses from Taproot actually being active. Bitcoin Core release notes
June 2021
Miner signaling crossed the Speedy Trial threshold and locked in activation. This is an activation-process milestone, not the activation block itself. Contemporary Bitcoin Optech record
14 November 2021
Taproot activated at block 709,632. BIP 341 records that the deployment activated at this height; the block's reported timestamp is 05:15:27 UTC. BIP 341 · Chain-derived block record
14 December 2022
Inscription 0 was revealed in block 767,430, more than a year after Taproot activation. Inscriptions reconstructs the intervening implementation history. Chain-derived inscription record

What Taproot was for, and what later users did with it

The primary 2018–2021 Taproot record is about privacy, efficiency, signature aggregation, script-path hiding and making Bitcoin Script more extensible. It is not an Ordinals design document.

Ordinals is therefore a later use of capabilities that were deployed for broader reasons. Infrastructure frequently acquires important uses that were not the reason it was built, and those later uses should not be read backward into the motives of the original designers.

The separate 2021 wallet convention

Taproot's consensus activation did not require wallets to adopt any particular BIP 32 derivation path. Ava Chow's BIP 86, merged into the BIPs repository on 2 July 2021, proposed purpose 86' for single-key P2TR receiving and change outputs. It also specifies the Taproot tweak from a derived internal key to the actual output key. The path is wallet interoperability metadata, not part of the consensus-level witness program. Original BIP 86 submission · Single-key specification

An inscription commit output, by contrast, intentionally has a spendable tapscript path that its reveal transaction executes. It must not be assumed to use BIP 86's scriptless single-key construction merely because both outputs can have bc1p destinations. A later inscription-bearing wallet output may use BIP 86, but identifying its derivation path needs off-chain wallet evidence, not a prefix read from the chain. Ordinals commit/reveal · BIP 341 key and script paths

Primary sources

Open research

Open question
Trace the earliest public discussion, before Ordinals, of using very large tapscripts primarily as data carriers rather than as spending logic. This would help separate what BIP 342 technically permitted from what its designers expected people to do with it.
Open question
Pin the first mainnet Taproot key-path spend and first script-path spend after activation directly from block and transaction order, separating consensus availability from wallet adoption.