def int_to_bigint(value):
    if value.bit_length() > 63:
        return value.to_bytes((value.bit_length() + 9) // 8, 'little', signed=True)
    return value
Convert integers larger than 64 bits to bytearray
dataset/ETHPy150Open jborg/attic/attic/helpers.py/int_to_bigint