[][src]Trait substrate_session::SessionKeys

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

Session keys runtime api.

Provided methods

fn generate_session_keys(
    &self,
    at: &BlockId<Block>,
    seed: Option<Vec<u8>>
) -> Result<Vec<u8>, Error>

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.

fn generate_session_keys_with_context(
    &self,
    at: &BlockId<Block>,
    context: ExecutionContext,
    seed: Option<Vec<u8>>
) -> Result<Vec<u8>, Error>

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.

Loading content...

Trait Implementations

impl<Block: BlockT> RuntimeApiInfo for dyn SessionKeys<Block>[src]

Implementors

Loading content...