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

Do not publish public keys extractable from ID #3998

Closed
wants to merge 3 commits into from

Conversation

JustinDrake
Copy link
Contributor

@JustinDrake JustinDrake commented Jun 21, 2017

Initial implementation for #3896

The function peer.ExtractPublicKey() is part of PR libp2p/go-libp2p-peer#14

cc @whyrusleeping

License: MIT
Signed-off-by: Justin Drake justin@duo.money

Initial implementation for ipfs#3896

The function `peer.ExtractPublicKey()` is part of PR libp2p/go-libp2p-peer#14

cc @whyrusleeping
@whyrusleeping
Copy link
Member

Given the other PR, this looks good to me. I'd definitely want to see some tests though. I would use the offline routing package in the same way that namesys/namesys_test.go does to mock everything out.

Obviously we will have to bubble up the changes from go-libp2p-peer once that gets merged too.

@whyrusleeping whyrusleeping requested review from a user, Stebalien and Kubuxu June 21, 2017 18:55
Copy link
Member

@Stebalien Stebalien left a comment

Choose a reason for hiding this comment

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

LGTM

errorChanSize = 2 // IPNS and public key
} else {
errorChanSize = 1 // IPNS only
}
Copy link
Member

Choose a reason for hiding this comment

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

This isn't strictly necessary as over-allocating isn't really an issue (but it's up to you).

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ok, good point! I'll review this 👍

@whyrusleeping
Copy link
Member

@JustinDrake could you run the script that gitcop links to set up signing, then rebase this branch on master, that should apply the sign-off to each commit for you.

JustinDrake added a commit to JustinDrake/go-ipfs that referenced this pull request Jun 28, 2017
JustinDrake added a commit to JustinDrake/go-ipfs that referenced this pull request Jun 28, 2017
See ipfs#3998

Initial implementation for ipfs#3896

The function `peer.ExtractPublicKey()` is part of PR libp2p/go-libp2p-peer#14

cc @whyrusleeping

License: MIT
Signed-off-by: Justin Drake <drakefjustin@gmail.com>
@JustinDrake
Copy link
Contributor Author

JustinDrake commented Jun 28, 2017

@whyrusleeping For this PR I'm using the in-browser GitHub editor. I just created a new PR at #4020

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