LDK
← All projectsLightning Dev Kit

rust-lightning

Composable Rust libraries for building Lightning wallets, nodes, and services.

BitcoinCryptographic librariesLightning NetworkNormal
Repository coverage

1655 commits in the local evidence base

Every captured commit receives deterministic security triage and a separate communication-quality score. Security candidates and broader second-pass signals receive full-patch Ollama analysis.

249security candidates223second-pass queue1517AI analyses
88commits · 30 days
195commits · 60 days
565commits · 180 days
1307commits · 365 days
Backfill bands
Aug 5 → Feb 6819 seen18 candidatesComplete
Feb 6 → Jun 6468 seen16 candidatesComplete
Jun 6 → Jul 6128 seen8 candidatesComplete
Jul 6 → Aug 561 seen3 candidatesComplete
Commit communication

Does the history explain itself?

Message quality measures whether a commit identifies its scope, purpose, rationale, testing, and supporting references. It does not change the security-severity score.

70/100 average clarity
470Strong · 80–100
830Adequate · 60–79
293Thin · 40–59
62Opaque · 0–39
3security candidates with opaque commit messaging
Read the scoring rubric →
Developer activity

Who is changing the project?

Public Git author strings; identities are not independently verified.

DeveloperCommitsCandidatesAnalyzedHigh riskMessage avg.
Elias Rohrer15315153667
Matt Corallo43452370574
Jeffrey Czyz19545182169
Wilmer Paulino15945155169
Leo Nash11613116162
Valentine Wallace14010135169
Vincenzo Palazzo11311183
Joost Jager16224162069
elnosh371331057
auto-pr-bot2478087
shaavan22622069
Carla Kirk-Cohen78366068
Analysis record

Published AI watches

Last scanned 4 minutes ago

Informational 19 AI analysisMessage 81 · Strong
LDK Lightning Dev Kitrust-lightning BitcoinCryptographic librariesLightning Network

Merge PR 'tx-sync: Parallelize esplora status queries' (#4913)

This commit rewrites how a Lightning wallet talks to Esplora block-explorer servers so that many status checks happen in parallel instead of one at a time. It is a performance/refactoring change. There is no direct evidence in the commit t…

Concurrency/timing change in transaction confirmation logicNew inconsistency check preserved when a previously-confirmed tx is reported unconfirmedAdded defensive error path for missing pre-fetched block status
c303f515by Matt Corallo+140−371 file
No security note in commit
Low 30 AI analysisMessage 81 · Strong
LDK Lightning Dev Kitrust-lightning BitcoinCryptographic librariesLightning Network

Merge PR 'Skip Electrum creator transaction downloads' (#4992)

This change stops the Electrum-based transaction sync client from downloading the very transaction that created an output it is watching. Previously, the client could request that transaction from Electrum, even though a transaction can ne…

Avoids unnecessary Electrum transaction.get requests for watched outputsReduces information disclosure to Electrum server about watched outpointsAdds regression test verifying request suppression
c36e50cbby Matt Corallo+142−02 files
No security note in commit
Low 44 AI analysisMessage 81 · Strong
LDK Lightning Dev Kitrust-lightning BitcoinCryptographic librariesLightning Network

Merge PR 'Use preferred sPK of watched txn in electrum, not rand ones' (#4867)

This change improves how the Lightning Dev Kit's Electrum and Esplora transaction-sync clients track watched Bitcoin transactions. Previously, the code ignored the script pubkey (the 'address' associated with a transaction) supplied when r…

Previously ignored `script_pubkey` argument in `register_tx` for transaction watchersElectrum script-history queries previously used an arbitrary transaction output, which could be OP_RETURN and therefore unindexed by some Electrum serversNew logic prefers caller-supplied script pubkey and falls back to non-OP_RETURN outputs
bfe5ca89by tnull+52−243 files
No security note in commit
Low 33 AI analysisMessage 81 · Strong
LDK Lightning Dev Kitrust-lightning BitcoinCryptographic librariesLightning Network

Merge PR 'Serialize transient Event variants; move persist decision into ChannelManager' (#4791)

This commit changes how LDK stores pending event notifications. It adds serialization support for several event types that previously were not fully saved to disk, and introduces a helper method so the code can decide which events are wort…

Data-loss prevention: previously non-round-trippable event variants are now fully serialized, avoiding accidental event loss when users serialize Event queues themselvesState-consistency hardening: ChannelManager now explicitly skips events that describe non-surviving restart state, preventing replay of stale eventsDefensive assertion: debug builds assert that every persisted event round-trips to Some(event), catching serialization mismatches
a0d4632eby Matt Corallo+694−818 files
No security note in commit
Informational 15 AI analysisMessage 81 · Strong
LDK Lightning Dev Kitrust-lightning BitcoinCryptographic librariesLightning Network

Merge PR 'Document that funding signing events can go stale' (#4960)

This commit only adds documentation comments to two source files. It explains that certain funding-signing events can become stale if the underlying negotiation fails, and that callers may see specific harmless errors as a result. No code …

26eecf2dby Matt Corallo+15−02 files
No security note in commit
Informational 15 AI analysisMessage 100 · Strong
LDK Lightning Dev Kitrust-lightning BitcoinCryptographic librariesLightning Network

Drop the honggfuzz version pin from the CI fuzz job

This commit removes a fixed-version pin for the honggfuzz fuzzing tool in a continuous-integration script. The project now uses the current release of honggfuzz instead of an older pinned version. There is no change to the actual Lightning…

4a1635efby auto-pr-bot+1−51 file
No security note in commit
Informational 15 AI analysisMessage 86 · Strong
LDK Lightning Dev Kitrust-lightning BitcoinCryptographic librariesLightning Network

Run the CI fuzz job on the stable toolchain

This commit changes the Rust toolchain used in the continuous integration (CI) fuzzing job from a fixed older version (1.75) to the latest stable release. It is purely a build/test infrastructure change to fix a dependency compatibility is…

21c4ed2bby auto-pr-bot+3−32 files
No security note in commit
Informational 19 AI analysisMessage 91 · Strong
LDK Lightning Dev Kitrust-lightning BitcoinCryptographic librariesLightning Network

Expose the dummy-hop tail constructor publicly

This commit makes a previously internal helper function public so that outside developers can build dummy-hop tails for blinded payment paths without recreating the logic themselves. It is an API usability change, not a fix for a known sec…

No security-relevant behavior change in the diffAPI visibility broadened from crate-public to publicCLTV expiry overflow check already present and unchanged
c5443353by auto-pr-bot+14−71 file
No security note in commit
Moderate 54 AI analysisMessage 100 · Strong
LDK Lightning Dev Kitrust-lightning BitcoinCryptographic librariesLightning Network

Fail commitment sig verification without counterparty params

This change adds a safety check in a Bitcoin Lightning Network library (LDK). Previously, if the software tried to verify a peer's commitment signature before it had learned the peer's channel parameters, it could crash with a panic. Now i…

Defensive check added on peer-driven code path to prevent panicMissing counterparty_parameters could previously cause panic during commitment transaction constructionChannel closure returned instead of panic
de7ecc2fby auto-pr-bot+24−01 file
Vendor flagged security relevance
Informational 15 AI analysisMessage 100 · Strong
LDK Lightning Dev Kitrust-lightning BitcoinCryptographic librariesLightning Network

Clarify the commitment validation failure message

This commit only changes the wording of an error message sent to peers when a commitment transaction fails validation. It replaces the vague phrase 'Failed to validate our commitment' with the clearer 'Received commitment failed validation…

3284a006by auto-pr-bot+11−114 files
No security note in commit
Moderate 61 AI analysisMessage 81 · Strong
LDK Lightning Dev Kitrust-lightning BitcoinCryptographic librariesLightning Network

Merge PR 'Move holder commit sig checks to `InMemorySigner`' (#4885)

This commit moves the checks that validate a counterparty's signatures on the holder's commitment and HTLC transactions out of the general channel code and into the signer module (InMemorySigner). Previously, these signature checks were do…

Moved signature validation from channel state machine into signer moduleAdded new tests that corrupt signatures and verify rejectionChanged error message from 'Invalid commitment tx signature from peer' / 'Invalid funding_created signature from peer' to 'Failed to validate our commitment'
83f5ba55by Matt Corallo+626−31024 files
No security note in commit
Low 42 AI analysisMessage 86 · Strong
LDK Lightning Dev Kitrust-lightning BitcoinCryptographic librariesLightning Network

Merge PR 'Drop stale splice signature on disconnect' (#4954)

This change fixes a Lightning channel splicing bug: when two peers temporarily disconnect during a splice, any half-finished signature the other side already sent is now discarded. Before the fix, that stale signature could be reused after…

State-invalidation bug in multi-step protocol (splice negotiation)Stale cryptographic signature not cleared on disconnectPotential reuse of old commitment state after reconnect
c9a77251by Matt Corallo+22−12 files
No security note in commit
Moderate 58 AI analysisMessage 73 · Adequate
LDK Lightning Dev Kitrust-lightning BitcoinCryptographic librariesLightning Network

Drop stale splice signature on disconnect

This fix prevents a Lightning channel from being accidentally force-closed. During a splice (a way to resize a payment channel), one side's initial signature could be kept in memory after the peers disconnected. If the peers later reconnec…

State inconsistency: in-memory buffered message not cleared on disconnectDuplicate message processing after reconnectionForce-close consequence for active Lightning channel
71405b4bby Wilmer Paulino+22−12 files
Vendor flagged security relevance
Informational 20 AI analysisMessage 81 · Strong
LDK Lightning Dev Kitrust-lightning BitcoinCryptographic librariesLightning Network

Merge PR 'offers: rename matches_invoice_signing_pubkey to key_can_sign_invoice' (#4942)

This commit is a simple rename of a public function from `matches_invoice_signing_pubkey` to `key_can_sign_invoice`, plus matching updates to its documentation, callers, tests, and changelog. No behavior changed. It is not a security fix.

a476cf92by Matt Corallo+13−133 files
No security note in commit
Informational 15 AI analysisMessage 73 · Adequate
LDK Lightning Dev Kitrust-lightning BitcoinCryptographic librariesLightning Network

offers: rename matches_invoice_signing_pubkey to key_can_sign_invoice

This commit is a simple rename of a function and its documentation from matches_invoice_signing_pubkey to key_can_sign_invoice. No logic, behavior, or security properties changed. It is a follow-up code-review naming cleanup.

388187caby Vincenzo Palazzo+13−133 files
No security note in commit
Informational 18 AI analysisMessage 81 · Strong
LDK Lightning Dev Kitrust-lightning BitcoinCryptographic librariesLightning Network

Merge PR 'offers: add Offer::permits_invoice_signed_by' (#4884)

This commit adds a new public helper method, Offer::matches_invoice_signed_by (later renamed matches_invoice_signing_pubkey), that lets callers check whether an invoice signing key belongs to the recipient named by a BOLT 12 offer. It also…

Refactors existing BOLT 12 invoice-signing-pubkey validation into a reusable helperAdds public API to bind an invoice signing key to an offer recipientAdds unit tests for issuer-id vs. path-last-hop matching behavior
016af8f9by Matt Corallo+81−135 files
No security note in commit
Low 29 AI analysisMessage 85 · Strong
LDK Lightning Dev Kitrust-lightning BitcoinCryptographic librariesLightning Network

Support retired TLV fields in object-constructing macros

This commit is a feature enhancement for LDK's internal serialization macros. It allows developers to mark old protocol fields as 'retired' (reserved but no longer used) in more places, so those type numbers cannot be accidentally reused. …

TLV type-number reservation mechanism extended to more macro-generated code pathsPrevents accidental reuse of retired protocol field type numbersAvoids UnknownRequiredFeature decode failures for obsolete even-type fields
6d7c2bdaby Jeffrey Czyz+120−222 files
No security note in commit
Informational 17 AI analysisMessage 91 · Strong
LDK Lightning Dev Kitrust-lightning BitcoinCryptographic librariesLightning Network

Replace splice failure wire tests with a 0.2 downgrade test

This commit is a test-only cleanup in the Lightning Dev Kit (LDK) Rust codebase. It removes low-level byte-level tests for splice failure events and replaces them with a single cross-version test that actually loads a 0.2 node with seriali…

Cross-version serialization compatibility test addedRemoval of byte-level tests that could not detect real 0.2 mismatchesNo production code changes
80f2b44fby auto-pr-bot+95−2663 files
No security note in commit
Low 28 AI analysisMessage 98 · Strong
LDK Lightning Dev Kitrust-lightning BitcoinCryptographic librariesLightning Network

Document duplicate HTLC handling on revoked commitments

This commit only adds a code comment explaining an existing quirk: if a revoked old channel transaction contains two identical-looking payment forwards and the other side claims both, the software may only claim one upstream while letting …

Behavioral quirk in revoked-commitment HTLC resolution documentedDuplicate (payment_hash, amount) HTLCs can map to the same upstream sourcePotential missed upstream preimage claim on second identical HTLC
c5bd8b11by auto-pr-bot+19−01 file
Vendor flagged security relevance
Moderate 60 AI analysisMessage 73 · Adequate
LDK Lightning Dev Kitrust-lightning BitcoinCryptographic librariesLightning Network

Abort active splice RBF when prior candidate confirms

This commit fixes a state-handling bug in Lightning Dev Kit's splicing feature. When a user tries to speed up or replace a pending splice (an 'RBF' attempt) and the older splice transaction unexpectedly gets confirmed on-chain, the softwar…

State-conflict handling between confirmed splice candidate and active RBF negotiationStructured abort propagation through chain-event pathConditional abort based on holder signature progress to avoid unsafe cancellation
7587d2cdby Wilmer Paulino+623−424 files
No security note in commit
Repository ledger

Explore captured commits

Expand any commit for its author, full message, clarity score, changed files, triage signals, analysis, and source link.

Lower-priorityMerge PR 'Always populate `HTLCLocator::htlc_id` for outbound HTLCs' (#4917)by Matt Corallo · 4190c701 · Aug 24, 2026 · 5 filesMessage 81 · StrongTriage 0Details
Commit message · Matt Corallo

Merge PR 'Always populate `HTLCLocator::htlc_id` for outbound HTLCs' (#4917)

from bot/4912-add-htlc_id-s-to-htlclocator-679885 into main

Reviewed-on: https://git.rust-bitcoin.org/lightningdevkit/rust-lightning/pulls/4917
Reviewed-by: Matt Corallo <matt@noreply.git.rust-bitcoin.org>

81/100 · StrongMessage clarity
✓ Specific, descriptive subject✓ Names a concrete action or component✓ Provides detailed explanatory context✓ Links an issue, advisory, or supporting reference
Why it was queued
merge-commit duplicate discount
Lower-priorityMerge PR 'Generate the message fuzz binaries from the msg_targets module list' (#4922)by Matt Corallo · 156f6d90 · Aug 23, 2026 · 4 filesMessage 91 · StrongTriage 0Details
Commit message · Matt Corallo

Merge PR 'Generate the message fuzz binaries from the msg_targets module list' (#4922)

from bot/4896-msg_warning_message-fuzz-target-8d5bfe into main

Reviewed-on: https://git.rust-bitcoin.org/lightningdevkit/rust-lightning/pulls/4922
Reviewed-by: Matt Corallo <matt@noreply.git.rust-bitcoin.org>

91/100 · StrongMessage clarity
✓ Specific, descriptive subject✓ Names a concrete action or component✓ Provides detailed explanatory context✓ Mentions testing or verification✓ Links an issue, advisory, or supporting reference
Why it was queued
fuzzing or regression evidencemerge-commit duplicate discount
Lower-priorityGenerate the message fuzz binaries from the msg_targets module listby auto-pr-bot · 978751fb · Aug 23, 2026 · 4 filesMessage 91 · StrongTriage 5Details
Commit message · auto-pr-bot

Generate the message fuzz binaries from the msg_targets module list

The set of message types we fuzz was listed twice, once in
src/msg_targets/gen_target.sh, which generates the fuzz modules, and again
in src/bin/gen_target.sh, which turns those modules into the binaries
`ci-fuzz.sh` actually runs. Nothing checked that the two agreed, and they
did not: `WarningMessage` has had a module since it was introduced but was
never added on the binary side, so despite being parsed straight off the
wire it has never been in the fuzzing rotation.

Rather than adding the missing line, walk the modules that
src/msg_targets/gen_target.sh writes to mod.rs and generate one binary per
module, so a new message type only has to be listed in one place. The
regenerated output picks up msg_warning_message and reorders the message
entries in targets.h to match mod.rs.

Fixes #4896

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>

@matt asked:

> @auto-pr-bot please go ahead and do this.

Requested-by: @matt
Link: https://git.rust-bitcoin.org/lightningdevkit/rust-lightning/issues/4896#issuecomment-442241

91/100 · StrongMessage clarity
✓ Specific, descriptive subject✓ Names a concrete action or component✓ Provides detailed explanatory context✓ Mentions testing or verification✓ Links an issue, advisory, or supporting reference
Why it was queued
fuzzing or regression evidence
Lower-priorityDocument how to de-duplicate `PaymentForwarded` eventsby auto-pr-bot · 03880c21 · Aug 23, 2026 · 1 fileMessage 81 · StrongTriage 0Details
Commit message · auto-pr-bot

Document how to de-duplicate `PaymentForwarded` events

We may generate more than one `PaymentForwarded` event for a single
forward when we do not yet know the fees we will pay to claim on-chain,
but we do not say what a handler should compare to spot the repeat.
Every such event describes the same inbound HTLCs, and those now always
carry the ID the inbound channel assigned them, so point handlers at
that as the key.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>

@matt asked on the diff:

> Hmm, instead, then, let's only provide the inbound `htlc_id`s and separate the `HTLCLocator` type between the source + dest. We should also update the `PaymentForwarded` event with a doc noting that `PaymentForwarded` events are unique across the set of inbound `ChannelId` + `htlc_id`s and should be de-duplicated with that as a key.

Requested-by: @matt
Link: https://git.rust-bitcoin.org/lightningdevkit/rust-lightning/pulls/4917#issuecomment-442231

81/100 · StrongMessage clarity
✓ Specific, descriptive subject✓ Names a concrete action or component✓ Provides detailed explanatory context✓ Links an issue, advisory, or supporting reference
Lower-prioritySplit `HTLCLocator` into inbound and outbound HTLC typesby auto-pr-bot · 5ad6386e · Aug 23, 2026 · 5 filesMessage 81 · StrongTriage 0Details
Commit message · auto-pr-bot

Split `HTLCLocator` into inbound and outbound HTLC types

`HTLCLocator` was shared between the two sides of `PaymentForwarded`,
which forced every field to be documented in terms of both directions
and made `htlc_id` the odd one out: we always know the ID of the HTLC
which was forwarded to us, but for the HTLC we sent onwards the ID is
often unavailable. When the preimage comes from a chain transaction, or
when a claim is replayed from a `ChannelMonitor` on startup, all we have
is the HTLC's source, not the ID the outbound channel assigned it, and
once that channel is closed there is nowhere left to look it up.

Rather than teach the `ChannelMonitor` to track outbound HTLC IDs just
to fill the field in, drop it from the outbound side entirely. The
inbound IDs are enough to identify a forward, and each type can now
describe its fields for the one direction they are used in.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>

@matt asked on the diff:

> Hmm, instead, then, let's only provide the inbound `htlc_id`s and separate the `HTLCLocator` type between the source + dest. We should also update the `PaymentForwarded` event with a doc noting that `PaymentForwarded` events are unique across the set of inbound `ChannelId` + `htlc_id`s and should be de-duplicated with that as a key.

Requested-by: @matt
Link: https://git.rust-bitcoin.org/lightningdevkit/rust-lightning/pulls/4917#issuecomment-442231

81/100 · StrongMessage clarity
✓ Specific, descriptive subject✓ Names a concrete action or component✓ Provides detailed explanatory context✓ Links an issue, advisory, or supporting reference
Lower-priorityUse retired for previously-retired TLV type numbersby Jeffrey Czyz · e5114ee2 · Aug 22, 2026 · 8 filesMessage 73 · AdequateTriage 0Details
Commit message · Jeffrey Czyz

Use retired for previously-retired TLV type numbers

Several TLV field lists documented a type number written by an old
release with only a comment, or tolerated it with a parse-and-discard
variable, and an audit of field lists across all release tags found
three more with no marker at all. Replace or mark these with retired
entries so the numbers are reserved against reuse.

The HTLCSource read list previously had no entry for its retired
type 3, and NodeInfo and PaymentClaimable parsed the old value only
to discard it; retired entries skip the bytes without requiring the
old value to parse. FixedPenaltyScorer data written by 0.0.105, the
only release to serialize its penalty, becomes readable again.
CommitmentTransaction's type 16 is reserved on the write side only,
so monitor data containing it keeps failing to read rather than
silently losing its anchors semantics.

Two numbers need no entry and are documented with comments: Channel
type 33 was written only by 0.0.116-alpha1, and
ChannelTransactionParameters type 12 was never written as `Some`
before 0.2 reused it.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>

73/100 · AdequateMessage clarity
✓ Specific, descriptive subject✓ Names a concrete action or component✓ Provides detailed explanatory context
Lower-priorityMark SpliceNegotiationFailed TLV types 3 and 9 retiredby Jeffrey Czyz · 1e6184c4 · Aug 22, 2026 · 2 filesMessage 83 · StrongTriage 0Details
Commit message · Jeffrey Czyz

Mark SpliceNegotiationFailed TLV types 3 and 9 retired

0.2 wrote `channel_type` and `abandoned_funding_txo` at types 3 and 9
of `Event::SpliceFailed`, which `Event::SpliceNegotiationFailed`
replaced. Reserve those numbers with retired entries in both the write
and read field lists instead of a comment, so reusing them fails to
build. Written bytes are unchanged, and events written by 0.2 read as
before.

The mid-negotiation upgrade test gains a variant that handles
`splice_ack` before 0.2 serializes, so the synthesized event carries
`channel_type` at type 3 and exercises the retired entries with real
0.2-written data.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>

83/100 · StrongMessage clarity
✓ Specific, descriptive subject✓ Names a concrete action or component✓ Provides detailed explanatory context✓ Mentions testing or verification
Lower-priorityAdd a retired TLV field type reserving old type numbersby Jeffrey Czyz · 5db3f96f · Aug 22, 2026 · 1 fileMessage 81 · StrongTriage 0Details
Commit message · Jeffrey Czyz

Add a retired TLV field type reserving old type numbers

A TLV type number written by a previous release must not be reused
after its field is removed, as data serialized by that release would
be misparsed (see #4919). Until now the only record of such numbers
was code comments and ad-hoc parse-and-discard variables, which
nothing enforces.

Add a `retired` field type which keeps the number in the field list:
nothing is written, and on read any value present is ignored, so
retired even types written by a previous version no longer fail the
read. The entry participates in the encode-time ordering assertion,
so reusing the number trips it. Unlike `legacy`, which is for fields
still written for prior versions' benefit, retired fields never
appear in newly written data.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>

81/100 · StrongMessage clarity
✓ Specific, descriptive subject✓ Names a concrete action or component✓ Provides detailed explanatory context✓ Links an issue, advisory, or supporting reference
Security candidateWrite SpliceNegotiationFailed contributions for 0.2by Jeffrey Czyz · 88ed3f41 · Aug 21, 2026 · 8 filesMessage 93 · StrongLow 33Details
Commit message · Jeffrey Czyz

Write SpliceNegotiationFailed contributions for 0.2

When downgrading to 0.2 with a splice negotiation pending, the
synthesized `Event::DiscardFunding` containing the contribution is
ignored (see previous commit), leaving a 0.2 user without the set of
UTXOs freed by the abandoned negotiation.

0.2 read those UTXOs from the `contributed_inputs` and
`contributed_outputs` fields of `Event::SpliceFailed`, which it wrote
at TLV types 11 and 13 of event type 52. Write the inputs and outputs
released by the failure there too -- excluding any still committed to
an existing splice attempt -- so a downgraded node surfaces the same
event 0.2 would have written itself.

To that end, the event's `contribution` field is now an
`Option<FailedSpliceContribution>`, which holds the released inputs and
outputs alongside the `FundingContribution` available for retry. The
released inputs and outputs are also read back so that they survive
re-serialization.

Note that this makes a `ChannelManager` written with a splice failure
event pending unreadable by v0.3.0-beta1, which used those TLV types
for other fields.

Completes the fix for #4919.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>

93/100 · StrongMessage clarity
✓ Specific, descriptive subject✓ Names a concrete action or component✓ Provides detailed explanatory context✓ Explains rationale or failure mode✓ Links an issue, advisory, or supporting reference
Why it was queued
update trust
AI analysis · Low 33/100

This commit fixes a backward-compatibility bug in the Lightning Dev Kit (LDK) when a user downgrades from a newer version to version 0.2 while a splice negotiation is in progress. Without the fix, the newer version would generate an event telling the wallet to discard freed UTXOs, but version 0.2 could not understand that event, so those coins would appear stuck or lost to the downgraded node. The patch makes the newer version also write the freed UTXOs in the older event format that 0.2 understands, so the downgraded node surfaces the same information. It is a compatibility/data-loss fix, not a remote-exploitable vulnerability.

Security candidateWrite DiscardFunding contributions as an odd event typeby Jeffrey Czyz · bad9e47b · Aug 21, 2026 · 1 fileMessage 81 · StrongLow 35Details
Commit message · Jeffrey Czyz

Write DiscardFunding contributions as an odd event type

`FundingInfo::Contribution` was added in 0.3, but 0.2 fails to read
unknown `FundingInfo` variants. A `ChannelManager` or `ChannelMonitor`
serialized while an `Event::DiscardFunding` containing one was pending
-- the former whenever serialized during an incomplete splice
negotiation with a local contribution, the latter upon discarding a
negotiated splice with a recorded contribution -- could therefore never
be read by 0.2.

Write such events under a new odd event type, which prior versions
ignore, restoring the ability to downgrade. A downgraded node loses the
event; the next commit compensates for the negotiation-failure case by
including the discarded UTXOs in `Event::SpliceNegotiationFailed`.

Partially addresses #4919.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>

81/100 · StrongMessage clarity
✓ Specific, descriptive subject✓ Names a concrete action or component✓ Provides detailed explanatory context✓ Links an issue, advisory, or supporting reference
Why it was queued
update trust
AI analysis · Low 35/100

This commit fixes a backward-compatibility bug in how a particular wallet event is saved to disk. A new type of funding contribution introduced in version 0.3 could not be read by version 0.2, which would crash or fail when loading a wallet that had been saved while a 'DiscardFunding' event was pending. The fix writes that specific case under a new, odd-numbered event type that older versions safely ignore, allowing users to downgrade from 0.3 to 0.2 without their wallet becoming unloadable. There is no attacker-controlled exploit here; it is a reliability/downgrade fix.

Security candidateFix SpliceNegotiationFailed TLV collision with 0.2by Jeffrey Czyz · c34a4e77 · Aug 21, 2026 · 3 filesMessage 81 · StrongLow 39Details
Commit message · Jeffrey Czyz

Fix SpliceNegotiationFailed TLV collision with 0.2

`Event::SpliceFailed` was released in 0.2 writing `contributed_inputs`
and `contributed_outputs` at TLV types 11 and 13. When those fields
were removed, the freed types were reused for the new `reason` and
`contribution` fields of the renamed `Event::SpliceNegotiationFailed`.

Consequently, a `ChannelManager` written by 0.2 while such an event was
pending -- the case whenever one is serialized during an incomplete
splice negotiation with a local contribution -- fails to read on 0.3,
as the legacy fields are misparsed as the new ones. Conversely, 0.2
fails to read a `ChannelManager` written by 0.3 while such an event was
pending.

Write `reason` and `contribution` at fresh odd TLV types, restoring the
compatibility behavior documented when the fields were removed; the
legacy types are odd, so unknown-type handling skips them on read. Note
that a `ChannelManager` written by v0.3.0-beta1 while such an event was
pending is no longer readable, as beta1 wrote `reason` and
`contribution` at the colliding types.

Partially addresses #4919; a pending `Event::DiscardFunding` with
`FundingInfo::Contribution` still prevents downgrade to 0.2.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>

81/100 · StrongMessage clarity
✓ Specific, descriptive subject✓ Names a concrete action or component✓ Provides detailed explanatory context✓ Links an issue, advisory, or supporting reference
Why it was queued
update trust
AI analysis · Low 39/100

This commit fixes a data-format compatibility bug between versions 0.2 and 0.3 of the Lightning Dev Kit. When a pending splice-failure event was saved to disk by one version, the other version could misread it because new fields reused old numeric identifiers (TLV types). The patch assigns fresh identifiers so old and new data no longer collide. It is a backward-compatibility fix, not an exploitable security vulnerability, and it includes tests to confirm old data can now be read correctly.

Lower-priorityMerge PR 'Reject shared inputs presented as owned' (#4905)by jkczyz · cfee4b75 · Aug 21, 2026 · 1 fileMessage 81 · StrongTriage 0Details
Commit message · jkczyz

Merge PR 'Reject shared inputs presented as owned' (#4905)

from reject-shared-input-as-owned-input into main

Reviewed-on: https://git.rust-bitcoin.org/lightningdevkit/rust-lightning/pulls/4905
Reviewed-by: jkczyz <jkczyz@noreply.git.rust-bitcoin.org>

81/100 · StrongMessage clarity
✓ Specific, descriptive subject✓ Names a concrete action or component✓ Provides detailed explanatory context✓ Links an issue, advisory, or supporting reference
Why it was queued
merge-commit duplicate discount
Lower-priorityMerge PR 'Add `htlc_id`s to `HTLCLocator' (#4912)by tnull · c8febadb · Aug 21, 2026 · 4 filesMessage 76 · AdequateTriage 0Details
Commit message · tnull

Merge PR 'Add `htlc_id`s to `HTLCLocator' (#4912)

from bot/4910-add-htlc_id-s-to-htlclocator-11407d into main

Reviewed-on: https://git.rust-bitcoin.org/lightningdevkit/rust-lightning/pulls/4912
Reviewed-by: tnull <tnull@noreply.git.rust-bitcoin.org>

76/100 · AdequateMessage clarity
✓ Descriptive subject✓ Names a concrete action or component✓ Provides detailed explanatory context✓ Links an issue, advisory, or supporting reference
Why it was queued
merge-commit duplicate discount
Security candidateMerge PR 'Defer splice_locked during RBF signing' (#4891)by Matt Corallo · 89c9e5f4 · Aug 20, 2026 · 5 filesMessage 81 · StrongLow 44Details
Commit message · Matt Corallo

Merge PR 'Defer splice_locked during RBF signing' (#4891)

from delay-splice-promotion-inflight-rbf-negotiation into main

Reviewed-on: https://git.rust-bitcoin.org/lightningdevkit/rust-lightning/pulls/4891
Reviewed-by: Matt Corallo <matt@noreply.git.rust-bitcoin.org>

81/100 · StrongMessage clarity
✓ Specific, descriptive subject✓ Names a concrete action or component✓ Provides detailed explanatory context✓ Links an issue, advisory, or supporting reference
Why it was queued
signing boundarymerge-commit duplicate discount
AI analysis · Low 44/100

This commit fixes a timing bug in Lightning Dev Kit's splicing code. Previously, a node could prematurely send a 'splice_locked' message and promote an older splice transaction to active while a replacement transaction was still being signed through RBF. The patch defers sending splice_locked until the RBF signing round completes and the channel is no longer quiescent, then releases the lock on a timer tick. This prevents inconsistent channel states between peers and avoids potential fund loss or channel closure from conflicting funding transactions.

Security candidateMerge PR 'Checkpoint deferred ChannelManager with AwaitingSignatures splice' (#4911)by Matt Corallo · a42e29b1 · Aug 20, 2026 · 1 fileMessage 91 · StrongLow 29Details
Commit message · Matt Corallo

Merge PR 'Checkpoint deferred ChannelManager with AwaitingSignatures splice' (#4911)

from fuzz-checkpoint-splice-signing-session into main

Reviewed-on: https://git.rust-bitcoin.org/lightningdevkit/rust-lightning/pulls/4911
Reviewed-by: Matt Corallo <matt@noreply.git.rust-bitcoin.org>

91/100 · StrongMessage clarity
✓ Specific, descriptive subject✓ Names a concrete action or component✓ Provides detailed explanatory context✓ Mentions testing or verification✓ Links an issue, advisory, or supporting reference
Why it was queued
signing boundaryfuzzing or regression evidencemerge-commit duplicate discount
AI analysis · Low 29/100

This commit adds a workaround in a fuzz test harness for a known limitation in how Lightning Dev Kit saves its state during a splice operation. When a node is in a 'deferred persistence' test mode and has a splice waiting for signatures, the test now forces a state checkpoint before restarting. Without this, a fuzz test could simulate a restart at a moment where the signing session has not yet been saved, causing the node to disagree with its peer and force-close the channel. The change is in test/fuzz code, not production logic, but it documents a real edge case in production state management.

Lower-priorityAdd `htlc_id`s to `HTLCLocator`by auto-pr-bot · f9cf489f · Aug 20, 2026 · 4 filesMessage 88 · StrongTriage 0Details
Commit message · auto-pr-bot

Add `htlc_id`s to `HTLCLocator`

Expose the HTLC ID of each HTLC referenced by `PaymentForwarded` so that
callers can tie the event back to the individual HTLCs they previously
observed in `ChannelDetails::pending_{inbound,outbound}_htlcs`. Without
it there is no way to tell two in-flight HTLCs with the same payment
hash on the same channel apart.

The ID of an HTLC we received is always known, but the ID of the HTLC we
sent is only available when our counterparty settled it with an
`update_fulfill_htlc` message - when we instead extract the preimage
from an on-chain claim or replay a claim from our `ChannelMonitor`s on
startup we never learn which ID the outgoing HTLC had, so the field is
optional.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>

Fixes #4910

88/100 · StrongMessage clarity
✓ Descriptive subject✓ Names a concrete action or component✓ Provides detailed explanatory context✓ Explains rationale or failure mode✓ Links an issue, advisory, or supporting reference
Security candidateCheckpoint deferred ChannelManager with AwaitingSignatures spliceby Wilmer Paulino · e1c3fec5 · Aug 20, 2026 · 1 fileMessage 83 · StrongLow 33Details
Commit message · Wilmer Paulino

Checkpoint deferred ChannelManager with AwaitingSignatures splice

We don't currently checkpoint our signing session prior to sending
`commitment_signed`. The fuzzer has shown that it's possible that we
commit to a splice candidate and reload with an outdated manager prior
to the signing session existing. If the counterparty commits to the
splice back, and is expecting to resume, we'll end up aborting
erroneously leading to a force close. We defer the real fix for now and
instead prevent the fuzzer from running into this case.

Fixes fuzz payload:

7f0200000000004211a10081bd4a191f1119401f001118100f1810411f00111810101b10401f00111810101810411f00111810101810401f00111fb170b170ff

83/100 · StrongMessage clarity
✓ Specific, descriptive subject✓ Names a concrete action or component✓ Provides detailed explanatory context✓ Mentions testing or verification
Why it was queued
signing boundaryfuzzing or regression evidence
AI analysis · Low 33/100

This commit is a temporary workaround in a fuzz-testing harness for the Lightning Dev Kit. It forces a save of the channel manager before restarting a test node when a specific in-progress splice state exists. The underlying issue is that the signing session for a splice isn't checkpointed before sending a commitment message, so if the node restarts at the wrong moment, it can reload stale state and force-close a channel unnecessarily. The commit does not fix the root cause; it only prevents the fuzzer from hitting the case.

Lower-priorityMerge PR 'Address review feedback on inline monitor storage key buffers' (#4908)by Matt Corallo · 1d2e5cc3 · Aug 20, 2026 · 3 filesMessage 81 · StrongTriage 0Details
Commit message · Matt Corallo

Merge PR 'Address review feedback on inline monitor storage key buffers' (#4908)

from bot/4869-build-monitor-storage-keys-witho-eae5a6 into main

Reviewed-on: https://git.rust-bitcoin.org/lightningdevkit/rust-lightning/pulls/4908
Reviewed-by: Matt Corallo <matt@noreply.git.rust-bitcoin.org>

81/100 · StrongMessage clarity
✓ Specific, descriptive subject✓ Names a concrete action or component✓ Provides detailed explanatory context✓ Links an issue, advisory, or supporting reference
Why it was queued
merge-commit duplicate discount
Lower-priorityMerge PR 'Avoid mutating pending events when serializing `ChannelManager`' (#4902)by Matt Corallo · 08817c0c · Aug 20, 2026 · 2 filesMessage 81 · StrongTriage 0Details
Commit message · Matt Corallo

Merge PR 'Avoid mutating pending events when serializing `ChannelManager`' (#4902)

from 2026-08-serialize-pending-events into main

Reviewed-on: https://git.rust-bitcoin.org/lightningdevkit/rust-lightning/pulls/4902
Reviewed-by: Matt Corallo <matt@noreply.git.rust-bitcoin.org>

81/100 · StrongMessage clarity
✓ Specific, descriptive subject✓ Names a concrete action or component✓ Provides detailed explanatory context✓ Links an issue, advisory, or supporting reference
Why it was queued
merge-commit duplicate discount
Lower-priorityMerge PR 'Automated change (2 commits)' (#4906)by Matt Corallo · 5d8daf7b · Aug 20, 2026 · 3 filesMessage 76 · AdequateTriage 0Details
Commit message · Matt Corallo

Merge PR 'Automated change (2 commits)' (#4906)

from bot/4839-add-a-bolt-12-payer-proof-verifi-0fa979 into main

Reviewed-on: https://git.rust-bitcoin.org/lightningdevkit/rust-lightning/pulls/4906
Reviewed-by: Matt Corallo <matt@noreply.git.rust-bitcoin.org>

76/100 · AdequateMessage clarity
✓ Descriptive subject✓ Names a concrete action or component✓ Provides detailed explanatory context✓ Links an issue, advisory, or supporting reference
Why it was queued
merge-commit duplicate discount
AI review queuedtx-sync: parallelize esplora status queriesby Max Fang · 262ebae0 · Aug 20, 2026 · 1 fileMessage 68 · AdequateInformational 21Details
Commit message · Max Fang

tx-sync: parallelize esplora status queries

The esplora sync loop awaited each HTTP query sequentially: one
get_block_status per relevant txid, 3 round trips (merkle block, tx,
block status) per watched transaction, and one get_output_status per
watched output. With many channels this pure latency dominates sync
wall-clock time, particularly during the first sync after a restart.

In async builds, run the per-block, per-transaction, and per-output
queries concurrently via buffer_unordered, bounded at 16 in-flight
requests by default and configurable via with_concurrency.
Confirmed transactions are already sorted by (height, in-block
position) before being fed to the confirmables, so completion order
does not matter. The blocking client variant remains sequential.

Also dedup block status queries by block hash (multiple relevant txids
can share a block), and drop a redundant duplicate-txid check when
iterating watched_transactions: it is a HashSet, so txids are unique.

Note that items are moved into the concurrently-polled futures as owned
values (txids copied, watched outputs cloned). Borrowing them compiles
within this crate but trips rustc's "implementation of FnOnce is not
general enough" false positive in downstream callers that box the
returned sync future.

68/100 · AdequateMessage clarity
✓ Descriptive subject✓ Names a concrete action or component✓ Provides detailed explanatory context
Why it was queued
signing or wallet pathsecond-pass: security-sensitive path
AI analysis · Informational 21/100

This commit is a performance improvement, not a security fix. It speeds up how rust-lightning asks an Esplora server about transaction and block status by running many requests at once instead of one at a time. The change also removes a duplicate check and deduplicates repeated block-status lookups. There is no indication in the commit that it fixes a vulnerability or that the old code was unsafe.

Security candidatelightning-payer-proof: flag the uniffi record's untrusted stringsby auto-pr-bot · 71de48ab · Aug 19, 2026 · 1 fileMessage 73 · AdequateLow 30Details
Commit message · auto-pr-bot

lightning-payer-proof: flag the uniffi record's untrusted strings

The uniffi record hands its three free-text fields back as plain
`String`s, copied straight out of the proof with no sanitization, but
only `offer_description` warned about that. `offer_issuer` and
`proof_note` are just as attacker-controlled, so carry the same warning
on both.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>

73/100 · AdequateMessage clarity
✓ Specific, descriptive subject✓ Names a concrete action or component✓ Provides detailed explanatory context
Why it was queued
explicit security languagedefensive validation
AI analysis · Low 30/100

This commit only adds documentation comments warning developers that two text fields returned by a UniFFI record are untrusted and should be sanitized before display. It does not change any code behavior, add sanitization, or fix an active vulnerability. It is a defensive documentation improvement for a potential injection/display-risk issue.

Lower-priorityMerge PR 'Build monitor storage keys without allocating' (#4869)by Matt Corallo · b9b4f374 · Aug 19, 2026 · 6 filesMessage 81 · StrongTriage 0Details
Commit message · Matt Corallo

Merge PR 'Build monitor storage keys without allocating' (#4869)

from 2707-monitor-name-buffers into main

Reviewed-on: https://git.rust-bitcoin.org/lightningdevkit/rust-lightning/pulls/4869
Reviewed-by: Matt Corallo <matt@noreply.git.rust-bitcoin.org>

81/100 · StrongMessage clarity
✓ Specific, descriptive subject✓ Names a concrete action or component✓ Provides detailed explanatory context✓ Links an issue, advisory, or supporting reference
Why it was queued
merge-commit duplicate discount
Lower-prioritylightning-payer-proof: drop rustdoc the caller has no use forby auto-pr-bot · 3d8004cc · Aug 19, 2026 · 1 fileMessage 73 · AdequateTriage 0Details
Commit message · auto-pr-bot

lightning-payer-proof: drop rustdoc the caller has no use for

`pays_offers_recipient` explained that it was written out against the
accessors LDK 0.3 exposes rather than calling a helper on `PayerProof`.
That is a note about how this crate is built, not something a caller has
to know or act on, and it goes stale the moment the helper lands.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>

73/100 · AdequateMessage clarity
✓ Specific, descriptive subject✓ Names a concrete action or component✓ Provides detailed explanatory context
Lower-prioritylightning-payer-proof: drop the `std` featureby auto-pr-bot · 74518ef4 · Aug 19, 2026 · 2 filesMessage 68 · AdequateTriage 0Details
Commit message · auto-pr-bot

lightning-payer-proof: drop the `std` feature

Nothing in the crate needs `std`: it is `no_std` plus `alloc` throughout,
and the feature only ever gated an `impl std::error::Error for
VerifyError` and `lightning/std`, neither of which changes what the crate
computes. Carrying it means every consumer, and every CI job, has one
more build configuration to think about for no gain.

`VerifyError` accordingly no longer implements `std::error::Error`;
`core::error::Error` is stable only from 1.81, above the 1.75 MSRV, so
there is nothing to replace it with here. `Display` is unchanged, and the
uniffi wrapper mirrors the enum with its own `std::error::Error` impl, so
bindings consumers see no difference.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>

68/100 · AdequateMessage clarity
✓ Descriptive subject✓ Names a concrete action or component✓ Provides detailed explanatory context