-
Notifications
You must be signed in to change notification settings - Fork 127
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
(WIP) Call fixes precompiles #168
Merged
Merged
Changes from all commits
Commits
Show all changes
28 commits
Select commit
Hold shift + click to select a range
62968bf
Initial support for precompiles with ecRecover
coffeepots e2087f0
Remove precompile hash table
coffeepots 36270ff
Fixes for Call gas usage, Calls use precompiles, pass down their opCode
coffeepots fcffd94
Support different endians
coffeepots 3deb09b
Add SHA256, RIPEMD160 and Identity precompiles
coffeepots 3249c3e
Add precompile costs
coffeepots 6a4cd4e
Update precompile gas costs case (cosmetic change)
coffeepots 9318ea9
Added nim-bncurve dependency.
cheatfate 38b4d54
Add modExp precompile + gas costs
mratsim 0494e2a
Support short inputs with missing bytes
mratsim bb6e1e1
modExp precompiles: fix padding and static evaluation
mratsim 2ee9861
Precompile test data
coffeepots 7c77886
Allow simpler json files to be processed, add dir sep for echo
coffeepots e53222c
Test suite for precompiles
coffeepots 6cd1964
Merge branch 'call-fixes-precompiles' of https://github.com/status-im…
coffeepots 67df44e
Fix ecrecover, pad ripemd result and use sha256 vs keccak256
coffeepots 4ca4a85
Remove bogus sha256 tests
coffeepots 6e4616e
Precompiles now executed if called from vm_state_transactions
coffeepots 0b15b86
Fix ecMul, ecPairing, ecAdd.
cheatfate 826ce4f
Current test output
coffeepots 434edcc
Fix incorrect message parameters (had sender and destination swapped)
coffeepots 7ba1cfa
Remove endian code, precompiles should now run. Removed raise as case…
coffeepots 6b1e989
Add initial gas cost for CREATE
coffeepots 492d2ae
Debug message for new messages
coffeepots 6eb430f
Fix CREATE op code gas costs, more debug output, call transactions
coffeepots 1cead76
Add note about cyclic dep
coffeepots 4c6a686
Current general tests state
coffeepots 0366dd4
Remove irrelevant comments
coffeepots File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
PrecompileTests | ||
=== | ||
## PrecompileTests | ||
```diff | ||
+ bn256Add.json OK | ||
+ bn256mul.json OK | ||
+ ecrecover.json OK | ||
+ identity.json OK | ||
- modexp.json Fail | ||
+ pairing.json OK | ||
+ ripemd160.json OK | ||
+ sha256.json OK | ||
``` | ||
OK: 7/8 Fail: 1/8 Skip: 0/8 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
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.
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.
If this proc is generic now (due to the static param), it would make sense to extract the parts of it that don't depend on the
opCode
param in helper procs (the goal would be the reduce the overall code size).