wallet::CWallet::SignMessage

Sign an arbitrary message with the key for a public key hash.

Synopsis

Declared in <wallet/wallet.h>

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

Return Value

The signing result status.

Parameters

NameDescription
messageThe message to sign.
pkhashThe public key hash whose key signs the message.
str_sigSet to the resulting signature.