411 Commits

Author SHA1 Message Date
Dmitry Vagner
ae4b509139 neutral name 2023-04-27 16:24:36 -07:00
Dmitry Vagner
503cb8a99f random inp 2023-04-27 16:20:55 -07:00
Dmitry Vagner
b28e3e0db7 minor 2023-04-27 07:45:35 -07:00
Dmitry Vagner
13c653bc53 mul works 2023-04-26 18:10:40 -07:00
Dmitry Vagner
6599c90a6e abstraction 2023-04-26 17:21:52 -07:00
Dmitry Vagner
537debdc2e return bool 2023-04-26 15:35:19 -07:00
Dmitry Vagner
89122a3d73 it works 2023-04-26 15:29:53 -07:00
Dmitry Vagner
479e919c04 fmt 2023-04-26 14:16:35 -07:00
Dmitry Vagner
6dc094a894 test 2023-04-26 14:16:23 -07:00
Dmitry Vagner
4c235e5a4b Merge branch 'main' of github.com:mir-protocol/plonky2 into pairing-test 2023-04-26 14:16:08 -07:00
Dmitry Vagner
d31c60a045 clean up 2023-04-26 09:57:36 -07:00
Dmitry Vagner
43f4d2b80c clean more 2023-04-24 09:37:42 -07:00
Dmitry Vagner
14ee46c850 cleanup 2023-04-24 09:33:05 -07:00
Dmitry Vagner
2620446128 it works 2023-04-21 13:31:51 -07:00
Dmitry Vagner
26d99a9b15 memory compress 2023-04-20 20:54:13 -07:00
Dmitry Vagner
0c55aa04ee clean 2023-04-20 20:35:07 -07:00
Dmitry Vagner
f1bbf66cda it works 2023-04-20 20:02:15 -07:00
Dmitry Vagner
44a623d453 initialize out in asm 2023-04-20 14:07:45 -07: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
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
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
Nicholas Ward
d59fa59af8
Merge pull request #925 from mir-protocol/bignum-modexp
Bignum modexp
2023-04-04 13:37:48 -07:00
Nicholas Ward
90f7ba9a23 addressed final comments 2023-04-04 13:33:20 -07:00
Hamish Ivey-Law
9480cbed99
Signed operations as syscalls (#933)
* Implement syscalls for BYTE, SIGNEXTEND, SAR, SLT and SGT.

* Implement SDIV and SMOD; minor documentation and tidying.

* Implement EXP.

* Add sys_byte to the syscall jumptable.

* Test suite for signed syscalls.

* Handle `EXIT_KERNEL` "properly".

* Add gas charges; rename label.

* Uppercase all opcodes.

* Add test for BYTE; fix bug in BYTE.

* Calculate and charge gas for calling `EXP`.

* Fix gas calculation for `exponent = 0`.

* Address Jacqui's comments.

* Remove BYTE syscall as it will be implemented natively.

* Oops, forgot to remove this bit.
2023-03-30 05:56:01 +11:00
Nicholas Ward
cdaabfe9f2 Merge branch 'main' into bignum-modexp 2023-03-28 16:09:02 -07:00
BGluth
b667c07497
Merge pull request #940 from mir-protocol/eth_trie_utils_bump
Bumped `eth_trie_utils` to `0.5.0`
2023-03-28 15:06:11 -06:00
BGluth
3c7bc8835c Removed a type alias
- Was conflicting with the trait `PartialTrie` and also making the types
  harder to follow.
2023-03-28 14:38:58 -06:00
Nicholas Ward
fb73e8896e uncommented 2023-03-28 11:22:56 -07:00
Nicholas Ward
c18377d12f Merge branch 'main' into bignum-modexp 2023-03-28 11:15:27 -07:00
Nicholas Ward
91fb4fc02e fix modexp test 2023-03-28 11:15:01 -07:00
BGluth
60ad9e03ba Bumped eth_trie_utils to 0.5.0 2023-03-27 17:30:11 -06:00
Dmitry Vagner
c3a5fd8631 merge 2023-03-24 11:32:01 -07:00
wborgeaud
ce22d94518
Access lists (#937)
* Working linear search

* Working linear search for storage keys

* Macros

* Gas for wextaccount

* Add origin and to to the access list

* Handle precompiles

* Fixes

* Other opcodes

* Access list SLOAD

* Minor

* Add TODO for SSTORE

* Comments

* Clippy

* Minor

* PR feedback: cold_access

* PR feedback: simplify insert_accessed_addresses_no_return macro

* Fix sys_selfdestruct

* Store length in global metadata and store arrays in kernel memory

* Truncate address in all *CALL syscalls
2023-03-23 20:22:25 +01:00
Dmitry Vagner
7ff2122e46 Merge branch 'main' of github.com:mir-protocol/plonky2 into fp381-opcodes 2023-03-22 18:22:37 -07:00
Dmitry Vagner
3f4d970f15 Merge branch 'main' of github.com:mir-protocol/plonky2 into fp318 2023-03-22 16:58:54 -07:00
Dmitry Vagner
c8d2769c28 fmt 2023-03-22 11:58:51 -07:00
Dmitry Vagner
74afec70ed remove imports 2023-03-22 11:56:58 -07:00
wborgeaud
15bafce5dd
Implement CREATE2 address generation (#936)
* Implement create2 address gen

* Clippy

* Minor

* Wrong order

* Fix test

* Fix comment
2023-03-22 19:14:17 +01:00