Dash Core  0.12.2.1
P2P Digital Currency
CMessageSigner Class Reference

#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...
 

Detailed Description

Helper class for signing messages and checking their signatures

Definition at line 12 of file messagesigner.h.

Member Function Documentation

◆ GetKeysFromSecret()

bool CMessageSigner::GetKeysFromSecret ( const std::string  strSecret,
CKey keyRet,
CPubKey pubkeyRet 
)
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().

◆ SignMessage()

bool CMessageSigner::SignMessage ( const std::string  strMessage,
std::vector< unsigned char > &  vchSigRet,
const CKey  key 
)
static

◆ VerifyMessage()


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