3887 Commits

Author SHA1 Message Date
Robin Salen
3da8efa6ba
Implement sar in interpreter 2023-04-09 16:07:31 -04:00
Robin Salen
b943ddb0d2
Implement signextend in interpreter 2023-04-09 16:07:31 -04:00
Robin Salen
4db004417c
Implement sgt in interpreter 2023-04-09 10:28:43 -04:00
Robin Salen
ac2ccc1eb9
Implement slt in interpreter 2023-04-09 10:28:42 -04:00
Robin Salen
232832e34d
Implement smod in interpreter 2023-04-09 10:28:42 -04:00
Robin Salen
18d317b9cf
Implement sdiv in interpreter. 2023-04-09 10:28:42 -04:00
Daniel Lubarov
0e5e28f666
Merge pull request #968 from toposware/block_interpreter
Block interpreter
2023-04-08 14:37:42 -07:00
Daniel Lubarov
c0fae77c66
Merge pull request #951 from toposware/prove_block
Fix BlockCircuitData proofs
2023-04-08 14:10:52 -07:00
Robin Salen
6124e4d6a3
Fix BlockCircuitData proofs 2023-04-08 14:31:10 -04:00
Robin Salen
2fae2fbcc0
Impl gaslimit opcode for interpreter 2023-04-08 14:28:59 -04:00
Robin Salen
9e6f284b26
Impl chain_id opcode for interpreter 2023-04-08 14:28:58 -04:00
Robin Salen
ae8ee27eb8
Impl coinbase opcode for interpreter 2023-04-08 14:28:58 -04:00
Robin Salen
e3572f1d10
Impl basefee opcode for interpreter 2023-04-08 14:28:58 -04:00
Robin Salen
86bd055b5f
Impl difficulty opcode for interpreter 2023-04-08 14:28:58 -04:00
Robin Salen
60fed608ef
Impl number opcode for interpreter 2023-04-08 14:28:57 -04:00
Robin Salen
a17c6231a7
Impl timestamp opcode for interpreter 2023-04-08 14:28:57 -04:00
Daniel Lubarov
042c004237
Merge pull request #965 from mir-protocol/fix_run_constructor
Fix `run_constructor`
2023-04-08 08:41:23 -07:00
Daniel Lubarov
31e134f0e3 Delete %set_new_ctx_parent_ctx 2023-04-08 08:40:37 -07:00
wborgeaud
1a9f010484
Fix call logic (#963)
* Working callcall_00 (modulo gas)

* Add TODO for call depth

* Add TODO for insufficient balance panic

* Add TODO for subcontext gas limit

* Minor

* Minor

* Copy returndata to memory

* PR feedback
2023-04-08 10:28:01 +02:00
wborgeaud
ab692252ba
Minor fixes to context creation (#961) 2023-04-08 09:06:02 +02:00
Jacqueline Nabaglo
7a65b1d4df
Merge pull request #967 from toposware/fix_decode
Fix decode constraint
2023-04-07 19:05:55 -07:00
Hamy Ratoanina
310107f218
Fix decode constraint 2023-04-07 17:06:57 -04:00
Daniel Lubarov
cfc54f95a0 Fix run_constructor
Fixes the crash due to a huge allocation in `returndatacopyPythonBug_Tue_03_48_41-1432`.
2023-04-07 10:20:40 -07:00
Nicholas Ward
d1c9277db6
Merge pull request #962 from mir-protocol/range-check-example
range check example
2023-04-06 12:00:47 -07:00
Nicholas Ward
d6bb5d5dee range check example 2023-04-06 09:23:49 -07:00
wborgeaud
af3fa1426e
Implement sys_return and sys_revert (#959)
* Fix gas and copy returndata in sys_return

* Also revert

* mstore_parent_context_metadata macros
2023-04-06 07:22:16 +02:00
Nicholas Ward
f24c3537cb
Update README.md
capitalize Plonky2
2023-04-05 13:58:39 -07:00
Nicholas Ward
c11f4f41c7
Merge pull request #960 from mir-protocol/readme-updates
README updates: examples and external tutorial
2023-04-05 13:57:24 -07:00
Nicholas Ward
fb24b20061 README updates: examples and external tutorial 2023-04-05 13:00:58 -07:00
wborgeaud
5ac12de990
Fix sys_exp (#958) 2023-04-05 19:07:47 +02:00
wborgeaud
923722b1e4
Fix copy opcodes when offset is large (#957)
* Fix wcopy

* Fix extcodecopy and use memset

* Comments
2023-04-05 06:24:26 +02:00
Nicholas Ward
d59fa59af8
Merge pull request #925 from mir-protocol/bignum-modexp
Bignum modexp
2023-04-04 13:37:48 -07:00
Nicholas Ward
6a4e9ab60e fix 2023-04-04 13:34:36 -07:00
Nicholas Ward
90f7ba9a23 addressed final comments 2023-04-04 13:33:20 -07:00
Daniel Lubarov
9690b60b80
Merge pull request #956 from mir-protocol/doubly_encode_storage_values
Doubly RLP-encode storage values
2023-04-04 07:40:11 -07:00
Daniel Lubarov
e70e4fca06 Doubly RLP-encode storage values 2023-04-03 21:51:17 -07:00
wborgeaud
6fa59d204f
Fix MSTORE8 (#955)
* Fix MSTORE8

* Small optimization
2023-04-03 16:39:18 +02:00
wborgeaud
f9217272d1
Fix signed syscalls stack (#954) 2023-04-03 13:40:36 +02:00
Daniel Lubarov
a061c3cfeb
Merge pull request #952 from mir-protocol/extra_where_clauses
Remove extra conditions
2023-04-01 18:11:58 -07:00
Daniel Lubarov
209c1ff1e3 Remove extra conditions
Since the structs themselves have `[(); HC::WIDTH]:`.
2023-04-01 17:34:01 -07:00
Daniel Lubarov
e2f33dd30f
Merge pull request #873 from toposware/hashconfig
Make hash functions generic
2023-04-01 17:08:16 -07:00
Robin Salen
9ee47ab745
Move HashConfig into GenericConfig associated types 2023-04-01 09:54:14 -04:00
wborgeaud
46d5e62a13
Copy txn data to calldata (#935) 2023-04-01 07:34:38 +02:00
wborgeaud
8e04cbfe8d
Self-destruct list (#948) 2023-04-01 07:29:22 +02:00
wborgeaud
a926dcad22
Transaction validity checks (#949) 2023-04-01 07:24:02 +02:00
Robin Salen
f1a99e69b2
Add patch section to workspace config file 2023-03-31 18:55:06 -04:00
Robin Salen
e857c020bf
Make hash functions generic 2023-03-31 18:55:06 -04:00
wborgeaud
2ca00a9ad4
Selfdestruct gas and set (#947)
* Add new segment and global metadata

* Insert into self-destruct set

* Implement sys_selfdestruct

* PR feedback

* Fix stack underflow

* Forgot that NOT 1 ≠ 0. Added %not_bit macro for that.
2023-03-31 11:13:36 +02:00
Daniel Lubarov
786a71d678
Merge pull request #946 from mir-protocol/selfBalanceGasCost
Add an integration test for the `selfBalanceGasCost` case
2023-03-30 17:24:24 -07:00
Daniel Lubarov
31cd0f6445 Remove dbg 2023-03-30 17:24:12 -07:00