-
Notifications
You must be signed in to change notification settings - Fork 20
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
Check the proof size is a multiple of 60 #99
base: master
Are you sure you want to change the base?
Conversation
1d6d143
to
95f2a0e
Compare
95f2a0e
to
b9189bb
Compare
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #99 +/- ##
=======================================
Coverage 61.89% 61.89%
=======================================
Files 27 27
Lines 4091 4091
=======================================
Hits 2532 2532
Misses 1427 1427
Partials 132 132 ☔ View full report in Codecov by Sentry. |
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 looks correct to me
Description
The Go slow implementation and the Solidity implementation of the RISCV virtual machine are supposed to be equivalent.
The Go slow implementation ensures that the proof size is a multiple of 60.
However, the Solidity implementation doesn't check the
_proof
size.The Solidity implementation should implement a check to ensure that the
_proof
size is a multiple of32 * 60
as expected.