Skip to content

Commit

Permalink
Keyring migrate command doc (#8979)
Browse files Browse the repository at this point in the history
* draft

* update

* address comments, ready for review

* delete thr last line

* Update docs/migrations/keyring.md

Co-authored-by: Barrie Byron <barrie.byron@tendermint.com>

* Update docs/migrations/keyring.md

Co-authored-by: Barrie Byron <barrie.byron@tendermint.com>

* Update docs/migrations/keyring.md

Co-authored-by: Barrie Byron <barrie.byron@tendermint.com>

* Update docs/migrations/keyring.md

Co-authored-by: Barrie Byron <barrie.byron@tendermint.com>

* Update docs/migrations/keyring.md

Co-authored-by: Barrie Byron <barrie.byron@tendermint.com>

* Update docs/migrations/keyring.md

Co-authored-by: Barrie Byron <barrie.byron@tendermint.com>

* Update docs/migrations/keyring.md

Co-authored-by: Barrie Byron <barrie.byron@tendermint.com>

* ready for review

* Update docs/migrations/keyring.md

Co-authored-by: Amaury <1293565+amaurym@users.noreply.github.com>

Co-authored-by: SaReN <sahithnarahari@gmail.com>
Co-authored-by: Barrie Byron <barrie.byron@tendermint.com>
Co-authored-by: Alessio Treglia <alessio@tendermint.com>
Co-authored-by: Amaury <1293565+amaurym@users.noreply.github.com>
(cherry picked from commit d5f5fe6)
  • Loading branch information
cyberbono3 authored and mergify-bot committed May 3, 2021
1 parent 75f84b5 commit 7b1a1b5
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 0 deletions.
1 change: 1 addition & 0 deletions docs/migrations/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,4 @@ This folder contains all the migration guides to update your app and modules to
1. [App and Modules Migration](./app_and_modules.md)
1. [Chain Upgrade Guide to v0.40](./chain-upgrade-guide-040.md)
1. [REST Endpoints Migration](./rest.md)
1. [Keyring Migration](./keyring.md)
31 changes: 31 additions & 0 deletions docs/migrations/keyring.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
<!--
order: 4
-->
# Keyring Migrate Quick Start

`keyring` is the Cosmos SDK mechanism to manage the public/private keypair. Cosmos SDK v0.42 (Stargate) introduced breaking changes in the keyring.

To upgrade your chain from v0.39 (Launchpad) and earlier to Stargate, you must migrate your keys inside the keyring to the latest version. For details on configuring and using the keyring, see [Setting up the keyring](../run-node/keyring.md).

This guide describes how to migrate your keyrings.

The following command migrates your keyrings:

```bash
Usage
simd keys migrate <old_home_dir>
```

The migration process moves key information from the legacy db-based Keybase to the [keyring](https://github.com/99designs/keyring)-based Keyring. The legacy Keybase persists keys in a LevelDB database in a 'keys' sub-directory of the client application home directory (`old_home_dir`). For example, `$HOME/.gaiacli/keys/` for [Gaia](https://github.com/cosmos/gaia).

You can migrate or skip the migration for each key entry found in the specified `old_home_dir` directory. Each key migration requires a valid passphrase. If an invalid passphrase is entered, the command exits. Run the command again to restart the keyring migration.

The `migrate` command takes the following flags:
- `--dry-run` boolean

- true - run the migration but do not persist changes to the new Keybase.
- false - run the migration and persist keys to the new Keybase.

Recommended: Use `--dry-run true` to test the migration without persisting changes before you migrate and persist keys.

- `--keyring-backend` string flag. It allows you to select a backend. For more detailed information about the available backends, you can read [the keyring guide](../run-node/keyring.md).

0 comments on commit 7b1a1b5

Please sign in to comment.