def METHOD_NAME(value: bytes) -> bytes:
    """Calculate a hash of a leaf node based on its value.
    See documentation for `MerkleTree` for details.
    """
    return sha256(b"\x00" + value).digest()