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

Extensive MODEXP testing WIP #1491

Open
OlivierBBB opened this issue Nov 8, 2024 · 0 comments
Open

Extensive MODEXP testing WIP #1491

OlivierBBB opened this issue Nov 8, 2024 · 0 comments
Labels

Comments

@OlivierBBB
Copy link
Collaborator

We need to write tests for MODEXP that will test the various combinations of the following:

Tiny call data: have a `CDS` parameter of
0,
19, 32 + 19, 64 + 19,
32 - 1, 64 - 1, 96 - 1, 

// 19 is just some fixed value

32 * x + 19 cases: make it so that the call data contains NONZERO bytes after the last call data byte
32 * x - 1  cases: make it so that the final byte is 0x02 and the following bytes are random nonzero values

The purpose of the "-1" case is to test for the legal value 0x200 = 512 of one of the bbs, ebs, mbs values
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants