hyperledger/iroha
Iroha - A simple, decentralized ledger http://iroha.tech
block_json_serializer.hpp
Go to the documentation of this file.
1 
6 #ifndef IROHA_BLOCK_JSON_SERIALIZER_HPP
7 #define IROHA_BLOCK_JSON_SERIALIZER_HPP
8 
9 #include <memory>
10 
11 #include "common/result.hpp"
13 
14 namespace shared_model {
15  namespace interface {
16  class Block;
22  public:
28  virtual iroha::expected::Result<types::JsonType, std::string>
29  serialize(const Block &block) const = 0;
30 
31  virtual ~BlockJsonSerializer() = default;
32  };
33  } // namespace interface
34 } // namespace shared_model
35 
36 #endif // IROHA_BLOCK_JSON_SERIALIZER_HPP
virtual iroha::expected::Result< types::JsonType, std::string > serialize(const Block &block) const =0
Definition: block.hpp:15
Definition: block_json_serializer.hpp:21
Definition: command_executor.hpp:12