We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
There is a problem when trying to import a Public key into the Keyring that was generated with old Keyring which were saved in database.
pubkeyArmor, err := legacyKb.ExportPubKey(keyName) if err != nil { return err } if err := keyring.ImportPubKey(keyName, pubkeyArmor); err != nil { return err }
We export the Public Key from a legacykb and import it back in the new keyring.
The new Keyring uses internally:
pubKey, err := legacy.PubKeyFromBytes(pubBytes) if err != nil { return err }
Which gives the error:
unmarshal to types.PubKey failed after 4 bytes (unrecognized prefix bytes 02669815): 0266981512EBBCDE96BB024594135859F81A967E0CDDBC620C23420DC92F11F061
Probably related to: #7987
The text was updated successfully, but these errors were encountered:
CC'ing @chengwenxi @fedekunze
Sorry, something went wrong.
@zmanian
Fixed in #8436
sahith-narahari
No branches or pull requests
Summary of Bug
There is a problem when trying to import a Public key into the Keyring that was generated with old Keyring which were saved in database.
Version
Steps to Reproduce
We export the Public Key from a legacykb and import it back in the new keyring.
The new Keyring uses internally:
Which gives the error:
Probably related to: #7987
For Admin Use
The text was updated successfully, but these errors were encountered: