Files
lighthouse/book/src
Geoffry Song 8fde9a4016 Wallet creation: Make mnemonic length configurable, default to 24 words. (#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
```
2020-10-03 10:01:06 +10:00
..
2020-10-02 09:42:19 +00:00
2020-10-02 09:42:19 +00:00
2020-10-02 09:42:19 +00:00
2020-10-02 09:42:19 +00:00
2020-10-01 11:12:36 +10:00
2020-04-15 17:46:03 +10:00
2020-01-03 10:45:53 +11:00
2020-07-07 17:28:59 +10:00
2020-10-01 11:12:36 +10:00
2020-08-06 04:29:21 +00:00
2020-09-08 12:17:51 +00:00
2020-05-18 21:24:23 +10:00
2020-10-02 09:42:19 +00:00