Trait pallet_identity::pallet::Config
source · 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§
sourcetype ConfirmPeriod: Get<BlockNumberFor<Self>>
type ConfirmPeriod: Get<BlockNumberFor<Self>>
The period during which the owner can confirm the new identity.
sourcetype ValidationPeriod: Get<BlockNumberFor<Self>>
type ValidationPeriod: Get<BlockNumberFor<Self>>
The period during which the identity has to be validated to become a member.
sourcetype AutorevocationPeriod: Get<BlockNumberFor<Self>>
type AutorevocationPeriod: Get<BlockNumberFor<Self>>
The period before which an identity that lost membership is automatically revoked.
sourcetype DeletionPeriod: Get<BlockNumberFor<Self>>
type DeletionPeriod: Get<BlockNumberFor<Self>>
The period after which a revoked identity is removed and the keys are freed.
sourcetype ChangeOwnerKeyPeriod: Get<BlockNumberFor<Self>>
type ChangeOwnerKeyPeriod: Get<BlockNumberFor<Self>>
The minimum duration between two owner key changes to prevent identity theft.
sourcetype IdtyCreationPeriod: Get<BlockNumberFor<Self>>
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.
sourcetype CheckIdtyCallAllowed: CheckIdtyCallAllowed<Self>
type CheckIdtyCallAllowed: CheckIdtyCallAllowed<Self>
Management of the authorizations of the different calls related to identity.
sourcetype CheckAccountWorthiness: CheckAccountWorthiness<Self>
type CheckAccountWorthiness: CheckAccountWorthiness<Self>
The type used to check account worthiness.
sourcetype IdtyData: Clone + Codec + Default + Eq + TypeInfo + MaybeSerializeDeserialize + MaxEncodedLen
type IdtyData: Clone + Codec + Default + Eq + TypeInfo + MaybeSerializeDeserialize + MaxEncodedLen
Custom data to store in each identity.
sourcetype IdtyIndex: Parameter + Member + AtLeast32BitUnsigned + Codec + Default + Copy + MaybeSerializeDeserialize + Debug + MaxEncodedLen
type IdtyIndex: Parameter + Member + AtLeast32BitUnsigned + Codec + Default + Copy + MaybeSerializeDeserialize + Debug + MaxEncodedLen
A short identity index type.
sourcetype AccountLinker: LinkIdty<Self::AccountId, Self::IdtyIndex>
type AccountLinker: LinkIdty<Self::AccountId, Self::IdtyIndex>
A type for linking account data to identity.
sourcetype IdtyNameValidator: IdtyNameValidator
type IdtyNameValidator: IdtyNameValidator
Handle logic to validate an identity name.
sourcetype OnRemoveIdty: OnRemoveIdty<Self>
type OnRemoveIdty: OnRemoveIdty<Self>
Handler called when an identity is removed.
sourcetype Signer: IdentifyAccount<AccountId = Self::AccountId>
type Signer: IdentifyAccount<AccountId = Self::AccountId>
Signing key type used for payload signatures.
sourcetype Signature: Parameter + Verify<Signer = Self::Signer>
type Signature: Parameter + Verify<Signer = Self::Signer>
Signature type for payload verification.
sourcetype RuntimeEvent: From<Event<Self>> + IsType<<Self as Config>::RuntimeEvent>
type RuntimeEvent: From<Event<Self>> + IsType<<Self as Config>::RuntimeEvent>
The overarching event type.
sourcetype WeightInfo: WeightInfo
type WeightInfo: WeightInfo
Type representing the weight of this pallet