-
-
Notifications
You must be signed in to change notification settings - Fork 323
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
Unable to import keys exported from Prysm #3941
Comments
This looks like the keystore generated by Prysm does not follow the schema as defined in the specification here In the JSON schema, |
Looks like Prysm added |
Yeah Prysm needs a new release. That PR isn’t in GA yet. Thanks!! |
Hey @yorickdowne ! Thank you for reporting, could you detail the command and directory structure that caused |
There's an entry script that does this:
And
If I change the filename like this:
then import works. |
I took a look into this and this is what I found out: We are explicitly matching for the format exported by the But in the cli documentation we state that file name which contains 'keystore' and has the '.json' extension will be attempted to be imported which is not what the code is doing. From the comment on the code, it looks like sticking with this format is a preventive measure. So the question now is: do we stick with this format and update the documentation appropriately? or do we update the code to be more lenient (making it inline with what the documentation says) |
IMO, it's a pretty restrictive requirement to have it follow the exact format exported by the My opinion would be to update the code to be more lenient to just Would those requirements affect your implementation in any negative way @yorickdowne ? |
That’d be perfect. Keystores are likely to come from staking-deposit-cli or an export from another client |
Describe the bug
Prysm saves the exported keys as
keystore-N.json
, with N an integer starting at 0. Lodestar does not recognize this filename format and will display "no keystores found".When renaming the file to
keystore-m_12381_3600_0_0_0-1650442778.json
, Lodestar finds it but fails to import it:The contents of keystore-0.json as created by Prysm for a Prater validator are:
The text was updated successfully, but these errors were encountered: