-
Notifications
You must be signed in to change notification settings - Fork 474
Enable Creation of Offers and Refunds Without Blinded Path #3246
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 1 commit
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
e8f5f90
Fixup: Remove stale documentation
shaavan 5bc12d4
Fix: Ignore SCIDs when creating full-length blinded paths
shaavan d6099c3
Update `create_blinded_paths` to accept `Vec<MessageForwardNode>`
shaavan d78d640
Introduce `NodeIdMessageRouter` and `NullMessageRouter`
shaavan 26e4fe6
Refactor: Update TestMessageRouter to enum
shaavan 1a57e63
Update `DefaultMessageRouter` to always create compact blinded paths
shaavan ddb1167
Update `create_offer_builder` to use `create_blinded_paths`
shaavan d6292d1
Update `create_refund_builder` to use `create_blinded_paths`
shaavan 512e825
Update handle_offer_paths_request to use `create_blinded_paths`
shaavan 80e7385
Cleanup: Remove redundant create_blinded_paths variants
shaavan 596cf47
Test: Add coverage for Offers and Refunds without blinded paths
shaavan File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -11467,8 +11467,7 @@ macro_rules! create_offer_builder { ($self: ident, $builder: ty) => { | |
| /// | ||
| /// Uses [`MessageRouter`] to construct a [`BlindedMessagePath`] for the offer based on the given | ||
| /// `absolute_expiry` according to [`MAX_SHORT_LIVED_RELATIVE_EXPIRY`]. See those docs for | ||
| /// privacy implications as well as those of the parameterized [`Router`], which implements | ||
| /// [`MessageRouter`]. | ||
| /// privacy implications. | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I don't see any "privacy implications" in those places, so not sure what this is referring to tbh. |
||
| /// | ||
| /// Also, uses a derived signing pubkey in the offer for recipient privacy. | ||
| /// | ||
|
|
@@ -11519,8 +11518,7 @@ macro_rules! create_refund_builder { ($self: ident, $builder: ty) => { | |
| /// | ||
| /// Uses [`MessageRouter`] to construct a [`BlindedMessagePath`] for the refund based on the given | ||
| /// `absolute_expiry` according to [`MAX_SHORT_LIVED_RELATIVE_EXPIRY`]. See those docs for | ||
| /// privacy implications as well as those of the parameterized [`Router`], which implements | ||
| /// [`MessageRouter`]. | ||
| /// privacy implications. | ||
| /// | ||
| /// Also, uses a derived payer id in the refund for payer privacy. | ||
| /// | ||
|
|
@@ -11716,8 +11714,7 @@ where | |
| /// # Privacy | ||
| /// | ||
| /// For payer privacy, uses a derived payer id and uses [`MessageRouter::create_blinded_paths`] | ||
| /// to construct a [`BlindedMessagePath`] for the reply path. For further privacy implications, see the | ||
| /// docs of the parameterized [`Router`], which implements [`MessageRouter`]. | ||
| /// to construct a [`BlindedMessagePath`] for the reply path. | ||
| /// | ||
| /// # Limitations | ||
| /// | ||
|
|
@@ -11896,8 +11893,7 @@ where | |
| /// # Privacy | ||
| /// | ||
| /// For payer privacy, uses a derived payer id and uses [`MessageRouter::create_blinded_paths`] | ||
| /// to construct a [`BlindedMessagePath`] for the reply path. For further privacy implications, see the | ||
| /// docs of the parameterized [`Router`], which implements [`MessageRouter`]. | ||
| /// to construct a [`BlindedMessagePath`] for the reply path. | ||
| /// | ||
| /// # Limitations | ||
| /// | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In fact, we never use
MAX_SHORT_LIVED_RELATIVE_EXPIRYat all in the entire crate anymore (except for tests), we should remove references to that and drop the constant too.