[#wallet-CWallet-SignMessage] = xref:wallet.adoc[wallet]::xref:wallet/CWallet.adoc[CWallet]::SignMessage :relfileprefix: ../../ :mrdocs: Sign an arbitrary message with the key for a public key hash. == Synopsis Declared in `<wallet/wallet.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:SigningResult.adoc[SigningResult] SignMessage( std::string const& message, xref:PKHash.adoc[PKHash] const& pkhash, std::string& str_sig) const; ---- == Return Value The signing result status. == Parameters [cols="1,4"] |=== | Name| Description | *message* | The message to sign. | *pkhash* | The public key hash whose key signs the message. | *str_sig* | Set to the resulting signature. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#