-
Notifications
You must be signed in to change notification settings - Fork 422
Allow the introduction_node to be set for the BlindedPaymentPath #3758
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
Conversation
|
I've assigned @TheBlueMatt as a reviewer! |
|
Could you expand upon why this is necessary? Invoices don't have a human-readable format, so QR size shouldn't be an issue. |
Sure. We should be able to reference a short channel id as the channel leading to the introduction node, as in the spec.
I'm sure how this is related? |
The reason for allowing an SCID instead of a pubkey is to reduce the size of offer QR codes. Since If we are to allow it, we should use the same approach as
|
TheBlueMatt
left a comment
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.
Wait, are we sure the spec allows for it? I thought the spec similarly only allowed it in message paths precisely for the reasons @jkczyz lays out.
|
👋 The first review has been submitted! Do you think this PR is ready for a second reviewer? If so, click here to assign a second reviewer. |
The spec really doesn't differentiate the two. We support sending a payment to one with a compact introduction node. We just don't create them. |
|
Thanks for the feedback @jkczyz @TheBlueMatt The motivation is similar to how Boltz adds a specific scid as a routing hop hint to a BOLT11 invoice to denote that there is a direct payment alternative (Magic Routing Hint). Similarly for the BOLT12 implementation we would also like to include this specific scid as the introduction node scid in the BOLT12 invoice. Would an alternative option be to set the |
|
The messages are extensible with TLVs, so a custom TLV setting along with a feature bit in the invoice would be the typical way of achieving this. |
|
We've gone a different route. Thanks for your feedback |
This PR introduces
introduction_nodeas an optional parameter when creating aBlindedPaymentPath. The reason for this change is to allow the introduction node to be configured as aDirectedShortChannelId.