Crate pallet_authority_members
source ·Expand description
§Duniter Authority Members Pallet
In a permissioned network, defining the set of authorities and selecting validators for the next session is crucial. The authority members pallet is responsible for this. Specifically, it:
- Manages a
Members
set with custom rules. - Implements the
SessionManager
trait from the FRAME session pallet.
§Entering the Set of Authorities
To become part of Duniter authorities, one must follow these steps:
- Become a member of the main web of trust.
- Request membership to the smith sub web of trust.
- Obtain enough certifications to gain smith membership.
- Claim membership to the set of authorities.
After becoming an authority, one can “go online” and “go offline” to enter or leave two sessions later.
§Some Vocabulary
Smiths are individuals allowed to forge blocks. Specifically, this entails:
- Smith status is required to become an authority.
- Authority status is required to become a validator.
- Validator status is required to add blocks.
Re-exports§
pub use weights::WeightInfo;
pub use pallet::*;
pub use traits::*;
Modules§
- Implementation of the Slashing execution logic.
- The
pallet
module in each FRAME pallet hosts the most important items needed to construct this pallet. - types 🔒Various basic types for use in the certification pallet.
Structs§
- Represents data associated with a member.
Functions§
Type Aliases§
- Simple index type with which we can count sessions.