codechain-keystore-cli icon indicating copy to clipboard operation
codechain-keystore-cli copied to clipboard

Add migrate command

Open majecty opened this issue 7 years ago • 1 comments

The new version of KeyStore has changed serialization format. We should support users could migrate the old formatted file to a new formatted file easily.

majecty avatar Oct 30 '18 08:10 majecty

There was an issue about this. We need all passphrases in the old formatted file to migrate it.

I thinks that we could get each passphrase using interactive way. Like this.

# A line starts with $ means shell command
# A line starts with > means cckey's output
# A line starts with < means user's input

$ cckey migrate old_formatted_file --keys-path new_file
> Start migration
> migrating 0x000000000001 address
> Please write your passphrase
< "my passphrase1"

> migratiing 0x000000000002 address
> Please write your passphrase
< "my passphrase2"

> migration complete

majecty avatar Oct 30 '18 08:10 majecty