[#MessageVerificationResult]
= MessageVerificationResult
:mrdocs:

The result of a signed message verification&period; Message verification takes as an input&colon; &hyphen; address (with whose private key the message is supposed to have been signed) &hyphen; signature &hyphen; message

== Synopsis

Declared in `&lt;common&sol;signmessage&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
enum class MessageVerificationResult : int;
----

== Members

[cols="1,4"]
|===
| Name| Description
| `ERR&lowbar;INVALID&lowbar;ADDRESS` 
| The provided address is invalid&period;
| `ERR&lowbar;ADDRESS&lowbar;NO&lowbar;KEY` 
| The provided address is valid but does not refer to a public key&period;
| `ERR&lowbar;MALFORMED&lowbar;SIGNATURE` 
| The provided signature couldn&apos;t be parsed (maybe invalid base64)&period;
| `ERR&lowbar;PUBKEY&lowbar;NOT&lowbar;RECOVERED` 
| A public key could not be recovered from the provided signature and message&period;
| `ERR&lowbar;NOT&lowbar;SIGNED` 
| The message was not signed with the private key of the provided address&period;
| `OK` 
| The message verification was successful&period;
|===


== Non-Member Functions

[cols="1,4"]
|===
| Name| Description
| xref:MessageVerify.adoc[`MessageVerify`]
| Verify a signed message&period;
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
