15 Commits

Author SHA1 Message Date
Hamy Ratoanina
7eff4e2751
Constrain first offset of a segment (#1397)
* Constrain first offset of a segment

* Apply comment, revert debugging code

* Modify specs

* Apply comments
2023-12-19 10:58:09 -05:00
Hamy Ratoanina
edfc86c393
Remove is_keccak_sponge (#1410)
* Remove is_keccak_sponge

* Apply comment
2023-12-07 13:07:06 -05:00
Hamy Ratoanina
170ce5f27c
Preinitialize all code segments (#1409)
* Preinitialize all code segments

* Add zero writes after code_size

* Use preinitializing for extcodesize

* Fix gas calculation

* Extend logic to extcodecopy

* Apply comments
2023-12-07 12:49:46 -05:00
Linda Guiga
a90aa40b7a
Implement MPT preinitialization (#1406)
* Implement MPT preinitialization

* Apply comments

* Replace GlobalMetadata reads with stores in the kernel

* Change memory specs

* Remove trie data length as a prover input
2023-12-07 12:08:47 -05:00
Hamy Ratoanina
30c944f778
Remove bootstrapping (#1390)
* Start removing bootstrapping

* Change the constraint for kernel code initializing

* Update specs

* Apply comments

* Add new global metadata to circuit methods

* Change zero-initializing constraint

* Apply comment

* Update circuit size range for recursive test
2023-11-30 10:04:08 -05:00
Hamy Ratoanina
64cc1000e7
Move stack_len_bounds_aux to general columns (#1360)
* Move stack_len_bounds_aux to general columns

* Update specs

* Apply comments

* Apply comment
2023-11-28 14:14:47 -05:00
Linda Guiga
3440ba94e6
Remove extra rows in BytePackingStark (#1388)
* Have at most one row per (un)packing operation in BytePackingStark

* Change specs

* Fix comment

* Fix tests and apply comments

* Fix log_opcodes
2023-11-28 10:25:03 -05:00
Hamy Ratoanina
2d5a84a138
Add specs for the CPU table (#1375)
* Add specs for the CPU table

* Add general columns

* Apply comments

* Apply comments
2023-11-22 18:27:07 -05:00
Linda Guiga
8d473168d6
Add specs for BytePackingStark (#1373)
* Start

* Finish documenting BytePackingStark

* Apply comments

* Apply comment

---------

Co-authored-by: Robin Salen <salenrobin@gmail.com>
2023-11-22 15:59:21 -05:00
Linda Guiga
79c6de140d
Update Keccak-f specs. (#1365)
* Update Keccak-f specs.

* Apply comments
2023-11-17 18:44:01 -05:00
Hamy Ratoanina
b44fc0d6ec
Add specs for KeccakSponge (#1366)
* Add specs for KeccakSponge

* Apply comments
2023-11-17 18:18:47 -05:00
Linda Guiga
ddecf8bd5e
Update specs for Logic and Arithmetic Tables (#1363)
* Update specs for Logic and Arithmetic

* Apply comments
2023-11-17 14:52:25 -05:00
Hamy Ratoanina
2c951de4f2
Update Memory in specs (#1362)
* Update Memory specs

* Apply comment

Co-authored-by: Robin Salen <30937548+Nashtare@users.noreply.github.com>

---------

Co-authored-by: Robin Salen <30937548+Nashtare@users.noreply.github.com>
2023-11-17 10:42:44 -05:00
Robin Salen
0d97b93af5
Add some documentation in EVM crate (#1295)
Co-authored-by: Linda Guiga <linda.guiga@toposware.com>
2023-10-30 14:28:24 -04:00
Daniel Lubarov
4d873cdaf5 zkEVM spec 2022-09-19 13:38:02 -07:00