[#MessageSign]
= MessageSign
:mrdocs:

Sign a message&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
bool
MessageSign(
    xref:CKey.adoc[CKey] const& privkey,
    std::string const& message,
    std::string& signature);
----

== Return Value

true if signing was successful&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *privkey* [in]
| Private key to sign with&period;
| *message* [in]
| The message to sign&period;
| *signature* [out]
| Signature, base64 encoded, only set if true is returned&period;
|===


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