Skip to content

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

Merged
mxinden merged 1 commit intolibp2p:masterfrom
mxinden:noise-spec
Sep 29, 2022
Merged

transports/noise: Have NoiseAuthenticated::xx use X25519Spec#2954
mxinden merged 1 commit intolibp2p:masterfrom
mxinden:noise-spec

Conversation

@mxinden
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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