453 Commits

Author SHA1 Message Date
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
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
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
Dmitry Vagner
0b85c8bbe0 getting there 2023-04-14 09:49:22 -07:00
Dmitry Vagner
b202196b5f switch 2023-04-11 15:30:03 -07:00
Dmitry Vagner
d79d2c4915 Merge branch 'main' of github.com:mir-protocol/plonky2 into bls-fp2 2023-04-10 16:05:57 -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
Dmitry Vagner
889911e803 redundancy 2023-04-03 19:54:37 -07:00
Dmitry Vagner
93dd25a1c4 fmt 2023-04-03 19:45:32 -07:00
Dmitry Vagner
33dc8eaea7 better names 2023-04-03 19:43:24 -07:00
Dmitry Vagner
251d7e34f3 systematize names 2023-04-03 19:42:18 -07:00
Dmitry Vagner
0e3b86def8 frob 2023-04-03 17:59:38 -07:00
Dmitry Vagner
26da6dc7da rev stack 2023-04-03 17:49:13 -07:00
Dmitry Vagner
3b607bdee8 Merge branch 'main' of github.com:mir-protocol/plonky2 into bls-fp2 2023-04-02 22:32:42 -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
Dmitry Vagner
a6ccd350c4 cleanup 2023-03-28 11:35:01 -07: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
Dmitry Vagner
823b06acab fp2 works 2023-03-28 11:12:59 -07:00
Dmitry Vagner
3b95e01390 bls method 2023-03-27 21:10:23 -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
Dmitry Vagner
1f3e3de77c clean and generalize 2023-03-22 10:16:02 -07:00
Dmitry Vagner
1627a9a0d3 tests pass 2023-03-22 09:55:35 -07:00
Nicholas Ward
1fbe305034 Merge branch 'main' into bignum-modexp 2023-03-22 09:46:17 -07:00
Dmitry Vagner
143225f449 finish 2023-03-21 19:19:02 -07:00
Nicholas Ward
d928423c63 cleanup 2023-03-21 16:18:53 -07:00
Nicholas Ward
d59501e6a7 fixes, testing, and in-progress debugging 2023-03-21 16:03:54 -07:00
Dmitry Vagner
fc72ce46c5 fp6 works 2023-03-21 13:55:51 -07:00
Dmitry Vagner
4d83c58d1f frob works 2023-03-21 13:51:11 -07:00