ComputeTapbranchHash

Compute the BIP341 tapbranch hash from two branches. Spans must be 32 bytes each.

Synopsis

Declared in <script/interpreter.h>

uint256
ComputeTapbranchHash(
    std::span<unsigned char const> a,
    std::span<unsigned char const> b);

Return Value

The combined tapbranch hash.

Parameters

NameDescription
aThe first 32-byte branch hash.
bThe second 32-byte branch hash.