MCPcopy Create free account
hub / github.com/ElementsProject/elements / ComputeTapleafHash

Function ComputeTapleafHash

src/script/interpreter.cpp:3251–3254  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3249}
3250
3251uint256 ComputeTapleafHash(uint8_t leaf_version, const CScript& script)
3252{
3253 return (CHashWriter(HASHER_TAPLEAF_ELEMENTS) << leaf_version << script).GetSHA256();
3254}
3255
3256uint256 ComputeTaprootMerkleRoot(Span<const unsigned char> control, const uint256& tapleaf_hash)
3257{

Callers 3

VerifyWitnessProgramFunction · 0.85
InferTaprootTreeFunction · 0.85
FUZZ_TARGET_INITFunction · 0.85

Calls 2

CHashWriterClass · 0.85
GetSHA256Method · 0.80

Tested by 1

FUZZ_TARGET_INITFunction · 0.68