[][src]Trait sp_session::SessionKeys

pub trait SessionKeys<Block: BlockT>: Core<Block> {
    pub fn generate_session_keys(
        &self,
        __runtime_api_at_param__: &BlockId<Block>,
        seed: Option<Vec<u8>>
    ) -> Result<Vec<u8>, Self::Error> { ... }
pub fn generate_session_keys_with_context(
        &self,
        __runtime_api_at_param__: &BlockId<Block>,
        context: ExecutionContext,
        seed: Option<Vec<u8>>
    ) -> Result<Vec<u8>, Self::Error> { ... }
pub fn decode_session_keys(
        &self,
        __runtime_api_at_param__: &BlockId<Block>,
        encoded: Vec<u8>
    ) -> Result<Option<Vec<(Vec<u8>, KeyTypeId)>>, Self::Error> { ... }
pub fn decode_session_keys_with_context(
        &self,
        __runtime_api_at_param__: &BlockId<Block>,
        context: ExecutionContext,
        encoded: Vec<u8>
    ) -> Result<Option<Vec<(Vec<u8>, KeyTypeId)>>, Self::Error> { ... } }

Session keys runtime api.

Provided methods

pub fn generate_session_keys(
    &self,
    __runtime_api_at_param__: &BlockId<Block>,
    seed: Option<Vec<u8>>
) -> Result<Vec<u8>, Self::Error>
[src]

Generate a set of session keys with optionally using the given seed. The keys should be stored within the keystore exposed via runtime externalities.

The seed needs to be a valid utf8 string.

Returns the concatenated SCALE encoded public keys.

pub fn generate_session_keys_with_context(
    &self,
    __runtime_api_at_param__: &BlockId<Block>,
    context: ExecutionContext,
    seed: Option<Vec<u8>>
) -> Result<Vec<u8>, Self::Error>
[src]

Generate a set of session keys with optionally using the given seed. The keys should be stored within the keystore exposed via runtime externalities.

The seed needs to be a valid utf8 string.

Returns the concatenated SCALE encoded public keys.

pub fn decode_session_keys(
    &self,
    __runtime_api_at_param__: &BlockId<Block>,
    encoded: Vec<u8>
) -> Result<Option<Vec<(Vec<u8>, KeyTypeId)>>, Self::Error>
[src]

Decode the given public session keys.

Returns the list of public raw public keys + key type.

pub fn decode_session_keys_with_context(
    &self,
    __runtime_api_at_param__: &BlockId<Block>,
    context: ExecutionContext,
    encoded: Vec<u8>
) -> Result<Option<Vec<(Vec<u8>, KeyTypeId)>>, Self::Error>
[src]

Decode the given public session keys.

Returns the list of public raw public keys + key type.

Loading content...

Trait Implementations

impl<Block: BlockT, __Sr_Api_Error__> RuntimeApiInfo for dyn SessionKeys<Block, Error = __Sr_Api_Error__>[src]

Implementors

Loading content...