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

Account for grind_signatures in splice funding tx

Public commit record

What the developer wrote

Authored by Jeffrey Czyz

68/100 · Adequate
Account for grind_signatures in splice funding tx

When estimating the splice funding transaction fees, adjust for
grind_signatures. Since LDK supplies one of the signatures, only adjust
by 1 WU even though spending the shared input requires two signatures.
✓ Descriptive subject✓ Names a concrete action or component✓ Provides detailed explanatory context
The short version

What changed, and why it matters

This commit fixes a fee-estimation bug in LDK's experimental splicing code. When the optional `grind_signatures` feature is enabled, signatures are guaranteed to be one byte smaller than the normal maximum. The splice funding-transaction fee estimator was not accounting for that smaller signature, so it could slightly overestimate fees. The patch subtracts one weight unit from the relevant estimates when the feature is on, and updates tests to match. It is a correctness/efficiency fix rather than a critical vulnerability.

Recommended action

Review and merge as a routine correctness fix. Users running splicing with `grind_signatures` enabled will get slightly more accurate fee estimates. No urgent security response is indicated by the diff.

Security signals we found

01

Fee-estimation mismatch between assumed max signature size and actual signature size when `grind_signatures` is enabled

02

Splicing code path affected (v2 channel funding / interactive transaction construction)

03

Test-only signing utility updated to use low-R signatures consistently with the feature flag

04

No memory-safety, cryptographic, or authorization changes

Risk score

Why this scored 32/100

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