hyperledger/iroha
Iroha - A simple, decentralized ledger http://iroha.tech
shared_model::plain::Peer Class Referencefinal

#include "peer.hpp"

Inheritance diagram for shared_model::plain::Peer:
Inheritance graph
Collaboration diagram for shared_model::plain::Peer:
Collaboration graph

Public Member Functions

 Peer (const interface::types::AddressType &address, const interface::types::PubkeyType &public_key, const boost::optional< interface::types::TLSCertificateType > &tls_certificate)
 
const interface::types::AddressTypeaddress () const override
 
const interface::types::PubkeyTypepubkey () const override
 
const boost::optional< interface::types::TLSCertificateType > & tlsCertificate () const override
 
- Public Member Functions inherited from shared_model::interface::Peer
std::string toString () const override
 
bool operator== (const ModelType &rhs) const override
 
- Public Member Functions inherited from shared_model::interface::ModelPrimitive< Peer >
virtual bool operator== (const ModelType &rhs) const=0
 
virtual bool operator!= (const ModelType &rhs) const
 
virtual ~ModelPrimitive ()=default
 

Additional Inherited Members

- Public Types inherited from shared_model::interface::ModelPrimitive< Peer >
using ModelType = Peer
 

Constructor & Destructor Documentation

◆ Peer()

Peer::Peer ( const interface::types::AddressType address,
const interface::types::PubkeyType public_key,
const boost::optional< interface::types::TLSCertificateType > &  tls_certificate 
)

Member Function Documentation

◆ address()

const shared_model::interface::types::AddressType & Peer::address ( ) const
overridevirtual
Returns
Peer address, for fetching data

Implements shared_model::interface::Peer.

◆ pubkey()

const shared_model::interface::types::PubkeyType & Peer::pubkey ( ) const
overridevirtual
Returns
Public key, for fetching data

Implements shared_model::interface::Peer.

◆ tlsCertificate()

const boost::optional< shared_model::interface::types::TLSCertificateType > & Peer::tlsCertificate ( ) const
overridevirtual
Returns
Peer TLS certficate

Implements shared_model::interface::Peer.


The documentation for this class was generated from the following files: