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

Generate new private key if identity file doesn't exist #473

Merged
merged 4 commits into from
May 28, 2022

Conversation

borzunov
Copy link
Member

No description provided.


with open(identity_path, "wb") as f:
f.write(protobuf.SerializeToString())
os.chmod(identity_path, 0o400)
Copy link
Member

Choose a reason for hiding this comment

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

awesome!

@codecov
Copy link

codecov bot commented May 28, 2022

Codecov Report

Merging #473 (01a50d5) into master (de6b4f5) will increase coverage by 0.23%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##           master     #473      +/-   ##
==========================================
+ Coverage   83.41%   83.64%   +0.23%     
==========================================
  Files          81       81              
  Lines        8066     8083      +17     
==========================================
+ Hits         6728     6761      +33     
+ Misses       1338     1322      -16     
Impacted Files Coverage Δ
hivemind/p2p/p2p_daemon.py 94.04% <100.00%> (+0.58%) ⬆️
hivemind/utils/crypto.py 91.54% <100.00%> (+0.24%) ⬆️
hivemind/utils/asyncio.py 99.13% <0.00%> (-0.87%) ⬇️
hivemind/optim/progress_tracker.py 98.90% <0.00%> (+1.09%) ⬆️
hivemind/averaging/matchmaking.py 87.79% <0.00%> (+4.16%) ⬆️

@borzunov borzunov merged commit 97deaee into master May 28, 2022
@borzunov borzunov deleted the gen-identity branch May 28, 2022 20:47
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.

2 participants