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::AddressTypeView address, std::string public_key_hex, const std::optional< interface::types::TLSCertificateTypeView > &tls_certificate)
 
const interface::types::AddressTypeaddress () const override
 
const std::string & pubkey () const override
 
const std::optional< interface::types::TLSCertificateType > & tlsCertificate () const override
 
void setTlsCertificate (interface::types::TLSCertificateTypeView cert)
 
- 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::AddressTypeView  address,
std::string  public_key_hex,
const std::optional< interface::types::TLSCertificateTypeView > &  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 std::string & Peer::pubkey ( ) const
overridevirtual
Returns
Public key, for fetching data

Implements shared_model::interface::Peer.

◆ setTlsCertificate()

void Peer::setTlsCertificate ( interface::types::TLSCertificateTypeView  cert)

◆ tlsCertificate()

const std::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: