LDK
← All projectsLightning Dev Kit

rust-lightning

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

BitcoinCryptographic librariesLightning NetworkNormal
Repository coverage

1667 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.

252security candidates228second-pass queue1525AI analyses
82commits · 30 days
182commits · 60 days
554commits · 180 days
1254commits · 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
474Strong · 80–100
836Adequate · 60–79
295Thin · 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 Corallo43553371574
Jeffrey Czyz19545182169
Wilmer Paulino15945155169
Leo Nash11613116162
Valentine Wallace14511138169
Vincenzo Palazzo11311183
Joost Jager16224162069
elnosh391333058
auto-pr-bot2478087
shaavan22622069
Carla Kirk-Cohen78366068
Analysis record

Published AI watches

Last scanned 17 minutes ago

Moderate 55 AI analysisMessage 76 · Adequate
LDK Lightning Dev Kitrust-lightning BitcoinCryptographic librariesLightning Network

Merge PR 'Persistent `MonitorEvent`s' (#4491)

This commit makes on-chain 'MonitorEvent' notifications durable and replay-safe. Previously, if a node crashed after a ChannelMonitor persisted a block update but before the ChannelManager processed the resulting event, the event could be …

Durability/atomicity fix for async persistence: prevents lost MonitorEvents across crashesNew ack-based event lifecycle with random event IDsArchival gating on unacknowledged events to avoid losing preimage/timeout information
9a324e72by wpaulino+467−45912 files
No security note in commit
Low 47 AI analysisMessage 81 · Strong
LDK Lightning Dev Kitrust-lightning BitcoinCryptographic librariesLightning Network

Merge PR 'Fix payment attribution edge cases and simplify claiming' (#5021)

This commit refactors how LDK nodes claim incoming Lightning payments. It replaces a separate 'claim with known custom TLVs' method with an options struct passed to the normal claim call, and fixes two edge cases in payment attribution dat…

API change: claim_funds now takes ClaimFundsOptions, consolidating TLV-known behavior into one pathFailure-packet length bound added to prevent oversized onion error messagesIncoming failure packet truncated at 32 KiB before processing
ee7c61c2by Matt Corallo+256−17322 files
No security note in commit
Low 47 AI analysisMessage 81 · Strong
LDK Lightning Dev Kitrust-lightning BitcoinCryptographic librariesLightning Network

Merge PR 'release utxos from failed splices' (#4973)

This change fixes a wallet bookkeeping problem in rust-lightning's built-in coin-selection wrappers. Previously, when a splice attempt failed or coin selection errored after picking UTXOs, those UTXOs stayed marked as 'reserved' in memory …

Resource exhaustion / denial-of-service via permanent in-memory UTXO reservationIncorrect state tracking in coin-selection wrapperNew API method required for correct lifecycle management (release_utxos)
7220a6fdby jkczyz+295−383 files
No security note in commit
Low 49 AI analysisMessage 73 · Adequate
LDK Lightning Dev Kitrust-lightning BitcoinCryptographic librariesLightning Network

Restore `Wallet` UTXO locks when coin selection fails afterwards

This commit fixes a bug in the wallet's coin-selection code. When the wallet picked UTXOs to spend, it locked them immediately so they couldn't be reused. But if a later step—fetching the change address or the previous transaction—failed, …

Resource lock leak on error pathUTXO lock state inconsistency between selection and confirmationDenial-of-service/funds-unavailability risk from persistent UTXO locks
81afd9caby elnosh+146−331 file
No security note in commit
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
Moderate 58 AI analysisMessage 73 · Adequate
LDK Lightning Dev Kitrust-lightning BitcoinCryptographic librariesLightning Network

Add `Wallet::release_utxos` to free UTXOs from abandoned transactions

This commit fixes a design flaw in LDK's built-in wallet helper where coins selected for a splice-in (or other unclaimed funding) were permanently reserved in memory if the transaction was abandoned. Over repeated failed splices, all spend…

Denial-of-service via UTXO exhaustion from repeated failed splice negotiationsRisk of inability to broadcast fee-bumping/claim transactions due to lack of available UTXOsNew API surface (release_utxos) introduced to mitigate resource leak
52ab13fdby elnosh+148−43 files
Vendor flagged security relevance
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
Repository ledger

Explore captured commits

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

Lower-priorityRemove unnecessary FundedChannel::pending_splice checksby Jeffrey Czyz · d0780f71 · Sep 10, 2025 · 1 fileMessage 65 · AdequateInformational 12Details
Commit message · Jeffrey Czyz

Remove unnecessary FundedChannel::pending_splice checks

Now that PendingFunding directly contains the negotiated candidates,
some unnecessary checks can be removed.

65/100 · AdequateMessage clarity
✓ Specific, descriptive subject✓ Names a concrete action or component✓ Provides an explanatory body
AI analysis · Informational 12/100

This commit is a routine internal cleanup in the Lightning channel code. It removes redundant checks for splice funding transactions now that the data structure already stores the negotiated candidates directly. There is no indication this fixes a security bug or changes security-critical behavior.

Lower-priorityRename PendingSplice::pending_funding to negotiated_candidatesby Jeffrey Czyz · 2c7e49b0 · Sep 10, 2025 · 1 fileMessage 73 · AdequateInformational 15Details
Commit message · Jeffrey Czyz

Rename PendingSplice::pending_funding to negotiated_candidates

An upcoming commit will rename PendingSplice to PendingFunding. Thus,
rename the similarly named field to something more meaningful. It
includes FundingScopes that have been negotiated but have not reached
enough confirmations by both parties to have exchanged splice_locked.

73/100 · AdequateMessage clarity
✓ Specific, descriptive subject✓ Names a concrete action or component✓ Provides detailed explanatory context
AI analysis · Informational 15/100

This commit is a simple internal rename of a struct field from `pending_funding` to `negotiated_candidates` in the Lightning channel code. It does not change any behavior, logic, or security properties. The change is purely cosmetic to make the code easier to understand before a later refactor.

Lower-priorityMove FundedChannel::pending_funding into PendingSpliceby Jeffrey Czyz · 6349685e · Sep 10, 2025 · 1 fileMessage 73 · AdequateLow 26Details
Commit message · Jeffrey Czyz

Move FundedChannel::pending_funding into PendingSplice

FundedChannel::pending_funding and FundedChannel::pending_splice were
developed independently, but the former will only contain values when
the latter is set.

73/100 · AdequateMessage clarity
✓ Specific, descriptive subject✓ Names a concrete action or component✓ Provides detailed explanatory context
AI analysis · Low 26/100

This is a code-cleanup refactor in a Bitcoin Lightning Network library. It moves a list of not-yet-confirmed funding transactions (pending_funding) from the general channel object into a splice-specific structure (PendingSplice), because that list is only meaningful during a splice. The change is mostly internal reorganization, but it also slightly reorders cleanup steps when a splice is finalized and adds helper methods to access the moved data. There is no direct evidence in the commit that this fixes a known security bug, but refactors around funding-state management can affect correctness of channel funds handling.

Lower-priorityRemove FundedChannel::pending_funding persistenceby Jeffrey Czyz · 78347f04 · Sep 10, 2025 · 1 fileMessage 58 · ThinInformational 12Details
Commit message · Jeffrey Czyz

Remove FundedChannel::pending_funding persistence

FundedChannel::pending_funding is to be moved to PendingSplice. As such,
it will be persisted with PendingSplice once persistence is added for
the latter.

58/100 · ThinMessage clarity
✓ Descriptive subject✓ Provides detailed explanatory context
AI analysis · Informational 12/100

This commit removes the saving and loading of a field called pending_funding from a channel's on-disk state. After the change, the field is simply initialized as an empty list when a channel is loaded. The commit message says this data is moving to a different structure (PendingSplice) and will be persisted there later. There is no direct evidence this is a security fix; it appears to be a data-model refactor.

Lower-priorityAdd UpdateAddHTLC::hold_htlcby Valentine Wallace · a24746f9 · Sep 10, 2025 · 7 filesMessage 66 · AdequateInformational 19Details
Commit message · Valentine Wallace

Add UpdateAddHTLC::hold_htlc

As part of supporting sending payments as an often-offline sender, the sender
needs to be able to set a flag in their update_add_htlc message indicating that
the HTLC should be held until receipt of a release_held_htlc onion message from
the often-offline payment recipient.

We don't yet ever set this flag, but lay the groundwork by including the field
in the update_add struct.

See-also <https://github.com/lightning/bolts/pull/989>

66/100 · AdequateMessage clarity
✓ Descriptive subject✓ Provides detailed explanatory context✓ Links an issue, advisory, or supporting reference
AI analysis · Informational 19/100

This commit adds a new placeholder field called hold_htlc to the Lightning update_add_htlc message structure. The field is never actually set to a value anywhere in the code; it is always initialized to None. It prepares the codebase for a future feature that lets an often-offline sender ask a forwarding node to hold an HTLC until the recipient comes back online. Because the flag is never enabled, this change by itself does not create a practical security vulnerability.

Lower-priorityAdd feature bit for HtlcHoldby Valentine Wallace · 44d21c9a · Sep 10, 2025 · 1 fileMessage 76 · AdequateInformational 20Details
Commit message · Valentine Wallace

Add feature bit for HtlcHold

As part of supporting sending payments as an often-offline sender, the
often-offline sender's channel counterparty needs to advertise a feature bit
indicating that they support holding onto the sender's HTLC until they receive
a release_held_htlc onion message from the recipient indicating that they are
online and ready to receive the payment.

See-also <https://github.com/lightning/bolts/pull/989>

We don't yet advertise support of this feature.

76/100 · AdequateMessage clarity
✓ Descriptive subject✓ Names a concrete action or component✓ Provides detailed explanatory context✓ Links an issue, advisory, or supporting reference
AI analysis · Informational 20/100

This commit adds a new Lightning protocol feature flag called HtlcHold to the rust-lightning code, but does not actually turn it on or use it yet. It is preparatory code for a future capability that lets an often-offline sender's payment be held by a counterparty until the recipient comes back online. There is no active security flaw here—just a new feature bit being registered so nodes can later advertise support.

Lower-priorityAdd enable_htlc_hold cfg flag + fail hold htlcsby Valentine Wallace · 1dd39885 · Sep 10, 2025 · 2 filesMessage 76 · AdequateLow 32Details
Commit message · Valentine Wallace

Add enable_htlc_hold cfg flag + fail hold htlcs

As part of supporting sending payments as an often-offline sender, the
often-offline sender's channel counterparty needs to advertise a feature bit
indicating that they support holding onto the sender's HTLC until they receive
a release_held_htlc onion message from the recipient indicating that they are
online and ready to receive the payment.

Here we add a config flag to turn on advertising this feature, and fail back
hold_htlcs if this config flag is not set.

See-also <https://github.com/lightning/bolts/pull/989>

76/100 · AdequateMessage clarity
✓ Descriptive subject✓ Names a concrete action or component✓ Provides detailed explanatory context✓ Links an issue, advisory, or supporting reference
AI analysis · Low 32/100

This commit adds an experimental, test-only configuration flag for a new Lightning protocol feature called 'HTLC hold.' When the flag is disabled (the default), the node rejects incoming HTLCs that ask it to hold payments. This is a defensive correctness change to make sure a node does not accidentally promise a service it has not advertised, rather than a fix for an active security bug.

Lower-priorityRe-add accidentally removed `handle_channel_update` callby Elias Rohrer · a28bcacb · Sep 9, 2025 · 1 fileMessage 73 · AdequateModerate 59Details
Commit message · Elias Rohrer

Re-add accidentally removed `handle_channel_update` call

In e620310e228e612e852ebedd555ac5dc0b9d389b, we made many, many
small changes to prepare for running `rustfmt` on `peer_handler.rs`.
Unfortunately, in the process we seem to have introduced a bug where
we'd only call `handle_channel_update` on the `RoutingMessageHandler`,
but not the `ChannelMessageHandler` anymore.

Here, we fix this and reinstate proper working of our channel updates.

73/100 · AdequateMessage clarity
✓ Specific, descriptive subject✓ Names a concrete action or component✓ Provides detailed explanatory context
AI analysis · Moderate 59/100

This commit fixes a programming mistake introduced during code cleanup: a function call that tells the channel-handling part of the software about network channel updates had been accidentally deleted. Without it, the channel manager could miss important routing fee and policy updates from peers, potentially causing payment failures or stale routing decisions. The fix simply re-adds the missing call so both the routing and channel handlers receive the update.

Lower-priorityRemove let binding for unit values in splice testby Wilmer Paulino · 1dc190d0 · Sep 8, 2025 · 1 fileMessage 55 · ThinInformational 15Details
Commit message · Wilmer Paulino

Remove let binding for unit values in splice test

55/100 · ThinMessage clarity
✓ Descriptive subject✓ Names a concrete action or component✓ Mentions testing or verification! No meaningful explanatory body
AI analysis · Informational 15/100

This commit is a minor cleanup inside a single test file. It removes unused `let _res =` variable bindings from a Rust unit test for Lightning channel splicing. The functions being called return the unit value `()`, so storing that result in a variable is unnecessary. There is no change to production code, no security fix, and no behavior change.

Lower-priorityRemove useless use of format! throughout splicing errorsby Wilmer Paulino · 1bda3ebe · Sep 8, 2025 · 1 fileMessage 50 · ThinInformational 15Details
Commit message · Wilmer Paulino

Remove useless use of format! throughout splicing errors

50/100 · ThinMessage clarity
✓ Specific, descriptive subject✓ Names a concrete action or component! No meaningful explanatory body
AI analysis · Informational 15/100

This commit is a minor code cleanup. It replaces `format!("...")` with `"...".to_owned()` in a few error messages related to splicing in a Lightning network implementation. There is no functional change and no security impact.

Lower-priorityRemove splicing rust cfg flagby Wilmer Paulino · bb0f5abf · Sep 8, 2025 · 12 filesMessage 45 · ThinInformational 20Details
Commit message · Wilmer Paulino

Remove splicing rust cfg flag

45/100 · ThinMessage clarity
✓ Descriptive subject✓ Names a concrete action or component! No meaningful explanatory body
AI analysis · Informational 20/100

This commit removes the 'splicing' feature flag from the rust-lightning project, making splicing-related code always compile instead of being conditionally included. It is a build-system and code-cleanup change, not a security fix. There is no evidence in the commit of a vulnerability being patched.

Lower-priorityDetect splice out as local contributionby Wilmer Paulino · 4cc8d5a0 · Sep 8, 2025 · 2 filesMessage 68 · AdequateLow 35Details
Commit message · Wilmer Paulino

Detect splice out as local contribution

Although a splice out doesn't include inputs to sign, users still need
to call back with `funding_transaction_signed` to sign the shared splice
input.

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

This change fixes a logic bug in how LDK decides whether a user must sign a splicing transaction. Previously, LDK only checked if the local side had inputs to sign. A 'splice out' adds a local output (money going back to the user) but no local input, so LDK would skip the signing callback and the shared splice input would never get signed. That could leave a splice transaction stuck or incomplete. The patch now also counts local outputs, so splice-outs correctly trigger the signing step.

AI review queuedRemove stale TODO for quiescence check on incoming splice_initby Wilmer Paulino · 5c6b6370 · Sep 8, 2025 · 1 fileMessage 30 · OpaqueLow 42Details
Commit message · Wilmer Paulino

Remove stale TODO for quiescence check on incoming splice_init

30/100 · OpaqueMessage clarity
✓ Specific, descriptive subject✓ Names a concrete action or component! No meaningful explanatory body! Contains work-in-progress language
Why it was queued
second-pass: opaque commit message
AI analysis · Low 42/100

This commit moves a safety check so that incoming splice requests from a peer are verified for 'quiescence' earlier in the validation process. Quiescence means the channel is in a quiet, stable state before starting a splice. Previously, the check was performed later in an internal code path, leaving a TODO note suggesting it should also be enforced on incoming splice_init messages. The change removes that TODO and adds the check inside the validation function used for incoming splice requests. This is a defensive hardening fix: without it, a peer might be able to initiate a splice while the channel is not quiescent, potentially causing protocol confusion or errors.

Lower-priorityFix incorrect weight estimation for splice shared inputby Wilmer Paulino · 33079be7 · Sep 8, 2025 · 2 filesMessage 73 · AdequateModerate 59Details
Commit message · Wilmer Paulino

Fix incorrect weight estimation for splice shared input

The splice shared input weight should always be composed of the base
input weight (prevout & sequence), an empty `script_sig` weight, and the
multisig channel-type specific witness weight.

73/100 · AdequateMessage clarity
✓ Specific, descriptive subject✓ Names a concrete action or component✓ Provides detailed explanatory context
AI analysis · Moderate 59/100

This commit fixes a bug in how the Lightning Dev Kit estimates the transaction weight (and thus the required transaction fee) when splicing a channel. Previously, the code estimated the weight of the shared splice input using a generic function based on the previous funding output type, which could produce an incorrect value. The fix explicitly builds the weight from the base input fields, an empty script signature, and the expected multisig witness. If the estimate was too low, the resulting transaction could have paid an insufficient fee and failed to confirm or propagate; if too high, funds could be overpaid as fees. The included test changes show the corrected fee math changes the expected change output amount.

Lower-priorityPrune HTLC sources from pending funding scopesby Wilmer Paulino · ea42df4c · Sep 8, 2025 · 1 fileMessage 60 · AdequateLow 41Details
Commit message · Wilmer Paulino

Prune HTLC sources from pending funding scopes

We only need to track the HTLC sources for the previous and current
counterparty commitments.

60/100 · AdequateMessage clarity
✓ Descriptive subject✓ Names a concrete action or component✓ Provides an explanatory body
AI analysis · Low 41/100

This change updates how the Lightning node cleans up old payment source information when a new commitment transaction is received. Previously, only the active funding scope was pruned; now pending funding scopes are also pruned. The commit message frames this as a cleanup to avoid tracking unnecessary data. There is no direct evidence in the commit that this fixes an exploitable vulnerability, but incomplete cleanup could theoretically lead to stale state or incorrect event generation in multi-funding-scope channels.

Lower-priorityFail interactive-tx negotiation on abortby Wilmer Paulino · d4bba8a0 · Sep 8, 2025 · 4 filesMessage 68 · AdequateLow 42Details
Commit message · Wilmer Paulino

Fail interactive-tx negotiation on abort

This commit reworks all interactive transaction construction methods to
mark the negotiation as failed upon a local/remote `TxAbort`, ensuring
the `InteractiveTxConstructor` is consumed. Along the way, we refactor
the handling of `tx_complete` such that we only have a single call into
the `Channel` from the `ChannelManager`.

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

This commit is a defensive refactor of how Lightning transaction negotiations are aborted. It makes sure that when either side cancels an interactive funding/splicing negotiation, the internal constructor object is consumed (taken away) so it cannot be reused. It also centralizes the handling of the final 'tx_complete' message so the channel manager calls the channel object only once. The change appears to close a state-handling gap where a failed negotiation might leave stale state behind, but the commit itself does not describe a specific vulnerability or assign a CVE.

Security candidateUpdate OnchainTxHandler channel parameters on renegotiated funding lockedby Wilmer Paulino · c40d1e8a · Sep 8, 2025 · 2 filesMessage 85 · StrongLow 41Details
Commit message · Wilmer Paulino

Update OnchainTxHandler channel parameters on renegotiated funding locked

The `ChannelMonitor` now tracks its own set of channel parameters, but
in the event they change after a splice, we want to ensure they are
updated accordingly at the `OnchainTxHandler` level as well in case the
user downgrades after a locked splice has already occurred.

85/100 · StrongMessage clarity
✓ Specific, descriptive subject✓ Names a concrete action or component✓ Provides detailed explanatory context✓ Explains rationale or failure mode
Why it was queued
update trust
AI analysis · Low 41/100

This commit fixes an internal bookkeeping issue in a Bitcoin Lightning Network library. After a channel is resized via 'splicing,' the on-chain emergency transaction handler was not being told about the new channel's size and parameters. If a user later ran older software that relied on that handler, it could operate with stale information, potentially creating invalid or uneconomic rescue transactions. There is no direct evidence this is remotely exploitable by an attacker.

Lower-priorityDon't process alternative funding confirmations duplicativelyby Wilmer Paulino · 3023e2f8 · Sep 8, 2025 · 1 fileMessage 85 · StrongLow 49Details
Commit message · Wilmer Paulino

Don't process alternative funding confirmations duplicatively

Otherwise we'll hit an assert that we do not already have an alternative
funding confirmation when reprocessing the transaction.

85/100 · StrongMessage clarity
✓ Specific, descriptive subject✓ Names a concrete action or component✓ Provides detailed explanatory context✓ Explains rationale or failure mode
AI analysis · Low 49/100

This patch fixes a bug where the Lightning node could re-process the same alternative funding transaction more than once. Reprocessing could trigger an internal assertion (a safety check that crashes the program), potentially causing the node to panic and stop running. The fix adds a check to skip the transaction if it was already recorded as confirmed.

Security candidateSet version 3 on transactions for HTLC signatures in 0FC channelsby Leo Nash · 538c4ccd · Sep 8, 2025 · 1 fileMessage 65 · AdequateLow 42Details
Commit message · Leo Nash

Set version 3 on transactions for HTLC signatures in 0FC channels

Co-authored-by: Matt Corallo <git@bluematt.me>

65/100 · AdequateMessage clarity
✓ Specific, descriptive subject✓ Names a concrete action or component✓ Provides an explanatory body
Why it was queued
signing boundary
AI analysis · Low 42/100

This commit changes how certain Bitcoin transactions are versioned inside a specific type of Lightning channel (zero-fee-commitment, or 0FC, channels). For those channels, HTLC-related transactions now use transaction version 3 instead of version 2. Transaction version 3 is a newer standard that helps with network-wide fee management (transaction pinning resistance). The change only affects the transaction version number used when building and signing these transactions; it does not by itself move or expose funds.

Security candidateUse `SINGLE|ACP` sighash on signatures from peer in 0FC channelsby Leo Nash · 1cef4c3f · Sep 6, 2025 · 4 filesMessage 65 · AdequateModerate 57Details
Commit message · Leo Nash

Use `SINGLE|ACP` sighash on signatures from peer in 0FC channels

Co-authored-by: Matt Corallo <git@bluematt.me>

65/100 · AdequateMessage clarity
✓ Specific, descriptive subject✓ Names a concrete action or component✓ Provides an explanatory body
Why it was queued
signing boundarysigning or wallet path
AI analysis · Moderate 57/100

This commit fixes how a Lightning node validates signatures from its channel peer for a newer type of channel (0FC, or 'zero-fee commitments'). Previously, the code expected the older SIGHASH_ALL signature type for these channels, which would cause the node to reject valid peer signatures or fail to build valid transactions. The fix makes the code use SIGHASH_SINGLE|SIGHASH_ANYONECANPAY for 0FC channels, matching the protocol design. A mismatch here could prevent correct operation or, in the worst case, be exploited to make a node accept an invalid transaction state, though the commit itself is small and defensive.

Lower-priorityRun fmt on `ChannelContext::validate_commitment_signed`by Leo Nash · c944b243 · Sep 6, 2025 · 2 filesMessage 50 · ThinInformational 15Details
Commit message · Leo Nash

Run fmt on `ChannelContext::validate_commitment_signed`

50/100 · ThinMessage clarity
✓ Specific, descriptive subject✓ Names a concrete action or component! No meaningful explanatory body
Why it was queued
defensive validation
AI analysis · Informational 15/100

This commit is purely a code-formatting cleanup. It removes two `#[rustfmt::skip]` attributes and lets Rust's automatic formatter reformat two functions. No logic, behavior, or security checks were changed.

AI review queuedRename `CommitmentTransaction.feerate_per_kw()`by Leo Nash · e921bf6c · Sep 6, 2025 · 6 filesMessage 58 · ThinInformational 15Details
Commit message · Leo Nash

Rename `CommitmentTransaction.feerate_per_kw()`

Use `negotiated_feerate_per_kw()` to underscore that this is the feerate
we negotiated with our peer, not the actual feerate of the commitment
transaction. The feerate of the actual commitment transaction may be
higher.

58/100 · ThinMessage clarity
✓ Descriptive subject✓ Provides detailed explanatory context
Why it was queued
signing or wallet pathsecond-pass: security-sensitive path
AI analysis · Informational 15/100

This commit is a simple rename of a method from `feerate_per_kw()` to `negotiated_feerate_per_kw()` across the codebase, plus an update to its documentation. The goal is to make it clearer that the returned value is the fee rate agreed with the peer, not necessarily the actual fee rate used on-chain. There are no logic changes and no security fix.

Lower-priorityCreate a single P2A anchor on commitment transactions in 0FC channelsby Leo Nash · 9008409a · Sep 6, 2025 · 1 fileMessage 73 · AdequateLow 32Details
Commit message · Leo Nash

Create a single P2A anchor on commitment transactions in 0FC channels

Zero-fee commitment channels replace today's existing `to_local_anchor`
and `to_remote_anchor` outputs with a single `shared_anchor` output.

Co-authored-by: Matt Corallo <git@bluematt.me>

73/100 · AdequateMessage clarity
✓ Specific, descriptive subject✓ Names a concrete action or component✓ Provides detailed explanatory context
AI analysis · Low 32/100

This commit changes how Bitcoin transaction fees are handled for a new type of Lightning channel. Instead of each party having their own small 'anchor' output to bump the transaction fee later, the commit creates one shared anchor output. It also switches these zero-fee commitment transactions to use a non-standard version 3. This is part of an ongoing protocol update and does not by itself look like a security bug fix; it is more like feature construction.

AI review queuedSerialization for Vec<BlindedMessagePath>by Joost Jager · 8db88139 · Sep 5, 2025 · 1 fileMessage 35 · OpaqueInformational 18Details
Commit message · Joost Jager

Serialization for Vec<BlindedMessagePath>

35/100 · OpaqueMessage clarity
✓ Descriptive subject! No meaningful explanatory body
Why it was queued
second-pass: opaque commit message
AI analysis · Informational 18/100

This commit adds a single line of code that enables serialization (the ability to convert data into a format that can be stored or transmitted) for a list of BlindedMessagePath objects. It is a routine, additive change with no visible security implications. There is no indication this fixes or introduces a vulnerability.

Lower-priorityCorrect and clarify comments in `ChannelMonitor` loading test utilsby Matt Corallo · 487a36dd · Sep 4, 2025 · 1 fileMessage 60 · AdequateInformational 15Details
Commit message · Matt Corallo

Correct and clarify comments in `ChannelMonitor` loading test utils

60/100 · AdequateMessage clarity
✓ Specific, descriptive subject✓ Names a concrete action or component✓ Mentions testing or verification! No meaningful explanatory body
AI analysis · Informational 15/100

This commit only changes comments in a test utility file. It clarifies what a test is checking and why it does not perform a certain assertion. No code behavior was changed, so there is no security impact.