PRCYCoin  2.0.0.7rc1
P2P Digital Currency
Static Public Member Functions | List of all members
CMessageSigner Class Reference

Helper class for signing messages and checking their signatures. More...

#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...
 
static bool VerifyMessage (const CKeyID &keyID, 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 13 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 13 of file messagesigner.cpp.

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

◆ SignMessage()

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

Sign the message, returns true if successful.

Definition at line 25 of file messagesigner.cpp.

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

◆ VerifyMessage() [1/2]

bool CMessageSigner::VerifyMessage ( const CKeyID keyID,
const std::vector< unsigned char > &  vchSig,
const std::string &  strMessage,
std::string &  strErrorRet 
)
static

Verify the message signature, returns true if succcessful.

Definition at line 39 of file messagesigner.cpp.

Here is the call graph for this function:

◆ VerifyMessage() [2/2]

bool CMessageSigner::VerifyMessage ( const CPubKey pubkey,
const std::vector< unsigned char > &  vchSig,
const std::string &  strMessage,
std::string &  strErrorRet 
)
static

Verify the message signature, returns true if succcessful.

Definition at line 34 of file messagesigner.cpp.

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

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