hyperledger/iroha
Iroha - A simple, decentralized ledger http://iroha.tech
crypto_verifier.hpp
Go to the documentation of this file.
1 
6 #ifndef IROHA_CRYPTO_VERIFIER_HPP
7 #define IROHA_CRYPTO_VERIFIER_HPP
8 
9 #include "cryptography/crypto_provider/crypto_defaults.hpp"
10 
11 namespace shared_model {
12  namespace crypto {
13 
14  class Signed;
15  class Blob;
16  class PublicKey;
17 
23  template <typename Algorithm = DefaultCryptoAlgorithmType>
25  public:
33  static bool verify(const Signed &signedData,
34  const Blob &source,
35  const PublicKey &pubKey) {
36  return Algorithm::verify(signedData, source, pubKey);
37  }
38 
40  CryptoVerifier() = delete;
41  };
42  } // namespace crypto
43 } // namespace shared_model
44 
45 #endif // IROHA_CRYPTO_VERIFIER_HPP
Definition: blob.hpp:25
static bool verify(const Signed &signedData, const Blob &source, const PublicKey &pubKey)
Definition: crypto_verifier.hpp:33
bool verify(const uint8_t *msg, size_t msgsize, const pubkey_t &pub, const sig_t &sig)
Definition: ed25519_impl.cpp:39
const char * PublicKey
Definition: iroha_conf_literals.cpp:41
Definition: signed.hpp:17
Definition: crypto_verifier.hpp:24
Definition: public_key.hpp:16
CryptoVerifier()=delete
close constructor for forbidding instantiation
Definition: command_executor.hpp:12