lightningdevkit / rust-lightning

A highly modular Bitcoin Lightning library written in Rust. It's rust-lightning, not Rusty's Lightning!
Other
1.11k stars 342 forks source link

Blinded paths with unannounced introduction nodes #3132

Closed jkczyz closed 2 weeks ago

jkczyz commented 2 weeks ago

When creating blinded paths for receiving onion messages or payments, allow using the recipient's only peer as the introduction node when the recipient is unannounced. This allows for sending messages or payments without going through an intermediary, which is useful for testing or when only connected to an LSP with an empty NetworkGraph.

Also add support for paying through a BlindedPath where we are the introduction node.

Fixes #2952.