-
Notifications
You must be signed in to change notification settings - Fork 405
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
refactor: use emulated.FieldParams as type parameter to generic Curve and Pairing #901
Conversation
Also @yelhousni - this also impact KZG verifier. |
📦 ❌
📦 ❌
📦 ❌
❌ ❌
📦 ❌ ❌
❌ ❌
|
📦 ❌
❌ ❌
|
6d69ac3
to
6ec8576
Compare
📦 ❌
❌ ❌
|
Description
For the PLONK and KZG verifiers we need to work on the scalar fields. However, in the existing parametrization we didn't have access to the field parameters and the 2-chain scalars weren't compatible.
This PR makes the generic
Curve
andPairing
interfaces parametric withemulated.FieldParams
which defines the scalar field. Accordingly, we update all the implementations to follow the convention. As now the scalars are emulated elements, then we also defined 2-chain scalars to be emulated elements which is more conventional.NB! This PR depends on #900 so that should be merged before.
Type of change
How has this been tested?
All existing tests pass as is.
How has this been benchmarked?
Not benchmarked.
Checklist:
golangci-lint
does not output errors locally