13 : executor_{std::move(executor)} {
19 std::optional<common::Buffer> seed) {
21 block_hash,
"SessionKeys_generate_session_keys", std::move(seed));
24 outcome::result<std::vector<std::pair<crypto::KeyTypeId, common::Buffer>>>
29 ->callAt<std::vector<std::pair<crypto::KeyTypeId, common::Buffer>>>(
30 block_hash,
"SessionKeys_decode_session_keys", encoded);
std::shared_ptr< Executor > executor_
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.
SLBuffer< std::numeric_limits< size_t >::max()> Buffer
std::reference_wrapper< const Buffer > BufferConstRef
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...
SessionKeysApiImpl(std::shared_ptr< Executor > executor)