How to Generate EOS Private and Public Keys


What are the Public and Private Keys?

To send EOS, you need an EOS account. Each account is linked to a public key, and this public key is in turn linked to a private key. A private key can always be used to generate its associated public key, but not vice versa. (A private key and its associated public key make up a key pair.)

These keys ensure that only you can access and perform actions with your account. All your public keys are visible by everyone using the network. The private keys, however, will never be shown. You must store your private keys in a safe location as it should not be shared with outsiders (unless you want your EOS to be stolen!).


Generate Private and Public Keys Using Scatter

If you haven't installed Scatter yet, follow this guide

Open and unlock the Scatter Plugin in Chrome. Locate the menu "Key Pairs" and select Create a New Key Pair. Select "Generate Key Pair". After you generated the keys, you can proceed by copying and saving the private and public keys.

generate-keys.jpg copy-keys.jpg

Be Careful! These keys are generated locally on your machine. If not saved, you will lose access to your account. You won't be able to take keys out of Scatter. Store and protect your keys!

Generate Private and Active Keys Using CLEOS

To use this specific guide (command-line tool) you must compile and run CLEOS on your machine.

This operation will have to be run twice, as we will change both active and owner keys.

# create a new keypair
cleos create key

# example the keys created:
# Private key: 5HpyL****
# Public key: EOS8wTER****

Remember to Store & Protect your new keys.

API Selector