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

lnwallet: add support for local nonces map in revoke_and_ack

Public commit record

What the developer wrote

Authored by Olaoluwa Osuntokun

65/100 · Adequate
lnwallet: add support for local nonces map in revoke_and_ack

We only ever set a single nonce, but we'll check both fields to make
sure that at least one of them is set.
✓ Specific, descriptive subject✓ Names a concrete action or component✓ Provides an explanatory body
The short version

What changed, and why it matters

This commit updates the LND Lightning wallet so that RevokeAndAck messages can carry a new map of nonces keyed by funding transaction ID, while still accepting the older single-nonce field. It is a backwards-compatibility and protocol-extension change for Taproot channels, not a fix for an active bug or exploit. The code now validates that at least one nonce field is present and that any map entry matches the channel's funding transaction.

Recommended action

Treat as a routine protocol-extension/backwards-compatibility patch. Review the related BOLT specification change (bolts#995) for completeness, and ensure the new LocalNonces wire type is validated consistently across all consumers. No urgent security action is indicated by this commit alone.

Security signals we found

01

Input validation added: requires at least one nonce field in RevokeAndAck

02

Map-key validation added: LocalNonces entry must match channel funding txid

03

Backwards-compatible handling of legacy LocalNonce field retained

04

Taproot/MuSig2 session refresh now depends on validated nonce extraction

05

No memory-safety, cryptographic, or authorization flaw evident in diff

Risk score

Why this scored 34/100

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