[#GenericTransactionSignatureChecker-03-VerifySchnorrSignature]
= xref:GenericTransactionSignatureChecker-03.adoc[GenericTransactionSignatureChecker]::VerifySchnorrSignature
:relfileprefix: ../
:mrdocs:

Verify a raw Schnorr signature against an x&hyphen;only public key and precomputed sighash&period;

== Synopsis

Declared in `&lt;script&sol;interpreter&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
virtual
bool
VerifySchnorrSignature(
    std::span&lt;unsigned char const&gt; sig,
    xref:XOnlyPubKey.adoc[XOnlyPubKey] const& pubkey,
    xref:uint256.adoc[uint256] const& sighash) const;
----

== Return Value

`true` if the signature is valid&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *sig*
| The 64&hyphen;byte Schnorr signature&period;
| *pubkey*
| The x&hyphen;only public key to verify against&period;
| *sighash*
| The precomputed signature hash&period;
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
