Subkey generate KEYS for Kusama / Polkadot / Substrate / & more

Subkey is the more secure tool to generate KEYS Accounts for; Kusama / Polkadot / Substrate.

KUSAMA?

What is Kusama?

Kusama is a canary network for developers to run experiments in a Polkadot-like environment. Think of Kusama as an early proving ground for things like upgradeable runtimes, on-chain governance, and parachains.

Have fun on Kusama! Explore the politics, hone your validator setup, campaign for the council, or vie for a parachain spot. And most of all… expect chaos.

Kusama is owned by the folks who hold Kusama tokens (KSM). There’s no central kill switch. The community rules the network through on-chain governance.

Security caveat: Kusama is experimental! There are no guarantees.

Kusama Wiki

For play with Kusama tokens, AkA KSM needs one account and [subkey] is a more secure way to generate.

Generate a Kusama account using [subkey]

Kusama, A canary network for Polkadot experiments

#Kusama

https://kusama.network/

Kusama is coming this Summer 2019 and the more secure way for generating accounts is subkey from Parity team

https://substrate.dev/docs/en/ecosystem/subkey

Creating your account securely is your own responsibility.

Subkey is a key-generation utility that is developed alongside Substrate. Its main features are generating sr25519 and ed25519 key pairs, encoding SS58 addresses, and restoring keys from mnemonics and raw seeds. It can also create and verify signatures, including for encoded transactions.

Soft in this installation was Ubuntu 18.04

Install rust or update if need and tools

sudo apt install make clang pkg-config libssl-dev curl https://sh.rustup.rs -sSf | sh rustup update nightly rustup target add wasm32-unknown-unknown --toolchain nightly rustup update stable cargo install --git https://github.com/alexcrichton/wasm-gc

Install subkey one-line command:

cargo install --force --git https://github.com/paritytech/substrate subkey

Finished release [optimized] target(s) in 58m 29s (2 Cores + 8 RAM)

Generating yours KUSAMA Keys AkA accounts

After the installation you can disconnect the internet connection in the computer and use subkey on the same machine that is not connected to the internet for added security.

Generate an sr25519 key

subkey --network kusama generate

Results of the account and recovery info.

Secret phrase `lobster flock few equip connect boost excuse glass machine find wonder tattoo` is account:



Secret seed: 0x95b90eb1344e3aea40f4a6dc81622901a2ac39efb331c41db10c311bb9b46927



Public key (hex): 0xfe7fce341ff73e1db537daa4cc8c539997a8b0654b06cb81c47e4f067f55a65a Address (SS58): JL1eTcbzuZP99FjeySkDrMygNREPdbhRyV7iD5AsV4fDRcg

For even more security, use --words 24 (supports 12, 15, 18, 21, and 24):

subkey --network kusama generate --words 24

Address (SS58): Is your Public account for received KSM tokens

The output gives us the following information about our key:

Secret phrase (aka “Mnemonic Phrase”) — A series of English words that encodes the seed in a more human-friendly way. Mnemonic phrases were first introduced in Bitcoin (see BIP39) and make it much easier to write down your key by hand.

(aka “Mnemonic Phrase”) — A series of English words that encodes the seed in a more human-friendly way. Mnemonic phrases were first introduced in Bitcoin (see BIP39) and make it much easier to write down your key by hand. Secret Seed (aka “Private Key” or “Raw Seed”) — The minimum necessary information to restore the key pair. All other information is calculated from the seed.

(aka “Private Key” or “Raw Seed”) — The minimum necessary information to restore the key pair. All other information is calculated from the seed. Public Key (hex) — The public half of the cryptographic key pair in hexadecimal.

— The public half of the cryptographic key pair in hexadecimal. Address (SS58) (aka “Public Address”) — An SS58-encoded address based on the public key.

A Polkadot experiment.|

The Address (SS58) field is what you should use to claim your KSM tokens. Never share your Secret phrase or Secret seed , as these can both control your funds.

NOTE: Previous versions of subkey only generated Substrate addresses. If you do not want to generate a new seed, you can convert the Substrate address to a Kusama address by following this section.

Generate a Polkadot mainnet account using [subkey]

Polkadot mainnet launch Q4 2019 --network polkadot won't work on any testnets. it's mainnet only.

Generate an sr25519 key

subkey --network polkadot generate

For even more security, use --words 24 (supports 12, 15, 18, 21, and 24):

subkey --network polkadot generate --words 24

Generate a Substrate generic account using [subkey]

Generate an sr25519 key

subkey generate

For even more security, use --words 24 (supports 12, 15, 18, 21, and 24):

subkey generate --words 24

To generate an ed25519 key, pass the -e or --ed25519 flag:

subkey -e generate Secret phrase `expire stage crawl shell boss any story swamp skull yellow bamboo copy` is account:

Secret seed: 0xb034ad2704defa9dc0bea4ac8019fb0f805018f1be587cf04a03f9a033e3656b

Public key (hex): 0x3ff0766f9ebbbceee6c2f40d9323164d07e70c70994c9d00a9512be6680c2394

Address (SS58): 5DWYJiPBSFBUFah2W49oPPSsrCRvrY4N4VmLcSH9XfjKfZvh

See the available commands with

subkey -h



Parity Team <

Utility for generating and restoring with Substrate keys subkey 2.0.0Parity Team < admin@parity.io Utility for generating and restoring with Substrate keys USAGE:

subkey [FLAGS] [OPTIONS] [SUBCOMMAND] FLAGS:

-e, --ed25519 Use Ed25519/BIP39 cryptography

-h, --help Prints help information

-s, --sr25519 Use Schnorr/Ristretto x25519/BIP39 cryptography

-V, --version Prints version information OPTIONS:

-n, --network <network> Specify a network. One of substrate (default), polkadot and kusama.

-p, --password <password> The password for the key SUBCOMMANDS:

generate Generate a random account

help Prints this message or the help of the given subcommand(s)

inspect Gets a public key and a SS58 address from the provided Secret URI

sign Sign a message, provided on STDIN, with a given (secret) key

sign-transaction Sign transaction from encoded Call. Returns a signed and encoded

UncheckedMortalCompactExtrinsic as hex.

transfer Author and sign a Node balances::Transfer transaction with a given (secret) key

vanity Generate a seed that provides a vanity address

verify Verify a signature for a message, provided on STDIN, with a given (public or secret) key

Here

OPTIONS:

-n, --network <network>

Specify a network. One of substrate (default), polkadot and kusama.

NOTE: when Specify a network. One of substrate (default), polkadot and kusama or a number (for development) “More networks can be added here over time.”

See the subkey documentation or enter subkey --help for more usage examples.

More Subkey to Explore

Learn more by running subkey help or see the README.

Key pairs can also be generated in the PolkadotJS Apps UI. Try creating keys with the UI and restoring them with subkey or vice versa.

Restore the KUSAMA mainnet account in the explorer to delegate, play governance and more

.

Go to https://polkadot.js.org/apps/#/settings

Click address network prefix and select “Kusama (canary)”

Click Save & Reload

Go to Accounts section https://polkadot.js.org/apps/#/accounts

Click Add account

In this step to restore our Kusama account generated with subkey delete the mnemonic seed and write a Secret phrase corresponding to our account when was generated with subkey

Note: If the key was generated for Polkadot then beware --network polkadot won't work on any testnets. it's mainnet only.

Delete this mnemonic seed

Write a name, mnemonic seed, and some secured password

Click Save

Click Create and backup account after this, the account generated in subkey is store in https://polkadot.js.org/apps/#/accounts Accounts can restore it as many times as you want with your seed, be careful that it is on a secure computer, if someone gets your seed, they will have full control over your account and your funds.

More about polkadot.js

https://polkadot.js.org/

remember support melea Validator

Kusama is not a game.

Victor from melea one Kusama Validator and Polkadot Ambassador

https://meleatrust.com/polkadot/