[#GenericTransactionSignatureChecker-03-CheckSchnorrSignature] = xref:GenericTransactionSignatureChecker-03.adoc[GenericTransactionSignatureChecker]::CheckSchnorrSignature :relfileprefix: ../ :mrdocs: Verify a Schnorr signature for this transaction's input. == Synopsis Declared in `<script/interpreter.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- virtual bool CheckSchnorrSignature( std::span<unsigned char const> sig, std::span<unsigned char const> pubkey, xref:SigVersion.adoc[SigVersion] sigversion, xref:ScriptExecutionData.adoc[ScriptExecutionData]& execdata, xref:ScriptError.adoc[ScriptError]* serror = nullptr) const override; ---- == Return Value `true` if the signature is valid. == Parameters [cols="1,4"] |=== | Name| Description | *sig* | The 64‐ or 65‐byte Schnorr signature. | *pubkey* | The 32‐byte x‐only public key. | *sigversion* | The signature version selecting the hashing scheme. | *execdata* | Per‐input execution state used by the sighash. | *serror* | Set to the script error when verification fails. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#