Bitcoin Taproot Descriptors: tr(), Script Trees, and Recovery Paths
Taproot output descriptors make Taproot receiving and spending conditions explicit. The tr() descriptor function describes a Taproot output built from an internal key and, optionally, a tree of scripts. It gives wallet software a reproducible way to construct outputs without treating the resulting bc1p address as a complete record of the wallet's spending policy.
Key-path-only descriptors
The basic form is tr(KEY), where KEY is a valid internal public key expression. The resulting output commits to a tweaked output key according to BIP341. A valid key-path signature can spend the output when the appropriate private signing material is available.
A Taproot address alone does not reveal the internal key, optional scripts, or derivation metadata. Consequently, backing up only the address cannot reliably reconstruct the full wallet's spending options.
Describing a script tree
The descriptor form tr(KEY,TREE) includes an optional script tree. Branches can encode distinct authorization paths, such as a normal signer and a delayed recovery signer. The descriptor syntax uses tree structure to capture how leaves are committed to the Taproot output. Tree shape affects Merkle paths and therefore witness data for script-path spending.
A script-path spend reveals the selected leaf, its control block, and any required witness items, but generally not unexecuted sibling scripts. This can reduce disclosure compared with putting every condition into a single visible script. It does not make the spending transaction anonymous or hide all metadata.
Miniscript and Tapscript
Tapscript leaves may use supported Miniscript expressions in implementations that handle the appropriate Taproot context. BIP342 changes script execution rules, including signature opcode behavior, so SegWit v0 script assumptions should not be copied blindly. Wallets need to know the available satisfaction paths and have the relevant keys, preimages, or timelock conditions.
Backup and interoperability
For reliable recovery, preserve the full tr() descriptor, including the internal key derivation information and script tree, together with separate signing secrets. Include the network, checksums, branch ranges where applicable, and any operational notes needed by cosigners. Test recovery by deriving known addresses and confirming that the intended spending path can be satisfied on a test network before depositing significant funds.
Different wallets may support different descriptor functions or Miniscript features. Standards define formats, but practical interoperability still requires compatible software and signing workflows.
Primary references
BIP386 — tr() Output Script Descriptors: https://github.com/bitcoin/bips/blob/master/bip-0386.mediawiki
BIP341 — Taproot: https://github.com/bitcoin/bips/blob/master/bip-0341.mediawiki
BIP342 — Tapscript: https://github.com/bitcoin/bips/blob/master/bip-0342.mediawiki
BIP380 — Output Script Descriptors: https://github.com/bitcoin/bips/blob/master/bip-0380.mediawiki
