Skip to content
Snippets Groups Projects
Commit 0ab26a9c authored by Simon Warta's avatar Simon Warta Committed by Gav Wood
Browse files

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`
parent 6edf23d1
No related merge requests found
......@@ -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
......
......@@ -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),
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment