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

Unexpected behaviour for negative ZP element #6

Closed
GuthL opened this issue Aug 6, 2018 · 2 comments
Closed

Unexpected behaviour for negative ZP element #6

GuthL opened this issue Aug 6, 2018 · 2 comments

Comments

@GuthL
Copy link

GuthL commented Aug 6, 2018

Hi, first thanks for this library. I found it to be very interesting and easy to use (although I'm not full expert in Pairing-based)
I'm implementing the BBS signature and found out that negative ZP elements returns negative number.
This breaks the equality of bilinearity operation, aka e(-k.P,Q) != e(P,Q)**(-k)
If I do, j = -k % o, then e(j.P,Q) == e(P,Q)**j

@gdanezis
Copy link
Owner

Hi. Many thanks for the bug report, which I have confirmed. I have now pushed a new version of the library in the git repository, along with a test (test_negative) to check for the linearity even with negative scalars. Hope this works for you. I will wait for the CI to finish and push to pypi.

@gdanezis
Copy link
Owner

It is now uploaded as version 0.0.5. Thanks for your help -- and keep the bug reports coming!

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

2 participants