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

#include "yac_crypto_provider_impl.hpp"

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

Public Member Functions

 CryptoProviderImpl (const shared_model::crypto::Keypair &keypair)
 
bool verify (const std::vector< VoteMessage > &msg) override
 
VoteMessage getVote (YacHash hash) override
 
- Public Member Functions inherited from iroha::consensus::yac::YacCryptoProvider
virtual ~YacCryptoProvider ()=default
 

Constructor & Destructor Documentation

iroha::consensus::yac::CryptoProviderImpl::CryptoProviderImpl ( const shared_model::crypto::Keypair keypair)

Member Function Documentation

VoteMessage iroha::consensus::yac::CryptoProviderImpl::getVote ( YacHash  hash)
overridevirtual

Generate vote for provided hash;

Parameters
hash- hash for signing
Returns
vote

Implements iroha::consensus::yac::YacCryptoProvider.

Here is the call graph for this function:

bool iroha::consensus::yac::CryptoProviderImpl::verify ( const std::vector< VoteMessage > &  msg)
overridevirtual

Verify signatory of message

Parameters
msg- for verification
Returns
true if signature correct

Implements iroha::consensus::yac::YacCryptoProvider.

Here is the call graph for this function:


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