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

Name

Description

message

The message to sign.

pkhash

The public key hash whose key signs the message.

str_sig

Set to the resulting signature.

Created with MrDocs