-
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
Subgroup checks #28
Comments
Edit: Missed the fact that this was written for Mclwrap. I am referring to Math in my comments. Taking a look at |
The easiest way to insert a check seems to be in the constructor of Secp256k1 has cofactor one so a curve check should be enough. We could think about integrating the curve check into |
Regarding mcl: I don't see that method in the Java FFI though, so we might need to call |
Configuring Any idea how to do that? ( |
My first idea would be to port |
Good plan. Maybe the existence of verifyOrderG1 is a good sign that the verifyOrderX methods also check the on-curve property. |
Even without |
There is now a pull request for the mcl addition here herumi/mcl#126. |
Todo: also need subgroup check for GT. @JanBobolz . Maybe just use their pow() to check. Try whether a random element in the large group has the pow(order) = 1 property (then pow() optimizes and we can't go that route.) |
When instantiating a GroupElementImpl (say, from Representation), I'm unclear whether our current implementation (1) checks if the given coordinates are on curve, and (2) if it's in the right subgroup.
Do we know? Can we find out?
The text was updated successfully, but these errors were encountered: