Simplify onboarding when using subkey restore (#1079)

* Switch order of `subkey restore` output

to macht the derivation chain: seed -> keypair -> pubkey -> address

* Use terms public key and address explicitly `subkey restore`
This commit is contained in:
Simon Warta
2018-11-09 14:30:07 +01:00
committed by Gav Wood
parent 6edf23d155
commit 0ab26a9c4f
2 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -3,7 +3,7 @@ author: "Parity Team <admin@parity.io>"
about: A substrate key utility
subcommands:
- restore:
about: Gets a SS58 public key from the provided seed phrase
about: Gets a public key and a SS58 address from the provided seed phrase
args:
- seed:
index: 1
+3 -3
View File
@@ -58,10 +58,10 @@ fn main() {
seed[..len].copy_from_slice(&raw_seed[..len]);
let pair = Pair::from_seed(&seed);
println!("Seed 0x{} is account:\n SS58: {}\n Hex: 0x{}",
println!("Seed 0x{} is account:\n Public key (hex): 0x{}\n Address (SS58): {}",
HexDisplay::from(&seed),
pair.public().to_ss58check(),
HexDisplay::from(&pair.public().0)
HexDisplay::from(&pair.public().0),
pair.public().to_ss58check()
);
},
_ => print_usage(&matches),