Kagome
Polkadot Runtime Engine in C++17
|
#include <session_keys_api.hpp>
Public Member Functions | |
SessionKeysApiImpl (std::shared_ptr< Executor > executor) | |
outcome::result< common::Buffer > | generate_session_keys (const primitives::BlockHash &block_hash, std::optional< common::Buffer > seed) override |
Generate a set of session keys with optionally using the given seed. The keys should be stored within the keystore exposed via runtime externalities. More... | |
outcome::result< std::vector< std::pair< crypto::KeyTypeId, common::Buffer > > > | decode_session_keys (const primitives::BlockHash &block_hash, common::BufferConstRef encoded) const override |
Decode the given public session keys. More... | |
Public Member Functions inherited from kagome::runtime::SessionKeysApi | |
virtual | ~SessionKeysApi ()=default |
Private Attributes | |
std::shared_ptr< Executor > | executor_ |
Definition at line 15 of file session_keys_api.hpp.
|
explicit |
Definition at line 12 of file session_keys_api.cpp.
|
overridevirtual |
Decode the given public session keys.
Implements kagome::runtime::SessionKeysApi.
Definition at line 25 of file session_keys_api.cpp.
|
overridevirtual |
Generate a set of session keys with optionally using the given seed. The keys should be stored within the keystore exposed via runtime externalities.
seed | - optional seed, which needs to be a valid utf8 string. |
Implements kagome::runtime::SessionKeysApi.
Definition at line 17 of file session_keys_api.cpp.
|
private |
Definition at line 28 of file session_keys_api.hpp.