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 "common/result_fwd.hpp"
11 
12 namespace shared_model {
13  namespace crypto {
14  class Blob;
15 
22  public:
32  shared_model::interface::types::SignedHexStringView signature,
33  const Blob &source,
34  shared_model::interface::types::PublicKeyHexStringView public_key);
35 
37  CryptoVerifier() = delete;
38 
39  enum { kMaxPublicKeySize = 68 };
40  enum { kMaxSignatureSize = 68 };
41  };
42  } // namespace crypto
43 } // namespace shared_model
44 
45 #endif // IROHA_CRYPTO_VERIFIER_HPP
static iroha::expected::Result< void, const char * > verify(shared_model::interface::types::SignedHexStringView signature, const Blob &source, shared_model::interface::types::PublicKeyHexStringView public_key)
Definition: crypto_verifier.cpp:88
Definition: blob.hpp:27
Definition: result_fwd.hpp:27
CryptoVerifier()=delete
close constructor for forbidding instantiation
Definition: crypto_verifier.hpp:21
Definition: command_executor.hpp:13