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 
10 #include "utils/string_builder.hpp"
11 
12 namespace shared_model {
13 
14  namespace crypto {
15  class PublicKey;
16  class Signed;
17  } // namespace crypto
18 
19  namespace interface {
20 
24  class Signature : public ModelPrimitive<Signature> {
25  public:
30 
34  virtual const PublicKeyType &publicKey() const = 0;
35 
40 
44  virtual const SignedType &signedData() const = 0;
45 
46  bool operator==(const Signature &rhs) const override;
47 
48  std::string toString() const override;
49  };
50  } // namespace interface
51 } // namespace shared_model
52 #endif // IROHA_SHARED_MODEL_SIGNATURE_HPP
Definition: signature.hpp:24
string(REPLACE".""/"CMAKE_SWIG_OUTDIR ${SWIG_JAVA_PKG}) else() set(CMAKE_SWIG_FLAGS"") endif() myswig_add_library(irohajava LANGUAGE java SOURCES bindings.i) unset(CMAKE_SWIG_FLAGS) swig_link_libraries(irohajava $
Definition: CMakeLists.txt:54
Definition: signed.hpp:17
std::string toString(interface::permissions::Role r)
Definition: permissions.cpp:22
Definition: public_key.hpp:16
Definition: model_primitive.hpp:23
Definition: command_executor.hpp:12