mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-12 08:51:09 +00:00
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:
@@ -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),
|
||||
|
||||
Reference in New Issue
Block a user