-
Notifications
You must be signed in to change notification settings - Fork 25
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
feat(blockifier): add support for secp256k1 syscall for native #1940
Conversation
Artifacts upload triggered. View details here |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #1940 +/- ##
===========================================
+ Coverage 40.10% 68.90% +28.79%
===========================================
Files 26 109 +83
Lines 1895 13899 +12004
Branches 1895 13899 +12004
===========================================
+ Hits 760 9577 +8817
- Misses 1100 3913 +2813
- Partials 35 409 +374 ☔ View full report in Codecov by Sentry. 🚨 Try these New Features:
|
f54287b
to
2498eef
Compare
590ba1f
to
6040a7c
Compare
Artifacts upload triggered. View details here |
b3cfd3f
to
eee03a4
Compare
eee03a4
to
d4e7797
Compare
6040a7c
to
e5802a7
Compare
Artifacts upload triggered. View details here |
e5802a7
to
09aeab9
Compare
Artifacts upload triggered. View details here |
4a82593
to
3854b86
Compare
3854b86
to
4cb7875
Compare
2b9e215
to
05330c5
Compare
09aeab9
to
b0f016b
Compare
Artifacts upload triggered. View details here |
05330c5
to
e79c663
Compare
b0f016b
to
318e8f1
Compare
Artifacts upload triggered. View details here |
Artifacts upload triggered. View details here |
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.
Reviewed 3 of 3 files at r2, all commit messages.
Reviewable status: complete! all files reviewed, all discussions resolved (waiting on @avi-starkware and @Yoni-Starkware)
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.
Reviewed 3 of 3 files at r2, all commit messages.
Reviewable status: all files reviewed, 2 unresolved discussions (waiting on @varex83)
crates/blockifier/src/execution/native/syscall_handler.rs
line 642 at r2 (raw file):
Secp256Point::new(x, y) .map(|op| op.map(|p| p.into())) .map_err(|e| self.handle_error(remaining_gas, e))
Let's be consistent with #1675 .
Suggestion:
Secp256Point::new(x, y)
.map(|option| option.map(|p| p.into()))
.map_err(|err| self.handle_error(remaining_gas, err))
crates/blockifier/src/execution/native/syscall_handler.rs
line 680 at r2 (raw file):
Secp256Point::get_point_from_x(x, y_parity) .map(|op| op.map(|p| p.into())) .map_err(|e| self.handle_error(remaining_gas, e))
Let's be consistent with #1675 .
Suggestion:
Secp256Point::get_point_from_x(x, y_parity)
.map(|option| option.map(|p| p.into()))
.map_err(|err| self.handle_error(remaining_gas, err))
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.
Reviewable status: all files reviewed, 2 unresolved discussions (waiting on @varex83)
e79c663
to
d1de975
Compare
318e8f1
to
4020b0b
Compare
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.
Reviewed 2 of 2 files at r4.
Reviewable status: all files reviewed (commit messages unreviewed), all discussions resolved (waiting on @varex83)
68d9518
to
a5c6ab0
Compare
4020b0b
to
1fd22d6
Compare
Artifacts upload triggered. View details here |
1fd22d6
to
d053100
Compare
a5c6ab0
to
7278639
Compare
Artifacts upload triggered. View details here |
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.
Reviewed all commit messages.
Reviewable status: 1 of 81 files reviewed, all discussions resolved (waiting on @avi-starkware and @Yoni-Starkware)
7278639
to
3d40fd2
Compare
d053100
to
fda40a5
Compare
Artifacts upload triggered. View details here |
fda40a5
to
1a2a40c
Compare
Artifacts upload triggered. View details here |
1a2a40c
to
a4b4fe1
Compare
Artifacts upload triggered. View details here |
Artifacts upload triggered. View details here |
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.
Reviewed 2 of 2 files at r8, all commit messages.
Reviewable status: 3 of 81 files reviewed, all discussions resolved (waiting on @avi-starkware and @meship-starkware)
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.
Reviewable status: 3 of 81 files reviewed, all discussions resolved (waiting on @avi-starkware and @meship-starkware)
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.
Reviewed 1 of 80 files at r6.
Reviewable status: 4 of 81 files reviewed, all discussions resolved (waiting on @avi-starkware and @meship-starkware)
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.
Reviewed 77 of 80 files at r6.
Reviewable status: complete! all files reviewed, all discussions resolved (waiting on @varex83)
Should go after #1675 , #1813 , #1546 , #1545
Commit history will be changed in the future, so "feat: add support for keccak syscall" will be removed