Hashes a script into an asset ID using SHA256 followed by RIPEMD160.

        :param bytes data: The data to hash.

def hash_script(data):
        """
        Hashes a script into an asset ID using SHA256 followed by RIPEMD160.

        :param bytes data: The data to hash.
        """
        sha256 = hashlib.sha256()
        ripemd = hashlib.new('ripemd160')

        sha256.update(data)
        ripemd.update(sha256.digest())
        return ripemd.digest()