Trait sp_runtime::traits::OpaqueKeys[][src]

pub trait OpaqueKeys: Clone {
    type KeyTypeIdProviders;
    fn key_ids() -> &'static [KeyTypeId]
Notable traits for &'_ [u8]
impl<'_> Read for &'_ [u8]impl<'_> Write for &'_ mut [u8]
;
fn get_raw(&self, i: KeyTypeId) -> &[u8]
Notable traits for &'_ [u8]
impl<'_> Read for &'_ [u8]impl<'_> Write for &'_ mut [u8]
; fn get<T: Decode>(&self, i: KeyTypeId) -> Option<T> { ... }
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

Return the key-type IDs supported by this set.

Get the raw bytes of key with key-type ID i.

Provided methods

Get the decoded key with key-type ID i.

Verify a proof of ownership for the keys.

Implementors