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

sign_psbt: check and provide genesis blockhash for psets per ELIP-0101

Public commit record

What the developer wrote

Authored by Jon Griffiths

83/100 · Strong
sign_psbt: check and provide genesis blockhash for psets per ELIP-0101

Per the ELIP, we must verify the network if present, and add it if
missing when signing (note that it is required for taproot signing).
✓ Specific, descriptive subject✓ Names a concrete action or component✓ Provides detailed explanatory context✓ Mentions testing or verification
The short version

What changed, and why it matters

This commit adds checks for the Liquid network's 'genesis blockhash' in a Bitcoin hardware wallet signing flow. It ensures the PSBT (Partially Signed Bitcoin Transaction) includes the correct network identifier before signing, and fills it in if missing. Without this, a specially crafted transaction could potentially trick the device into signing for the wrong Liquid network or into producing invalid Taproot signatures. The change is defensive and aligns with the ELIP-0101 specification.

Recommended action

Review the complete function to confirm the genesis mismatch error actually aborts signing (the diff only shows errmsg being set, not a return). Consider adding an explicit early return or audit existing error-handling pattern. Otherwise, this is a standards-compliance hardening change that should be included in the next release.

Security signals we found

01

Adds network/genesis-blockhash validation for Liquid PSBTs

02

Adds missing genesis blockhash injection when signing Liquid PSBTs

03

References ELIP-0101, which standardizes genesis blockhash handling

04

Prevents potential cross-network signing confusion on Liquid

05

Required for correct Taproot signing on Liquid per commit message

Risk score

Why this scored 43/100

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