hyperledger/iroha
Iroha - A simple, decentralized ledger http://iroha.tech
pb_transaction_factory.hpp
Go to the documentation of this file.
1 
6 #ifndef IROHA_PB_TRANSACTION_FACTORY_HPP
7 #define IROHA_PB_TRANSACTION_FACTORY_HPP
8 
9 #include <memory>
10 #include "model/transaction.hpp"
11 #include "transaction.pb.h"
12 
13 namespace iroha {
14  namespace model {
15  namespace converters {
16 
21  public:
23 
29  static protocol::Transaction serialize(const model::Transaction &tx);
30 
36  static std::shared_ptr<model::Transaction> deserialize(
37  const protocol::Transaction &pb_tx);
38  };
39  } // namespace converters
40  } // namespace model
41 } // namespace iroha
42 #endif // IROHA_PB_TRANSACTION_FACTORY_HPP
PbTransactionFactory()
Definition: pb_transaction_factory.hpp:22
Definition: transaction.hpp:26
Definition: block_query.hpp:16
Definition: pb_transaction_factory.hpp:20
static std::shared_ptr< model::Transaction > deserialize(const protocol::Transaction &pb_tx)
Definition: pb_transaction_factory.cpp:38
static protocol::Transaction serialize(const model::Transaction &tx)
Definition: pb_transaction_factory.cpp:14