wallet: control which taproot script path to spend #33084

issue Sjors openend this issue on July 29, 2025
  1. Sjors commented at 7:49 am on July 29, 2025: member

    When there’s multiple script paths we can spend, the wallet just (partially) signs all of them. We then pick the one with the lowest fees:

    https://github.com/bitcoin/bitcoin/blob/321984705dbcc5982013c8cfb52389cf3f2e75f6/src/script/sign.cpp#L373-L389

    The user may want to override this, e.g.:

    1. For privacy reasons they don’t wish to reveal the less secure (but cheaper) fallback condition.
    2. Their co-signer software trips up if it sees something in the taproot_script_path_sigs it can’t handle (similar to e.g. https://github.com/LedgerHQ/app-bitcoin-new/pull/340)

    #32857 lets the user avoid script path spending altogether. Similarly it would be good if they can manually pick one.


Sjors


github-metadata-mirror

This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2025-08-13 06:13 UTC

This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me