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
p2p: Add peerID and feature flag #5591
Conversation
Codecov Report
@@ Coverage Diff @@
## master #5591 +/- ##
==========================================
+ Coverage 54.97% 54.99% +0.02%
==========================================
Files 462 463 +1
Lines 64490 64515 +25
==========================================
+ Hits 35456 35483 +27
- Misses 26659 26661 +2
+ Partials 2375 2371 -4
... and 15 files with indirect coverage changes 📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
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.
looks good.
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.
Looks pretty straight forward. Just had a couple nits.
ad0a831
Summary
Adds some defaults for generating and loading peer IDs. Only supporting ed25519 which is one of the standard algorithms supported by libp2p.
Also adds some config options for enabling p2p in general and how to locate peerID keys.
Test Plan
Unit tests for now can simulate most of the behavior we care about w/ temp directories. Usage of the private key as peer ID will be further exercised once it's used in the host implementation.
Info
Closes #5580, Closes #5581