-
Notifications
You must be signed in to change notification settings - Fork 5.4k
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
Update EIP-2537: Added MSM and pairings precompiles without subgroup checks #8965
Update EIP-2537: Added MSM and pairings precompiles without subgroup checks #8965
Conversation
Marchhill
commented
Oct 15, 2024
- Removed redundant MUL operations to minimise increase in precompile count (as in Update EIP-2537: Remove redundant MUL precompiles #8945).
- Added 'unsafe' MSM and pairings precompiles that do not have subgroup checks.
- todo: Determine relative pricing of precompiles with and without subgroup checks
File
|
|
@Marchhill may you motivate these proposed changes ? |
Added some motivation for unsafe precompiles. |
- BLS12_PAIRING_CHECK - to perform a pairing operations between a set of *pairs* of (G1, G2) points a gas cost formula defined in the corresponding section | ||
- BLS12_PAIRING_CHECK_UNSAFE - identical to BLS12_PAIRING_CHECK except that subgroup checks will **not** be performed. |
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.
I think this is no-starter. How are you going to define this operation for points outside of the main prime subgroup?
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.
totally agree with @chfast here!!