pub trait Config: Config {
Show 18 associated items type ConfirmPeriod: Get<BlockNumberFor<Self>>; type ValidationPeriod: Get<BlockNumberFor<Self>>; type AutorevocationPeriod: Get<BlockNumberFor<Self>>; type DeletionPeriod: Get<BlockNumberFor<Self>>; type ChangeOwnerKeyPeriod: Get<BlockNumberFor<Self>>; type IdtyCreationPeriod: Get<BlockNumberFor<Self>>; type CheckIdtyCallAllowed: CheckIdtyCallAllowed<Self>; type CheckAccountWorthiness: CheckAccountWorthiness<Self>; type IdtyData: Clone + Codec + Default + Eq + TypeInfo + MaybeSerializeDeserialize + MaxEncodedLen; type IdtyIndex: Parameter + Member + AtLeast32BitUnsigned + Codec + Default + Copy + MaybeSerializeDeserialize + Debug + MaxEncodedLen; type AccountLinker: LinkIdty<Self::AccountId, Self::IdtyIndex>; type IdtyNameValidator: IdtyNameValidator; type OnNewIdty: OnNewIdty<Self>; type OnRemoveIdty: OnRemoveIdty<Self>; type Signer: IdentifyAccount<AccountId = Self::AccountId>; type Signature: Parameter + Verify<Signer = Self::Signer>; type RuntimeEvent: From<Event<Self>> + IsType<<Self as Config>::RuntimeEvent>; type WeightInfo: WeightInfo;
}
Expand description

Configuration trait of this pallet.

The main purpose of this trait is to act as an interface between this pallet and the runtime in which it is embedded in. A type, function, or constant in this trait is essentially left to be configured by the runtime that includes this pallet.

Consequently, a runtime that wants to include this pallet must implement this trait.

Required Associated Types§

source

type ConfirmPeriod: Get<BlockNumberFor<Self>>

The period during which the owner can confirm the new identity.

source

type ValidationPeriod: Get<BlockNumberFor<Self>>

The period during which the identity has to be validated to become a member.

source

type AutorevocationPeriod: Get<BlockNumberFor<Self>>

The period before which an identity that lost membership is automatically revoked.

source

type DeletionPeriod: Get<BlockNumberFor<Self>>

The period after which a revoked identity is removed and the keys are freed.

source

type ChangeOwnerKeyPeriod: Get<BlockNumberFor<Self>>

The minimum duration between two owner key changes to prevent identity theft.

source

type IdtyCreationPeriod: Get<BlockNumberFor<Self>>

The minimum duration between the creation of two identities by the same creator. Should be greater than or equal to the certification period defined in the certification pallet.

source

type CheckIdtyCallAllowed: CheckIdtyCallAllowed<Self>

Management of the authorizations of the different calls related to identity.

source

type CheckAccountWorthiness: CheckAccountWorthiness<Self>

The type used to check account worthiness.

source

type IdtyData: Clone + Codec + Default + Eq + TypeInfo + MaybeSerializeDeserialize + MaxEncodedLen

Custom data to store in each identity.

source

type IdtyIndex: Parameter + Member + AtLeast32BitUnsigned + Codec + Default + Copy + MaybeSerializeDeserialize + Debug + MaxEncodedLen

A short identity index type.

source

type AccountLinker: LinkIdty<Self::AccountId, Self::IdtyIndex>

A type for linking account data to identity.

source

type IdtyNameValidator: IdtyNameValidator

Handle logic to validate an identity name.

source

type OnNewIdty: OnNewIdty<Self>

Handler called when a new identity is created.

source

type OnRemoveIdty: OnRemoveIdty<Self>

Handler called when an identity is removed.

source

type Signer: IdentifyAccount<AccountId = Self::AccountId>

Signing key type used for payload signatures.

source

type Signature: Parameter + Verify<Signer = Self::Signer>

Signature type for payload verification.

source

type RuntimeEvent: From<Event<Self>> + IsType<<Self as Config>::RuntimeEvent>

The overarching event type.

source

type WeightInfo: WeightInfo

Type representing the weight of this pallet

Object Safety§

This trait is not object safe.

Implementors§