2244 Commits

Author SHA1 Message Date
Robin Salen
cb19f21994
Add crate-level documentation (#1444)
* Add crate-level documentation

* Revert change

* Skip

* Typo

* Apply comments

* Rephrase paragraph

* Apply comments
2024-01-08 14:08:53 +01:00
Robin Salen
2dacbfe2ff
Address bundling (#1426)
* Start

* Scale TxnFields

* Speed-up

* Misc fixes

* Other fixes

* Fix

* Fix offset

* One more fix

* And one more fix

* Fix

* Fix

* Fix init

* More interpreter fixes

* Final fixes

* Add helper methods

* Clippy

* Apply suggestions

* Comments

* Update documentation

* Regenerate pdf

* minor

* Rename some macros for consistency

* Add utility method for unscaling segments and scaled metadata

* Address comments
2024-01-08 10:46:26 +00:00
Robin Salen
3e61f06a1d
Remove gas check in sys_stop (#1448) 2024-01-08 10:49:28 +01:00
Robin Salen
f46cf4ef68
Prevent some lints from being allowed (#1443) 2024-01-02 12:47:09 +00:00
Linda Guiga
6cf4df7da2
Add initial constraint z polynomial (#1440) 2024-01-02 09:11:38 +01:00
Robin Salen
ef07eabf84
Pacify latest clippy (#1442) 2024-01-02 08:08:19 +00:00
Robin Salen
ae3003a9d7
Add alternative method to prove txs without pre-loaded table circuits (#1438) 2023-12-22 17:23:22 +01:00
Hamy Ratoanina
c3d707c126
Constrain partial_channel (#1436) 2023-12-21 15:59:16 -05:00
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
David
a291d92c01
Merge pull request #1392 from 0xPolygonZero/dp-from_values-take-ref
`PolynomialBatch::from_values` takes refs
2023-12-19 12:14:10 +00:00
Robin Salen
7cb0488429
Minor cleanup (#1435) 2023-12-19 11:06:54 +01:00
Hamy Ratoanina
096c7456bb
Constrain new top to loaded value in MLOAD_GENERAL (#1434) 2023-12-19 09:57:20 +01:00
Linda Guiga
18e08f4f61
Filter range checks (#1433)
* Add filtering to range-checks

* Cleanup

* Fix Clippy

* Apply comment
2023-12-18 17:27:12 -05:00
Linda Guiga
f67ee258a1
Add exceptions handling to the interpreter (#1393)
* Add exceptions handling to the interpreter

* Apply comments

* Fix comments
2023-12-18 19:11:16 +01:00
Robin Salen
536cd1c89c
Regenerate tries upon Kernel failure during hash_final_tries (#1424)
* Generate computed tries in case of failure

* Only output debug info when hashing final tries

* Clippy

* Apply comments
2023-12-18 08:46:16 +00:00
wborgeaud
f8f6b07a39
Change context to current context for BN precompiles (#1428)
* Change context to current for BN precompiles

* Rename segments

* rustfmt
2023-12-16 17:02:56 +01:00
Hamy Ratoanina
68b9f0ad1c
Add ERC721 test (#1425)
* Add ERC721 test

* Add IS_READ column to BytePacking CTL

* Apply comment
2023-12-15 19:44:59 -05:00
Robin Salen
a64311cfd4
Add aborting signal (#1429)
* Add aborting signal

* Clippy

* Update to Option following comment
2023-12-15 19:35:27 +01:00
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
David Palm
e68195fc0d
chore: Remove TODOs about from_values taking a reference 2023-11-30 15:10:34 +01:00
David Palm
37918cccfd
Revert "chore: from_values takes ref"
This reverts commit 7cc123e0a442d41a3610a57a2ee4f8008ef5811f.
2023-11-30 15:07:10 +01: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
David Palm
7cc123e0a4
chore: from_values takes ref 2023-11-29 09:09:36 +01: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