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

Support for seed phrases #585

Merged
merged 9 commits into from
Jun 1, 2020
Merged

Support for seed phrases #585

merged 9 commits into from
Jun 1, 2020

Conversation

iamdefinitelyahuman
Copy link
Member

@iamdefinitelyahuman iamdefinitelyahuman commented May 31, 2020

What I did

Add support for seed phrases.

Closes #334

How I did it

  • Add the Accounts.from_mnemonic method, that relies on eth_account to do the heavy lifting.
  • Display a seed phrase when generating a new account via Accounts.add
  • Fix a bug preventing proper passing of mnemonics between network-config.yaml and ganache-cli

I also updated the docstring format in Accounts so everything is consistent.

How to verify it

Run tests. I added a few new cases.

Checklist

  • I have confirmed that my PR passes all linting checks
  • I have included test cases
  • I have updated the documentation
  • I have added an entry to the changelog

Copy link
Collaborator

@matnad matnad left a comment

Choose a reason for hiding this comment

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

Lgtm except a minor doc detail, thanks for this feature!

brownie/network/account.py Outdated Show resolved Hide resolved
Copy link
Collaborator

@matnad matnad left a comment

Choose a reason for hiding this comment

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

🥇

@iamdefinitelyahuman iamdefinitelyahuman merged commit b012d76 into master Jun 1, 2020
@iamdefinitelyahuman iamdefinitelyahuman deleted the feat-mnemonics branch June 1, 2020 10:44
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.

Add support for BIP39 mnemonics
2 participants