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

chore: generalize support for different curves in sw_emulated #1303

Open
ivokub opened this issue Oct 22, 2024 · 0 comments
Open

chore: generalize support for different curves in sw_emulated #1303

ivokub opened this issue Oct 22, 2024 · 0 comments
Assignees
Labels
cleanup consolidate strengthen an existing feature

Comments

@ivokub
Copy link
Collaborator

ivokub commented Oct 22, 2024

We currently do a lot of type switching for the tests and the hint. We should probably make it a bit more generic so that we could support all possible curves for which we have the field emulation.

It would be excellent if we could even support curves over field emulation parameters which are not included in std/math/emulated/emparams, but this would require knowing the NbLimbs and NbBitsPerLimb inside hint, but the hints cannot be parametric as the solver is not able to find it then.

Maybe we could have a very generic *big.Int based scalar multiplication where we only define curve coefficients and modulus for using inside hint. It's cost would probably be insignificant compared to rest of the solver.

cc @yelhousni

@ivokub ivokub added cleanup consolidate strengthen an existing feature labels Oct 22, 2024
@ivokub ivokub self-assigned this Oct 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cleanup consolidate strengthen an existing feature
Projects
None yet
Development

No branches or pull requests

1 participant