6 #ifndef BITCOIN_UTIL_MESSAGE_H 7 #define BITCOIN_UTIL_MESSAGE_H 62 const std::string &address,
63 const std::string &signature,
64 const std::string &message);
75 std::string &signature);
85 #endif // BITCOIN_UTIL_MESSAGE_H The provided signature couldn't be parsed (maybe invalid base64).
CChainParams defines various tweakable parameters of a given instance of the Bitcoin system...
The message verification was successful.
std::string SigningResultString(const SigningResult res)
MessageVerificationResult
The result of a signed message verification.
bool MessageSign(const CKey &privkey, const std::string &message, std::string &signature)
Sign a message.
The message was not signed with the private key of the provided address.
const std::string MESSAGE_MAGIC
Text used to signify that a signed message follows and to prevent inadvertently signing a transaction...
The provided address is invalid.
MessageVerificationResult MessageVerify(const CChainParams ¶ms, const std::string &address, const std::string &signature, const std::string &message)
Verify a signed message.
An encapsulated secp256k1 private key.
A public key could not be recovered from the provided signature and message.
uint256 MessageHash(const std::string &message)
Hashes a message for signing and verification in a manner that prevents inadvertently signing a trans...
The provided address is valid but does not refer to a public key.