| 1880 | } |
| 1881 | |
| 1882 | uint256 ComputeTapleafHash(uint8_t leaf_version, std::span<const unsigned char> script) |
| 1883 | { |
| 1884 | return (HashWriter{HASHER_TAPLEAF} << leaf_version << CompactSizeWriter(script.size()) << script).GetSHA256(); |
| 1885 | } |
| 1886 | |
| 1887 | uint256 ComputeTapbranchHash(std::span<const unsigned char> a, std::span<const unsigned char> b) |
| 1888 | { |