380 Commits

Author SHA1 Message Date
Daniel Lubarov
1b4acf5917 Make load_code a bit more general
So that it can be used to load code we're going to execute into the code segment of a certain context.
2022-11-21 13:54:39 -08:00
Daniel Lubarov
d23cecfcd8 Kernel code to do jumpdest analysis 2022-11-21 13:06:03 -08:00
Hamish Ivey-Law
1c87fbb712
EVM shift left/right operations (#801)
* First parts of shift implementation.

* Disable range check errors.

* Tidy up ASM.

* Update comments; fix some .sum() expressions.

* First full draft of shift left/right.

* Missed a +1.

* Clippy.

* Address Jacqui's comments.

* Add comment.

* Fix missing filter.

* Address second round of comments from Jacqui.
2022-11-09 10:47:15 +11:00
Jacqueline Nabaglo
626c2583de
Combine all syscalls into one flag (#802)
* Combine all syscalls into one flag

* Minor: typo

* Daniel PR comments
2022-11-07 12:29:28 -08:00
wborgeaud
68107502df Merge branch 'main' into account_code_opcodes
# Conflicts:
#	evm/src/cpu/kernel/aggregator.rs
#	evm/src/cpu/kernel/tests/mod.rs
2022-11-02 13:46:14 +01:00
wborgeaud
313402de02
Merge pull request #797 from mir-protocol/balance
Implement `(SELF)BALANCE`
2022-11-02 13:44:29 +01:00
wborgeaud
8198355565 Fix + Use context=0 2022-11-02 11:06:14 +01:00
wborgeaud
70b5dda399 Merge branch 'main' into account_code_opcodes 2022-11-02 10:43:35 +01:00
wborgeaud
35c00fa6a7 Return 0 if account doesn't exist 2022-11-02 10:37:19 +01:00
wborgeaud
ff4210ea78 Return 0 if account doesn't exist 2022-11-02 10:03:40 +01:00
wborgeaud
f3d4e57aa6 Use address macro instead of opcode 2022-10-31 10:48:57 +01:00
wborgeaud
7647c5b51b Use address macro instead of opcode 2022-10-31 10:15:43 +01:00
wborgeaud
6ed6574272 Balance 2022-10-28 11:15:43 +02:00
Dmitry Vagner
ccf5cda122 spacing 2022-10-28 02:11:22 -07:00
Dmitry Vagner
f90c058a52 minor 2022-10-28 02:09:56 -07:00
Dmitry Vagner
7d78916a6f merge 2022-10-28 02:03:52 -07:00
Dmitry Vagner
fa05a33040 Merge branch 'main' of github.com:mir-protocol/plonky2 into Fp12 2022-10-28 02:03:47 -07:00
Dmitry Vagner
a8ecdc0f69 improve comments 2022-10-28 02:01:04 -07:00
wborgeaud
fd96d30e24 Minor 2022-10-27 14:57:17 +02:00
wborgeaud
dc8a62fbee Codecopy test 2022-10-27 11:06:24 +02:00
wborgeaud
8b1152c3b3 Working codesize 2022-10-27 09:32:29 +02:00
wborgeaud
3026533a8a Fix keccak256_word 2022-10-26 16:44:05 +02:00
wborgeaud
03d7f3d17e Found bug 2022-10-26 16:39:31 +02:00
wborgeaud
0d4cf5be47 Minor 2022-10-26 15:45:34 +02:00
Dmitry Vagner
faeb6e0bb0 comments 2022-10-25 17:14:15 -04:00
Dmitry Vagner
7158714618 minor 2022-10-25 17:11:33 -04:00
Dmitry Vagner
f6a30cba7c better comments 2022-10-25 17:09:25 -04:00
Dmitry Vagner
59dc9b2d8e clean up test 2022-10-25 16:59:32 -04:00
Dmitry Vagner
cddc22e996 better comments 2022-10-22 16:17:51 -04:00
Dmitry Vagner
0588580961 fp12 passes tests! 2022-10-22 14:42:50 -04:00
Dmitry Vagner
a424916e9d cleanup comments 2022-10-22 13:44:01 -04:00
Dmitry Vagner
9a001487b4 better comments 2022-10-22 13:28:12 -04:00
Dmitry Vagner
32f1e67984 fp6 test passes 2022-10-22 13:16:07 -04:00
Dmitry Vagner
2d7f3e739b new fp6 2022-10-22 09:53:16 -04:00
wborgeaud
560b9b2a97 Finish extcodecopy 2022-10-21 18:11:27 +02:00
wborgeaud
9e21a25aff Merge branch 'main' into account_code_opcodes 2022-10-21 18:02:27 +02:00
wborgeaud
6b4cce21d8 Start 2022-10-21 18:00:41 +02:00
Dmitry Vagner
06e0dd643b fp6 as fn 2022-10-20 17:35:43 -04:00
Dmitry Vagner
3ccafd88d9 richer comments 2022-10-20 17:30:23 -04:00
Dmitry Vagner
1c2fab6718 richer comments 2022-10-20 16:48:31 -04:00
Dmitry Vagner
7d4cec55fb fp6 mul 2022-10-20 16:18:41 -04:00
Dmitry Vagner
cad27241c1 finish macros 2022-10-20 16:07:39 -04:00
wborgeaud
0a800f8261 Minor 2022-10-20 19:29:35 +02:00
wborgeaud
9982d79999 Add msize 2022-10-20 19:23:01 +02:00
Dmitry Vagner
05fa0490b8 load/store macros 2022-10-20 12:07:53 -04:00
Dmitry Vagner
b790af9075 addr on stack 2022-10-20 11:55:05 -04:00
Dmitry Vagner
dc59ed10a1 bus -> subr 2022-10-20 10:56:55 -04:00
Dmitry Vagner
37e429c943 more comments 2022-10-19 10:31:43 -04:00
Dmitry Vagner
d7fdccfc8f more comments 2022-10-19 10:16:59 -04:00
Dmitry Vagner
6451190d76 replace mul_const 2022-10-18 12:47:31 -04:00