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

#include "yac_crypto_provider.hpp"

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

Public Member Functions

virtual bool verify (const std::vector< VoteMessage > &msg)=0
 
virtual VoteMessage getVote (YacHash hash)=0
 
virtual ~YacCryptoProvider ()=default
 

Constructor & Destructor Documentation

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

Member Function Documentation

virtual VoteMessage iroha::consensus::yac::YacCryptoProvider::getVote ( YacHash  hash)
pure virtual

Generate vote for provided hash;

Parameters
hash- hash for signing
Returns
vote

Implemented in iroha::consensus::yac::CryptoProviderImpl.

virtual bool iroha::consensus::yac::YacCryptoProvider::verify ( const std::vector< VoteMessage > &  msg)
pure virtual

Verify signatory of message

Parameters
msg- for verification
Returns
true if signature correct

Implemented in iroha::consensus::yac::CryptoProviderImpl.


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