Add create_blinded_payment_paths to Router
authorJeffrey Czyz <jkczyz@gmail.com>
Fri, 8 Dec 2023 18:03:06 +0000 (12:03 -0600)
committerJeffrey Czyz <jkczyz@gmail.com>
Fri, 15 Dec 2023 21:40:09 +0000 (15:40 -0600)
commit62f866965436fff1a8e98ee655a8a6dcbb8716c1
tree06eea5d22553afa620de6f2560a60bb12451917c
parentedb589203001d4c07e9bbbbb1816363f75917715
Add create_blinded_payment_paths to Router

The Router trait is used to find a Route for paying a node. Expand the
interface with a create_blinded_payment paths method for creating such
paths to a recipient node.

Provide an implementation for DefaultRouter that creates two-hop
blinded paths where the recipient's peers serve as the introduction
nodes.
fuzz/src/chanmon_consistency.rs
fuzz/src/full_stack.rs
lightning/src/routing/router.rs
lightning/src/util/test_utils.rs