Verify a raw Schnorr signature against an x-only public key and precomputed sighash.
Declared in <script/interpreter.h>
virtual
bool
VerifySchnorrSignature(
std::span<unsigned char const> sig,
XOnlyPubKey const& pubkey,
uint256 const& sighash) const;
true if the signature is valid.
| Name | Description |
|---|---|
| sig | The 64-byte Schnorr signature. |
| pubkey | The x-only public key to verify against. |
| sighash | The precomputed signature hash. |