mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-20 00:01:03 +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:
@@ -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