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

lnrpc: document reply_path verbatim passthrough on OnionMessageUpdate

Public commit record

What the developer wrote

Authored by bitromortac

73/100 · Adequate
lnrpc: document reply_path verbatim passthrough on OnionMessageUpdate

Document that the introduction_node field in an OnionMessageUpdate's
reply_path is passed through verbatim from the wire, potentially
carrying either a 33-byte pubkey or a 9-byte sciddir form. Subscribers
wishing to reply must resolve sciddir forms against their local channel
graph.

The SubscribeOnionMessages bridge is refactored to use a new
marshallBlindedPath helper, ensuring a nil reply path remains nil in the
RPC response rather than being emitted as an empty struct.
✓ Specific, descriptive subject✓ Names a concrete action or component✓ Provides detailed explanatory context
The short version

What changed, and why it matters

This change is mostly documentation and a small code cleanup for LND's onion message streaming API. It clarifies that one field (the 'introduction_node' in a reply path) can arrive in two different formats: a regular 33-byte public key, or a compact 9-byte 'short channel ID + direction' form. The commit also refactors the code so that when no reply path exists, the API returns a true null instead of an empty placeholder struct. There is no direct security fix here, but the documentation reduces the chance that API consumers will misinterpret the data and build broken or unsafe replies.

Recommended action

No urgent action. Operators and developers using SubscribeOnionMessages should review the updated documentation and ensure client code resolves sciddir introduction_node forms against the local channel graph before attempting replies. Consider adding a client-side or server-side helper for sciddir resolution if one does not already exist, since the commit explicitly leaves that responsibility to subscribers.

Security signals we found

01

Documentation-only clarification of wire encoding for introduction_node

02

Nil reply path now returned as nil instead of empty struct (behavioral consistency)

03

No input validation, parsing, or authorization changes

04

No CVE, advisory, or vendor security disclosure referenced in commit

Risk score

Why this scored 19/100

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