Create a BIP‐340 Schnorr signature using this key pair.

Synopsis

Declared in <key.h>

[[nodiscard]]
bool
SignSchnorr(
    uint256 const& hash,
    std::span<unsigned char> sig,
    uint256 const& aux) const;

Return Value

true if signing succeeded.

Note

The return value should not be discarded.

Parameters

Name

Description

hash

The 32‐byte message hash to sign.

sig

Output span (64 bytes) receiving the Schnorr signature.

aux

Additional nonce entropy.

Created with MrDocs