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

transaction: treat native segwit input with non-empty witness as complete

Public commit record

What the developer wrote

Authored by ThomasV

81/100 · Strong
transaction: treat native segwit input with non-empty witness as complete

Bitcoin Core, Sparrow omit the final scriptSig is empty, for native
segwit inputs, and only write the witness. PartialTxInput.is_complete()
should not require both fields to be present. fixes #10986
✓ Specific, descriptive subject✓ Names a concrete action or component✓ Provides detailed explanatory context✓ Links an issue, advisory, or supporting reference
The short version

What changed, and why it matters

This commit fixes a bug where Electrum incorrectly treated finalized Bitcoin transactions as incomplete. Some wallet software (like Bitcoin Core and Sparrow) creates native SegWit transactions that omit an empty placeholder field Electrum expected. As a result, Electrum could wrongly refuse to broadcast or mishandle valid, already-signed transactions. The fix makes Electrum recognize these transactions as complete when the witness data is present.

Recommended action

Review related completeness checks (e.g., tx.is_complete()) to ensure no other code paths still require script_sig for native segwit inputs. Consider backporting to stable branches if users report failed broadcasts of PSBTs from Bitcoin Core/Sparrow.

Security signals we found

01

Logic error in transaction completeness detection

02

Potential denial of service / user funds stuck due to refusal to broadcast valid finalized transaction

03

Interoperability failure with Bitcoin Core and Sparrow PSBT output

Risk score

Why this scored 35/100

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