hyperledger/iroha
Iroha - A simple, decentralized ledger http://iroha.tech
signature.hpp
Go to the documentation of this file.
1 
6 #ifndef IROHA_SHARED_MODEL_PLAIN_SIGNATURE_HPP
7 #define IROHA_SHARED_MODEL_PLAIN_SIGNATURE_HPP
8 
10 #include "cryptography/signed.hpp"
12 
13 namespace shared_model {
14 
15  namespace plain {
16 
17  class Signature final : public interface::Signature {
18  public:
20 
21  const interface::Signature::PublicKeyType &publicKey() const override;
22 
23  const interface::Signature::SignedType &signedData() const override;
24 
25  protected:
26  interface::Signature *clone() const override;
27 
28  private:
29  const interface::Signature::SignedType signed_data_;
30  const interface::Signature::PublicKeyType public_key_;
31  };
32 
33  } // namespace plain
34 } // namespace shared_model
35 
36 #endif // IROHA_SHARED_MODEL_PLAIN_SIGNATURE_HPP
Definition: signature.hpp:25
interface::Signature * clone() const override
Definition: signature.cpp:22
Definition: signed.hpp:17
Definition: public_key.hpp:16
Definition: command_executor.hpp:12
const interface::Signature::PublicKeyType & publicKey() const override
Definition: signature.cpp:14
Definition: signature.hpp:17
Signature(const SignedType &signedData, const PublicKeyType &publicKey)
Definition: signature.cpp:10
const interface::Signature::SignedType & signedData() const override
Definition: signature.cpp:18