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

@@ -31,12 +31,14 @@ bs58 = "0.3.0"
byteorder = { version = "1.3.2", optional = true }
generic-array = { version = "0.13.2", default-features = false, features = ["serde", "more_lengths"] }
hex = "0.4.0"
hmac = "0.7.0"
itertools = { version = "0.8.1" }
lazy_static = "1.4.0"
log = { version = "0.4.8" }
memmap = { version = "0.6.2", optional = true }
num-derive = { version = "0.3" }
num-traits = { version = "0.2" }
pbkdf2 = { version = "0.3.0", default-features = false }
rand = { version = "0.6.5", optional = true }
rand_chacha = { version = "0.1.1", optional = true }
serde = "1.0.102"
@@ -47,3 +49,6 @@ sha2 = "0.8.0"
ed25519-dalek = { version = "1.0.0-pre.1", optional = true }
solana-logger = { path = "../logger", version = "0.21.0", optional = true }
solana-crate-features = { path = "../crate-features", version = "0.21.0", optional = true }
[dev-dependencies]
tiny-bip39 = "0.6.2"