From 528052592332edd8cf6d83682b57ed0437d93933 Mon Sep 17 00:00:00 2001 From: Rakesh Ghatvisave Date: Fri, 19 Feb 2021 18:31:15 +0800 Subject: [PATCH 1/3] applying docathon feedback --- .../02_how-to-guides/how-to-import-a-key.md | 32 +++++++++++++++---- 1 file changed, 26 insertions(+), 6 deletions(-) diff --git a/docs/02_cleos/02_how-to-guides/how-to-import-a-key.md b/docs/02_cleos/02_how-to-guides/how-to-import-a-key.md index f8964db08a5..85924ed82d0 100644 --- a/docs/02_cleos/02_how-to-guides/how-to-import-a-key.md +++ b/docs/02_cleos/02_how-to-guides/how-to-import-a-key.md @@ -1,21 +1,41 @@ ## Goal -Import an key pair +Import a private key into a wallet -## Before you begin +## Before you Begin -* Install the currently supported version of `cleos` +Make sure you meet the following requirements: -* Understand the following: - * What is a public and private key pair +* Create a wallet using the `cleos wallet create` command. See the [How to Create a Wallet](../02_how-to-guides/how-to-create-a-wallet.md) section for instructions. +* [Open]() and [unlock]() the created wallet. +* Familiarize with the [`cleos wallet import`](../03_command-reference/wallet/import.md) command. + +* Install the currently supported version of `cleos`. + +[[info | Note]] +| `cleos` is bundled with the EOSIO software. [Installing EOSIO](../../00_install/index.md) will also install `cleos`. + + +* Understand what a [public](https://developers.eos.io/welcome/latest/glossary/index/#public-key) and [private](https://developers.eos.io/welcome/latest/glossary/index/#private-key) key pair is. ## Steps +Perform the following steps: + +1. Run the following command to import a private key into an existing wallet: ```sh cleos wallet import ``` -Type your private key. You should see something like this: +2. Enter your private key. +```console +cleos wallet import +private key: +``` + +**Example Output** + +The following example confirms that the private key is imported for the corresponding public key. ```console private key: imported private key for: EOS8FBXJUfbANf3xeDWPoJxnip3Ych9HjzLBr1VaXRQFdkVAxwLE7 From 34eff17b72dae750e493efb708c4f23138cb94f0 Mon Sep 17 00:00:00 2001 From: Rakesh Ghatvisave Date: Thu, 25 Mar 2021 19:28:00 +0800 Subject: [PATCH 2/3] applying revised how-to template --- .../02_how-to-guides/how-to-import-a-key.md | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/docs/02_cleos/02_how-to-guides/how-to-import-a-key.md b/docs/02_cleos/02_how-to-guides/how-to-import-a-key.md index 85924ed82d0..6765efd68bd 100644 --- a/docs/02_cleos/02_how-to-guides/how-to-import-a-key.md +++ b/docs/02_cleos/02_how-to-guides/how-to-import-a-key.md @@ -1,8 +1,8 @@ -## Goal +## Overview -Import a private key into a wallet +This how-to guide provides instructions on how to import a private key into a wallet. You can use the private key to authorize transactions in an EOSIO blockchain. -## Before you Begin +## Before you begin Make sure you meet the following requirements: @@ -18,16 +18,20 @@ Make sure you meet the following requirements: * Understand what a [public](https://developers.eos.io/welcome/latest/glossary/index/#public-key) and [private](https://developers.eos.io/welcome/latest/glossary/index/#private-key) key pair is. -## Steps +## Command Reference +See the following reference guide for command line usage and related options for the cleos command: +* [cleos wallet import](../03_command-reference/wallet/import.md) command and its parameters -Perform the following steps: +## Procedure + +The following steps show how to import a private key to an existing `keosd` wallet: 1. Run the following command to import a private key into an existing wallet: ```sh cleos wallet import ``` -2. Enter your private key. +2. Enter the private key and hit Enter. ```console cleos wallet import private key: @@ -40,3 +44,5 @@ The following example confirms that the private key is imported for the correspo ```console private key: imported private key for: EOS8FBXJUfbANf3xeDWPoJxnip3Ych9HjzLBr1VaXRQFdkVAxwLE7 ``` +## Summary +By following these instructions, you are able to import a private key to an existing wallet. From ba80f5987113d1b7aed2f1135680f1a5d2fb5970 Mon Sep 17 00:00:00 2001 From: Luis Paris Date: Mon, 24 May 2021 17:20:11 -0400 Subject: [PATCH 3/3] various edits in how-to import a key :doc --- .../02_how-to-guides/how-to-import-a-key.md | 37 +++++++++---------- 1 file changed, 18 insertions(+), 19 deletions(-) diff --git a/docs/02_cleos/02_how-to-guides/how-to-import-a-key.md b/docs/02_cleos/02_how-to-guides/how-to-import-a-key.md index 6765efd68bd..7c1fade30e3 100644 --- a/docs/02_cleos/02_how-to-guides/how-to-import-a-key.md +++ b/docs/02_cleos/02_how-to-guides/how-to-import-a-key.md @@ -1,48 +1,47 @@ ## Overview -This how-to guide provides instructions on how to import a private key into a wallet. You can use the private key to authorize transactions in an EOSIO blockchain. +This how-to guide provides instructions on how to import a private key into the `keosd` default wallet. You can use the private key to authorize transactions in an EOSIO blockchain. ## Before you begin Make sure you meet the following requirements: -* Create a wallet using the `cleos wallet create` command. See the [How to Create a Wallet](../02_how-to-guides/how-to-create-a-wallet.md) section for instructions. -* [Open]() and [unlock]() the created wallet. +* Create a default wallet using the `cleos wallet create` command. See the [How to Create a Wallet](../02_how-to-guides/how-to-create-a-wallet.md) section for instructions. +* Open and unlock the created wallet. * Familiarize with the [`cleos wallet import`](../03_command-reference/wallet/import.md) command. - * Install the currently supported version of `cleos`. - [[info | Note]] | `cleos` is bundled with the EOSIO software. [Installing EOSIO](../../00_install/index.md) will also install `cleos`. - - -* Understand what a [public](https://developers.eos.io/welcome/latest/glossary/index/#public-key) and [private](https://developers.eos.io/welcome/latest/glossary/index/#private-key) key pair is. +* Understand what a [public key](https://developers.eos.io/welcome/latest/glossary/index/#public-key) and [private key](https://developers.eos.io/welcome/latest/glossary/index/#private-key) is. ## Command Reference -See the following reference guide for command line usage and related options for the cleos command: + +See the following reference guide for `cleos` command line usage and related options: * [cleos wallet import](../03_command-reference/wallet/import.md) command and its parameters ## Procedure -The following steps show how to import a private key to an existing `keosd` wallet: +The following steps show how to import a private key to an existing `keosd` default wallet: -1. Run the following command to import a private key into an existing wallet: +1. Run the following command to import a private key into the default wallet. The command prompts to enter a private key: ```sh cleos wallet import ``` - -2. Enter the private key and hit Enter. ```console -cleos wallet import private key: ``` -**Example Output** - -The following example confirms that the private key is imported for the corresponding public key. +2. Enter the private key and hit Enter. +```sh +*** +``` +**Example Output** +The command confirms that the private key is imported correctly by displaying the corresponding public key: ```console -private key: imported private key for: EOS8FBXJUfbANf3xeDWPoJxnip3Ych9HjzLBr1VaXRQFdkVAxwLE7 +imported private key for: EOS8FBXJUfbANf3xeDWPoJxnip3Ych9HjzLBr1VaXRQFdkVAxwLE7 ``` + ## Summary -By following these instructions, you are able to import a private key to an existing wallet. + +By following these instructions, you are able to import a private key to the default wallet.