6 #ifndef KAGOME_RUNTIME_SESSIONKEYSAPI 7 #define KAGOME_RUNTIME_SESSIONKEYSAPI 32 std::optional<common::Buffer> seed) = 0;
38 virtual outcome::result<
39 std::vector<std::pair<crypto::KeyTypeId, common::Buffer>>>
46 #endif // KAGOME_RUNTIME_SESSIONKEYSAPI
virtual outcome::result< common::Buffer > generate_session_keys(const primitives::BlockHash &block_hash, std::optional< common::Buffer > seed)=0
Generate a set of session keys with optionally using the given seed. The keys should be stored within...
virtual outcome::result< std::vector< std::pair< crypto::KeyTypeId, common::Buffer > > > decode_session_keys(const primitives::BlockHash &block_hash, common::BufferConstRef encoded) const =0
Decode the given public session keys.
std::reference_wrapper< const Buffer > BufferConstRef
virtual ~SessionKeysApi()=default