[#SignatureCache-ComputeEntrySchnorr]
= xref:SignatureCache.adoc[SignatureCache]::ComputeEntrySchnorr
:relfileprefix: ../
:mrdocs:

Compute the cache entry for a Schnorr signature check&period;

== Synopsis

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

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

== Parameters

[cols="1,4"]
|===
| Name| Description
| *entry*
| Output cache entry (salted hash of the inputs)&period;
| *hash*
| The signature hash that was signed&period;
| *sig*
| The Schnorr signature bytes&period;
| *pubkey*
| The X&hyphen;only public key the signature is checked against&period;
|===


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