from hashlib import sha3_256


def sha256(obj: bytes) -> bytes:
    """
    hash any bytes with sha3-256
    
    :param obj: bytes object
    :return: the hash
    """
    h = sha3_256()
    h.update(obj)
    return h.digest()