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"
13 
14 namespace iroha {
15  namespace consensus {
16  namespace yac {
18  public:
20  const shared_model::crypto::Keypair &keypair,
21  std::shared_ptr<shared_model::interface::CommonObjectsFactory>
22  factory);
23 
24  bool verify(const std::vector<VoteMessage> &msg) override;
25 
26  VoteMessage getVote(YacHash hash) override;
27 
28  private:
30  std::shared_ptr<shared_model::interface::CommonObjectsFactory> factory_;
31  };
32  } // namespace yac
33  } // namespace consensus
34 } // namespace iroha
35 
36 #endif // IROHA_YAC_CRYPTO_PROVIDER_IMPL_HPP
Definition: keypair.hpp:19
Definition: yac_hash_provider.hpp:30
VoteMessage getVote(YacHash hash) override
Definition: yac_crypto_provider_impl.cpp:35
Definition: block_query.hpp:16
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:21
CryptoProviderImpl(const shared_model::crypto::Keypair &keypair, std::shared_ptr< shared_model::interface::CommonObjectsFactory > factory)
Definition: yac_crypto_provider_impl.cpp:15
Definition: vote_message.hpp:22
Definition: yac_crypto_provider_impl.hpp:17