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

pub trait OpaqueKeys: Clone {
    type KeyTypeIdProviders;
    pub fn key_ids() -> &'static [KeyTypeId]

Notable traits for &'_ mut [u8]

impl<'_> Write for &'_ mut [u8]impl<'_> Read for &'_ [u8]
;
pub fn get_raw(&self, i: KeyTypeId) -> &[u8]

Notable traits for &'_ mut [u8]

impl<'_> Write for &'_ mut [u8]impl<'_> Read for &'_ [u8]
; pub fn get<T: Decode>(&self, i: KeyTypeId) -> Option<T> { ... }
pub fn ownership_proof_is_valid(&self, _proof: &[u8]) -> bool { ... } }

Opaque data type that may be destructured into a series of raw byte slices (which represent individual keys).

Associated Types

type KeyTypeIdProviders

Types bound to this opaque keys that provide the key type ids returned.

Loading content...

Required methods

pub fn key_ids() -> &'static [KeyTypeId]

Notable traits for &'_ mut [u8]

impl<'_> Write for &'_ mut [u8]impl<'_> Read for &'_ [u8]

Return the key-type IDs supported by this set.

pub fn get_raw(&self, i: KeyTypeId) -> &[u8]

Notable traits for &'_ mut [u8]

impl<'_> Write for &'_ mut [u8]impl<'_> Read for &'_ [u8]

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

Loading content...

Provided methods

pub fn get<T: Decode>(&self, i: KeyTypeId) -> Option<T>

Get the decoded key with key-type ID i.

pub fn ownership_proof_is_valid(&self, _proof: &[u8]) -> bool

Verify a proof of ownership for the keys.

Loading content...

Implementors

impl OpaqueKeys for UintAuthorityId[src]

type KeyTypeIdProviders = ()

Loading content...