I'm searching for Taproot script-path examples and so far found a two-leaf example here. Is there any single-leaf construction on testnet or somewhere?

I'm wondering if TapBranch calculation is skipped for single-leaf constructions. Is single-leaf TapLeaf directly commits to TapTweak, or TapBranch is applied in-between?

1 Answer 1


With a single leaf, there is no TapBranch step. That would be impossible, as there are no two branches to combine. The TapLeaf hash is directly used in the TapTweak step.

I will try to add a few examples to the BIP soon.

  • Thanks! Looking forward to more examples.
    – Burak
    Oct 16, 2021 at 16:22
  • Update: Used TapLeaf directly in the TapTweak step and this time managed to spend a single-leaf P2TR output (using btcdeb). blockstream.info/testnet/tx/…
    – Burak
    Oct 16, 2021 at 18:01

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.