group = PairingGroup('SS512')
g = group.random(G1)
# x is a random integer with 512bits
sig = int(x)*g
When I run the sig = x*g, it display
OverflowError: Python int too large to convert to C long
if x is a small integer such as 111111, It runs successfully.
x = group.init(ZR, int(x)) can resolve this error, but 512bits exceed the ZR so x would be changed.
python 3.7.1
When I run the
sig = x*g
, it displayOverflowError: Python int too large to convert to C long
if x is a small integer such as
111111
, It runs successfully.x = group.init(ZR, int(x))
can resolve this error, but 512bits exceed the ZR so x would be changed.