2

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

3

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.

2
  • Thanks! Looking forward to more examples.
    – Burak
    Commented 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
    Commented Oct 16, 2021 at 18:01

Your Answer

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

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