![]() |
PIVX Core
5.6.99
P2P Digital Currency
|
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 | GetKeysFromSecret (const std::string &strSecret, CKey &keyRet, CKeyID &keyIDRet) |
| static uint256 | GetMessageHash (const std::string &strMessage) |
| Get the hash based on the input message. 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 | SignMessage (const std::string &strMessage, std::vector< unsigned char > &vchSigRet, const CBLSSecretKey &key) |
| Sign the message with BLS key, 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 successful. 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 successful. More... | |
| static bool | VerifyMessage (const CBLSPublicKey &pk, const std::vector< unsigned char > &vchSig, const std::string &strMessage) |
| Verify the message BLS signature, returns true if successful. More... | |
Helper class for signing messages and checking their signatures.
Definition at line 22 of file messagesigner.h.
|
static |
Set the private/public key values, returns true if successful.
Definition at line 16 of file messagesigner.cpp.
|
static |
Get the hash based on the input message.
Definition at line 36 of file messagesigner.cpp.
|
static |
Sign the message with BLS key, returns true if successful.
Definition at line 49 of file messagesigner.cpp.
|
static |
Sign the message, returns true if successful.
Definition at line 44 of file messagesigner.cpp.
|
static |
Verify the message BLS signature, returns true if successful.
Definition at line 64 of file messagesigner.cpp.
|
static |
Verify the message signature, returns true if successful.
Definition at line 59 of file messagesigner.cpp.
|
static |
Verify the message signature, returns true if successful.
Definition at line 54 of file messagesigner.cpp.