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_SIGNATURE_HPP
7 #define IROHA_SHARED_MODEL_SIGNATURE_HPP
8 
9 #include "common/cloneable.hpp"
11 #include "utils/string_builder.hpp"
12 
13 namespace shared_model {
14 
15  namespace crypto {
16  class PublicKey;
17  class Signed;
18  } // namespace crypto
19 
20  namespace interface {
21 
25  class Signature : public ModelPrimitive<Signature>,
26  public Cloneable<Signature> {
27  public:
32 
36  virtual const PublicKeyType &publicKey() const = 0;
37 
42 
46  virtual const SignedType &signedData() const = 0;
47 
48  bool operator==(const Signature &rhs) const override;
49 
50  std::string toString() const override;
51  };
52  } // namespace interface
53 } // namespace shared_model
54 #endif // IROHA_SHARED_MODEL_SIGNATURE_HPP
Definition: signature.hpp:25
Definition: cloneable.hpp:33
const char * PublicKey
Definition: iroha_conf_literals.cpp:41
Definition: signed.hpp:17
std::string toString(interface::permissions::Role r)
Definition: permissions.cpp:22
Definition: public_key.hpp:16
Definition: model_primitive.hpp:22
Definition: command_executor.hpp:12