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

Introduce identify v2.0.0 based on signed peer records #350

Closed
wants to merge 5 commits into from

Conversation

thomaseizinger
Copy link
Contributor

Best reviewed patch-by-patch.

I plan to amend 1d715ff as I work through feedback. Currently a draft PR because of discussion ongoing here.

@Stebalien
Copy link
Member

Hm. This is unfortunate. Sending signed peer records has already been implemented in go-libp2p's identify but this was never added to the specs.

The implementation is that we simply added a new field to the identify protobuf that includes the signed peer record. In terms of efficiency, this is less than optimal. But it lets us avoid an extra round-trip for version negotiation.

https://github.com/libp2p/go-libp2p/blob/5d3b015018a34a5875c91c7645ef20f8a91736e3/p2p/protocol/identify/pb/identify.proto#L40-L45

@Stebalien
Copy link
Member

Ah, I see the discussion. I'll continue there.

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.

None yet

2 participants