hyperledger/iroha
Iroha - A simple, decentralized ledger http://iroha.tech
model_crypto_provider_impl.hpp
Go to the documentation of this file.
1 
6 #ifndef IROHA_MODEL_CRYPTO_PROVIDER_IMPL_HPP
7 #define IROHA_MODEL_CRYPTO_PROVIDER_IMPL_HPP
8 
10 #include "sha3_hash.hpp"
11 
12 namespace iroha {
13  namespace model {
14 
19  public:
24  explicit ModelCryptoProviderImpl(const keypair_t &keypair);
25 
30  bool verify(const Transaction &tx) const override;
31 
36  bool verify(const Query &query) const override;
37 
42  bool verify(const Block &block) const override;
43 
48  void sign(Block &block) const override;
49 
54  void sign(Transaction &transaction) const override;
55 
60  void sign(Query &query) const override;
61 
62  private:
63  keypair_t keypair_;
64  };
65  } // namespace model
66 } // namespace iroha
67 
68 #endif // IROHA_MODEL_CRYPTO_PROVIDER_IMPL_HPP
ModelCryptoProviderImpl(const keypair_t &keypair)
Definition: model_crypto_provider_impl.cpp:19
void sign(Block &block) const override
Definition: model_crypto_provider_impl.cpp:46
Definition: model_crypto_provider_impl.hpp:18
Definition: transaction.hpp:26
Definition: model_crypto_provider.hpp:22
Definition: keypair.hpp:17
Definition: block_query.hpp:16
bool verify(const Transaction &tx) const override
Definition: model_crypto_provider_impl.cpp:22
Definition: query.hpp:20
Definition: block.hpp:24