[#ComputeTapbranchHash]
= ComputeTapbranchHash
:mrdocs:

Compute the BIP341 tapbranch hash from two branches&period; Spans must be 32 bytes each&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:uint256.adoc[uint256]
ComputeTapbranchHash(
    std::span&lt;unsigned char const&gt; a,
    std::span&lt;unsigned char const&gt; b);
----

== Return Value

The combined tapbranch hash&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *a*
| The first 32&hyphen;byte branch hash&period;
| *b*
| The second 32&hyphen;byte branch hash&period;
|===


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