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

Check correct commitment number/point in initial commitment_signed

Public commit record

What the developer wrote

Authored by Jeffrey Czyz

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

When splicing a channel, the initial commitment_signed received should
use the same commitment number and point previously received prior to
splicing the channel. Account for this by checking the commitment_signed
against that one instead, which is now stored separately in
FundedChannel.
✓ 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 logic bug in how a Lightning node validates the first commitment signature after a channel splice. Previously, the code checked the new commitment against the wrong commitment number and public key, which could cause the node to reject a valid splice or, in some edge cases, accept an inconsistent state. The fix stores and compares against the commitment number and point that were actually in use before the splice.

Recommended action

Review splice test vectors to ensure the initial commitment_signed after splice is now validated against the correct pre-splice commitment number and point. Consider adding explicit regression tests for splice commitment_signed validation if not already present.

Security signals we found

01

Incorrect commitment number/point validation during splice

02

Potential state inconsistency between pre-splice and post-splice commitments

03

Validation bypass or denial-of-channel risk if wrong commitment point is accepted

04

Fix is narrowly scoped to a single function and its call sites

Risk score

Why this scored 57/100

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