-
Notifications
You must be signed in to change notification settings - Fork 961
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
Conversation
This is the most common way of doing noise in libp2p and thus deserves a convenience ctor.
NoiseAuthenticated::xx
ctor with X25519 DH key exchangeNoiseAuthenticated::xx
constructor with X25519 DH key exchange
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
Co-authored-by: Max Inden <mail@max-inden.de>
Thanks @mxinden! |
You forgot to add a CHANGELOG entry |
There is one for |
I thought there should be an entry in the root CHANGELOG.md |
Yep, that is true, thank you! |
See #2912. |
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
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
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 added tests that prove my fix is effective or that my feature works