wallet::DescriptorScriptPubKeyMan::SignMessage

Signs a message with the key for the given script.

Synopsis

Declared in <wallet/scriptpubkeyman.h>

virtual
SigningResult
SignMessage(
    std::string const& message,
    PKHash const& pkhash,
    std::string& str_sig) const override;

Return Value

The result of the signing attempt.

Parameters

NameDescription
messageThe message to sign.
pkhashThe hash of the public key whose private key should sign.
str_sigFilled with the produced signature on success.