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

BOLT 8: add missing MAC check in Act Three #787

Merged
merged 1 commit into from
Jul 20, 2020

Conversation

bitonic-cjp
Copy link
Contributor

Presumably, this decryptWithAD also has a MAC check that can potentially fail, like the other ones. Unlike the other ones, this one does not describe what MUST happen if the MAC check fails.

Maybe it's just a nitpick. Terminating the connection without any further messages seems sensible to me in this case, but I'm not 100% sure if it's necessary, or even if it could be harmful. So don't take my word for it that this is the right behavior: think about it.

@renepickhardt
Copy link
Contributor

in the beginning of the text the spec gives a general statement:

If a MAC check ever fails during the handshake process, then the connection is to be immediately terminated

Thus this seems very logical to me.

@t-bast
Copy link
Collaborator

t-bast commented Jul 20, 2020

Feels to me as well that terminating the connection is the sane choice here.

Copy link
Collaborator

@Roasbeef Roasbeef left a comment

Choose a reason for hiding this comment

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

LGTM 🦋

@niftynei niftynei merged commit cc40afa into lightning:master Jul 20, 2020
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