PIVX Core  5.6.99
P2P Digital Currency
Public Member Functions | Public Attributes | List of all members
CSporkMessage Class Reference

#include <spork.h>

Inheritance diagram for CSporkMessage:
[legend]
Collaboration diagram for CSporkMessage:
[legend]

Public Member Functions

 CSporkMessage ()
 
 CSporkMessage (SporkId nSporkID, int64_t nValue, int64_t nTimeSigned)
 
uint256 GetHash () const
 
uint256 GetSignatureHash () const override
 
std::string GetStrMessage () const override
 
const CPubKey GetPublicKey () const
 
const CPubKey GetPublicKeyOld () const
 
void Relay ()
 
 SERIALIZE_METHODS (CSporkMessage, obj)
 
- Public Member Functions inherited from CSignedMessage
 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
 
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

SporkId nSporkID
 
int64_t nValue
 
int64_t nTimeSigned
 
- Public Attributes inherited from CSignedMessage
int nMessVersion
 

Additional Inherited Members

- Protected Attributes inherited from CSignedMessage
std::vector< unsigned char > vchSig
 

Detailed Description

Definition at line 33 of file spork.h.

Constructor & Destructor Documentation

◆ CSporkMessage() [1/2]

CSporkMessage::CSporkMessage ( )
inline

Definition at line 40 of file spork.h.

◆ CSporkMessage() [2/2]

CSporkMessage::CSporkMessage ( SporkId  nSporkID,
int64_t  nValue,
int64_t  nTimeSigned 
)
inline

Definition at line 47 of file spork.h.

Member Function Documentation

◆ GetHash()

uint256 CSporkMessage::GetHash ( ) const
inline

Definition at line 54 of file spork.h.

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

◆ GetPublicKey()

const CPubKey CSporkMessage::GetPublicKey ( ) const

Definition at line 313 of file spork.cpp.

Here is the call graph for this function:

◆ GetPublicKeyOld()

const CPubKey CSporkMessage::GetPublicKeyOld ( ) const

Definition at line 318 of file spork.cpp.

Here is the call graph for this function:

◆ GetSignatureHash()

uint256 CSporkMessage::GetSignatureHash ( ) const
overridevirtual

Implements CSignedMessage.

Definition at line 296 of file spork.cpp.

◆ GetStrMessage()

std::string CSporkMessage::GetStrMessage ( ) const
overridevirtual

Implements CSignedMessage.

Definition at line 306 of file spork.cpp.

◆ Relay()

void CSporkMessage::Relay ( )

Definition at line 323 of file spork.cpp.

Here is the call graph for this function:

◆ SERIALIZE_METHODS()

CSporkMessage::SERIALIZE_METHODS ( CSporkMessage  ,
obj   
)
inline

Definition at line 66 of file spork.h.

Member Data Documentation

◆ nSporkID

SporkId CSporkMessage::nSporkID

Definition at line 36 of file spork.h.

◆ nTimeSigned

int64_t CSporkMessage::nTimeSigned

Definition at line 38 of file spork.h.

◆ nValue

int64_t CSporkMessage::nValue

Definition at line 37 of file spork.h.


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