MessageVerificationResult

The result of a signed message verification. Message verification takes as an input: - address (with whose private key the message is supposed to have been signed) - signature - message

Synopsis

Declared in <common/signmessage.h>

enum class MessageVerificationResult : int;

Members

NameDescription
ERR_INVALID_ADDRESS The provided address is invalid.
ERR_ADDRESS_NO_KEY The provided address is valid but does not refer to a public key.
ERR_MALFORMED_SIGNATURE The provided signature couldn't be parsed (maybe invalid base64).
ERR_PUBKEY_NOT_RECOVERED A public key could not be recovered from the provided signature and message.
ERR_NOT_SIGNED The message was not signed with the private key of the provided address.
OK The message verification was successful.

Non-Member Functions

NameDescription
MessageVerifyVerify a signed message.