-
Notifications
You must be signed in to change notification settings - Fork 168
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
Expose primeOrder #259
Comments
David says: I would just need to be able to access |
I would maybe suggest that david makes a copy of that variable inside his own code if "Only wants that value" and not the cardinality for all possible groups. Only a suggestion... |
In Javascript and Java I had to access that value for different reasons, so it is definitively something that will be used if it's exposed. Can we put that into some generic parameter-readonly field or a method? |
It might be worth adding an (optional) interface somewhere by which a caller can query multiple curve parameters that may be of interest in different circumstances, such as (a) the curve order, (b) the order of the underlying field used in the curve's representation, (c) the large prime and cofactor (possibly 1) comprising the curve's order. |
It is not clear enough what we expect here, and there are easy workarounds if David needs them. |
It seems that the use cases discussed in this issue have found workarounds. @si-co do you think we should leave this open, or shall we close it as part of the ongoing clean-up ? |
The optional interface proposed by @bford would be useful and not difficult to implement, but since there are workarounds and given the multiple urgent issues in the repo I'd close (for now). |
From dedis/onet#256: Would it be possible to add a function to get the cardinality of the elliptic curve that is used ?
The text was updated successfully, but these errors were encountered: