chain spec builder: add generate mode for authority keys (#3811)

* core: use trait object for genesis constructor

* chain-spec-builder: use structopt

* chain-spec-builder: add new command to generate authority keys

* chain-spec-builder: use ? in main

* chain-spec-builder: fix stored and printed suri from seed

* chain-spec-builder: add comment about created keystore folders

* chain-spec-builder: simplify file write
This commit is contained in:
André Silva
2019-10-15 15:07:56 +01:00
committed by GitHub
parent 9fe8ee4197
commit 6c0e9fb107
5 changed files with 250 additions and 57 deletions
+4 -2
View File
@@ -400,10 +400,12 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
name = "chain-spec-builder"
version = "2.0.0"
dependencies = [
"clap 2.33.0 (registry+https://github.com/rust-lang/crates.io-index)",
"ansi_term 0.12.1 (registry+https://github.com/rust-lang/crates.io-index)",
"node-cli 2.0.0",
"rand 0.7.2 (registry+https://github.com/rust-lang/crates.io-index)",
"structopt 0.3.3 (registry+https://github.com/rust-lang/crates.io-index)",
"substrate-keystore 2.0.0",
"substrate-primitives 2.0.0",
"substrate-service 2.0.0",
]
[[package]]