-
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
simd keys list #11939
Comments
What keyring backend? Are these new keys or imported? |
I can confirm running the following
|
@alexanderbez , local key, i did not change my key or anything, it was working with simd v0.45 to show the key, it suddenly does not work , i wonder if it is because i did tendermint key migration. does tendermint key migration also migration local account address key ? |
@glnro can you try simd v0.46, to list the keys. |
I had no problem doing the same with |
confirmed from tendermint team, this is not related to tendermint key migration ! |
Fwiw no problem running this on |
@AmauryM I saw you are looking at the crypto package. Did you come across anything special? |
Update, when working off of sdk
|
@alexanderbez btw these are all new keys |
Hey @glnro and @yaruwangway, I can take a look at this issue. I can think of 3 scenarios:
Does this seem correct? |
hi, a bit more info:
|
so it seems the decoding of keys by v0.45 is not compatible with other version keys. |
Hey, unfortunately I couldn't reproduce any of the errors above :(. Here's the full bash script I used: https://gist.github.com/amaurym/e6dbe3363b1b2fbd83ff0d415a52127b. I tested with:
@yaruwangway @glnro could you provide a similar bash script, where you could reproduce all errors you found? Ideally using simapp (not gaiad). Thanks! |
@AmauryM , the script you used does not include |
@yaruwangway In v0.46 we migrated keyriing from amino to protobuf. Doing what you say would require writing additional logic to migrate from proto back to amino, which I would like to avoid (amino is being deprecated). What's your use case to list v046 keys using a v045 node? |
@AmauryM I think one of the issues I'm running into for example is I've created keys on my local machine while testing with both binaries as we've had to go back and forth with versions during our work. Still trying to figure out how this is affecting our e2e test and I'm writing another test to confirm what you posted above. |
list v046 keys using a v045 node: list v045 keys using a v046 node: works! list v045 keys using a v045 node: works! |
are the above cases expected, due to migrated keyring from amino to protobuf ? |
The case "list v046 keys using a v045 node" is not expected, and should fail. Users shouldn't be able to show newer keys with older software. |
ok, thank you! |
## Description ref: #11362 I did **NOT** review the following folders, as they contain cryptography which I don't think I'm competent enough to give a useful review: - [ ] `crypto/xsalsa20symmetric` (new in v046, ported from TM i think) - [ ] `crypto/keys/secp256k1` (some new stuff in v046 too) Also performed some manual tests as part of #11939: - [x] Create keys on v0.45, make sure they still work in v0.46 #11939 (comment) - [x] Create new keys in v0.46 #11939 (comment) - [x] `--multisig` flag works with an address that's not in the keyring (see [repro](#9553)) --- ### Author Checklist *All items are required. Please add a note to the item if the item is not applicable and please add links to any relevant follow up issues.* I have... - [ ] included the correct [type prefix](https://github.com/commitizen/conventional-commit-types/blob/v3.0.0/index.json) in the PR title - [ ] added `!` to the type prefix if API or client breaking change - [ ] targeted the correct branch (see [PR Targeting](https://github.com/cosmos/cosmos-sdk/blob/main/CONTRIBUTING.md#pr-targeting)) - [ ] provided a link to the relevant issue or specification - [ ] followed the guidelines for [building modules](https://github.com/cosmos/cosmos-sdk/blob/main/docs/building-modules) - [ ] included the necessary unit and integration [tests](https://github.com/cosmos/cosmos-sdk/blob/main/CONTRIBUTING.md#testing) - [ ] added a changelog entry to `CHANGELOG.md` - [ ] included comments for [documenting Go code](https://blog.golang.org/godoc) - [ ] updated the relevant documentation or specification - [ ] reviewed "Files changed" and left comments if necessary - [ ] confirmed all CI checks have passed ### Reviewers Checklist *All items are required. Please add a note if the item is not applicable and please add your handle next to the items reviewed if you only reviewed selected items.* I have... - [ ] confirmed the correct [type prefix](https://github.com/commitizen/conventional-commit-types/blob/v3.0.0/index.json) in the PR title - [ ] confirmed `!` in the type prefix if API or client breaking change - [ ] confirmed all author checklist items have been addressed - [ ] reviewed state machine logic - [ ] reviewed API design and naming - [ ] reviewed documentation is accurate - [ ] reviewed tests and test coverage - [ ] manually tested (if applicable)
We seem to be hitting exactly this: |
Summary of Bug
when build simd from v0.45, when do
simd keys list
, i getError: Bytes left over in UnmarshalBinaryLengthPrefixed, should read 10 more bytes but have 163
it seems some of the keys cannot be parsed by simd 0.45, maybe some of them are added by other version of simd.
Version
Steps to Reproduce
For Admin Use
The text was updated successfully, but these errors were encountered: