EOSIO Tutorial: Development Public Key vs eosio development key

EOS.IO Asked by gofly on September 19, 2020

Many questions, thanks in advance for any help.

In the eosio tutorial (1.4 Create dev wallet) I have created a wallet and the message returned is:

Created new private key with a public key of: "EOS7yPf8nD...

This is called the "development public key" by the step #4 & #5 in the docs.
Step #6 introduces the eosio development key, and then we issue the command:

cleos wallet import

and it asks for the "eosio development key", which is "5KQwrPb…". The definition of this command is: Imports private key into wallet

Question #1: Have I imported the private key of: "EOS7yPf8nD…" into wallet?

Question #2: Is the eosio dev key used to allow us to import keys into wallet?

Question #3: How do I verify or even identify these keys? (aka Is it for "default"?)

Moving to 1.6 Create Test Accounts we now create accounts. We issue the command:

cleos create account eosio bob EOS7yPf8nD...

We place "bob" in the "default wallet", using the wallet key "EOS7yPf8nD…"

Last question: Did I do this correct? I have the account and the wallet with the same keys! That does not feel correct to me. I got lost somewhere?

One Answer

The wallet itself comes with its own secret key when it generates the wallet keys.

Creating wallet: default
Save password to use in the future to unlock this wallet.
Without password imported keys will not be retrievable.

This key will be used to unlock your wallet to import additional keys into your wallet. You may use this secret key to check which private keys are imported in your wallet by performing the following:

cleos wallet private_keys

Inside you will see an array of arrays. The first element in the array is the public key. While the second is the private. All corresponding Public Keys generally begin with EOS.

You may also view all public keys by performing.

cleos wallet keys

Anyway, the first Public Key you generated should be used for your development purposes and should be the one you submit into the documentation so the rest of your documentation syncs up.

Hope this answers some if not all of your questions.

Correct answer by Stuyk on September 19, 2020

Add your own answers!

Related Questions

What is the difference between std::string and eosio::string?

1  Asked on January 5, 2022 by phillip-hamnett-eos42


How to use scatter without node.js?

2  Asked on December 11, 2021


Ico smart contract update

2  Asked on November 22, 2021 by efraim


How does one print an iso timestamp in a smart contract

1  Asked on August 20, 2021 by chris-de-jong


can’t generate abi when using map

1  Asked on August 20, 2021 by vishal-singh


Action setprods on EOSIO v2.0 private chain

2  Asked on August 20, 2021 by scott-owen


How to unstake ALL my EOS from EOS Voter Greymass

1  Asked on August 20, 2021 by gianmaria-toccotelli


Ask a Question

Get help from others!

© 2023 All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP