Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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
Implement RSA verification #4952
Implement RSA verification #4952
Changes from 28 commits
b9f144c
41949e6
0abe46b
0a1691c
1189ae7
d98a3f9
2ef35d1
f110d43
6dcc26d
1b2ba49
fe0927f
78301ea
74d667c
b6334ea
5379609
667c8b2
d3eb6a5
fbd2130
cc37629
0127de3
445d6fa
52fdb34
f007a74
d07fb84
b3e56ec
7596e4d
5ceb396
abe598d
70a9dea
d4096aa
413916f
aff3b81
84ae125
28c8271
219100b
95233b5
56eac45
63969dc
f50d89a
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
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.
this test is actually not reverting at the modExp step, but instead here because of
sp > np
. is there a way we can have more accurate checks when the return data is a boolean? maybe by measuring gas?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 feels like the only way for modExp to fail is if
mod = 0
. If we check thats < n
, then we know thatn > 0
, and there may be no way for modExp to fail.