Sign a message.

Synopsis

Declared in <common/signmessage.h>

bool
MessageSign(
    CKey const& privkey,
    std::string const& message,
    std::string& signature);

Return Value

true if signing was successful.

Parameters

Name

Description

privkey [in]

Private key to sign with.

message [in]

The message to sign.

signature [out]

Signature, base64 encoded, only set if true is returned.

Created with MrDocs