You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The module account addresses we currently have don't follow ADR-028. I think we simply never bothered to migrate them to ADR-028. Currently, for example for "gov", the module address is:
returnfmt.Errorf("address %s cannot be derived from the module name '%s'", ma.Address, ma.Name)
}
It should use the address.Hash("module", moduleName) function.
Proposal
Change the ModuleAccount validation function to use ADR-028 (i.e. with "module" prefix)
Do a migration to migrate all addresses
Alternative proposal
We could also change ADR-028 to not use the "module" prefix for module acct addresses. I'm currently not sure of the security implications of this though.
The text was updated successfully, but these errors were encountered:
Summary of Bug
The module account addresses we currently have don't follow ADR-028. I think we simply never bothered to migrate them to ADR-028. Currently, for example for "gov", the module address is:
However, ADR-028 defines the module account addresses as:
which gives:
Version
6ae5641
Steps to Reproduce
Also, the ModuleAccount's Validate function is incorrect in validating its address:
cosmos-sdk/x/auth/types/account.go
Lines 239 to 241 in 6ae5641
It should use the
address.Hash("module", moduleName)
function.Proposal
Alternative proposal
We could also change ADR-028 to not use the
"module"
prefix for module acct addresses. I'm currently not sure of the security implications of this though.The text was updated successfully, but these errors were encountered: