lnd icon indicating copy to clipboard operation
lnd copied to clipboard

Onion message forwarding

Open gijswijs opened this issue 6 months ago • 2 comments

With this PR we add basic forwarding functionality for onion messages. It builds on PR #9868.

It adds OnionMessagePayload struct to the lnwire package. It also depends on the not yet merged (PR 68)[https://github.com/lightningnetwork/lightning-onion/pull/68] in the lightning-onion package. For now it uses that package from a forked version.

The msgmux endpoint for onion messages is updated to parse the onion message packet, and forward the onion based on the acquired information.

The SubscribeOnionMessages endpoint is updated to pass along any decrypted information. This endpoint is currently solely meant for itests, although it could have practical use in the future.

gijswijs avatar Jul 17 '25 19:07 gijswijs

Since https://github.com/lightningnetwork/lnd/pull/9868 has been merged, I think this needs to be updated, wanna take a look.

Abdulkbk avatar Oct 15 '25 17:10 Abdulkbk

@gijswijs, remember to re-request review from reviewers when ready

lightninglabs-deploy avatar Dec 08 '25 14:12 lightninglabs-deploy