---
title: "Control Block (Taproot) — definition | Nuri Glossary"
description: "The proof data in a Taproot spend that shows which script leaf is being used and ties it to the output key."
lang: "en"
type: "glossary-term"
canonical: "https://nuri.com/glossary/control-block"
---

# Control Block (Taproot)

The proof data in a Taproot spend that shows which script leaf is being used and ties it to the output key.

## Basically

A Taproot control block proves that a script belongs to a Taproot output. It shows the script's position in the Merkle tree.

## Key Takeaways

- A control block is the witness element that proves a script belongs to a Taproot output's committed tree. You need it for every script-path spend, but not for key-path spends.
- It contains three pieces of data: a leaf version byte with the output key parity bit, the 32-byte x-only internal public key, and a series of 32-byte sibling hashes forming the Merkle inclusion proof.
- The verifier uses the control block to reconstruct the Merkle root, compute the key tweak and confirm that it matches the on-chain output key. A match proves that the script is part of the taptree.

## What Is a Control Block?

A Taproot control block is a data structure in the witness of a script-path spend. It proves that the script being executed was committed to when the output was created, without revealing any other scripts in the tree. Defined in BIP 341, it enables Taproot's selective disclosure: you reveal only the branch you use and keep every other spending condition private.
The control block works like a receipt with a chain of cryptographic evidence. You give the network a script and claim that it was part of the tree committed to the output, and the control block gives verifiers the data to check that claim independently.
Control blocks apply only to script-path spends. A key-path spend of a Taproot output needs just one Schnorr signature in the witness and no control block.

## How It Works

A Taproot output commits to an internal public key and, optionally, a taptree of spending scripts. The on-chain output key is the internal key tweaked by the tree's Merkle root. To spend through a script, you must prove that it belonged to the original tree, and the control block carries the data for that proof.

## Control Block Structure

The control block is a byte string of length 33 + 32m, where m is the number of Merkle path hashes, from 0 to 128. It has three parts: a leaf version byte with the output key parity bit, the 32-byte x-only internal public key, and a series of 32-byte sibling hashes forming the Merkle inclusion proof.
A single-leaf tree has no siblings, so its control block is just 33 bytes: the version/parity byte plus the internal key. A tree of depth 3 produces a control block of 33 + (3 x 32) = 129 bytes. BIP 341 caps tree depth at 128 levels, giving a maximum control block size of 33 + (128 x 32) = 4,129 bytes.

## Verification Process

A node validates a script-path spend with the control block, the revealed script and the on-chain output key. It reconstructs the Merkle root, computes the key tweak and checks that the result matches the output key. A match proves that the script belongs to the taptree.
The commitment check uses only tagged hashes and elliptic curve point addition. It does not verify a signature; signature verification and script execution are separate steps.

## Key-Path Spend vs. Script-Path Spend

Taproot outputs support two spending methods. Key-path spends need only a Schnorr signature, while script-path spends need a control block to prove the script's place in the committed tree.
Well-designed Taproot outputs use the key path for the most common spending scenario and reserve script-path branches for fallback or dispute conditions. The control block appears on chain only when the cooperative path fails, which happens in the minority of transactions. For more on how Taproot changed Bitcoin's signature and spending model, see the Taproot and Schnorr signatures explained research article.

## Leaf Versions and Future Upgrades

The leaf version byte makes the control block forward compatible. The only defined leaf version is currently 0xc0, which marks the script as Tapscript under BIP 342. Scripts with an unrecognised leaf version are treated as "anyone can spend" under current consensus rules, so future soft forks can define new scripting languages without changing the control block format.
The control block structure stays stable under this design. New opcodes, signature schemes or entirely new script interpreters can use a new leaf version, while the Merkle proof and tweak verification logic stay unchanged.

## Multi-Branch Spending Conditions

A Taproot output can commit to dozens of spending scripts in a balanced Merkle tree. When you use one branch, the control block proves its membership with only log2(n) sibling hashes; a tree with 8 leaves needs just 3 hashes, or 96 extra bytes, regardless of which branch runs. The other 7 branches stay completely hidden.

## Complex Custody Arrangements

Institutions might build a taptree with branches for different authorisation levels: a key path for routine operations using MuSig2 or FROST aggregated keys, a script branch for time-locked recovery, and another branch for emergency spending with a different key set. The control block keeps unused branches private until needed.

## Lightning and Layer 2 Protocols

Lightning Network channels built on simple Taproot channels use script-path spends for force-close scenarios. The control block proves that the force-close script was part of the channel's funding output commitment, while cooperative closes use the key path and never put the control block on chain. Layer 2 protocols like Spark also benefit from Taproot's script commitment model for exit transactions, where the control block proves a user's claim to their funds.

## On-Chain Footprint

The control block is more efficient than revealing an entire script tree, but deep trees still produce large control blocks. Each level adds 32 bytes of witness data. Most real-world trees are shallow, at 1 to 4 levels, but protocol designers should consider the cost trade-off when building deep taptrees.

## Privacy Implications

A script-path spend reveals the executed script and the control block, disclosing the tree depth and internal public key. Other branches stay hidden, but the depth itself can be a fingerprint. A control block with 5 Merkle hashes shows that the tree has between 6 and 32 leaves, which may narrow down the type of contract being used.

## Internal Key Exposure

The control block reveals the internal public key in plaintext. A key-path spend reveals only the tweaked output key. Protocol designers who want to keep the internal key private should make script-path spending the fallback, not the default path.

## Validation Overhead

Control block verification requires tagged hashes at each level of the Merkle path and an elliptic curve point operation for the tweak check. Shallow trees make this cost negligible, but the 128-level depth limit means a worst-case control block requires 128 hash computations. Batch validation of Schnorr signatures can offset some of this cost at the block level.
The glossary entry is for informational purposes only and does not constitute financial or investment advice. Always do your own research before using any protocol or technology.
Part of the [Nuri glossary](https://nuri.com/glossary), which defines 1876 Bitcoin, Lightning, wallet, stablecoin and payment terms.
