KeyPair::SignSchnorr

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

NameDescription
hashThe 32-byte message hash to sign.
sigOutput span (64 bytes) receiving the Schnorr signature.
auxAdditional nonce entropy.