[#XOnlyPubKey-VerifySchnorr]
= xref:XOnlyPubKey.adoc[XOnlyPubKey]::VerifySchnorr
:relfileprefix: ../
:mrdocs:

Verify a Schnorr signature against this public key&period;

== Synopsis

Declared in `&lt;pubkey&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
bool
VerifySchnorr(
    xref:uint256.adoc[uint256] const& msg,
    std::span&lt;unsigned char const&gt; sigbytes) const;
----

== Description

sigbytes must be exactly 64 bytes&period;

== Return Value

true if the signature is valid for this public key&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *msg*
| The 32&hyphen;byte message hash that was signed&period;
| *sigbytes*
| The 64&hyphen;byte Schnorr signature to verify&period;
|===


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