-
Notifications
You must be signed in to change notification settings - Fork 184
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
[Flow EVM] fix the issue with the hash calculation of the direct calls #6118
[Flow EVM] fix the issue with the hash calculation of the direct calls #6118
Conversation
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.
LGTM!
A few comments might need an update.
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.
Awesome 🎉
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 requires an HCU on previewnet right?
@janezpodhostnik yes, it might also break some older tranasactions, so we might keep it for the testnet :-? |
That means that if we merge this, we will have to be careful to exclude it from any upgrades we do to previewnet in the future. |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #6118 +/- ##
=======================================
Coverage 41.62% 41.62%
=======================================
Files 1973 1973
Lines 139330 139331 +1
=======================================
+ Hits 57990 57995 +5
+ Misses 75318 75316 -2
+ Partials 6022 6020 -2
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
…of github.com:onflow/flow-go into ramtin/6115-fix-potential-hash-issue-for-direct-calls
Closes: #6115
To support the 3rd party tools that are not Flow aware, we compute the hash for the direct calls using Legacy Tx format. Yet we don't have signatures, and the uniqueness of hash values is dependent on the source (From field) and nonce. In this PR we define a canonical format for the legacy tx where we include the source information as part of the signatures (V) and we also define what should be set for R, and S.