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::consensus::yac {
16  public:
18  logger::LoggerPtr log);
19 
20  // TODO 18.04.2020 IR-710 @mboldyrev: make it return Result
21  bool verify(const std::vector<VoteMessage> &msg) override;
22 
23  VoteMessage getVote(YacHash hash) override;
24 
25  private:
27  logger::LoggerPtr log_;
28  };
29 } // namespace iroha::consensus::yac
30 
31 #endif // IROHA_YAC_CRYPTO_PROVIDER_IMPL_HPP
VoteMessage getVote(YacHash hash) override
Definition: yac_crypto_provider_impl.cpp:42
Definition: keypair.hpp:19
Definition: yac_hash_provider.hpp:25
CryptoProviderImpl(const shared_model::crypto::Keypair &keypair, logger::LoggerPtr log)
Definition: yac_crypto_provider_impl.cpp:18
std::shared_ptr< Logger > LoggerPtr
Definition: logger_fwd.hpp:22
bool verify(const std::vector< VoteMessage > &msg) override
Definition: yac_crypto_provider_impl.cpp:22
hash256_t hash(const T &pb)
Definition: pb_common.hpp:43
Definition: yac_crypto_provider.hpp:14
Definition: vote_message.hpp:20
Definition: yac_crypto_provider_impl.hpp:15
Definition: cluster_order.hpp:16