hyperledger/iroha
Iroha - A simple, decentralized ledger http://iroha.tech
peer_tls_certificates_provider.hpp
Go to the documentation of this file.
1 
6 #ifndef IROHA_PEER_TLS_CERTIFICATES_PROVIDER_HPP
7 #define IROHA_PEER_TLS_CERTIFICATES_PROVIDER_HPP
8 
9 #include <memory>
10 #include <string>
11 
12 #include "common/result.hpp"
14 
15 namespace shared_model {
16  namespace interface {
17  class Peer;
18  }
19 } // namespace shared_model
20 
21 namespace iroha {
22  namespace network {
23 
25  public:
26  virtual ~PeerTlsCertificatesProvider() = default;
27 
29  virtual iroha::expected::Result<
31  std::string>
32  get(const shared_model::interface::Peer &peer) const = 0;
33 
35  virtual iroha::expected::Result<
37  std::string>
38  get(const shared_model::interface::types::PubkeyType &public_key)
39  const = 0;
40  };
41 
42  } // namespace network
43 } // namespace iroha
44 
45 #endif
std::string TLSCertificateType
Type of a TLS certificate.
Definition: types.hpp:92
Definition: peer.hpp:20
Definition: block_query.hpp:14
Definition: peer_tls_certificates_provider.hpp:24
Definition: public_key.hpp:16
Definition: command_executor.hpp:12