Trait darwinia_ecdsa_authority::pallet::Config  
source · [−]pub trait Config: Config {
    type Event: From<Event<Self>> + IsType<<Self as Config>::Event>;
    type WeightInfo: WeightInfo;
    type MaxAuthorities: Get<u32>;
    type ChainId: Get<&'static [u8]>;
    type SignThreshold: Get<Perbill>;
    type MessageRoot: Get<Option<H256>>;
    type SyncInterval: Get<Self::BlockNumber>;
    type MaxPendingPeriod: Get<Self::BlockNumber>;
}Expand description
Configuration trait of this pallet.
Implement this type for a runtime in order to customize this pallet.
Required Associated Types
type WeightInfo: WeightInfo
type MaxAuthorities: Get<u32>
type MaxAuthorities: Get<u32>
The maximum number of authorities.
type ChainId: Get<&'static [u8]>
type ChainId: Get<&'static [u8]>
Chain’s ID, which is using for constructing the message. (follow EIP-712 SPEC)
type SignThreshold: Get<Perbill>
type SignThreshold: Get<Perbill>
The signing threshold.
Once signatures_count / authorities_count >= threshold, we say the message is trusted.
type MessageRoot: Get<Option<H256>>
type MessageRoot: Get<Option<H256>>
The Darwinia message root.
If it changed, it means there are some new messages which are waiting for relaying.
type SyncInterval: Get<Self::BlockNumber>
type SyncInterval: Get<Self::BlockNumber>
The interval of checking the message root.
type MaxPendingPeriod: Get<Self::BlockNumber>
type MaxPendingPeriod: Get<Self::BlockNumber>
How long should we wait for the message root to be signed.
If the collecting new message root signatures process takes more than
MaxPendingPeriod, we will drop the root. And update the root with a new one.