[−][src]Trait sp_runtime::traits::OpaqueKeys
Opaque data type that may be destructured into a series of raw byte slices (which represent individual keys).
Associated Types
type KeyTypeIdProviders
[src]
Types bound to this opaque keys that provide the key type ids returned.
Required methods
pub fn key_ids() -> &'static [KeyTypeId]ⓘ
[src]
Return the key-type IDs supported by this set.
pub fn get_raw(&self, i: KeyTypeId) -> &[u8]ⓘ
[src]
Get the raw bytes of key with key-type ID i
.
Provided methods
pub fn get<T: Decode>(&self, i: KeyTypeId) -> Option<T>
[src]
Get the decoded key with key-type ID i
.
pub fn ownership_proof_is_valid(&self, _proof: &[u8]) -> bool
[src]
Verify a proof of ownership for the keys.