Skip to content

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

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

lorenzogentile404
Copy link
Contributor

No description provided.

Copy link
Collaborator

@OlivierBBB OlivierBBB left a 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

Copy link
Collaborator

@OlivierBBB OlivierBBB left a 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} \\
Copy link
Collaborator

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} \\
Copy link
Collaborator

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} \\
Copy link
Collaborator

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 &
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same array comment

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

OOB: add constraint to disallow the BLS precompiles from EIP-2537: Precompile for BLS12-381 curve operations use in Cancun
2 participants