lighthouse/account_manager/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
..
validator Implement VC API (#1657) 2020-10-02 09:42:19 +00:00
wallet Wallet creation: Make mnemonic length configurable, default to 24 words. (#1697) 2020-10-03 10:01:06 +10:00
common.rs Directory restructure (#1532) 2020-10-01 11:12:35 +10:00
lib.rs Directory restructure (#1532) 2020-10-01 11:12:35 +10:00