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