Robin Salen
af0259c5eb
Remove StarkProofWithMetadata ( #1497 )
2024-02-04 11:15:02 -05:00
Robin Salen
f3f7433c29
Some cleanup ( #1498 )
2024-02-03 12:21:38 -05:00
Robin Salen
6357963654
Reorganize lookup / ctl modules ( #1495 )
...
* Reorganize lookup / ctl modules
* Apply review
2024-02-01 23:19:49 +00:00
Robin Salen
e502a0dfb1
Make CTLs more generic ( #1493 )
...
* Make number of tables generic
* Remove dependency on Table in the CTL module
* Remove needless conversion
* Remove more needless conversion
* Clippy
* Apply reviews
2024-02-01 11:41:42 -05:00
Robin Salen
f76245e298
Cleanup imports ( #1492 )
2024-02-01 07:16:28 -05:00
Linda Guiga
aedfe5dfa6
Implement CTL bundling ( #1439 )
...
* Implement CTL bundling
* Cleanup
* Clippy
* Preallocate memory
* Apply comments and remove unnecessary functions.
* Start removing clones
* Set columns and filters inside if condition.
* Remove extra CTL helper columns
* Add circuit version, with cleanup and fixes
* Remove some overhead
* Use refs
* Pacify clippy
---------
Co-authored-by: Robin Salen <salenrobin@gmail.com>
2024-01-10 08:54:13 +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
ae3003a9d7
Add alternative method to prove txs without pre-loaded table circuits ( #1438 )
2023-12-22 17:23:22 +01:00
Robin Salen
bfcfcdb498
Add Checkpoint heights ( #1418 )
2023-12-09 06:26:55 +01: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
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
Robin Salen
24aa9668f2
Revert "Make gas fit in 2 limbs ( #1261 )" ( #1361 )
...
* Revert "Make gas fit in 2 limbs (#1261 )"
This reverts commit 0f19cd0dbc25f9f1aa8fc325ae4dd1b95ca933b3.
* Comment
2023-11-17 10:01:26 -05:00
Robin Salen
88fcc32983
Reduce visibility for a bunch of structs and methods in EVM crate ( #1289 )
...
* Reduce visibility for a bunch of structs and methods
* Remove redundant
2023-11-13 09:26:56 -05:00
Robin Salen
29fdd3e372
minor: use explicit builder.assert_zero for readability ( #1293 )
2023-10-16 08:53:59 -04:00
Robin Salen
41a29f069b
Remove some dead_code in EVM crate ( #1281 )
...
* Remove unnecessary CpuArithmeticView.
* Remove AllChallengerState
* Remove RecursiveAllProof
* Remove unused generate methods
* Remove dead_code from cpu/columns
* Remove todo
---------
Co-authored-by: Linda Guiga <lindaguiga3@gmail.com>
2023-10-09 09:07:01 -04:00
wborgeaud
3ac0c4ae18
Fix genesis state trie root when calling prove_root ( #1271 )
...
* Fix genesis state trie root in some tests
* Just do it in tests calling prove_block
2023-10-03 17:47:10 +02:00
Robin Salen
0f19cd0dbc
Make gas fit in 2 limbs ( #1261 )
...
* Make gas fit in 2 limbs
* Fix recursive challenger
* Fix indices
* Add clarifying comments on ranges supported
* Add mention to revert before production
2023-09-29 14:47:23 -04:00
Linda Guiga
1ff6d4a283
Merge pull request #1235 from topos-protocol/new-logup
...
Rebased logUp implementation
2023-09-27 15:02:21 +01:00
Linda Guiga
5694af79f9
Merge remote-tracking branch 'mir-plonky2/main' into constrain-genesis-state
2023-09-26 12:24:48 -04:00
Robin Salen
03a9558198
Handle additional panics ( #1250 )
...
* Remove some panic risks
* Remove more panics
* Handle jump with empty stack
* Handle last expect
* More panics
* Handle from_big_endian
* Handle from_little_endian
* Remove remaining risky as_usize()
* Remove explicit panic
* Clippy
* Handle unwrap
* Make error messages more explicit
* Simplify u256 to usize conversion
2023-09-26 11:13:57 -04:00
wborgeaud
8c78271f5c
Add random value to block metadata and fix sys_prevrandao ( #1207 )
...
* Add random to block metadata and fix `sys_prevrandao`
* Minor
* Observe block_random
* Write block_random
* cargo fmt
* block_random: H256
* Move sys_prevrandao to metadata.asm and delete syscall_stubs.asm
* Set block_random in set_block_metadata_target
* Minor
* Minor
2023-09-25 18:20:22 +02:00
Linda Guiga
bbc6fe768f
Merge branch 'main' into 'new-logup'
2023-09-25 11:42:11 -04:00
Linda Guiga
9d0101d652
Merge branch 'main' into 'constrain-genesis-state'
2023-09-25 10:19:13 -04:00
Robin Salen
d6be2b987b
Remove generic_const_exprs feature from EVM crate ( #1246 )
...
* Remove const_generic_exprs feature from EVM crate
* Get a generic impl of StarkFrame
2023-09-22 09:19:13 -04:00
Linda Guiga
ca44187201
Merge branch 'main' into new-logup
2023-09-19 10:58:01 -04:00
Robin Salen
b5c28bd65e
Rename utility methods for U256 conversion
...
Co-authored-by: Nicholas Ward <npward@berkeley.edu>
2023-09-18 14:29:11 -04:00
Robin Salen
f3ea95cacc
Merge branch 'main' into error_vs_panic
2023-09-18 09:59:52 -04:00
Linda Guiga
c5af894e3f
Add assert with char(F). Cleanup. Fix recursive challenges.
2023-09-15 09:00:36 +01:00
Linda Guiga
c9c0f8b7e5
Use CTL challenges for logUP + change comments + add assert
2023-09-15 09:00:35 +01:00
wborgeaud
f65ad58a08
Implement logUp
2023-09-15 09:00:35 +01:00
Robin Salen
5a1b05acfb
Remove risks of panic
2023-09-12 19:23:16 -04:00
Hamy Ratoanina
3c4f938f85
Make next row available to CTLs
2023-09-12 13:59:50 -04:00
Linda Guiga
4d7d9ffa3c
Constrain genesis block's state trie.
2023-09-11 19:09:12 +01:00
Nicholas Ward
55d0514755
clippy suggestions
2023-09-08 10:41:22 -07:00
Linda Guiga
9a06fc9b95
Fix memop reads, from_prover_inputs and cleanup.
2023-09-07 12:15:17 +01:00
Linda Guiga
ddf2b81733
Clippy
2023-09-07 09:44:00 +01:00
Linda Guiga
1c01d682aa
Fix overflow check and test. Remove [..8] when using h256_limbs.
2023-09-07 09:44:00 +01:00
Linda Guiga
4e0fe74a74
Apply comments
2023-09-07 09:43:59 +01:00
Linda Guiga
42f7038031
Add blockhash sys opcode
2023-09-07 09:43:59 +01:00
Linda Guiga
b07644368f
Add missing links between public values
2023-08-31 13:40:13 +01:00
Robin Salen
c0b4f155f4
Implement receipts and logs
...
Co-authored-by: Hamy Ratoanina <hamy.ratoanina@toposware.com>
Co-authored-by: Linda Guiga <lindaguiga3@gmail.com>
2023-08-22 20:00:49 +01:00
Robin Salen
8476fdcd93
Refactor
2023-08-19 10:46:01 -04:00
Robin Salen
9a4500683b
Update BlockBaseFee to fit in 2 limbs
2023-08-19 10:23:24 -04:00
Robin Salen
976d752153
Observe public values
2023-08-18 18:59:58 -04:00
wborgeaud
df07ae093a
Write trie roots to memory before kernel bootstrapping ( #1172 )
...
* Write trie roots
* Remove CPU trace length
* Update hash_initial/final_tries
* Fix tests
* Minor
* PR feedback
2023-08-09 10:15:13 +02:00
Robin Salen
8365608b85
Convert to u32 instead of u64
2023-08-01 16:45:11 -04:00
Robin Salen
c93f9d5fd2
Fix endianness in benefiary limbs
2023-08-01 16:44:22 -04:00
Robin Salen
bca3e09bba
Reuse set_public_value_targets
2023-08-01 16:43:27 -04:00
Hamy Ratoanina
7a882d0a64
Clippy
2023-07-27 18:27:09 -04:00