pub trait Config: Config {
Show 17 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 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>>

Period during which the owner can confirm the new identity.

source

type ValidationPeriod: Get<BlockNumberFor<Self>>

Period before which the identity has to be validated (become member).

source

type AutorevocationPeriod: Get<BlockNumberFor<Self>>

Period before which an identity who lost membership is automatically revoked.

source

type DeletionPeriod: Get<BlockNumberFor<Self>>

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

source

type ChangeOwnerKeyPeriod: Get<BlockNumberFor<Self>>

Minimum duration between two owner key changes.

source

type IdtyCreationPeriod: Get<BlockNumberFor<Self>>

Minimum duration between the creation of 2 identities by the same creator.

source

type CheckIdtyCallAllowed: CheckIdtyCallAllowed<Self>

Management of the authorizations of the different calls. The default implementation allows everything.

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.

source

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

custom type for account data

source

type IdtyNameValidator: IdtyNameValidator

Handle logic to validate an identity name

source

type OnNewIdty: OnNewIdty<Self>

On identity created.

source

type OnRemoveIdty: OnRemoveIdty<Self>

On identity removed.

source

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

Signing key of a payload

source

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

Signature of a payload

source

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

Because this pallet emits events, it depends on the runtime’s definition of an event.

source

type WeightInfo: WeightInfo

Type representing the weight of this pallet

Object Safety§

This trait is not object safe.

Implementors§