Skip to content
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(cast): support cast wallet derive-private-key #6774

Merged
merged 4 commits into from
Jan 15, 2024
Merged

feat(cast): support cast wallet derive-private-key #6774

merged 4 commits into from
Jan 15, 2024

Conversation

fenghaojiang
Copy link
Contributor

@fenghaojiang fenghaojiang commented Jan 12, 2024

Motivation

support cast wallet get-private-key from mnemonic and mnemonic_index
And I think derive-private-key would be more appropriate.

This PR implemented the feature request from issue #6729.

Closes #6729

mnemonic_index would be 0 by default.

cast wallet derive-private-key "ten able puppy cart gadget change health must creek human bracket above"  
- Account:
Address:     0x688DB4fC60816A5838485d0ab9b4ef358f849c35
Private key: 0x9a900f2e6171a60dfd7871226c8a2a55e754678e62765d1ab189097e62dee418
cast wallet derive-private-key "ten able puppy cart gadget change health must creek human bracket above" 1
- Account:
Address:     0x81EbdaCabf245849412183f13cb83E9a7ffF2da4
Private key: 0x5fcd6ddc5471acbe3c0f48b43c5a0c4ca364b137a0340f01e38efbb85e7ce0ac

@fenghaojiang fenghaojiang changed the title feat: support cast wallet get-private-key feat(cast): support cast wallet get-private-key Jan 12, 2024
@fenghaojiang fenghaojiang changed the title feat(cast): support cast wallet get-private-key feat(cast): support cast wallet derive-private-key Jan 12, 2024
Copy link
Member

@DaniPopes DaniPopes left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, pending @Evalir and/or @mattsse

Copy link
Member

@mattsse mattsse left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

reasonable, lgtm

thank you

@mattsse mattsse merged commit 54cd6a4 into foundry-rs:master Jan 15, 2024
19 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

cast wallet get-private-key
3 participants