hyperledger/iroha
Iroha - A simple, decentralized ledger http://iroha.tech
keys_manager.hpp
Go to the documentation of this file.
1 
6 #ifndef IROHA_KEYS_MANAGER_HPP
7 #define IROHA_KEYS_MANAGER_HPP
8 
9 #include <string>
10 
11 #include <boost/optional.hpp>
12 #include "common/result_fwd.hpp"
13 #include "cryptography/keypair.hpp"
14 
15 namespace iroha {
19  class KeysManager {
20  public:
21  virtual ~KeysManager() = default;
22 
29  virtual bool createKeys(
30  const boost::optional<std::string> &pass_phrase) = 0;
31 
40  loadKeys(const boost::optional<std::string> &pass_phrase) = 0;
41  };
42 
43 } // namespace iroha
44 #endif // IROHA_KEYS_MANAGER_HPP
Definition: keys_manager.hpp:19
virtual ~KeysManager()=default
Definition: result_fwd.hpp:27
virtual bool createKeys(const boost::optional< std::string > &pass_phrase)=0
Definition: block_query.hpp:15
virtual iroha::expected::Result< shared_model::crypto::Keypair, std::string > loadKeys(const boost::optional< std::string > &pass_phrase)=0