1856 Commits

Author SHA1 Message Date
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
Dmitry Vagner
bbe64674d0 tests passing 2023-04-19 14:51:25 -07:00
Dmitry Vagner
3628021a5b fmt 2023-04-19 14:45:11 -07:00
Dmitry Vagner
d6584dcb7c restructure tate test 2023-04-19 14:09:05 -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
Dmitry Vagner
0df18d5ea8 tests 2023-04-19 13:30:03 -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
Dmitry Vagner
21a1a98a7d reorg 2023-04-19 13:19:06 -07:00
Dmitry Vagner
ca3a7f8ab3 Merge branch 'main' of github.com:mir-protocol/plonky2 into pairing-test 2023-04-19 13:12:50 -07:00
Dmitry Vagner
9b54ee43db refactor 2023-04-19 13:12:47 -07:00
Dmitry Vagner
0e08243275 reorg 2023-04-19 10:40:39 -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
Dmitry Vagner
3a3ff87a16 fmt 2023-04-18 15:23:12 -07:00
Dmitry Vagner
7dda0effec works 2023-04-18 15:19:00 -07:00
Dmitry Vagner
1f0776281e new api 2023-04-18 14:52:15 -07:00
Dmitry Vagner
c9b09936ce compiles 2023-04-18 12:02:10 -07:00
Dmitry Vagner
d112c716c2 fmt 2023-04-18 11:29:21 -07: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
Dmitry Vagner
3cc39fa493 wip 2023-04-14 10:31:07 -07:00
Robin Salen
9d60191d73
Implement returndatasize/returndatacopy for interpreter 2023-04-14 13:22:27 -04:00
Dmitry Vagner
191ca1026a comment 2023-04-14 09:50:30 -07:00
Dmitry Vagner
0b85c8bbe0 getting there 2023-04-14 09:49:22 -07:00
Dmitry Vagner
0b9ef768d4 nl 2023-04-14 09:36:27 -07:00
Dmitry Vagner
2106ae07df Merge branch 'bls-fp2' of github.com:mir-protocol/plonky2 into bls-fp2 2023-04-14 09:36:02 -07:00
Dmitry Vagner
a5c6b14e34 Merge branch 'main' of github.com:mir-protocol/plonky2 into bls-fp2 2023-04-14 09:35:54 -07:00
Dima V
9b9cd735b5
Update evm/src/extension_tower.rs
Co-authored-by: Jacqueline Nabaglo <jakub@mirprotocol.org>
2023-04-14 09:35:19 -07: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
wborgeaud
b721236eb3
Precompiles interface (#983)
* Start

* Some sha256 test passing

* precompiles folder

* Files reorg

* Progress

* Minor

* Start of sha2 interface

* All call opcodes

* ecrec

* rip160

* Fix copy_returndata_to_mem

* id

* bn_add

* bn_mul

* TODOs for snarkv and blake2

* Comments

* Use charge_gas_const when possible

* Minor

* Minor

* Minor

* PR feedback
2023-04-14 12:20:28 +02:00
Hamy Ratoanina
c8637635b9
Remove dummy_yield_constr 2023-04-13 15:55:46 -04:00
Hamy Ratoanina
4946c3d5fd
Merge branch 'main' into stack_bound 2023-04-13 15:47:27 -04:00
Jacqueline Nabaglo
5fce67d14e
Merge pull request #978 from toposware/stack_constraints
Enable stack constraints
2023-04-13 12:18:38 -07:00
Daniel Lubarov
32a6bdf1cf
Merge pull request #971 from toposware/keccak_sponge_is_final_block
Remove is_final_block column in KeccakSpongeStark
2023-04-12 14:45:56 -07:00
Daniel Lubarov
58f4568e7c
Merge pull request #982 from toposware/sys_chainid
Use Block chain id for sys_chainid
2023-04-12 14:43:43 -07:00
Hamy Ratoanina
92d94dc60d
Use Block chain id for sys_chainid 2023-04-12 15:25:06 -04:00
4l0n50
ba844a2403 Change shl/shr behavior as well as BASIC_TERNARY_OP 2023-04-12 17:35:32 +02:00
wborgeaud
475b2ba0cb
Fix copy_returndata_to_mem (#976) 2023-04-12 16:41:36 +02:00
wborgeaud
c7e60073f0
Check if context is static for state-changing opcodes (#973)
* Check if context is static for state-changing opcodes

* PR feedback
2023-04-12 08:24:33 +02:00