6 #ifndef KAGOME_REQUESTS_INSERT_KEY_HPP 7 #define KAGOME_REQUESTS_INSERT_KEY_HPP 9 #include <jsonrpc-lean/request.h> 19 RequestType<void, std::string, std::string, std::string> {
25 outcome::result<Return>
execute()
override {
29 gsl::span(seed.data(), seed.size()),
30 gsl::span(public_key.data(), public_key.size()));
34 std::shared_ptr<AuthorApi>
api_;
39 #endif // KAGOME_REQUESTS_INSERT_KEY_HPP
outcome::result< std::vector< uint8_t > > unhexWith0x(std::string_view hex_with_prefix)
Unhex hex-string with 0x in the begining.
std::shared_ptr< AuthorApi > api_
outcome::result< Return > execute() override
InsertKey(std::shared_ptr< AuthorApi > api)
KeyTypeId decodeKeyTypeIdFromStr(std::string_view str)
restores KeyTypeId from its string representation