hyperledger/iroha
Iroha - A simple, decentralized ledger http://iroha.tech
yac_crypto_provider.hpp
Go to the documentation of this file.
1 
6 #ifndef IROHA_YAC_CRYPTO_PROVIDER_HPP
7 #define IROHA_YAC_CRYPTO_PROVIDER_HPP
8 
9 #include "consensus/yac/yac_hash_provider.hpp" // for YacHash (passed by copy)
10 
11 namespace iroha {
12  namespace consensus {
13  namespace yac {
14 
15  struct VoteMessage;
16 
18  public:
24  virtual bool verify(const std::vector<VoteMessage> &msg) = 0;
25 
31  virtual VoteMessage getVote(YacHash hash) = 0;
32 
33  virtual ~YacCryptoProvider() = default;
34  };
35 
36  } // namespace yac
37  } // namespace consensus
38 } // namespace iroha
39 
40 #endif // IROHA_YAC_CRYPTO_PROVIDER_HPP
Definition: yac_hash_provider.hpp:30
Definition: block_query.hpp:16
hash256_t hash(const T &pb)
Definition: pb_common.hpp:43
Definition: yac_crypto_provider.hpp:17
virtual VoteMessage getVote(YacHash hash)=0
Definition: vote_message.hpp:22
virtual bool verify(const std::vector< VoteMessage > &msg)=0