https://github.com/cosmos/cosmos-sdk/blob/develop/x/stake/keeper_keys.go#L15
Other code can modify this values to cause unexpected behavior
cc @rigelrozanski
Yeah need to be constants and modified to a different type
Closes by #1119
My bad, I misread what this issue was for. Relevant keys have been moved to /x/stake/stake.go
Pretty sure this has been addressed. Going to close this issue. Please reopen and send any 馃敟 -> @jackzampolin
This is not addressed. https://github.com/cosmos/cosmos-sdk/blob/develop/x/stake/keeper/key.go#L15
Pretty sure this has been addressed. Going to go ahead and close. Please reopen if I'm wrong.
It has not been addressed, e.g. https://github.com/cosmos/cosmos-sdk/blob/master/x/staking/types/key.go#L13
We should expose some of these for querying from the store.
(I'm not sure if this is a serious security concern, but the original state of affairs has not changed)
Indeed, string constants should remain exported (eg. for use in queriers). Any keys used for persistent in stores should be constants and private if possible.
Closing this issue as addressed.
Most helpful comment
We should expose some of these for querying from the store.