Expand description
Substrate core types around sessions.
Re-exports§
pub use runtime_api::*;
Modules§
Structs§
- Membership
Proof - Proof of membership of a specific key in a given session.
Traits§
- GetSession
Number - 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 theKeyOwnerProofSystem
trait) but still restrict their capabilities. - GetValidator
Count - 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 theKeyOwnerProofSystem
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§
- Validator
Count - Number of validators in a given session.