Skip to content
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

clarification: strict validation of scid for blinded payments #1147

Merged
merged 1 commit into from Mar 12, 2024

Conversation

carlaKC
Copy link
Contributor

@carlaKC carlaKC commented Mar 11, 2024

This PR updates bolt04 to more strictly enforce that encrypted_data that is part of a blinded payment only has short_channel_id set. On the reader side, we disallow setting of both short_channel_idand next_node_id (which is intended for use in the context of onion messages), and on the writer side we specify that next_node_id should not be included by recipients.

h/t: @ellemouton for flagging during review!

This commit updates bolt04 to more strictly enforce that encrypted_data
that is part of a blinded payment only has short_channel_id set. On
the reader side, we disallow setting of both short_channel_id and
next_node_id (which is intended for use in the context of onion
messages), and on the writer side we specify that next_node_id should
not be included by recipients.
Copy link
Collaborator

@t-bast t-bast left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ACK 1a7c015, thanks!

@t-bast t-bast merged commit 78e5a6b into lightning:master Mar 12, 2024
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.

None yet

2 participants