PIVX Core  5.6.99
P2P Digital Currency
Public Member Functions | Public Attributes | Protected Attributes | List of all members
CSignedMessage Class Referenceabstract

Base Class for all signed messages on the network. More...

#include <messagesigner.h>

Inheritance diagram for CSignedMessage:
[legend]

Public Member Functions

 CSignedMessage ()
 
virtual ~CSignedMessage ()
 
bool Sign (const CKey &key, const CKeyID &keyID)
 CSignedMessage Class Functions inherited by network signed-messages. More...
 
bool Sign (const std::string strSignKey)
 
bool CheckSignature (const CKeyID &keyID) const
 
virtual uint256 GetSignatureHash () const =0
 
virtual std::string GetStrMessage () const =0
 
void SetVchSig (const std::vector< unsigned char > &vchSigIn)
 
std::vector< unsigned char > GetVchSig () const
 
std::string GetSignatureBase64 () const
 
bool Sign (const CBLSSecretKey &sk)
 
bool CheckSignature (const CBLSPublicKey &pk) const
 

Public Attributes

int nMessVersion
 

Protected Attributes

std::vector< unsigned char > vchSig
 

Detailed Description

Base Class for all signed messages on the network.

Definition at line 62 of file messagesigner.h.

Constructor & Destructor Documentation

◆ CSignedMessage()

CSignedMessage::CSignedMessage ( )
inline

Definition at line 70 of file messagesigner.h.

◆ ~CSignedMessage()

virtual CSignedMessage::~CSignedMessage ( )
inlinevirtual

Definition at line 74 of file messagesigner.h.

Member Function Documentation

◆ CheckSignature() [1/2]

bool CSignedMessage::CheckSignature ( const CBLSPublicKey pk) const

Definition at line 168 of file messagesigner.cpp.

Here is the call graph for this function:

◆ CheckSignature() [2/2]

bool CSignedMessage::CheckSignature ( const CKeyID keyID) const

Definition at line 155 of file messagesigner.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ GetSignatureBase64()

std::string CSignedMessage::GetSignatureBase64 ( ) const

Definition at line 178 of file messagesigner.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ GetSignatureHash()

virtual uint256 CSignedMessage::GetSignatureHash ( ) const
pure virtual

Implemented in CSporkMessage, CMasternode, CMasternodePing, CMasternodePaymentWinner, CFinalizedBudgetVote, and CBudgetVote.

Here is the caller graph for this function:

◆ GetStrMessage()

virtual std::string CSignedMessage::GetStrMessage ( ) const
pure virtual

Implemented in CSporkMessage, CMasternode, CMasternodePing, CMasternodePaymentWinner, CFinalizedBudgetVote, and CBudgetVote.

Here is the caller graph for this function:

◆ GetVchSig()

std::vector<unsigned char> CSignedMessage::GetVchSig ( ) const
inline

Definition at line 88 of file messagesigner.h.

◆ SetVchSig()

void CSignedMessage::SetVchSig ( const std::vector< unsigned char > &  vchSigIn)
inline

Definition at line 87 of file messagesigner.h.

◆ Sign() [1/3]

bool CSignedMessage::Sign ( const CBLSSecretKey sk)

Definition at line 144 of file messagesigner.cpp.

Here is the call graph for this function:

◆ Sign() [2/3]

bool CSignedMessage::Sign ( const CKey key,
const CKeyID keyID 
)

CSignedMessage Class Functions inherited by network signed-messages.

Definition at line 115 of file messagesigner.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ Sign() [3/3]

bool CSignedMessage::Sign ( const std::string  strSignKey)

Definition at line 132 of file messagesigner.cpp.

Here is the call graph for this function:

Member Data Documentation

◆ nMessVersion

int CSignedMessage::nMessVersion

Definition at line 68 of file messagesigner.h.

◆ vchSig

std::vector<unsigned char> CSignedMessage::vchSig
protected

Definition at line 65 of file messagesigner.h.


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