Add create_blinded_paths to MessageRouter
authorJeffrey Czyz <jkczyz@gmail.com>
Thu, 7 Dec 2023 21:48:43 +0000 (15:48 -0600)
committerJeffrey Czyz <jkczyz@gmail.com>
Fri, 15 Dec 2023 20:52:07 +0000 (14:52 -0600)
commit97049daac211b65cf6113960059fedaad12397b4
tree0642ffb948ee3d94b6b351e5e2e2a6889cfe3b78
parentffb0d8329824d5ee86107307d1cac37ea9b57290
Add create_blinded_paths to MessageRouter

The MessageRouter trait is used to find an OnionMessagePath to a
Destination (e.g., to a BlindedPath). Expand the interface with a
create_blinded_paths method for creating such paths to a recipient.
Provide a default implementation creating two-hop blinded paths where
the recipient's peers serve as introduction nodes.
fuzz/src/onion_message.rs
lightning/src/onion_message/functional_tests.rs
lightning/src/onion_message/messenger.rs