hyperledger/iroha
Iroha - A simple, decentralized ledger http://iroha.tech
iroha::model::converters::PbTransactionFactory Class Reference

#include "pb_transaction_factory.hpp"

Collaboration diagram for iroha::model::converters::PbTransactionFactory:
Collaboration graph

Public Member Functions

 PbTransactionFactory ()
 

Static Public Member Functions

static protocol::Transaction serialize (const model::Transaction &tx)
 
static std::shared_ptr< model::Transactiondeserialize (const protocol::Transaction &pb_tx)
 

Detailed Description

Converting business objects to protobuf and vice versa

Constructor & Destructor Documentation

iroha::model::converters::PbTransactionFactory::PbTransactionFactory ( )
inline

Here is the call graph for this function:

Member Function Documentation

std::shared_ptr< model::Transaction > iroha::model::converters::PbTransactionFactory::deserialize ( const protocol::Transaction &  pb_tx)
static

Convert proto block to model block

Parameters
pb_block- reference to proto block
Returns
model block

Here is the call graph for this function:

Here is the caller graph for this function:

protocol::Transaction iroha::model::converters::PbTransactionFactory::serialize ( const model::Transaction tx)
static

Convert block to proto block

Parameters
block- reference to block
Returns
proto block

Here is the call graph for this function:

Here is the caller graph for this function:


The documentation for this class was generated from the following files: