Skip to content

Compact blinded path handling#2961

Merged
TheBlueMatt merged 10 commits intolightningdevkit:mainfrom
jkczyz:2024-03-compact-blinded-paths
Apr 15, 2024
Merged

Compact blinded path handling#2961
TheBlueMatt merged 10 commits intolightningdevkit:mainfrom
jkczyz:2024-03-compact-blinded-paths

Conversation

@jkczyz
Copy link
Copy Markdown
Contributor

@jkczyz jkczyz commented Mar 21, 2024

Blinded paths may be specified using a more compact representation, replacing pubkeys with short channel ids as described in #2921. This PR implements this in the following manner:

  • Update BlindedPath and message::ForwardTlvs to support the compact representation
  • Add a NodeIdLookUp trait used in OnionMessenger to handle forwarding
  • Implement NodeIdLookUp for ChannelManager
  • To resolve the IntroductionNode:
    • For messaging, use the NetworkGraph in DefaultMessageRouter
    • For payments, use either the NetworkGraph or first hops in DefaultRouter

Does not yet include any tests as the creation methods need to be updated still.

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.

5 participants