[#wallet-DescriptorScriptPubKeyMan-SignMessage] = xref:wallet.adoc[wallet]::xref:wallet/DescriptorScriptPubKeyMan.adoc[DescriptorScriptPubKeyMan]::SignMessage :relfileprefix: ../../ :mrdocs: Signs a message with the key for the given script. == Synopsis Declared in `<wallet/scriptpubkeyman.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- virtual xref:SigningResult.adoc[SigningResult] SignMessage( std::string const& message, xref:PKHash.adoc[PKHash] const& pkhash, std::string& str_sig) const override; ---- == Return Value The result of the signing attempt. == Parameters [cols="1,4"] |=== | Name| Description | *message* | The message to sign. | *pkhash* | The hash of the public key whose private key should sign. | *str_sig* | Filled with the produced signature on success. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#