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

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

#include <messagesigner.h>

Static Public Member Functions

static bool SignHash (const uint256 &hash, const CKey &key, std::vector< unsigned char > &vchSigRet)
 Sign the hash, returns true if successful. More...
 
static bool SignHash (const uint256 &hash, const CBLSSecretKey &key, std::vector< unsigned char > &vchSigRet)
 Sign the hash with BLS key, returns true if successful. More...
 
static bool VerifyHash (const uint256 &hash, const CPubKey &pubkey, const std::vector< unsigned char > &vchSig, std::string &strErrorRet)
 Verify the hash signature, returns true if successful. More...
 
static bool VerifyHash (const uint256 &hash, const CKeyID &keyID, const std::vector< unsigned char > &vchSig, std::string &strErrorRet)
 Verify the hash signature, returns true if successful. More...
 
static bool VerifyHash (const uint256 &hash, const CBLSPublicKey &pk, const std::vector< unsigned char > &vchSig)
 Verify the hash BLS signature, returns true if successful. More...
 

Detailed Description

Helper class for signing hashes and checking their signatures.

Definition at line 44 of file messagesigner.h.

Member Function Documentation

◆ SignHash() [1/2]

bool CHashSigner::SignHash ( const uint256 hash,
const CBLSSecretKey key,
std::vector< unsigned char > &  vchSigRet 
)
static

Sign the hash with BLS key, returns true if successful.

Definition at line 74 of file messagesigner.cpp.

Here is the call graph for this function:

◆ SignHash() [2/2]

bool CHashSigner::SignHash ( const uint256 hash,
const CKey key,
std::vector< unsigned char > &  vchSigRet 
)
static

Sign the hash, returns true if successful.

Definition at line 69 of file messagesigner.cpp.

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

◆ VerifyHash() [1/3]

bool CHashSigner::VerifyHash ( const uint256 hash,
const CBLSPublicKey pk,
const std::vector< unsigned char > &  vchSig 
)
static

Verify the hash BLS signature, returns true if successful.

Definition at line 106 of file messagesigner.cpp.

Here is the call graph for this function:

◆ VerifyHash() [2/3]

bool CHashSigner::VerifyHash ( const uint256 hash,
const CKeyID keyID,
const std::vector< unsigned char > &  vchSig,
std::string &  strErrorRet 
)
static

Verify the hash signature, returns true if successful.

Definition at line 88 of file messagesigner.cpp.

Here is the call graph for this function:

◆ VerifyHash() [3/3]

bool CHashSigner::VerifyHash ( const uint256 hash,
const CPubKey pubkey,
const std::vector< unsigned char > &  vchSig,
std::string &  strErrorRet 
)
static

Verify the hash signature, returns true if successful.

Definition at line 83 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: