referrerpolicy=no-referrer-when-downgrade
pub trait Config: Config + Config {
    type KeyOwnerProof: Parameter + GetSessionNumber + GetValidatorCount;
    type KeyOwnerIdentification: Parameter;
    type KeyOwnerProofSystem: KeyOwnerProofSystem<(KeyTypeId, ValidatorId), Proof = Self::KeyOwnerProof, IdentificationTuple = Self::KeyOwnerIdentification>;
    type HandleReports: HandleReports<Self>;
    type WeightInfo: WeightInfo;
    type BenchmarkingConfig: BenchmarkingConfiguration;
}
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 KeyOwnerProof: Parameter + GetSessionNumber + GetValidatorCount

The proof of key ownership, used for validating slashing reports. The proof must include the session index and validator count of the session at which the offence occurred.

source

type KeyOwnerIdentification: Parameter

The identification of a key owner, used when reporting slashes.

source

type KeyOwnerProofSystem: KeyOwnerProofSystem<(KeyTypeId, ValidatorId), Proof = Self::KeyOwnerProof, IdentificationTuple = Self::KeyOwnerIdentification>

A system for proving ownership of keys, i.e. that a given key was part of a validator set, needed for validating slashing reports.

source

type HandleReports: HandleReports<Self>

The slashing report handling subsystem, defines methods to report an offence (after the slashing report has been validated) and for submitting a transaction to report a slash (from an offchain context). NOTE: when enabling slashing report handling (i.e. this type isn’t set to ()) you must use this pallet’s ValidateUnsigned in the runtime definition.

source

type WeightInfo: WeightInfo

Weight information for extrinsics in this pallet.

source

type BenchmarkingConfig: BenchmarkingConfiguration

Benchmarking configuration.

Object Safety§

This trait is not object safe.

Implementors§