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
@@ -5,7 +5,9 @@ authors = ["Parity Technologies <admin@parity.io>"]
edition = "2018"
[dependencies]
clap = { version = "2.33.0", features = ["yaml"] }
ansi_term = "0.12.1"
keystore = { package = "substrate-keystore", path = "../../core/keystore" }
node-cli = { path = "../../node/cli" }
primitives = { package = "substrate-primitives", path = "../../core/primitives" }
substrate-service = { path = "../../core/service" }
rand = "0.7.2"
structopt = "0.3.3"