6 #ifndef BITCOIN_COMMON_SIGNMESSAGE_H 7 #define BITCOIN_COMMON_SIGNMESSAGE_H 55 const std::string& address,
56 const std::string& signature,
57 const std::string& message);
66 const std::string& message,
67 std::string& signature);
77 #endif // BITCOIN_COMMON_SIGNMESSAGE_H A public key could not be recovered from the provided signature and message.
The message verification was successful.
The provided address is invalid.
The provided signature couldn't be parsed (maybe invalid base64).
uint256 MessageHash(const std::string &message)
Hashes a message for signing and verification in a manner that prevents inadvertently signing a trans...
MessageVerificationResult
The result of a signed message verification.
bool MessageSign(const CKey &privkey, const std::string &message, std::string &signature)
Sign a message.
const std::string MESSAGE_MAGIC
Text used to signify that a signed message follows and to prevent inadvertently signing a transaction...
MessageVerificationResult MessageVerify(const std::string &address, const std::string &signature, const std::string &message)
Verify a signed message.
The message was not signed with the private key of the provided address.
The provided address is valid but does not refer to a public key.
std::string SigningResultString(const SigningResult res)
An encapsulated private key.