hyperledger/iroha
Iroha - A simple, decentralized ledger http://iroha.tech
iroha::consensus::yac::YacHashProvider Class Referenceabstract

#include "yac_hash_provider.hpp"

Inheritance diagram for iroha::consensus::yac::YacHashProvider:
Inheritance graph
Collaboration diagram for iroha::consensus::yac::YacHashProvider:
Collaboration graph

Public Member Functions

virtual YacHash makeHash (const simulator::BlockCreatorEvent &event) const =0
 
virtual shared_model::interface::types::HashType toModelHash (const YacHash &hash) const =0
 
virtual ~YacHashProvider ()=default
 

Detailed Description

Provide methods related to hash operations in ya consensus

Constructor & Destructor Documentation

virtual iroha::consensus::yac::YacHashProvider::~YacHashProvider ( )
virtualdefault

Member Function Documentation

virtual YacHash iroha::consensus::yac::YacHashProvider::makeHash ( const simulator::BlockCreatorEvent event) const
pure virtual

Make hash from block creator event

Implemented in iroha::consensus::yac::YacHashProviderImpl.

virtual shared_model::interface::types::HashType iroha::consensus::yac::YacHashProvider::toModelHash ( const YacHash hash) const
pure virtual

Convert YacHash to model hash

Parameters
hash- for converting
Returns
HashType of model hash

Implemented in iroha::consensus::yac::YacHashProviderImpl.


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