Skip to content

Allow blinded path diversification by expanding create_blinded_paths#3087

Merged
TheBlueMatt merged 3 commits into
lightningdevkit:mainfrom
shaavan:reply_path_diversity
Jul 16, 2024
Merged

Allow blinded path diversification by expanding create_blinded_paths#3087
TheBlueMatt merged 3 commits into
lightningdevkit:mainfrom
shaavan:reply_path_diversity

Conversation

@shaavan

@shaavan shaavan commented May 31, 2024

Copy link
Copy Markdown
Member
  • The current usage of blinded_paths is limited because create_blinded_path only returns a single BlindedPath.
  • This PR expands the functionality of create_blinded_path by allowing it to return multiple BlindedPaths, as determined by the new count parameter.
  • Additionally, this PR integrates this new capability throughout the codebase by:
    • Allowing multiple paths in offers and refund builders.
    • Sending Offers Response messages, such as InvoiceRequest (in pay_for_offer) and Invoice (in request_refund_payment), using multiple reply paths.
  • As a proof-of-concept, this PR increases the maximum count of create_blinded_paths to 10, enabling the generation of more reply paths. It also increases the number of blinded_paths used in offer and refund builders and responders to 5, demonstrating the usage of multiple reply paths.

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