def i2le_script(number: int) ->str:
    """
    Convert int to signed little endian (LE) hex for use within scripts

    Args:
        number: int value to convert to bytes in LE format
    Returns:
        the hex-encoded signed LE number
    """
    if number == 0:
        return '00'
    for i in range(520):
        try:
            return number.to_bytes(length=i, byteorder='little', signed=True
                ).hex()
        except OverflowError:
            continue
    raise ValueError('Number cannot be expressed in 520 bytes or less')
