-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
feat(anvil/cast): mnemonic generation #6066
Conversation
I'll update the doc once it's merged |
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.
straightforward! some convo around output/commands:
This is also gonna need a rebase—sorry, lots of moving parts right now! |
8971374
to
b8c3497
Compare
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.
nice! pushed a smol commit to remove unwraps—thanks!
Added some new options in Anvil and Cast to ease mnemonic generation.
Cast
Added a "new-mnemonic" (or
nm
) option to generate a new mnemonic and generate a requested number of accounts from the mnemonic.Example:
cast wallet nm --words 12 --accounts 6
Generates a 12 words mnemonic and displays the first 6 accounts derived from that mnemonic.
Anvil
Added 2 options:
mnemonic-random
to start Anvil with a randomly generated mnemonicmnemonic-seed
to provide a seed that generates a mnemonic. Useful for testing so that the base accounts are always the sameExamples: