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

stEIP2537 #713

Merged
merged 2 commits into from
Jul 10, 2020
Merged

stEIP2537 #713

merged 2 commits into from
Jul 10, 2020

Conversation

winsvega
Copy link
Collaborator

No description provided.

@winsvega winsvega mentioned this pull request Jul 10, 2020
@winsvega winsvega merged commit feb0442 into develop Jul 10, 2020
@jochem-brouwer
Copy link
Member

Hey there. This PR looks like it only creates tests for Berlin. It is thus not explicitly tested that pre-Berlin one cannot access the EIP 2537 precompiles. Pre-Berlin the storage slot should yield the string of an empty keccak (as the staticcalls will return an empty string, but they will succeed).

@jochem-brouwer
Copy link
Member

What's also not in these state tests are tests for empty inputs on the G1/G2 multiexponentation and pairing. These should be added. There are also no tests with inputs which do not have the expected length (i.e. the length of the input mod some constant is nonzero).

CC @shamatar

@jochem-brouwer
Copy link
Member

Also what might be a good idea is to add 4 tests for MapToG1 and MapToG2 where the Fp and Fp2 points are the Base field modulus (error) and Base field modulus - 1 (no error).

@shamatar
Copy link

There are negative tests for FpToG1 mapping (I think for Fp2 too) where field element is larger than modulus. You can make extra ones and PR to 1962 repo, there is a code there to make positive/negative tests and dump them to CSV.

@winsvega
Copy link
Collaborator Author

source for contract bytecode in fillers or generator script ?

@shamatar
Copy link

I've posted it in the original PR #712 (comment)

@winsvega
Copy link
Collaborator Author

The generator script? The tests txs also contain data.

@winsvega winsvega deleted the deip2537 branch November 1, 2020 13:07
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.

3 participants