Crate sp_session

Source
Expand description

Substrate core types around sessions.

Re-exports§

pub use runtime_api::*;

Modules§

runtime_api

Structs§

MembershipProof
Proof of membership of a specific key in a given session.

Traits§

GetSessionNumber
A utility trait to get a session number. This is implemented for MembershipProof below to fetch the session number the given session membership proof is for. It is useful when we need to deal with key owner proofs generically (i.e. just typing against the KeyOwnerProofSystem trait) but still restrict their capabilities.
GetValidatorCount
A utility trait to get the validator count of a given session. This is implemented for MembershipProof below and fetches the number of validators in the session the membership proof is for. It is useful when we need to deal with key owner proofs generically (i.e. just typing against the KeyOwnerProofSystem trait) but still restrict their capabilities.

Functions§

generate_initial_session_keys
Generate the initial session keys with the given seeds, at the given block and store them in the client’s keystore.

Type Aliases§

ValidatorCount
Number of validators in a given session.