From b8c2f40a6a4539c0fba6d27ae8a5f844a56d59d8 Mon Sep 17 00:00:00 2001 From: Andrew Nikitin Date: Mon, 13 Dec 2021 17:20:31 +0300 Subject: [PATCH] Add docs for how-to-setup keys with Ledger Nano devices Signed-off-by: Andrew Nikitin --- .../configure-new-validator.md | 33 +++++++++++++++++++ 1 file changed, 33 insertions(+) diff --git a/docs/setup-and-configure/configure-new-validator.md b/docs/setup-and-configure/configure-new-validator.md index 36a8560a8..bca0164e9 100644 --- a/docs/setup-and-configure/configure-new-validator.md +++ b/docs/setup-and-configure/configure-new-validator.md @@ -28,6 +28,8 @@ While the instructions listed here are specific to the cheqd testnet, a similar When you create a new key, a `mnemonic phrase` and `account address` will be printed. **Keep the mnemonic phrase safe** as this is the only way to restore access to the account if they keyring cannot be recovered. + P.S. in case of using Ledger Nano device it would be helpful to use [this instructions](#using-ledger-nano-device) + 3. **Get your node ID** Follow the guidance on [using cheqd CLI to manage nodes](../cheqd-cli/cheqd-cli-node-management.md) to fetch your node ID. @@ -139,6 +141,37 @@ If you need help or support, join our [**cheqd Community Slack**](http://cheqd.l Query the latest block. Open ` Cosmos > Install). +* Adding a new key +In order to use the hardware wallet address with the cli, the user must first add it via `cheqd-noded`. This process only records the public information about the key. + +To import the key first plug in the device and enter the device pin. Once you have unlocked the device navigate to the Cosmos app on the device and open it. + +To add the key use the following command: + +``` +cheqd-noded keys add --ledger +``` +Note + +The `--ledger` flag tells the command line tool to talk to the ledger device and the `--index` flag selects which HD index should be used. + +When running this command, the Ledger device will prompt you to verify the genereated address. Once you have done this you will get an output in the following form: +``` +$ cheqd-noded keys add test --ledger +- name: test + type: ledger + address: cheqd1zx9a7rsrmy5a2hakas0vnfwpadqwp3m327f2yt + pubkey: ‘{“@type”:“/cosmos.crypto.secp256k1.PubKey”,“key”:“Akm0MdDZpTVltoCpRmmWd/wxiosA9edjPlbNcirs4YO1"}’ + mnemonic: “” +``` + ## Next steps On completion of the steps above, you would have successfully bonded a node as validator to the cheqd testnet and participating in staking/consensus.