-
Notifications
You must be signed in to change notification settings - Fork 1
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
Enable subgroup checks for G1 and G2 via verifyOrder #29
base: develop
Are you sure you want to change the base?
Conversation
@@ -1,5 +1,6 @@ | |||
#!/usr/bin/env bash | |||
mcl_version="v1.28" | |||
#mcl_version="v1.28" | |||
mcl_version="5faedff92a72a685d4e6c94e1974ec2033b9d352" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this on purpose?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
waiting for mcl version v1.52
@Test | ||
public void testOnCurve() { | ||
MclBilinearGroupImpl bilGroupImpl = new MclBilinearGroupImpl(); | ||
MclGroup2Impl groupG2Impl = bilGroupImpl.getG2(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Did you test G1, too?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
on curve check works anyway (cannot be disabled) 👍
Needs |
Addresses #28 by adding
verifyOrderG1
andverifyOrderG2
to the FFI and enabling them after Mcl initialization. This means that subgroup checks are automatically done when using thesetStr
method which we use for deserialization.Is missing checks for GT since Mcl has no
verifyOrder
method for that.