pub trait IdentityVerifier<AccountId> {
    fn has_identity(who: &AccountId, fields: u64) -> bool;
    fn has_good_judgement(who: &AccountId) -> bool;
    fn super_account_id(who: &AccountId) -> Option<AccountId>;
Expand description

Interface required for identity verification.

Required Methods

Function that returns whether an account has an identity registered with the identity provider.

Whether an account has been deemed “good” by the provider.

If the identity provider allows sub-accounts, provide the super of an account. Should return None if the provider does not allow sub-accounts or if the account is not a sub.

Implementations on Foreign Types

The non-provider. Imposes no restrictions on account identity.