2223 Commits

Author SHA1 Message Date
Hamy Ratoanina
71dff6e982
Constrain MSTORE_32BYTES new offset limbs (#1415) 2023-12-13 18:35:17 -05:00
Linda Guiga
bc1a3c4851
Merge push and prover_input flags (#1417)
* Merge PUSH and PROVER_INPUT flags

* Apply comment
2023-12-13 16:21:24 +01:00
Ben
837434cf81
Fix a minor typo in evm/spec/cpulogic.tex 2023-12-12 07:03:29 +00:00
Pioua
4e4e61c2a8 typo fix 2023-12-12 05:16:12 +00:00
Pioua
00ed16fc8e minor typo fix 2023-12-10 01:54:20 +00:00
Pioua
724437d053 typo fix 2023-12-10 01:53:57 +00:00
Pioua
942e43abc0 typo fix 2023-12-10 01:49:04 +00:00
Robin Salen
bfcfcdb498
Add Checkpoint heights (#1418) 2023-12-09 06:26:55 +01:00
Linda Guiga
5607faf36b
Check that limbs after the length are 0 (#1419)
* Check that limbs after the length are 0

* Update comments

* Update comments
2023-12-08 18:33:10 -05:00
Hamy Ratoanina
3195c205df
Merge MSTORE_32BYTES and MLOAD_32BYTES columns (#1414)
* Merge MSTORE_32BYTES and MLOAD_32BYTES columns

* Fix circuit functions

* Apply comments
2023-12-08 17:57:45 -05:00
yanziseeker
43ecf1dff3 chore: fix some comment typos 2023-12-08 10:17:07 +00:00
Linda Guiga
7efd147e08
Use mstore_32bytes to optimize decode_int_given_len (#1413) 2023-12-07 21:48:37 +01: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
4ba7718e66
Optimize asserts (#1411) 2023-12-07 02:46:20 -05:00
Robin Salen
47e24306b7
Remove GenerationOutputs (#1408) 2023-12-05 18:10:36 -05:00
Hamy Ratoanina
46b6aa108d
Implement degree 2 filters (#1404)
* Implement degree 2 filters

* Apply comments
2023-12-05 17:02:37 -05:00
Robin Salen
2d36559dad
Make some functions const (#1407) 2023-12-05 13:41:31 -05:00
Robin Salen
7ac6bf2c66
Implement PublicValues retrieval from public inputs (#1405)
* Implement PublicValues retrieval from public inputs

* Use utility method

* Remove generic argument

* Typo
2023-12-05 11:42:40 -05:00
Hamy Ratoanina
6c3e3c0e8c
Use logUp for CTLs (#1398)
* Use LogUp for CTLs

* Update specs

* Invert in batch

* Reorder framework sections
2023-12-04 16:26:10 -05:00
Robin Salen
cb2a22a5f6
Update stack op cost (#1402)
* Update stack op cost

* Update from review
2023-12-04 10:32:52 -05:00
Robin Salen
d28ba24059
Pacify clippy (#1403) 2023-12-04 09:51:48 -05:00
Hamy Ratoanina
d682769b2e
Fix set_context constraints (#1401)
* Fix set_context constraints

* Apply comment
2023-12-01 19:12:59 -05:00
Robin Salen
32d009671a
Fix kernel codehash discrepancy (#1400) 2023-12-01 14:34:19 -05:00
Robin Salen
5572da30d7
Remove intermediary block bloom filters (#1395)
* Remove intermediary block blooms

* Update specs

* Regenerate pdf

* Apply comment, remove unneeded segment
2023-11-30 13:11:38 -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
Alonso González
471ff68d51
Optimize num_bytes and hex_prefix_rlp (#1384)
* Compute num_bytes non-deterministically

* Optimize hex_prefix_rlp

* Clean code

* Clippy

* Apply suggestions

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

* Clean

* Add endline

* Change 1^256 to U256_MAX

* Apply suggestions from code review

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

---------

Co-authored-by: Robin Salen <30937548+Nashtare@users.noreply.github.com>
2023-11-29 10:43:50 -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
96f3faf26e
Changes in interpreter and implement interpreter version for add11 (#1359)
* Fix interpreter, turn syscall opcodes into actual syscalls, create interpreter test for add11

* Rename test_add11 to test_add11_yml

* Apply comments

* Cleanup add11_yml interpreter test

* Make stack_top() return a Result, and remove Result from add11_yml test

* Apply comment
2023-11-28 13:35:40 -05:00
Robin Salen
6dd2e313c4
Add upgradeability to AllRecursiveCircuits and output verifier data (#1387)
* Add upgradeable preprocessed sizes

* Add verifier data
2023-11-28 12:23:20 -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
Linda Guiga
ab70bc536d
Fix run_syscall in interpreter. (#1351)
* Fix syscall and change sload test to catch the error

* Update comment

* Cleanup
2023-11-27 12:34:41 -05:00
Robin Salen
2039e18f29
Fix genesis block number in prove_block (#1382)
* Fix genesis block number target

* Add consistency check

* Fix genesis block number

* Revert pruning

* Cleanup

* Update error message with hashes

* Fix and add comment

* Make comment more explicit
2023-11-27 10:24:11 -05:00
Alonso González
110a8effdb
Update evm/spec/mpts.tex
Co-authored-by: wborgeaud <williamborgeaud@gmail.com>
2023-11-27 16:16:52 +01:00
4l0n50
ee450d6dbc Remove redundant sect about MPT 2023-11-27 16:15:40 +01:00
4l0n50
36e31c5356 Address comment 2023-11-27 15:05:33 +01:00
Alonso González
08e0afe4e6
Fix typo in evm/spec/mpts.tex
Co-authored-by: David <dvdplm@gmail.com>
2023-11-27 14:39:55 +01:00
Alonso González
c7951fcc04
Update evm/spec/mpts.tex
Co-authored-by: David <dvdplm@gmail.com>
2023-11-27 09:24:20 +01:00
Alonso González
12b522cba8
Update evm/spec/mpts.tex
Co-authored-by: David <dvdplm@gmail.com>
2023-11-27 09:15:33 +01:00
Alonso González
98bed16a09
Update evm/spec/mpts.tex
Co-authored-by: David <dvdplm@gmail.com>
2023-11-27 09:15:23 +01:00
Alonso González
0c0818c7c5
Update evm/spec/mpts.tex
Co-authored-by: David <dvdplm@gmail.com>
2023-11-27 09:11:03 +01:00
Alonso González
c6178a4598
Update evm/spec/mpts.tex
Co-authored-by: David <dvdplm@gmail.com>
2023-11-27 09:10:50 +01:00
Alonso González
a3b5e13edb
Update evm/spec/mpts.tex
Co-authored-by: David <dvdplm@gmail.com>
2023-11-27 09:10:28 +01:00
4l0n50
3af316f37b Add MPT specs 2023-11-24 10:45:26 +01:00
Hamy Ratoanina
d4b05f3730
Add specs for stack handling (#1381)
* Add specs for stack handling

* Apply comments
2023-11-22 18:55:53 -05:00
Linda Guiga
a736458617
Backporting gas handling to the specs (#1379)
* Backporting gas handling to the specs

* Fix typo and syscall handling
2023-11-22 18:35:49 -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
bec1073cf9
Explain difference between simple opcodes and syscalls (#1378)
* Explain difference between simple opcodes and syscalls

* Apply comment
2023-11-22 17:17:36 -05:00
Linda Guiga
48e2b24b49
Add range check constraints for the looked table (#1380)
* Add constraints to check that looked tables are well constructed for range checks

* Fix comments
2023-11-22 15:59:41 -05:00