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::consensus::yac {
12  struct VoteMessage;
13 
15  public:
21  virtual bool verify(const std::vector<VoteMessage> &msg) = 0;
22 
28  virtual VoteMessage getVote(YacHash hash) = 0;
29 
30  virtual ~YacCryptoProvider() = default;
31  };
32 } // namespace iroha::consensus::yac
33 
34 #endif // IROHA_YAC_CRYPTO_PROVIDER_HPP
Definition: yac_hash_provider.hpp:25
hash256_t hash(const T &pb)
Definition: pb_common.hpp:43
Definition: yac_crypto_provider.hpp:14
virtual VoteMessage getVote(YacHash hash)=0
Definition: vote_message.hpp:20
virtual bool verify(const std::vector< VoteMessage > &msg)=0
Definition: cluster_order.hpp:16