Type Alias AuthorsDigest

Source
pub type AuthorsDigest<T: Config> = StorageMap<_GeneratedPrefixForStorageAuthorsDigest<T>, Blake2_128Concat, AuthorDigest<T>, Author<T>, OptionQuery>;
Expand description

Maps each AuthorDigest to its corresponding Author account.

Provides digest-to-account resolution, allowing higher-level logic to look up authors from commitment-based identifiers.

Keys are insert-only and MUST NOT be removed or mutated.

Indexes and pools may retain digests indefinitely, and authors must remain discoverable for any referenced digest.

Authors may resign and later re-enroll with the same digest. Hence stale digests must remain valid to allow withdrawal of funds or soft-support commitments.

Safe removal would require proving that no index or pool retains the digest, which is effectively impossible to guarantee within the subsystem.

In Future, regardless even if casual resignations are penalized via assigning new commitment-digests, this doesn’t need to be removed, unless the gurantees withhold, which generally cannot.

Useful for funding references, reward/penalty scheduling, and auditability.

Storage type is [StorageMap] with key type AuthorDigest < T > and value type Author < T >.

Aliased Type§

pub struct AuthorsDigest<T: Config>(/* private fields */);