-
Notifications
You must be signed in to change notification settings - Fork 353
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
Existing Mnemonic #123
Existing Mnemonic #123
Conversation
It generates different keys when inputting the mnemonic phrase (with no password) that was generated using the existing tool from master branch. |
@unexpectedbit did you compare to keys generated with the current master, or with a previous master? Afaik there were recent changes to the key derivation algorithm, so old keys might not be reproducible even without this PR. |
After manually modifying the master branch files with changes from this pull request, the correct (same) keys are generated! |
This may be due to the changes to the key derivation algorithm mentioned above, but I was unable to create the same keys, I was however able to do so using the fork that @torfbolt created. |
@rev3ks Did you try generating the keys using the "existing_mnemonic" branch files or did you modify "master" branch files with code changes from this PR? I think that the rest of code in files of "existing_mnemonic" branch is obsolete and therefore generates different keys. |
I used this branch not master and ran |
* dev: Clean checksum output Special snowflake native shasum for macos Persist envars by making them a part of the pyinstaller process in makefile Add Windows build SHA1 -> SHA256 Revert, the 2nd revert change on venv activation Adds SHA256 checksums to circleci and makes builds determanistic.
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.
My first pass. 👀 Good job!
Co-authored-by: Hsiao-Wei Wang <[email protected]>
I was not able to re-generate the same public keys using the seed. |
The BLS library version was IETF draft 02 when Medalla was launched, but now it's IETF BLS draft 04. Unfortunately, the KeyGen algorithm was changed when 02->04 so you're unable to use this PR to re-generate the early Medalla keys. 😢 The IETF BLS draft 04 will be the BLS version for phase 0 launch. You can also use it to re-generate the Zinken testnet keys. Sorry for the confusion! |
Yep, saw that. No problem. This PR will come in handy for those who lost their validator keys. |
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.
- Some missing code during resolving commit conflicts.
- Fix Dockerfile and Makefile in #123 #139 fixes the Dockerfile and Makefile
Fix Dockerfile and Makefile in #123
`type=click.IntRange(0, 2**32)` got corrected to `type=click.IntRange(0, 2**32 - 1)` Co-authored-by: Hsiao-Wei Wang <[email protected]>
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.
I pushed some minor fixes her and it LGTM 👍
#143 added the cli key regeneration test case.
Co-authored-by: Carl Beekhuizen <[email protected]>
…tion Add cli test_regeneration
U burnt me |
…ockerfile Fix Dockerfile and Makefile in ethereum#123
Existing Mnemonic
Adds support for existing mnemonics (with automatic language detection) and deriving keys from a non-0 index to start.
#94 and #122 are others' attempts at this, but former doesn't check the mnemonic and the latter doesn't offer start-indices.