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 
12 namespace shared_model {
13  namespace interface {
14 
18  class Signature : public ModelPrimitive<Signature>,
19  public Cloneable<Signature> {
20  public:
24  virtual const std::string &publicKey() const = 0;
25 
29  virtual const std::string &signedData() const = 0;
30 
31  bool operator==(const Signature &rhs) const override;
32 
33  std::string toString() const override;
34  };
35  } // namespace interface
36 } // namespace shared_model
37 #endif // IROHA_SHARED_MODEL_SIGNATURE_HPP
virtual const std::string & signedData() const =0
Definition: signature.hpp:18
bool operator==(const Signature &rhs) const override
Definition: signature.cpp:12
Definition: cloneable.hpp:33
virtual const std::string & publicKey() const =0
Definition: model_primitive.hpp:22
Definition: command_executor.hpp:12
std::string toString() const override
Definition: signature.cpp:16