-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
crypto/keyring: fix offline keys migration #8639
Conversation
This pull request introduces 2 alerts when merging 5610039 into ef8dabc - view on LGTM.com new alerts:
|
This pull request introduces 2 alerts when merging f599220 into ef8dabc - view on LGTM.com new alerts:
|
This pull request introduces 2 alerts when merging 48286a3 into 7e481cc - view on LGTM.com new alerts:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
oh hold on - tests are failing
yes, working on them. I wanted others to test using a ledger if possible, updated the description for the same. |
testing is failing with ledger:
|
It fails with
|
Failure seems to happen in pubKey, err := legacy.PubKeyFromBytes(pubBytes)
if err != nil {
return err
} |
Is this PR ready for review or it's still in draft? |
if err != nil { | ||
return err | ||
} | ||
|
||
defer legacyKb.Close() | ||
defer func() { _ = legacyKb.Close() }() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why we need to do this?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I want to ignore that error, as it does not really matter whether the keybase can be closed or not (we are basically doing only read-only ops)
InfoImporter is implemented by those Keyring implementations that support import of Info objects.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ACK. I tested (last Friday) on local and ledger keys.
@mergifyhq backport release/v0.41.x |
Command
Hey, I reacted but my real name is @Mergifyio |
Fix `keys migrate` command (#8703) crypto/keyring: reinstate the InfoImporter interface InfoImporter is implemented by those Keyring implementations that support import of Info objects. Co-authored-by: Alessio Treglia <alessio@tendermint.com> Co-authored-by: Jonathan Gimeno <jgimeno@gmail.com> Co-authored-by: Amaury <1293565+amaurym@users.noreply.github.com>
* crypto/keyring: fix offline keys migration (#8639) Fix `keys migrate` command (#8703) crypto/keyring: reinstate the InfoImporter interface InfoImporter is implemented by those Keyring implementations that support import of Info objects. Co-authored-by: Alessio Treglia <alessio@tendermint.com> Co-authored-by: Jonathan Gimeno <jgimeno@gmail.com> Co-authored-by: Amaury <1293565+amaurym@users.noreply.github.com> * refresh golangci-lint * Rename InfoImporter -> LegacyInfoImporter (#8739) Avoid namespace clash with the InfoImporter interface that already exists in the v0.41 release series. * Revert "refresh golangci-lint" This reverts commit 38e1349. Co-authored-by: SaReN <sahithnarahari@gmail.com> Co-authored-by: Jonathan Gimeno <jgimeno@gmail.com> Co-authored-by: Amaury <1293565+amaurym@users.noreply.github.com>
Description
closes: #8633
I tested this branch against gaia, and works for migrating multisig keys. I'm not sure about the ledger though, having issues connecting mine. Would be nice if someone can test this.
Steps for testing
Before we can merge this PR, please make sure that all the following items have been
checked off. If any of the checklist items are not applicable, please leave them but
write a little note why.
docs/
) or specification (x/<module>/spec/
)godoc
comments.Unreleased
section inCHANGELOG.md
Files changed
in the Github PR explorerCodecov Report
in the comment section below once CI passes