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

[Merged by Bors] - Wallet creation: Make mnemonic length configurable, default to 24 words. #1697

Closed
wants to merge 1 commit into from

Conversation

goffrie
Copy link
Contributor

@goffrie goffrie commented Oct 1, 2020

Issue Addressed

Fixes #1665.

Proposed Changes

lighthouse account_manager wallet create now generates a 24-word
mnemonic. The user can override this by passing --mnemonic-length 12
(or another legal bip39 length).

Additional Info

CLI --help:

        --mnemonic-length <MNEMONIC_LENGTH>       The number of words to use for the mnemonic phrase. [default: 24]

In case of an invalid argument:

% lighthouse account_manager wallet create --mnemonic-length 25
error: Invalid value for '--mnemonic-length <MNEMONIC_LENGTH>': Mnemonic length must be one of 12, 15, 18, 21, 24

@CLAassistant
Copy link

CLAassistant commented Oct 1, 2020

CLA assistant check
All committers have signed the CLA.

`lighthouse account_manager wallet create` now generates a 24-word
mnemonic. The user can override this by passing `--mnemonic-length 12`
(or another legal bip39 length).
Copy link
Member

@michaelsproul michaelsproul left a comment

Choose a reason for hiding this comment

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

Hey @goffrie, thanks very much for the PR, this looks great!

If you could please sign the contributor license agreement by following the link that the bot posted above, we can get this merged!

@michaelsproul michaelsproul added v0.3.0 For inclusion in v0.3.0 A0 UX-and-logs labels Oct 1, 2020
@michaelsproul
Copy link
Member

Nominating for inclusion in v0.3.0, as it's a major breaking change.

@goffrie
Copy link
Contributor Author

goffrie commented Oct 1, 2020

Signed :)

@paulhauner paulhauner self-requested a review October 2, 2020 05:38
Copy link
Member

@paulhauner paulhauner left a comment

Choose a reason for hiding this comment

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

Nice! Clean, intuitive and updated the docs. Love it 👍

bors r+

@paulhauner paulhauner added the ready-for-merge This PR is ready to merge. label Oct 2, 2020
bors bot pushed a commit that referenced this pull request Oct 2, 2020
…ds. (#1697)

## Issue Addressed

Fixes #1665.

## Proposed Changes

`lighthouse account_manager wallet create` now generates a 24-word
mnemonic. The user can override this by passing `--mnemonic-length 12`
(or another legal bip39 length).

## Additional Info

CLI `--help`:
```
        --mnemonic-length <MNEMONIC_LENGTH>       The number of words to use for the mnemonic phrase. [default: 24]
```

In case of an invalid argument:
```
% lighthouse account_manager wallet create --mnemonic-length 25
error: Invalid value for '--mnemonic-length <MNEMONIC_LENGTH>': Mnemonic length must be one of 12, 15, 18, 21, 24
```
@bors bors bot changed the title Wallet creation: Make mnemonic length configurable, default to 24 words. [Merged by Bors] - Wallet creation: Make mnemonic length configurable, default to 24 words. Oct 2, 2020
@bors bors bot closed this Oct 2, 2020
paulhauner pushed a commit that referenced this pull request Oct 3, 2020
…ds. (#1697)

## Issue Addressed

Fixes #1665.

## Proposed Changes

`lighthouse account_manager wallet create` now generates a 24-word
mnemonic. The user can override this by passing `--mnemonic-length 12`
(or another legal bip39 length).

## Additional Info

CLI `--help`:
```
        --mnemonic-length <MNEMONIC_LENGTH>       The number of words to use for the mnemonic phrase. [default: 24]
```

In case of an invalid argument:
```
% lighthouse account_manager wallet create --mnemonic-length 25
error: Invalid value for '--mnemonic-length <MNEMONIC_LENGTH>': Mnemonic length must be one of 12, 15, 18, 21, 24
```
@goffrie goffrie deleted the mnemonic-length branch November 9, 2020 06:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ready-for-merge This PR is ready to merge. UX-and-logs v0.3.0 For inclusion in v0.3.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Generate 24-word mnemonics by default
4 participants