rpc: analyzepsbt should explicitly check for an invalid taproot_key_path_sig #33320

issue Sjors openend this issue on September 5, 2025
  1. Sjors commented at 12:37 pm on September 5, 2025: member

    While testing #29675 my final combined PSBT ended up having an invalid taproot_key_path_sig, which I found out by logging the sigdata.complete value at the end of ProduceSignature.

    We should of course never produce such an invalid value and I’ll continue digging for the root cause. But external applications could do this too.

    Currently analyzepsbt will give a useless "next": "updater" status when this happens.

    We should instead display an error.

    Not sure what the best approach would be.

  2. Sjors commented at 12:42 pm on September 5, 2025: member
    FWIW this particular situation happened because a ledger signed one of the script paths and my WIP branch for HWI ended up putting that signature in the key path.
  3. fanquake added the label RPC/REST/ZMQ on Sep 5, 2025


Sjors

Labels
RPC/REST/ZMQ


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-09-12 09:13 UTC

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