XOnlyPubKey::VerifySchnorr

Verify a Schnorr signature against this public key.

Synopsis

Declared in <pubkey.h>

bool
VerifySchnorr(
    uint256 const& msg,
    std::span<unsigned char const> sigbytes) const;

Description

sigbytes must be exactly 64 bytes.

Return Value

true if the signature is valid for this public key.

Parameters

NameDescription
msgThe 32-byte message hash that was signed.
sigbytesThe 64-byte Schnorr signature to verify.