def sha256(data: List[int]) -> List[int]:
    """

    :param data:
    :return:
    """
    try:
        byte_data = bytes(data)
    except TypeError:
        raise NativeContractException
    return list(bytearray(hashlib.sha256(byte_data).digest()))
def sha256 ( data : List [ int ] ) -> List [ int ] : try : byte_data = bytes ( data ) except TypeError : raise NativeContractException return list ( bytearray ( hashlib . sha256 ( byte_data ) . digest ( ) ) )
:param data:
    :return: