Iroha - A simple, decentralized ledger http://iroha.tech
shared_model::interface::BlockJsonSerializer Class Referenceabstract

#include "block_json_serializer.hpp"

Inheritance diagram for shared_model::interface::BlockJsonSerializer:
Inheritance graph
Collaboration diagram for shared_model::interface::BlockJsonSerializer:
Collaboration graph

Public Member Functions

virtual iroha::expected::Result< types::JsonType, std::string > serialize (const Block &block) const =0
virtual ~BlockJsonSerializer ()=default

Detailed Description

BlockJsonSerializer is an interface which allows transforming block objects to json

Constructor & Destructor Documentation

virtual shared_model::interface::BlockJsonSerializer::~BlockJsonSerializer ( )

Member Function Documentation

virtual iroha::expected::Result<types::JsonType, std::string> shared_model::interface::BlockJsonSerializer::serialize ( const Block block) const
pure virtual

Try to transform block to json string

block- block to be serialized
json string or an error

Implemented in shared_model::proto::ProtoBlockJsonConverter.

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