[#SigHashCache-Store]
= xref:SigHashCache.adoc[SigHashCache]::Store
:relfileprefix: ../
:mrdocs:

Store into this cache object the provided SHA256 midstate&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
void
Store(
    int32&lowbar;t hash&lowbar;type,
    xref:CScript.adoc[CScript] const& script&lowbar;code,
    xref:HashWriter.adoc[HashWriter] const& writer) noexcept;
----

== Parameters

[cols="1,4"]
|===
| Name| Description
| *hash&lowbar;type*
| The sighash type selecting the cache entry&period;
| *script&lowbar;code*
| The scriptCode the midstate is computed for&period;
| *writer*
| The SHA256 midstate to cache&period;
|===


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