Verify a raw Schnorr signature against an x‐only public key and precomputed sighash.

Synopsis

Declared in <script/interpreter.h>

virtual
bool
VerifySchnorrSignature(
    std::span<unsigned char const> sig,
    XOnlyPubKey const& pubkey,
    uint256 const& sighash) const;

Return Value

true if the signature is valid.

Parameters

Name

Description

sig

The 64‐byte Schnorr signature.

pubkey

The x‐only public key to verify against.

sighash

The precomputed signature hash.

Created with MrDocs