AI-generated analysisPublished automatically and not human-verified. Validated context appears in community notes below.
← Watch feed
Low 45 Bitcoin

sign_tx/sign_psbt: share code to validate supported sighash flags

Public commit record

What the developer wrote

Authored by Jon Griffiths

50/100 · Thin
sign_tx/sign_psbt: share code to validate supported sighash flags
✓ Specific, descriptive subject✓ Names a concrete action or component! No meaningful explanatory body
The short version

What changed, and why it matters

This commit is a code cleanup that moves the rules for which Bitcoin/Liquid 'sighash' flags are allowed into one shared helper function used by both signing paths. Before, the PSBT signing path only rejected non-ALL sighashes for non-Taproot inputs, while the direct sign_tx path had more detailed rules (for example, allowing SINGLE|ANYONECANPAY for partial Liquid swaps). Unifying the logic reduces the chance that one path accidentally allows a dangerous sighash. The change itself does not add new user-facing behavior; it is defensive hardening/refactoring.

Recommended action

Treat as a low-risk hardening/refactoring commit. Reviewers should verify that sighash_is_supported() is called consistently in all signing entry points and that the Liquid partial-swap policy (SINGLE|ANYONECANPAY) is correctly applied when the FIXME assumptions are later replaced with real txtype/is_partial detection.

Security signals we found

01

Shared validation helper reduces duplicate sighash policy logic

02

PSBT signing path now uses the same sighash policy as direct sign_tx path

03

No new sighash types are enabled; policy is unchanged or slightly tightened for PSBT

04

Defensive refactoring with FIXME comments indicating Liquid assumptions are not final

Risk score

Why this scored 45/100

Our methodology →
Potential impact 12/30
Exploitability 8/25
Stealth signal 6/15
Affected reach 10/15
Confidence 6/10
Evidence quality 3/5
Human-validated context

Community notes

Notes can correct, qualify, or add evidence to the AI analysis. Every note shown here has been validated by a human moderator.

No validated notes yet.

The AI analysis stands alone for now. Submit a note if you can add evidence or important context.