Internal Module Accounts #11173
robert-zaremba
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Introduction
In ADR-28 we introduced a general mechanism for address generation which is safe to use with different key schemas. Mainly:
Modulefunction creates an address which can be used by users (eg to send coins there).Derive- a general function which can be used for more advanced constructions.For module owned, internal addresses we have
NewModuleAccountwhich operates on string. It is designed to take a module name as an argument to assure uniqueness. But it works with custom strings as well.Problems:
nameparameter forNewModuleAccountProposal
address.InternalModulewhich will return a special type:address.Modulekeeper.SendToInteranlModulewhich will requireaddress.Moduleand will rejectsdk.AccAddressauth.NewModuleAccount(without any precise date what we will do with it -- probably in the future we will fully migrate and delete it).References
Beta Was this translation helpful? Give feedback.
All reactions