hyperledger/iroha
Iroha - A simple, decentralized ledger http://iroha.tech
peer_tls_certificates_provider_wsv.hpp
Go to the documentation of this file.
1 
6 #ifndef IROHA_PEER_TLS_CERTIFICATES_PROVIDER_WSV_HPP
7 #define IROHA_PEER_TLS_CERTIFICATES_PROVIDER_WSV_HPP
8 
10 
11 #include <memory>
12 
14 
15 namespace shared_model {
16  namespace interface {
17  class Peer;
18  }
19 } // namespace shared_model
20 
21 namespace iroha {
22  namespace ametsuchi {
23  class PeerQuery;
24  }
25  namespace network {
26 
28  public:
30  std::shared_ptr<iroha::ametsuchi::PeerQuery> peer_query);
31 
33 
34  iroha::expected::Result<
36  std::string>
37  get(const shared_model::interface::Peer &peer) const override;
38 
39  iroha::expected::Result<
41  std::string>
42  get(const shared_model::interface::types::PubkeyType &public_key)
43  const override;
44 
45  private:
46  class Impl;
47  std::unique_ptr<Impl> impl_;
48  };
49 
50  }; // namespace network
51 }; // namespace iroha
52 
53 #endif
std::string TLSCertificateType
Type of a TLS certificate.
Definition: types.hpp:92
Definition: peer.hpp:20
Definition: peer_tls_certificates_provider_wsv.hpp:27
Definition: block_query.hpp:14
Definition: peer_tls_certificates_provider.hpp:24
Definition: peer_tls_certificates_provider_wsv.cpp:18
Definition: public_key.hpp:16
Definition: command_executor.hpp:12