pub trait IdentityVerifier<AccountId> {
// Required methods
fn has_required_identities(who: &AccountId) -> 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§
Sourcefn has_required_identities(who: &AccountId) -> bool
fn has_required_identities(who: &AccountId) -> bool
Function that returns whether an account has the required identities registered with the identity provider.
Sourcefn has_good_judgement(who: &AccountId) -> bool
fn has_good_judgement(who: &AccountId) -> bool
Whether an account has been deemed “good” by the provider.
Sourcefn super_account_id(who: &AccountId) -> Option<AccountId>
fn super_account_id(who: &AccountId) -> Option<AccountId>
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.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.
Implementations on Foreign Types§
Source§impl<AccountId> IdentityVerifier<AccountId> for ()
impl<AccountId> IdentityVerifier<AccountId> for ()
The non-provider. Imposes no restrictions on account identity.