pub type AccountOfUsername<T: Config> = StorageMap<_GeneratedPrefixForStorageAccountOfUsername<T>, Blake2_128Concat, BoundedVec<u8, <T as Config>::MaxUsernameLength>, T::AccountId, OptionQuery>;
Expand description

Reverse lookup from username to the AccountId that has registered it. The value should be a key in the IdentityOf map, but it may not if the user has cleared their identity.

Multiple usernames may map to the same AccountId, but IdentityOf will only map to one primary username.

Storage type is StorageMap with key type Username < T > and value type T :: AccountId.

Aliased Type§

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