Skip to content

Multi-hop BlindedPath creation interface#2781

Merged
TheBlueMatt merged 14 commits intolightningdevkit:mainfrom
jkczyz:2023-09-multihop-paths
Dec 15, 2023
Merged

Multi-hop BlindedPath creation interface#2781
TheBlueMatt merged 14 commits intolightningdevkit:mainfrom
jkczyz:2023-09-multihop-paths

Conversation

@jkczyz
Copy link
Copy Markdown
Contributor

@jkczyz jkczyz commented Dec 8, 2023

Expands Router and MessageRouter traits with methods for constructing BlindedPaths for payment and onion messaging, respectively. Also makes MessageRouter a super trait of Router so that ChannelManager doesn't need another parameter.

ChannelManager uses the new interface in its Offers flow to construct:

  • paths for Offers and Refunds,
  • reply paths for InvoiceRequest and Bolt12Invoice, and
  • payment paths for Bolt12Invoice.

DefaultMessageRouter and DefaultRouter implement the new methods by constructing three-hop blinded paths (i.e., where the counterparty of the peer is the introduction node).

Resolves #2690

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Multi-hop blinded paths in Offers

4 participants