Skip to content

Add modulo reduction for group.init of ZR#198

Merged
jakinyele merged 1 commit intoJHUISI:devfrom
timothymctim:patch-1
Feb 11, 2019
Merged

Add modulo reduction for group.init of ZR#198
jakinyele merged 1 commit intoJHUISI:devfrom
timothymctim:patch-1

Conversation

@timothymctim
Copy link
Copy Markdown
Contributor

Group initialization didn’t cause the element to be reduced with the modulus. This means that group.init(ZR, x) != 1 * group.init(ZR, x) for large values of x. To avoid this problem, one could alternatively initialize group elements using x % group.order().

@jakinyele jakinyele merged commit 13cee75 into JHUISI:dev Feb 11, 2019
@timothymctim timothymctim deleted the patch-1 branch February 18, 2019 20:39
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

Successfully merging this pull request may close these issues.

2 participants