-
Notifications
You must be signed in to change notification settings - Fork 20
OOB: add constraint to disallow the BLS precompiles from EIP-2537: Precompile for BLS12-381 curve operations use in Cancun #179
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
base: main
Are you sure you want to change the base?
OOB: add constraint to disallow the BLS precompiles from EIP-2537: Precompile for BLS12-381 curve operations use in Cancun #179
Conversation
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 would suggest the following change
- create two new shorthands
\locFlagSumEipBlobTransactions
which is just POINT_EVALUATION\locFlagSumEipBlsTwelvePrecompiles
which is the sum of the other BLS precompile flags
- make
locPrcFlagSumBls
be the sum of these two - replace the vanishing condition with
If the Ethereum network configuration is at the Cancun hard fork, one may further impose
$\ locFlagSumEipBlsTwelvePrecompiles _{i} = 0$
The reason for this request is that POINTEVALUATION
is itself BLS related, so the condition is confusing. One may alternatively use shorthands à la
\locFlagSumNewCancunPrecompiles
\locFlagSumNewPraguePrecompiles
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.
Very minor fixes.
\locFlagSumEipBlobTransactions_{i} & \define & | ||
\left[ \begin{array}{cl} | ||
+ & \oobInstIsPointEvaluation_{i} \\ | ||
\end{array} \right] \vspace{2mm} \\ |
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.
Here you can remove the array (as we aren't summing anything, it's just one term.)
\maxCtFlagSumPrcBls_{i} & \define & | ||
\left[ \begin{array}{cl} | ||
+ & \maxCtFlagSumPrcEipBlobTransactions_ {i} \\ | ||
+ & \maxCtFlagSumPrcEipBlsTwelvePrecompiles_ {i} \\ |
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.
It should be
\macroName _{i}
\weightedPrcEipBlobTransactions_{i} & \define & | ||
\left[ \begin{array}{crcl} | ||
+ & \oobInstPointEvaluation & \cdot & \oobInstIsPointEvaluation _{i} \\ | ||
\end{array} \right] \vspace{2mm} \\ |
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.
Similarly here, no need for an array as it's a single term.
\left[ \begin{array}{crcl} | ||
+ & \oobCtMaxPointEvaluation & \cdot & \oobInstIsPointEvaluation _{i} \\ | ||
\end{array} \right] \vspace{2mm} \\ | ||
\maxCtFlagSumPrcEipBlsTwelvePrecompiles_{i} & \define & |
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.
Same array comment
No description provided.