-
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
Staking use sdk.AccAddress instead of sdk.ValAddress #1910
Comments
Related to #1902 |
Maybe - isn't this just caused by the current implementation which references validators by owner address (which is an |
yeah it's related because we want to use Val Bech32 on the owner address just to not confuse delegators as per a series of community discussions. Simultaneously we want to switch all use of the Val Bech32 to represent this owner address (just bech'd with val in the address) and not the Tendermint Validator signing address - nothing in in the Gaia CLI (except maybe an advanced user suggestion or two) should be using the Tendermint validator signing address |
Please update this spec if you make any changes to the semantics of https://github.com/cosmos/cosmos-sdk/blob/develop/docs/spec/other/bech32.md |
@zmanian thanks for the link! - yeah I'd propose the following changes:
It was on purpose - the index is supposed to be the validator operator (aka. "owner") not the Tendermint signing key which is what sdk.ValAddress is currently bech'd too. I think we were missing another bech key here which is "signing" key which is to mostly be used in the back end and rarely referenced by users (pretty much only during validator creation / changing the Tendermint key) - if we introduce this distinction I think we alleviate a lot of confusion the community is having |
I think "validator owner address" is a sufficiently important distinction to merit its own prefix which isn't used for anything else, and that we should then use a new prefix for Tendermint signing keys and associated addresses (not entirely sure if that's what you're proposing @rigelrozanski). |
@cwgoes -> yes your statement is exactly what I was attempting to say :) |
Thank you for the clarification guys. |
How does a user find out their validator owner address? They can't just change the prefix on what they see in gaiacli keys list cause the prefix is included in the crc bits. |
Good point - we'll need to add an additional command for this purpose, or perhaps a flag to |
Summary of Bug
Most of the validator addresses are declared as sdk.AccAddress instead of sdk.ValAddress is that on purpose? sdk.AccAddress has another bech32 prefix then sdk.ValAddress and I would recommend using the latter.
Steps to Reproduce
For Admin Use
The text was updated successfully, but these errors were encountered: