hyperledger/iroha
Iroha - A simple, decentralized ledger http://iroha.tech
pb_block_factory.hpp
Go to the documentation of this file.
1 
6 #ifndef IROHA_PBFACTORY_HPP
7 #define IROHA_PBFACTORY_HPP
8 
9 #include "block.pb.h"
10 #include "model/block.hpp"
11 
12 namespace iroha {
13  namespace model {
14  namespace converters {
15 
20  public:
22 
28  protocol::Block serialize(const model::Block &block) const;
29 
35  model::Block deserialize(const protocol::Block &pb_block) const;
36  };
37  } // namespace converters
38  } // namespace model
39 } // namespace iroha
40 #endif // IROHA_PBFACTORY_HPP
model::Block deserialize(const protocol::Block &pb_block) const
Definition: pb_block_factory.cpp:47
protocol::Block serialize(const model::Block &block) const
Definition: pb_block_factory.cpp:17
Definition: pb_block_factory.hpp:19
Definition: block_query.hpp:16
PbBlockFactory()
Definition: pb_block_factory.hpp:21
Definition: block.hpp:24