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

Use correct commitment number/point in initial commitment_signed

Public commit record

What the developer wrote

Authored by Jeffrey Czyz

73/100 · Adequate
Use correct commitment number/point in initial commitment_signed

When splicing a channel, the initial commitment_signed should use the
same commitment number and point previously sent. Account for this by
adjusting these to use the previous commitment number and point, since
the next expected one is stored.
✓ Specific, descriptive subject✓ Names a concrete action or component✓ Provides detailed explanatory context
The short version

What changed, and why it matters

This patch fixes a bug in the Lightning Dev Kit's channel-splicing code. When a channel is being spliced, the first new commitment transaction was being built with the wrong commitment number and the wrong counterparty public key (the 'commitment point'). The fix makes the code use the previous commitment number and the previous commitment point instead, matching what the counterparty already expects. Using the wrong values could cause the commitment transaction to be rejected or, in the worst case, lead to an invalid or unenforceable on-chain transaction if a dispute arises.

Recommended action

Review splice protocol tests to ensure both commitment number and commitment point are validated for the initial splice commitment_signed. Consider adding explicit test vectors covering the transition from pre-splice to post-splice commitment state.

Security signals we found

01

Wrong commitment number used in initial splice commitment_signed

02

Wrong counterparty commitment point used in splice commitment transaction

03

Channel state inconsistency during splicing

04

Potential invalid commitment signature or transaction during channel splice

Risk score

Why this scored 54/100

Our methodology →
Potential impact 18/30
Exploitability 10/25
Stealth signal 8/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.