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

Add libp2p-noise specification #1607

Merged
merged 1 commit into from
Feb 6, 2020
Merged

Conversation

AgeManning
Copy link
Contributor

Description

Libp2p has added a specification for the noise handshake. This PR references this specification for our mainnet configuration.

There are two interesting points here:

  • I've suggested that we continue to use secp256k1 peer identities as these keys are currently specified for ENR's in discv5 and allows us to the use the same identity for both discovery and the rest of the libp2p stack.
  • The libp2p-noise specification indicates that libp2p implementations support the XX handshake and optionally the IK and XXfallback. I've explicitly mentioned this in the eth2.0 specs making it clear for eth2.0 implementers. The added handshakes provide an optimisation in some circumstances and clients can optionally add these in the future.

As always, open to feedback/suggestions on this PR.

Copy link

@mhchia mhchia left a comment

Choose a reason for hiding this comment

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

LGTM!

Copy link
Contributor

@djrtwo djrtwo left a comment

Choose a reason for hiding this comment

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

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants