hyperledger/iroha
Iroha - A simple, decentralized ledger http://iroha.tech
yac_crypto_provider_impl.hpp
Go to the documentation of this file.
1 
6 #ifndef IROHA_YAC_CRYPTO_PROVIDER_IMPL_HPP
7 #define IROHA_YAC_CRYPTO_PROVIDER_IMPL_HPP
8 
10 
11 #include "cryptography/keypair.hpp"
12 #include "logger/logger_fwd.hpp"
13 
14 namespace iroha {
15  namespace consensus {
16  namespace yac {
18  public:
20  logger::LoggerPtr log);
21 
22  // TODO 18.04.2020 IR-710 @mboldyrev: make it return Result
23  bool verify(const std::vector<VoteMessage> &msg) override;
24 
25  VoteMessage getVote(YacHash hash) override;
26 
27  private:
29  logger::LoggerPtr log_;
30  };
31  } // namespace yac
32  } // namespace consensus
33 } // namespace iroha
34 
35 #endif // IROHA_YAC_CRYPTO_PROVIDER_IMPL_HPP
Definition: keypair.hpp:19
Definition: yac_hash_provider.hpp:30
std::shared_ptr< Logger > LoggerPtr
Definition: logger_fwd.hpp:22
VoteMessage getVote(YacHash hash) override
Definition: yac_crypto_provider_impl.cpp:44
Definition: block_query.hpp:15
hash256_t hash(const T &pb)
Definition: pb_common.hpp:43
Definition: yac_crypto_provider.hpp:17
bool verify(const std::vector< VoteMessage > &msg) override
Definition: yac_crypto_provider_impl.cpp:23
Definition: vote_message.hpp:22
Definition: yac_crypto_provider_impl.hpp:17
CryptoProviderImpl(const shared_model::crypto::Keypair &keypair, logger::LoggerPtr log)
Definition: yac_crypto_provider_impl.cpp:19