diff --git a/substrate/subkey/src/cli.yml b/substrate/subkey/src/cli.yml index 30e6be062624ba25d9accadf1de69071fece8a17..6e1a13dca8c550cb80d0879320b0d01a5336e1fc 100644 --- a/substrate/subkey/src/cli.yml +++ b/substrate/subkey/src/cli.yml @@ -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 diff --git a/substrate/subkey/src/main.rs b/substrate/subkey/src/main.rs index a89f7911ac3620b227b1bcf4f599a0ef5fe833a7..190921d750028aa63855cefea1ecc3d519233c3a 100644 --- a/substrate/subkey/src/main.rs +++ b/substrate/subkey/src/main.rs @@ -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),