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

transports/noise: Have NoiseAuthenticated::xx use X25519Spec #2954

Merged
merged 1 commit into from
Sep 29, 2022

Conversation

mxinden
Copy link
Member

@mxinden mxinden commented Sep 29, 2022

Description

We support two versions of the Noise XX handshake with X25519, but only one of them is compliant with the specification and thus compliant with other implementations. We should always default to the spec compliant handshake.

Caught via the libp2p interoperability tests. A node running master would no longer connect to nodes running older versions given that older versions would use the spec compliant Noise handshake.

Links to any relevant issues

Fixes bug introduced in #2887

Open Questions

As a follow up, we might consider dropping support for the non-spec compliant version.

Change checklist

We support two versions of the Noise XX handshake with X25519, but only one of
them is compliant with the specification and thus compliant with other
implementations. We should always default to the spec compliant handshake.

Fixes bug introduced in libp2p#2887
@mxinden
Copy link
Member Author

mxinden commented Sep 29, 2022

Thanks @jxs.

I am merging here to unblock other pull requests. Please still give this a review @thomaseizinger and @elenaf9. I will do a follow-up pull requests for any suggestions you raise here.

@mxinden mxinden merged commit 749ff00 into libp2p:master Sep 29, 2022
@thomaseizinger
Copy link
Contributor

Thanks for the fix!

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.

3 participants