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

Drop GetPublicKey(peer.ID)? #21

Open
guillaumemichel opened this issue Jun 26, 2023 · 2 comments
Open

Drop GetPublicKey(peer.ID)? #21

guillaumemichel opened this issue Jun 26, 2023 · 2 comments
Labels
scope/required Feature required to match go-libp2p-kad-dht

Comments

@guillaumemichel
Copy link
Contributor

https://github.com/libp2p/go-libp2p-kad-dht is implementing a public GetPublicKey(peer.ID) method. It isn't the role of the DHT to provide such a feature.

https://github.com/libp2p/go-libp2p-kad-dht/blob/978cb74f5fdf846e09d5769bb4dfb9f962135c38/records.go#L19-L78

IMO this function doesn't need to be ported to the new implementation. If needed this function should be implemented directly in https://github.com/ipfs/boxo.

@guillaumemichel guillaumemichel added the scope/required Feature required to match go-libp2p-kad-dht label Jun 27, 2023
@guillaumemichel
Copy link
Contributor Author

guillaumemichel commented Jun 27, 2023

2023-06-27 call: there was an agreement that the GetPublicKey function doesn't belong to the DHT implementation, and should NOT be implemented in this repository

@yiannisbot
Copy link
Member

Given the above, does this mean that this issue can be closed from here? AFAIU, this is needed, but not in this repo and instead it's needed in: https://github.com/ipfs/boxo - @Jorropo do we have a tracking issue in boxo?

@iand iand moved this to Unplanned in DHT Optimization Jul 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
scope/required Feature required to match go-libp2p-kad-dht
Projects
Status: Unplanned
Development

No branches or pull requests

3 participants