[#ComputeTapleafHash]
= ComputeTapleafHash
:mrdocs:

Compute the BIP341 tapleaf hash from leaf version &amp; script&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:uint256.adoc[uint256]
ComputeTapleafHash(
    uint8&lowbar;t leaf&lowbar;version,
    std::span&lt;unsigned char const&gt; script);
----

== Return Value

The tapleaf hash&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *leaf&lowbar;version*
| The tapleaf version byte&period;
| *script*
| The leaf script&period;
|===


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