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

Support client_trusts_lsp on LSPS2

Public commit record

What the developer wrote

Authored by Martin Saposnic

35/100 · Opaque
Support client_trusts_lsp on LSPS2
✓ Descriptive subject! No meaningful explanatory body
The short version

What changed, and why it matters

This commit adds a new LSPS2 trust model called client_trusts_lsp. In this model, a Lightning Service Provider (LSP) delays broadcasting the Bitcoin funding transaction for a new channel until the client has actually paid the channel-opening fee via a forwarded payment. The commit also adds a new ChannelManager method that lets LDK validate a funding transaction without immediately broadcasting it. The changes are primarily a feature addition with safety checks to avoid broadcasting funding transactions after a channel has closed or force-closed.

Recommended action

Review as a normal feature/security enhancement. No immediate patch required. Operators using LSPS2 should ensure they call store_funding_transaction, set_funding_tx_broadcast_safe, and payment_forwarded correctly, and understand that client_trusts_lsp changes the trust assumptions and capital lock-up timing for the LSP.

Security signals we found

01

New manual-broadcast funding path in ChannelManager with validation but no automatic broadcast

02

LSPS2 service defers funding broadcast until opening fee is collected

03

Guard that skips broadcast if ChannelManager channel is no longer ready

04

New state machine fields persisted via TLV serialization

05

Integration tests assert no broadcast after force-close or partial fee

Risk score

Why this scored 34/100

Our methodology →
Potential impact 8/30
Exploitability 5/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.