-
Notifications
You must be signed in to change notification settings - Fork 90
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
Output all combined keystores to a single directory #1836
Comments
Right now the $ tree ./validators-to-be-combined
validators-to-be-combined/
βββ 0x822c5310674f4fc4ec595642d0eab73d01c62b588f467da6f98564f292a975a0ac4c3a10f1b3a00ccc166a28093c2dcd
β βββ validator_keys
β βββ keystore-0.json
β βββ keystore-0.txt
βββ 0x8929b4c8af2d2eb222d377cac2aa7be950e71d2b247507d19b5fdec838f0fb045ea8910075f191fd468da4be29690106
β βββ validator_keys
β βββ keystore-0.json
β βββ keystore-0.txt that is, for each validator defined in the lock file one directory is created named after its public key and the private keys are placed in a subdirectory, called This format is compatible with Charon and should be compatible with any other validator client that supports the Ethereum keystore format. So @OisinKyne what you're suggesting is that instead of employing the directory structure I outlined earlier we do this: $ tree ./validators-to-be-combined
validators-to-be-combined/
βββ validator_keys
βββ keystore-0.json
βββ keystore-0.txt
βββ keystore-1.json
βββ keystore-1.txt Correct? |
Yes but maybe we take an explicit (but with a default) output path, rather than placing the generated folder into the input folder, for fear of collisions or confusion or something.
so if I made a folder
While you are doing this, can you make the default input directory .charon/cluster/, because that is the default output dir of |
Implemented, lmk if it works for you! |
Suggested a variable change, once made all good to merge and close. (Though would be good to user test this ideally. Think eridian already made a guide). |
I'll go ahead, merge your suggestions and then merge in main. Thanks! |
π― Problem to be solved
We currently combine keys and write the keystores to subdirectories of the input folder given to
charon combine
. This structure is not friendly for importing into validator clients.π οΈ Proposed solution
Approved design doc: link
Core team consensus on the proposed solution
Make an optional flag
--output-dir (default: "validator_keys")
that indicates the folder that keystores fromcharon combine
are written to.Here is the problem where this ticket arose from #1799 (comment)
π§ͺ Tests
π Additional acceptance criteria
β Out of Scope
If there is anything to highlight as out of scope for this issue, please outline it here.
The text was updated successfully, but these errors were encountered: