Each leaf of a Taproot script tree pairs a script with a leaf version, so later soft forks can introduce new script versions; Tapscript as defined in BIP 342 uses leaf version 0xc0.
Sources and checks
T1BIP 341, TaprootBIP, says this directly
new script versions can be introduced with a soft fork while remaining compatible with BIP 341.
Design, future extensions, read 2026-11-20
T1Bitcoin Core src/script/interpreter.h, Taproot constantsSource code, says this directly
inline constexpr uint8_t TAPROOT_LEAF_TAPSCRIPT = 0xc0;
TAPROOT_LEAF_TAPSCRIPT, read 2026-11-20
bitcoin/bitcoin at f498a5a671 contains this text in src/script/interpreter.h, and still does on the default branch.
Run it yourself
git clone https://github.com/bitcoin/bitcoin && git -C bitcoin show f498a5a6718d9157b6afb85412c3462439117702:src/script/interpreter.h | grep -nF 'inline constexpr uint8_t TAPROOT_LEAF_TAPSCRIPT = 0xc0;'bitcoin/bitcoin at f498a5a671 contains this text in src/script/interpreter.cpp, and still does on the default branch.
Run it yourself
git clone https://github.com/bitcoin/bitcoin && git -C bitcoin show f498a5a6718d9157b6afb85412c3462439117702:src/script/interpreter.cpp | grep -nF 'if ((control[0] & TAPROOT_LEAF_MASK) == TAPROOT_LEAF_TAPSCRIPT) {'Checked at block 976,759, 20 Nov 2026, 17:27 UTC: quotes 2/2, code 2/2
History
Nothing is edited silently; every revision keeps what it replaced.
- 20 Nov 2026, 17:27 UTCblock 976,759
Published Revision 1, run 2026-11-20-seed-taproot