Skip to content
Snippets Groups Projects
Commit ca3f54b4 authored by Dan Forbes's avatar Dan Forbes Committed by GitHub
Browse files

Document crypto key identifiers (#5750)

parent aabbf529
No related merge requests found
......@@ -992,19 +992,19 @@ impl sp_std::fmt::Display for CryptoTypePublicPair {
pub mod key_types {
use super::KeyTypeId;
/// Key type for Babe module, build-in.
/// Key type for Babe module, built-in. Identified as `babe`.
pub const BABE: KeyTypeId = KeyTypeId(*b"babe");
/// Key type for Grandpa module, build-in.
/// Key type for Grandpa module, built-in. Identified as `gran`.
pub const GRANDPA: KeyTypeId = KeyTypeId(*b"gran");
/// Key type for controlling an account in a Substrate runtime, built-in.
/// Key type for controlling an account in a Substrate runtime, built-in. Identified as `acco`.
pub const ACCOUNT: KeyTypeId = KeyTypeId(*b"acco");
/// Key type for Aura module, built-in.
/// Key type for Aura module, built-in. Identified as `aura`.
pub const AURA: KeyTypeId = KeyTypeId(*b"aura");
/// Key type for ImOnline module, built-in.
/// Key type for ImOnline module, built-in. Identified as `imon`.
pub const IM_ONLINE: KeyTypeId = KeyTypeId(*b"imon");
/// Key type for AuthorityDiscovery module, built-in.
/// Key type for AuthorityDiscovery module, built-in. Identified as `audi`.
pub const AUTHORITY_DISCOVERY: KeyTypeId = KeyTypeId(*b"audi");
/// Key type for staking, built-in.
/// Key type for staking, built-in. Identified as `stak`.
pub const STAKING: KeyTypeId = KeyTypeId(*b"stak");
/// A key type ID useful for tests.
pub const DUMMY: KeyTypeId = KeyTypeId(*b"dumy");
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment