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_PEER_HPP
7 #define IROHA_SHARED_MODEL_PEER_HPP
8 
11 
12 namespace shared_model {
13  namespace interface {
14 
18  class Peer : public ModelPrimitive<Peer> {
19  public:
23  virtual const interface::types::AddressType &address() const = 0;
24 
28  virtual const interface::types::PubkeyType &pubkey() const = 0;
29 
30  std::string toString() const override;
31 
32  bool operator==(const ModelType &rhs) const override;
33  };
34  } // namespace interface
35 } // namespace shared_model
36 
37 #endif // IROHA_SHARED_MODEL_PEER_HPP
std::string AddressType
Type of peer address.
Definition: types.hpp:45
Definition: peer.hpp:18
bool operator==(const ModelType &rhs) const override
Definition: peer.cpp:20
virtual const interface::types::AddressType & address() const =0
Definition: public_key.hpp:16
std::string toString() const override
Definition: peer.cpp:12
Definition: model_primitive.hpp:22
virtual const interface::types::PubkeyType & pubkey() const =0
Definition: command_executor.hpp:12