We should allow users to import and export keys generated in other wallets. All chains built with Cosmos SDK support exporting the unarmored private key hex. This same export method can be used in Keplr, Cosmostation, and Leap Wallet. To allow interoperability with all those wallets, the Archway CLI should allow users to import and export the private key hex.
Technical Details
Import
Export an unarmored private key hex from archwayd:
$ archwayd keys export --unarmored-hex --unsafe key-name
WARNING: The private key will be exported as an unarmored hexadecimal string.
USE AT YOUR OWN RISK. Continue? [y/N]: y
7bd0664ea...
Import the key from stdin or prompt the user if the stdin pipe is empty.
[!WARNING]
Do not add an argument for the private key, as this information will be stored in the shell history file).
Description
We should allow users to import and export keys generated in other wallets. All chains built with Cosmos SDK support exporting the unarmored private key hex. This same export method can be used in Keplr, Cosmostation, and Leap Wallet. To allow interoperability with all those wallets, the Archway CLI should allow users to import and export the private key hex.
Technical Details
Import
Export an unarmored private key hex from
archwayd
:Import the key from stdin or prompt the user if the stdin pipe is empty.
or
Import example:
Export
Reference code:
Tasks