715 B
715 B
State
In persisted KV store
- Global unique capability index
- Capability owners
Indexes:
- Unique index:
[]byte("index") -> []byte(currentGlobalIndex) - Capability Index:
[]byte("capability_index") | []byte(index) -> ProtocolBuffer(CapabilityOwners)
In-memory KV store
- Initialized flag
- Mapping between the module and capability tuple and the capability name
- Mapping between the module and capability name and its index
Indexes:
- Initialized flag:
[]byte("mem_initialized") - RevCapabilityKey:
[]byte(moduleName + "/rev/" + capabilityName) -> []byte(index) - FwdCapabilityKey:
[]byte(moduleName + "/fwd/" + capabilityPointerAddress) -> []byte(capabilityName)