-
Notifications
You must be signed in to change notification settings - Fork 3.8k
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
R4R: Refactor Bech32 Prefixes and Nomenclature of Validator Pubkey and Operator #2251
Conversation
Codecov Report
@@ Coverage Diff @@
## develop #2251 +/- ##
========================================
Coverage 63.73% 63.73%
========================================
Files 140 140
Lines 8642 8642
========================================
Hits 5508 5508
Misses 2755 2755
Partials 379 379 |
This is going to break all existing pubkeys / have impacts on people who've setup their accounts on their ledger right? Can we make a script to update your pubkey and address from the different bech32 formats as well. |
@ValarDragon I'm not totally sure what the Ledger stores. It might be the case this does not break the Ledger support as the underlying bytes of the address and key pairs are still the same. But let me test this. |
Confirmed |
@cosmos/cosmos-ui FYI breaking changes |
Any changes to bech32 encoding will not break any underlying private/public keys (although it might break databases which store a bech32ified string and expect a particular bech32 prefix). |
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.
Mostly LGTM, quick comments.
client/lcd/lcd_test.go
Outdated
foundVal = true | ||
} | ||
require.True(t, foundVal, "pkBech %v, operator %v", pkBech, validators[0].Operator) | ||
require.True(t, foundVal, "pkBech %v, operator %v", pkBech, validators[0].ConsPubKey) |
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 does this change the printf
? The error is wrong now
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.
Bad copy-pasta job -- good catch.
docs/clients/lcd-rest-api.yaml
Outdated
PubKey: | ||
type: string | ||
description: bech32 encoded public key | ||
example: cosmospub:zgnkwr7eyyv643dllwfpdwensmgdtz89yu73zq | ||
ValidatorPubKey: | ||
type: string | ||
description: bech32 encoded public key | ||
example: cosmosvalpub:zgnkwr7eyyv643dllwfpdwensmgdtz89yu73zq | ||
example: cosmosvaloperpub:zgnkwr7eyyv643dllwfpdwensmgdtz89yu73zq |
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.
Wait, is this not the consensus pubkey? If not, why does Voyager need the operator's public key?
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.
Indeed!
@cwgoes addressed your comments + merged in latest |
closes: #2221
Targeted PR against correct branch (see CONTRIBUTING.md)
Linked to github-issue with discussion and accepted design OR link to spec that describes this work.
Wrote tests
Updated relevant documentation (
docs/
)Added entries in
PENDING.md
with issue #rereviewed
Files changed
in the github PR explorerFor Admin Use: