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

protocols/noise: Introduce NoiseAuthenticated::xx constructor with X25519 DH key exchange #2887

Merged
merged 3 commits into from
Sep 16, 2022

Conversation

thomaseizinger
Copy link
Contributor

Description

This is the most common way of doing noise in libp2p and thus deserves a convenience ctor. I came across this while working on #2884, trying to reduce the noise (no pun intended) in setting up swarms for testing.

Links to any relevant issues

Open Questions

Change checklist

  • I have performed a self-review of my own code
  • I have made corresponding changes to the documentation
    - [ ] I have added tests that prove my fix is effective or that my feature works
  • A changelog entry has been made in the appropriate crates

This is the most common way of doing noise in libp2p and thus deserves
a convenience ctor.
@thomaseizinger thomaseizinger changed the title Introduce NoiseAuthenticated::xx ctor with X25519 DH key exchange protocols/noise: Introduce NoiseAuthenticated::xx constructor with X25519 DH key exchange Sep 12, 2022
Copy link
Contributor

@melekes melekes left a comment

Choose a reason for hiding this comment

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

👍

transports/noise/CHANGELOG.md Outdated Show resolved Hide resolved
transports/noise/CHANGELOG.md Outdated Show resolved Hide resolved
Co-authored-by: Max Inden <mail@max-inden.de>
@thomaseizinger
Copy link
Contributor Author

Thanks @mxinden!

@thomaseizinger thomaseizinger merged commit 2c739e9 into master Sep 16, 2022
@thomaseizinger thomaseizinger deleted the simpler-noise-upgrade branch September 16, 2022 01:41
@kpp
Copy link
Contributor

kpp commented Sep 16, 2022

You forgot to add a CHANGELOG entry

@thomaseizinger
Copy link
Contributor Author

You forgot to add a CHANGELOG entry

There is one for libp2p-noise. Would you have expected a changelog entry anywhere else too?

@kpp
Copy link
Contributor

kpp commented Sep 16, 2022

I thought there should be an entry in the root CHANGELOG.md

@thomaseizinger
Copy link
Contributor Author

I thought there should be an entry in the root CHANGELOG.md

Yep, that is true, thank you!

@thomaseizinger
Copy link
Contributor Author

See #2912.

mxinden added a commit to mxinden/rust-libp2p that referenced this pull request Sep 29, 2022
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 added a commit that referenced this pull request Sep 29, 2022
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 #2887
@thomaseizinger thomaseizinger mentioned this pull request Oct 8, 2022
4 tasks
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.

4 participants