![]() |
Dash Core
0.12.2.1
P2P Digital Currency
|
#include <messagesigner.h>
Static Public Member Functions | |
static bool | GetKeysFromSecret (const std::string strSecret, CKey &keyRet, CPubKey &pubkeyRet) |
Set the private/public key values, returns true if successful. More... | |
static bool | SignMessage (const std::string strMessage, std::vector< unsigned char > &vchSigRet, const CKey key) |
Sign the message, returns true if successful. More... | |
static bool | VerifyMessage (const CPubKey pubkey, const std::vector< unsigned char > &vchSig, const std::string strMessage, std::string &strErrorRet) |
Verify the message signature, returns true if succcessful. More... | |
Helper class for signing messages and checking their signatures
Definition at line 12 of file messagesigner.h.
|
static |
Set the private/public key values, returns true if successful.
Definition at line 12 of file messagesigner.cpp.
Referenced by AppInit2(), CMasternodeBroadcast::Create(), gobject(), CDarkSendRelay::Sign(), CSporkMessage::Sign(), and CDarkSendRelay::VerifyMessage().
|
static |
Sign the message, returns true if successful.
Definition at line 24 of file messagesigner.cpp.
Referenced by CMasternodeMan::ProcessVerifyReply(), CMasternodeMan::SendVerifyReply(), CDarkSendRelay::Sign(), CMasternodePing::Sign(), CSporkMessage::Sign(), CGovernanceVote::Sign(), CMasternodePaymentVote::Sign(), CTxLockVote::Sign(), CDarksendQueue::Sign(), CGovernanceObject::Sign(), CDarksendBroadcastTx::Sign(), and CMasternodeBroadcast::Sign().
|
static |
Verify the message signature, returns true if succcessful.
Definition at line 33 of file messagesigner.cpp.
Referenced by CMasternodePing::CheckSignature(), CSporkMessage::CheckSignature(), CMasternodePaymentVote::CheckSignature(), CTxLockVote::CheckSignature(), CDarksendQueue::CheckSignature(), CGovernanceObject::CheckSignature(), CDarksendBroadcastTx::CheckSignature(), CMasternodeBroadcast::CheckSignature(), CGovernanceVote::IsValid(), CMasternodeMan::ProcessVerifyBroadcast(), CMasternodeMan::ProcessVerifyReply(), CMasternodeMan::SendVerifyReply(), CDarkSendRelay::Sign(), CMasternodePing::Sign(), CSporkMessage::Sign(), CGovernanceVote::Sign(), CMasternodePaymentVote::Sign(), CTxLockVote::Sign(), CGovernanceObject::Sign(), CMasternodeBroadcast::Sign(), and CDarkSendRelay::VerifyMessage().