hyperledger/iroha
Iroha - A simple, decentralized ledger http://iroha.tech
peer.hpp
Go to the documentation of this file.
1 
6 #ifndef IROHA_SHARED_MODEL_PLAIN_PEER_HPP
7 #define IROHA_SHARED_MODEL_PLAIN_PEER_HPP
8 
11 
12 namespace shared_model {
13  namespace plain {
14 
15  class Peer final : public interface::Peer {
16  public:
18  const interface::types::PubkeyType &public_key);
19 
20  const interface::types::AddressType &address() const override;
21 
22  const interface::types::PubkeyType &pubkey() const override;
23 
24  private:
25  const interface::types::AddressType address_;
26  const interface::types::PubkeyType public_key_;
27  };
28 
29  } // namespace plain
30 } // namespace shared_model
31 
32 #endif // IROHA_SHARED_MODEL_PLAIN_PEER_HPP
std::string AddressType
Type of peer address.
Definition: types.hpp:45
Definition: peer.hpp:18
const interface::types::PubkeyType & pubkey() const override
Definition: peer.cpp:19
Definition: peer.hpp:15
Definition: public_key.hpp:16
const interface::types::AddressType & address() const override
Definition: peer.cpp:15
Definition: command_executor.hpp:12
Peer(const interface::types::AddressType &address, const interface::types::PubkeyType &public_key)
Definition: peer.cpp:11