Skip to content

Support for seed phrases#585

Merged
iamdefinitelyahuman merged 9 commits intomasterfrom
feat-mnemonics
Jun 1, 2020
Merged

Support for seed phrases#585
iamdefinitelyahuman merged 9 commits intomasterfrom
feat-mnemonics

Conversation

@iamdefinitelyahuman
Copy link
Copy Markdown
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
Copy Markdown
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!

Copy link
Copy Markdown
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