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

update bip322 implementation to match completed spec

Public commit record

What the developer wrote

Authored by Craig Raw

50/100 · Thin
update bip322 implementation to match completed spec
✓ Specific, descriptive subject✓ Names a concrete action or component! No meaningful explanatory body
The short version

What changed, and why it matters

This commit adds a safety check when extracting a BIP-322 signature from a signed PSBT file. Before, Sparrow would blindly copy the signature into the dialog even if the message inside the PSBT did not match the message the user originally asked to sign. Now it warns the user and asks whether to continue, and if the user declines (or the extraction returns null), it no longer overwrites the signature field. This reduces the risk of a malicious or mismatched PSBT tricking a user into accepting a signature for a different message than intended.

Recommended action

Treat as a hardening/spec-compliance change rather than an active vulnerability. Users and reviewers should verify that getGenericSignedMessage() reliably returns the signed message for all supported output types and that the warning dialog cannot be bypassed by UI automation. Consider whether older releases should be noted as lacking this mismatch check.

Security signals we found

01

Added message-mismatch warning before extracting BIP-322 signature from PSBT

02

Prevents silent overwrite of signature field when PSBT message differs from dialog message

03

Null-check guards added at both PSBT signature extraction call sites

04

BIP-322 spec alignment mentioned in commit title

Risk score

Why this scored 33/100

Our methodology →
Potential impact 8/30
Exploitability 6/25
Stealth signal 5/15
Affected reach 5/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.