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:
Module
function 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
NewModuleAccount
which 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:
name
parameter forNewModuleAccount
Proposal
address.InternalModule
which will return a special type:address.Module
keeper.SendToInteranlModule
which will requireaddress.Module
and will rejectsdk.AccAddress
auth.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