Trait pallet_verify_signature::pallet::Config
source · pub trait Config: Config {
type Signature: Verify<Signer = Self::AccountIdentifier> + Parameter + Encode + Decode + Send + Sync;
type AccountIdentifier: IdentifyAccount<AccountId = Self::AccountId>;
type WeightInfo: WeightInfo;
type BenchmarkHelper: BenchmarkHelper<Self::Signature, Self::AccountId>;
}
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. Configuration trait.
Required Associated Types§
sourcetype Signature: Verify<Signer = Self::AccountIdentifier> + Parameter + Encode + Decode + Send + Sync
type Signature: Verify<Signer = Self::AccountIdentifier> + Parameter + Encode + Decode + Send + Sync
Signature type that the extension of this pallet can verify.
sourcetype AccountIdentifier: IdentifyAccount<AccountId = Self::AccountId>
type AccountIdentifier: IdentifyAccount<AccountId = Self::AccountId>
The account identifier used by this pallet’s signature type.
sourcetype WeightInfo: WeightInfo
type WeightInfo: WeightInfo
Weight information for extrinsics in this pallet.
sourcetype BenchmarkHelper: BenchmarkHelper<Self::Signature, Self::AccountId>
type BenchmarkHelper: BenchmarkHelper<Self::Signature, Self::AccountId>
Helper to create a signature to be benchmarked.
Object Safety§
This trait is not object safe.