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

psbt: Copy the PSET genesis blockhash

Public commit record

What the developer wrote

Authored by kkdao

73/100 · Adequate
psbt: Copy the PSET genesis blockhash

wally_psbt_clone_alloc() and wally_psbt_combine() copied every global
PSET field except the genesis blockhash, so a cloned PSET serialized
without it and its taproot inputs could no longer be signed, as the
Elements taproot signature hash requires the genesis blockhash.

Copy it when the destination has none. A clone always takes it from
the source, and a combine keeps an existing value.
✓ Descriptive subject✓ Names a concrete action or component✓ Provides detailed explanatory context✓ Names security-relevant behavior explicitly
The short version

What changed, and why it matters

This commit fixes a bug where cloning or combining a special Bitcoin transaction format (PSET) dropped the 'genesis blockhash' field. Without that field, valid signatures could not be created for certain transactions using Elements taproot features. It is a correctness/data-loss bug rather than a direct theft-of-funds vulnerability, but it could cause signing failures or interoperability problems.

Recommended action

Treat as a bug fix with moderate operational-security relevance. Users relying on PSET cloning/combining for Elements taproot transactions should upgrade to ensure produced PSETs remain signable. Review whether any downstream workflows produced invalid PSETs that were rejected or could not be signed.

Security signals we found

01

Missing field copy in PSET clone/combine path

02

Affects Elements taproot signature hash computation

03

Could produce an unsignable or invalidly-signed PSET

04

No explicit bounds issue; memcpy uses fixed-size array

05

Conditional copy prevents overwriting an already-set value

Risk score

Why this scored 44/100

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