pub type CommitMap<T: Config<I>, I: 'static = ()> = StorageNMap<_GeneratedPrefixForStorageCommitMap<T, I>, (NMapKey<Blake2_128Concat, Proprietor<T>>, NMapKey<Blake2_128Concat, CommitReason<T, I>>), CommitInfo<T, I>, OptionQuery>;Expand description
Maps each Proprietor and the committed reason (CommitReason) to
their commitment information.
§Key Structure:
(Proprietor, CommitReason) -> CommitInfo
This storage enforces the invariant: one proprietor can have at most one
commitment per reason. Each commitment is tied to a single digest, and all
variant-specific details for that commitment are stored within CommitInfo.
Unlike DigestMap, which allows multiple digests per reason, CommitMap
enforces at most one CommitInfo per CommitReason for each proprietor
through its storage structure.
Storage type is [StorageNMap] with keys type (Proprietor < T >, CommitReason < T, I >) and value type CommitInfo < T, I >.
Aliased Type§
pub struct CommitMap<T: Config<I>, I: 'static = ()>(/* private fields */);