Cosmos-sdk: Restricted CoinKeeper

Created on 13 Mar 2018  路  4Comments  路  Source: cosmos/cosmos-sdk

@gamarin2 came up with a cool idea, maybe we want to have a coinkeeper which has restricted access to certain tokens - heck while we're at it may be cool to have restricted accounts too..... not to mention explicit separation of read vs. read/write functionality

Most helpful comment

It would be cool that module devs create "modes" for their mappers with more or less capabilities for each mode.

It's beginning to sound a lot like objcap...

All 4 comments

Yep some mapper's function are more sensitive than others. It would be cool that module devs create "modes" for their mappers with more or less capabilities for each mode.

If a module requires access to another module's mapper, app developer will be able to only pass an instance of said mapper that makes sense for the module. For example gov module needs access to a read/write instance of bank module's mapper, but for Atom only. It also needs access to staking module's mapper, but read-only.

It would be cool that module devs create "modes" for their mappers with more or less capabilities for each mode.

It's beginning to sound a lot like objcap...

Was this page helpful?
0 / 5 - 0 ratings