-
Notifications
You must be signed in to change notification settings - Fork 288
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
cli/deposit: significantly simplify validator keystore path #1618
Conversation
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.
Thanks for this. It is definitely a neater layout - the primary aim in how this works is to avoid any chance of losing generated keys accidentally. @rain-on & @jakehaugen do you have any thoughts on this change? In particular, did we deliberately include the public key in the actual .json
file names to so they didn't overlap if someone just collected them all up into a single directory?
@EdJoJob Would this change make things easier or more difficult with the automation you've been working on?
artemis/src/main/java/tech/pegasys/artemis/cli/deposit/EncryptedKeystoreWriter.java
Outdated
Show resolved
Hide resolved
The primary reason to use public key suffix of bls keystore file name is to avoid overwriting of generated keystores; also if someone decided to move/copy them all in one folder. Is the first 7 chars of pk meant to remain unique for all keys? With this approach, we should make sure to not overwrite if files already exist. Also, the pk(2, 9) should that be appended to validator/withdrawal.json to still keep them unique enough? |
artemis/src/main/java/tech/pegasys/artemis/cli/deposit/EncryptedKeystoreWriter.java
Outdated
Show resolved
Hide resolved
At the moment this will have no impact on my existing automation, in that it is just about to be created 😁 Good timing as far as I am concerned |
Thanks, I decided to restore a trimmed version of the pubkey in the filename.
|
artemis/src/main/java/tech/pegasys/artemis/cli/deposit/EncryptedKeystoreWriter.java
Outdated
Show resolved
Hide resolved
Done :) |
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.
LGTM. Thanks for this.
commit 1cc3466 Author: Sally MacFarlane <sally.macfarlane@consensys.net> Date: Mon Apr 27 15:44:58 2020 +1000 added subcommand in message (Consensys#1671) Signed-off-by: Sally MacFarlane <sally.macfarlane@consensys.net> commit af1c82a Author: bgravenorst <50852695+bgravenorst@users.noreply.github.com> Date: Mon Apr 27 11:38:15 2020 +1000 Update /validator/block API description. (Consensys#1664) * Update API description. Signed-off-by: Byron Gravenorst <byron.gravenorst@consensys.net> * Address feedback. Signed-off-by: Byron Gravenorst <byron.gravenorst@consensys.net> commit 6936481 Author: Paul Harris <paul.harris@consensys.net> Date: Mon Apr 27 10:35:52 2020 +1000 network cli test cases (Consensys#1667) * added a test case to show network option taking a URL. * split out some other command line options tests into their own modules, and added config file parsing. Signed-off-by: Paul Harris <paul.harris@consensys.net> commit f79f65f Author: Adrian Sutton <adrian.sutton@consensys.net> Date: Mon Apr 27 07:15:18 2020 +1000 Implement attestation gossip validation requirements (Consensys#1661) commit 56a3b87 Author: Raw Pong Ghmoa <58883403+q9f@users.noreply.github.com> Date: Sun Apr 26 22:53:11 2020 +0200 cli/deposit: significantly simplify validator keystore path (Consensys#1618) commit 381b9b5 Author: Anton Nashatyrev <Nashatyrev@users.noreply.github.com> Date: Sat Apr 25 21:12:08 2020 +0300 Optimize: batch BLS verification (Consensys#1632) * Add batch BLS verification * Parallelize batch BLS commit 340af2c Author: Cem Ozer <cemozer2018@u.northwestern.edu> Date: Fri Apr 24 12:50:10 2020 -0400 Remove headBockRoot from beaconBlocksByRange request (Consensys#1659)
commit 1cc3466 Author: Sally MacFarlane <sally.macfarlane@consensys.net> Date: Mon Apr 27 15:44:58 2020 +1000 added subcommand in message (Consensys#1671) Signed-off-by: Sally MacFarlane <sally.macfarlane@consensys.net> commit af1c82a Author: bgravenorst <50852695+bgravenorst@users.noreply.github.com> Date: Mon Apr 27 11:38:15 2020 +1000 Update /validator/block API description. (Consensys#1664) * Update API description. Signed-off-by: Byron Gravenorst <byron.gravenorst@consensys.net> * Address feedback. Signed-off-by: Byron Gravenorst <byron.gravenorst@consensys.net> commit 6936481 Author: Paul Harris <paul.harris@consensys.net> Date: Mon Apr 27 10:35:52 2020 +1000 network cli test cases (Consensys#1667) * added a test case to show network option taking a URL. * split out some other command line options tests into their own modules, and added config file parsing. Signed-off-by: Paul Harris <paul.harris@consensys.net> commit f79f65f Author: Adrian Sutton <adrian.sutton@consensys.net> Date: Mon Apr 27 07:15:18 2020 +1000 Implement attestation gossip validation requirements (Consensys#1661) commit 56a3b87 Author: Raw Pong Ghmoa <58883403+q9f@users.noreply.github.com> Date: Sun Apr 26 22:53:11 2020 +0200 cli/deposit: significantly simplify validator keystore path (Consensys#1618) commit 381b9b5 Author: Anton Nashatyrev <Nashatyrev@users.noreply.github.com> Date: Sat Apr 25 21:12:08 2020 +0300 Optimize: batch BLS verification (Consensys#1632) * Add batch BLS verification * Parallelize batch BLS commit 340af2c Author: Cem Ozer <cemozer2018@u.northwestern.edu> Date: Fri Apr 24 12:50:10 2020 -0400 Remove headBockRoot from beaconBlocksByRange request (Consensys#1659)
PR Description
currently the validator keys are stored in an unnecessary long path and file name, e.g.,
this pull request proposes to simplify the path significantly for usability handling encrypted key files:
Fixed Issue(s)
N/A