Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OverflowError when a G1 element and 512-bit large integer are multiplied #292

Open
windhost opened this issue Apr 19, 2023 · 0 comments
Open

Comments

@windhost
Copy link

windhost commented Apr 19, 2023

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant