OverflowError when a G1 element and 512-bit large integer are multiplied
windhost opened this issue · 0 comments
windhost commented
python 3.7.1
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.