hyperledger/iroha
Iroha - A simple, decentralized ledger http://iroha.tech
keypair.hpp
Go to the documentation of this file.
1 
6 #ifndef IROHA_SHARED_MODEL_KEYPAIR_HPP
7 #define IROHA_SHARED_MODEL_KEYPAIR_HPP
8 
12 
13 namespace shared_model {
14  namespace crypto {
15 
19  class Keypair : public interface::ModelPrimitive<Keypair> {
20  public:
23 
26 
27  explicit Keypair(const PublicKeyType &public_key,
28  const PrivateKeyType &private_key);
29 
33  const PublicKeyType &publicKey() const;
34 
38  const PrivateKeyType &privateKey() const;
39 
40  bool operator==(const Keypair &keypair) const override;
41 
42  std::string toString() const override;
43 
44  private:
45  Keypair *clone() const override;
46 
47  private:
48  PublicKey public_key_;
49  PrivateKey private_key_;
50  };
51  } // namespace crypto
52 } // namespace shared_model
53 
54 #endif // IROHA_SHARED_MODEL_KEYPAIR_HPP
const PrivateKeyType & privateKey() const
Definition: keypair.cpp:17
Definition: keypair.hpp:19
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: private_key.hpp:16
std::string toString() const override
Definition: keypair.cpp:26
bool operator==(const Keypair &keypair) const override
Definition: keypair.cpp:21
Keypair(const PublicKeyType &public_key, const PrivateKeyType &private_key)
Definition: keypair.cpp:38
Definition: public_key.hpp:16
Definition: model_primitive.hpp:23
Definition: command_executor.hpp:12
const PublicKeyType & publicKey() const
Definition: keypair.cpp:13