Skip to content

psbt: refuse transaction-independent SIGHASH_SINGLE signatures #35977

Closed

Description

@l0rinc

The PSBT signing path can produce a signature that is not bound to the transaction.
This happens when SignPSBTInput() is explicitly asked to sign a pre-SegWit input with SIGHASH_SINGLE, but the corresponding output is missing.
The signature hash is then the constant digest uint256::ONE.

The underlying SIGHASH_SINGLE behavior is well known, the raw transaction signing path has refused this case since #1689.

This PSBT signing gap was also found and disclosed responsibly by the Red Team 🟥.

Activity

  1. added a commit that references this issue on Sep 25, 2026
    e19f83e
  2. added 4 commits that reference this issue on Oct 8, 2026
    4e6d495
    b88580c
    59391d5
    ce5b786
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions