Skip to content

Dynamic capability key store (ADR / implementation) #5290

Closed

Description

Ref #5230 (comment)

Blocks IBC 1.0.0.

Does the SDK have any way of allocating & tracking store keys at runtime (e.g. dynamically)?
It seems like the current mechanism can only handle static allocation (where all store keys are passed to keepers in app.go)
I can envision a mechanism where keepers have a private map of store keys that can be altered at runtime, although some initialisation logic will need to exist to track what store keys need to be passed to keepers when someone starts the chain without syncing from genesis.

ICS 5 needs the ability for capability keys (memory addresses) to be dynamically generated as transactions are processed and to be passed around the state machine - but they cannot be serialised to the public Merkle store since they are memory addresses (will vary per machine, intentional for capability-ness).
Maybe a new abstraction of a "Capability Store" of some sort would help out here, that could keep a public map of identifiers and a private map of memory addresses, and reallocate appropriately on start-up.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Labels

S:blockedStatus: BlockedT: ADRAn issue or PR relating to an architectural decision record

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions