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

sign_psbt: add early reject on wrong genesis blockhash

Public commit record

What the developer wrote

Authored by Mike Tolkachev

50/100 · Thin
sign_psbt: add early reject on wrong genesis blockhash
✓ Specific, descriptive subject✓ Names a concrete action or component! No meaningful explanatory body
The short version

What changed, and why it matters

This commit fixes a bug in the Blockstream Jade hardware wallet's PSBT (Partially Signed Bitcoin Transaction) signing code. Previously, when the transaction's genesis block hash did not match the expected network, the code set an error message but accidentally continued processing instead of stopping. This one-line fix adds the missing 'return' so the device rejects mismatched transactions immediately. Without the fix, a user could potentially be tricked into signing a transaction on the wrong network, which might lead to loss of funds or confusion between mainnet and testnet/signet assets.

Recommended action

Apply the patch. After applying, verify that all validation failures in the signing path terminate the request with an appropriate error code, and add regression tests for genesis hash mismatches on each supported network.

Security signals we found

01

Missing return in error path allows execution to continue after validation failure

02

Cross-network genesis hash mismatch not enforced as a hard failure

03

PSBT signing logic accepts mismatched network parameters

04

Potential wrong-network transaction signing

Risk score

Why this scored 59/100

Our methodology →
Potential impact 18/30
Exploitability 12/25
Stealth signal 8/15
Affected reach 10/15
Confidence 7/10
Evidence quality 4/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.