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