Allow secure keypair input for solana-validator cli (#7080)

* Allow secure keypair input for solana-validator cli

* feedback

* Add --skip-mnemonic-validation

* Update --identity to --identity-keypair

* Use struct instead of tuple

* Fix dependencies

* cargo fmt

* Add basic tests

* Use `seed phrase` instead of `mnemonic`

* Update passphrase prompt
This commit is contained in:
Justin Starry
2019-11-22 10:20:40 -05:00
committed by GitHub
parent c8166aed97
commit ce8d37984d
15 changed files with 252 additions and 94 deletions

View File

@ -304,7 +304,7 @@ EOF
if [[ ! -f config/validator-identity.json ]]; then
solana-keygen new -o config/validator-identity.json
fi
args+=(--identity config/validator-identity.json)
args+=(--identity-keypair config/validator-identity.json)
if [[ $airdropsEnabled != true ]]; then
args+=(--no-airdrop)