Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Keys migrate failed #8319

Closed
4 tasks
dreamer-zq opened this issue Jan 13, 2021 · 2 comments
Closed
4 tasks

Keys migrate failed #8319

dreamer-zq opened this issue Jan 13, 2021 · 2 comments

Comments

@dreamer-zq
Copy link
Collaborator

dreamer-zq commented Jan 13, 2021

Summary of Bug

Version

Gaia3.0

gaiad version --long

output:

name: gaia
server_name: gaiad
version: 3.0.0
commit: d974b27a8caf8cad3b06fbe4678871e4b0b69a51
build_tags: netgo,ledger
go: go version go1.15.6 darwin/amd64
....

Gaia2.0.14

gaiacli version --long

output:

name: gaia
server_name: gaiad
client_name: gaiacli
version: 2.0.14
commit: 86343f24f39dbc800922e5fb296b77b9d30ebaae
build_tags: netgo,ledger
go: go version go1.15.6 darwin/amd64

Steps to Reproduce

  1. use gaia2.0.14 to generate a new key
         gaiacli keys add t1 --home ./gaia_test
  2. use gaia3.0 to migrate keys from old db file
         gaiad keys migrate --home ./gaia_test

output:

Migrating key: 't1 (local)' ...
Skip key migration? [y/N]: N
Enter passphrase to decrypt key:
Error: unrecognized armor type "TENDERMINT PRIVATE KEY", expected: "TENDERMINT KEY INFO"

For Admin Use

  • Not duplicate issue
  • Appropriate labels applied
  • Appropriate contributors tagged
  • Contributor assigned/self-assigned
@dreamer-zq
Copy link
Collaborator Author

I found that when exporting private, I used TENDERMINT PRIVATE KEY, location:

armoredPriv, err := legacyKb.ExportPrivKey(keyName, password, migratePassphrase)
, but when importing keyring, Check with TENDERMINT KEY INFO is used. location:
bz, header, err := unarmorBytes(armorStr, blockTypeKeyInfo)

@amaury1093
Copy link
Contributor

I believe this is solved by #8639

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants