110 Commits

Author SHA1 Message Date
Dmitry Vagner
a72d4faaec minor 2022-12-14 19:58:16 -08:00
Dmitry Vagner
bd8988957e U256ify 2022-12-14 19:14:14 -08:00
Dmitry Vagner
397864fb4e merge 2022-12-14 18:57:24 -08:00
wborgeaud
83a290331e Fixes 2022-12-14 16:34:32 +01:00
wborgeaud
f91dfe7e1a Use the order of the BN base field in the interpreter 2022-12-14 16:22:57 +01:00
Dmitry Vagner
8c064b8624 merge 2022-12-13 16:32:13 -08:00
Nicholas Ward
f6af5240bd another clippy fix 2022-12-13 10:08:36 -08:00
Nicholas Ward
2166a407ed minor memory access refactor 2022-12-13 10:08:36 -08:00
Nicholas Ward
7663848bbf cleaned up hash tests 2022-12-13 10:08:36 -08:00
Nicholas Ward
7a5a899b45 clippy 2022-12-13 10:08:36 -08:00
Nicholas Ward
c0dbeb42d9 cleanup 2022-12-13 10:08:36 -08:00
Nicholas Ward
0d05a4bbbf FIX 2022-12-13 10:08:36 -08:00
Dmitry Vagner
2e2007eede Merge branch 'main' of github.com:mir-protocol/plonky2 into non-inv 2022-12-12 11:06:16 -08:00
Daniel Lubarov
7557f320d4 Fix to add_eth
It was creating a new account with the hash of an empty storage trie, when really it should be a pointer to an empty storage trie. We can use 0 as this pointer since `@SEGMENT_TRIE_DATA[0] = 0 = @MPT_NODE_EMPTY`.

Also a couple tweaks that helped me debug, like moving the memory value range checks from the interpreter into `MemoryState`, so they're done in actual witness generation as well as interpreter tests.
2022-12-09 18:58:48 -08:00
Dmitry Vagner
48149f93d1 inverse 2022-12-05 22:50:45 -08:00
Dmitry Vagner
57252c7fd2 simplify original 2022-12-05 14:29:59 -08:00
Dmitry Vagner
8f15402041 Merge branch 'main' of github.com:mir-protocol/plonky2 into non-inv 2022-12-05 12:16:58 -08:00
Daniel Lubarov
1303a83f7f Misc witness generation fixes 2022-12-03 21:09:57 -08:00
Daniel Lubarov
21719222de fmt 2022-12-02 19:19:04 -08:00
Daniel Lubarov
b96c22a4f4 Interpreter fixes 2022-12-02 19:18:37 -08:00
Daniel Lubarov
9bf47ef8ac Fixes 2022-12-01 12:46:14 -08:00
Daniel Lubarov
d3aa33975a generate_keccak_general, generate_byte 2022-12-01 12:06:29 -08:00
Daniel Lubarov
526dc9bb77 Flush out operation list 2022-11-30 21:00:48 -08:00
Dmitry Vagner
307cbbd2b6 Merge branch 'main' of github.com:mir-protocol/plonky2 into non-inv 2022-11-21 14:36:14 -08:00
Daniel Lubarov
d23cecfcd8 Kernel code to do jumpdest analysis 2022-11-21 13:06:03 -08:00
wborgeaud
c31b0147f4
Implement CALLVALUE, CALLDATALOAD, CALLDATASIZE, CALLDATACOPY in interpreter (#819)
* Implement `CALLVALUE, CALLDATALOAD, CALLDATASIZE, CALLDATACOPY` in interpreter

* PR feedback
2022-11-19 18:58:55 +01:00
Dmitry Vagner
69ce4f99fe add total count 2022-11-14 16:41:02 -08:00
wborgeaud
ce21d134a5
Merge pull request #804 from mir-protocol/static_kernel_in_tests
Use static `KERNEL` in tests
2022-11-07 09:18:49 +01:00
wborgeaud
4bc2e05702 Print opcode count 2022-11-04 14:38:23 +01:00
wborgeaud
47e6093e37 Use static KERNEL in tests 2022-11-04 13:55:13 +01:00
wborgeaud
70b5dda399 Merge branch 'main' into account_code_opcodes 2022-11-02 10:43:35 +01:00
Dmitry Vagner
aebeb7ac99 fmt 2022-10-28 02:12:57 -07:00
Dmitry Vagner
ad067d1e52 comment about 107 2022-10-28 02:08:56 -07:00
Dmitry Vagner
fa05a33040 Merge branch 'main' of github.com:mir-protocol/plonky2 into Fp12 2022-10-28 02:03:47 -07:00
wborgeaud
dc8a62fbee Codecopy test 2022-10-27 11:06:24 +02:00
wborgeaud
b97ec3bda1 New clippy lint 2022-10-25 10:50:40 +02:00
wborgeaud
77d5c625cd Minor 2022-10-20 19:36:28 +02:00
wborgeaud
fab3fe77c0 Minor 2022-10-20 19:28:24 +02:00
wborgeaud
9982d79999 Add msize 2022-10-20 19:23:01 +02:00
wborgeaud
71ed3c43ac Fix fix interpreter 2022-10-20 14:32:28 +02:00
wborgeaud
61b6b16106 Fix interpreter 2022-10-20 14:06:48 +02:00
Dmitry Vagner
625544565d change to 107 2022-10-18 11:07:43 -04:00
Dmitry Vagner
9222dafe6e clippy 2022-10-18 10:37:40 -04:00
Daniel Lubarov
a2edff4670 Small storage fixes 2022-10-17 23:35:34 -07:00
Dmitry Vagner
c9bbd2dfa0 naming 2022-10-18 01:31:28 -04:00
Dmitry Vagner
3cff0928c4 better test API 2022-10-17 11:02:24 -04:00
Dmitry Vagner
fc2ea6281d Fp6 mul test passes 2022-10-13 18:09:27 -04:00
Dmitry Vagner
d3e2b982ee new op codes 2022-10-13 17:28:17 -04:00
Dmitry Vagner
e01c91bdf0 Merge branch 'main' of github.com:mir-protocol/plonky2 into Fp12 2022-10-13 17:08:44 -04:00
Jacqueline Nabaglo
ec3391f9c4
Add Fp254 ops to the CPU table (#779)
* Add Fp254 ops to the CPU table

* Add forgotten file
2022-10-13 14:02:19 -07:00