1649 Commits

Author SHA1 Message Date
Nicholas Ward
3b7ad771e0 cleanup 2023-04-25 15:00:17 -07:00
Nicholas Ward
46d9cee09d charge gas! 2023-04-25 14:58:43 -07:00
Nicholas Ward
9460acc196 rename blake2b 2023-04-25 14:55:44 -07:00
Nicholas Ward
ce033410c3 fix 2023-04-25 14:52:55 -07:00
Nicholas Ward
6a239c4f68 fix 2023-04-25 14:41:03 -07:00
Nicholas Ward
a41cf018ef fixed blake tests 2023-04-25 14:16:54 -07:00
Nicholas Ward
621c63de21 clippy fix 2023-04-24 17:14:17 -07:00
Nicholas Ward
29a8367b8c fmt 2023-04-24 17:11:35 -07:00
Nicholas Ward
2d98dd3cac commented out unused functions 2023-04-24 17:09:18 -07:00
Nicholas Ward
5dc4491681 Merge branch 'main' into blake_precompile 2023-04-24 16:59:17 -07:00
Nicholas Ward
454e0add24 fixed blake2_f, and testing 2023-04-24 16:58:57 -07:00
Nicholas Ward
137a9966e0
Merge pull request #998 from mir-protocol/even-smaller-bignum-modexp-test
even smaller bignum modexp test, and fixes
2023-04-24 15:48:30 -07:00
Nicholas Ward
9339847243 Merge branch 'precompile-fixes' into blake_precompile 2023-04-24 11:51:11 -07:00
Nicholas Ward
1eba893e61 mload_packing macro 2023-04-24 11:25:38 -07:00
Nicholas Ward
ffc5d6d6c2 Merge branch 'main' into precompile-fixes 2023-04-24 11:24:39 -07:00
wborgeaud
b7e93511e4
New contract hook (#1002)
* New contract hook

* Minor

* PR feedback
2023-04-24 09:07:00 +02:00
wborgeaud
a4b714e64d
EIP-3541: Reject new contract code starting with the 0xEF byte (#1003)
* EIP-3541: Reject new contract code starting with the 0xEF byte

* Panic instead

* PR feedback
2023-04-24 07:55:04 +02:00
wborgeaud
472face2a5
EIP-3860: Limit and meter initcode (#999)
* EIP3860

* Contract creation tx

* Minor
2023-04-24 07:17:47 +02:00
Daniel Lubarov
ea82d68084
Merge pull request #981 from toposware/serialization
Serialization support for all circuit components
2023-04-22 08:15:30 -07:00
Nicholas Ward
86acc15f12 blake precompile progress 2023-04-21 18:13:53 -07:00
Nicholas Ward
b288ff5f0d Merge branch 'precompile-fixes' into blake_precompile 2023-04-21 18:01:29 -07:00
Nicholas Ward
d5060ecd60 precompile optimizations 2023-04-21 18:00:52 -07:00
Nicholas Ward
9f0c2f472b blake precompile progress 2023-04-21 12:21:08 -07:00
Nicholas Ward
5f564b6782 initial work on blake precompile 2023-04-20 15:11:19 -07:00
BGluth
db93badaf2 Bumped eth_trie_utils to 0.6.0 2023-04-20 11:05:34 -06:00
wborgeaud
1a0a63003d
EIP170 (#1000) 2023-04-20 17:28:33 +02:00
Robin Salen
5de5bfb5e4
Move serialization files into dedicated module 2023-04-20 07:59:37 +02:00
Robin Salen
0e465c1ccf
Customize range specification for AllRecursiveCircuits 2023-04-20 07:59:36 +02:00
Robin Salen
f71139d934
Add serialisation support for gates, generators, and various structs
Co-authored-by: Sebastien La Duca <sladuca777@gmail.com>
2023-04-20 07:59:36 +02:00
wborgeaud
6edd589138
Gas and more for CREATE(2) (#995)
* Gas

* Codehash

* Minor
2023-04-20 07:00:15 +02:00
wborgeaud
a8e5613bc5
EOA to precompiles logic (#993)
* Start

* Progress

* Comments

* Minor
2023-04-20 06:56:47 +02:00
Nicholas Ward
df4a6f0105 fix for full modexp test 2023-04-19 15:27:49 -07:00
Nicholas Ward
6d84b988ba fmt 2023-04-19 14:56:08 -07:00
Nicholas Ward
cb23bfcade check for special cases and align with yellow paper 2023-04-19 14:55:19 -07:00
Nicholas Ward
3e437a0c4c oops remove more debug stuff 2023-04-19 13:41:24 -07:00
Nicholas Ward
bf5dc25610 undo debug commenting 2023-04-19 13:40:59 -07:00
Nicholas Ward
de94ac25f1 missing file 2023-04-19 13:27:42 -07:00
Nicholas Ward
3444e810a6 even smaller bignum modexp test, and fixes 2023-04-19 13:27:05 -07:00
Nicholas Ward
ada250f365 Merge branch 'main' into smaller-bignum-modexp-test 2023-04-19 10:39:50 -07:00
Hamish Ivey-Law
2e16ab0489
Replace %stack calls with equivalent opcodes. (#994) 2023-04-20 01:34:04 +10:00
Nicholas Ward
a704b1523d even less thorough :P 2023-04-17 23:12:43 -07:00
Nicholas Ward
a4f60a0431 less thorough bignum modexp test 2023-04-17 22:41:26 -07:00
Daniel Lubarov
8562abe0f7 Disable a couple tests
They're slow on CI, and `add11_yml` seems like a better integration test.
2023-04-17 17:32:31 -07:00
Daniel Lubarov
67593f162a Labels for failed MPT read/insert 2023-04-17 17:27:55 -07:00
Robin Salen
df5a90cca4
Provide methods for serializing Kernel 2023-04-15 11:01:40 -04:00
Daniel Lubarov
6b2503f778
Merge pull request #970 from toposware/env
Env instructions in interpreter
2023-04-14 13:58:10 -07:00
Robin Salen
9d60191d73
Implement returndatasize/returndatacopy for interpreter 2023-04-14 13:22:27 -04:00
Robin Salen
6946eacaca
Implement codesize/codecopy for interpreter 2023-04-14 11:41:39 -04:00
Robin Salen
0f3285c33b
Implement gasprice on the interpreter 2023-04-14 11:41:39 -04:00
Robin Salen
e9cc5632eb
Impl caller/address/origin opcodes for interpreter 2023-04-14 11:41:38 -04:00