Robin Salen
3ec1bfddb3
Update starky and leverage it as dependency for plonky2_evm ( #1503 )
...
* Update prover logic
* Add helper method for CTL data
* Some cleanup
* Update some methods
* Fix
* Some more fixes
* More tweaks
* Final
* Leverage starky crate
* Additional tweaks
* Cleanup
* More cleanup
* Fix
* Cleanup imports
* Fix
* Final tweaks
* Cleanup and hide behind debug_assertions attribute
* Clippy
* Fix no-std
* Make wasm compatible
* Doc and remove todo
* API cleanup and remove TODO
* Add Debug impls
* Add documentation for public items
* Feature-gate alloc imports
* Import method from starky instead
* Add simple crate and module documentation
* Apply comments
* Add lib level documentation
* Add test without lookups
* Fix starks without logup
* Cleanup
* Some more cleanup
* Fix get_challenges for non-lookup STARKs
* Add additional config methods and tests
* Apply comments
* More comments
2024-02-13 11:47:54 -05:00
Robin Salen
6b39fc9006
Remove risk of panics in interpreter ( #1519 )
2024-02-10 14:11:52 -05:00
Robin Salen
d2598bded0
Revert "Remove StarkProofWithMetadata ( #1497 )" ( #1502 )
...
This reverts commit af0259c5eb010304cfc04a5e2a77e88cf8cc2378.
2024-02-08 08:43:04 -05:00
Robin Salen
06444eaaf3
Switch permutation argument for logUp in starky ( #1496 )
...
* Switch permutation argument for logUp in starky
* Apply comments
* Refactor check_lookup_options
* Comments
* Add more visibility
* std -> core
* Revert "Add more visibility"
This reverts commit 2b4e50e0e7fc7676814b1bc1f4071d9ec0ab9d5c.
* Add more visibility to lookup items
2024-02-06 17:57:40 +00:00
Robin Salen
212f29cfb9
Add missing constraints mentioned by auditors ( #1499 )
2024-02-05 17:56:49 -05:00
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
Robin Salen
eff7cc0f58
Fix circuit sizes ( #1484 )
2024-01-25 05:45:28 +00:00
Alonso González
ca2e56e23b
Fix bugs in jumpdest analysis ( #1474 )
...
* Fix simulation for jumpdest analysis
* Fix bugs in jumpdest analysis
* Update evm/src/cpu/kernel/asm/core/jumpdest_analysis.asm
Co-authored-by: Robin Salen <30937548+Nashtare@users.noreply.github.com>
* Address reviews
---------
Co-authored-by: Robin Salen <30937548+Nashtare@users.noreply.github.com>
2024-01-24 17:16:41 +01:00
Robin Salen
c0700065db
Improve BIGNUM operations ( #1482 )
2024-01-24 05:03:49 -05:00
Robin Salen
acc59c3563
Speed-up bn254 pairing operation ( #1476 )
...
* Speed-up bn254 operations
* Add comment for write_fp254_12_unit macro
* Refactor some macros
* nit: comment
* Add newline
2024-01-23 17:36:14 -05:00
Ben
ae0907ff97
Merge pull request #1462 from 0xPolygonZero/pg/evm-licensing
...
Add licensing info for EVM crate
2024-01-23 18:59:58 +00:00
Robin Salen
8cb80e097d
Improve blake2f call ( #1477 )
...
* Improve on blake2 operations
* Comments
* Remove swap_mstore calls by changing stack macros
2024-01-22 14:42:11 +00:00
Robin Salen
319fc6a2f2
Improve SHA2 precompile ( #1480 )
...
* Improve SHA2 precompile
* Review
* Add removed global label
2024-01-22 13:02:38 +00:00
Linda Guiga
8e1969db2f
Fix interpreter jumps ( #1471 )
...
* Fix interpreter jumps
* Apply comments
2024-01-22 11:30:51 +01:00
Thabokani
b8a16b39c7
Fix typos ( #1479 )
2024-01-19 09:53:06 +01:00
Robin Salen
39a2d62d6d
Fix touched_addresses removal ( #1473 )
2024-01-17 13:28:53 +00:00
Robin Salen
10fc96608c
Remove some more CPU cycles ( #1472 )
...
* Speed-up some mload/mstore calls
* Misc
* Improve logs loop
* Speed-up bloom
* Speed-up access_lists loops
* Fix
* Speed up selfdestruct loop
* Speed-up touched_addresses loop
* Speed-up receipt loop
* Skip rep loop
* Fix
* Misc
* Review
2024-01-17 12:56:35 +00:00
Robin Salen
990eb34d96
Remove some CPU cycles ( #1469 )
...
* Amortize mload_packing
* Reduce stack overhead
* Amortize mstore_unpacking
* Speed-up stack operation in hash.asm
* Misc
* Small tweaks
* Misc small optims
* Fix comments
* Fix main access to withdrawals
* Fix stack description
* minor: rename label
* Comments
---------
Co-authored-by: Linda Guiga <lindaguiga3@gmail.com>
2024-01-16 17:00:55 +00:00
Alonso González
30b4799826
Fix simulation for jumpdest analysis ( #1467 )
2024-01-15 14:54:25 +00:00
Ursulafe
5c1ec524d3
proofreading ( #1466 )
2024-01-13 12:31:07 -05:00
Robin Salen
bb48cabdb1
Add math rendering with Katex ( #1459 )
2024-01-12 17:07:18 +01:00
Linda Guiga
7048305025
Fix fill_gaps ( #1465 )
2024-01-12 15:35:41 +01:00
Alonso González
219365d61b
Packed rlp prover inputs ( #1460 )
...
* Pack rlp prover inputs
* Fix endianness bug
* Remove debug info and fix clippy
2024-01-12 13:02:32 +01:00
Paul Gebheim
ccd4ff872b
Update Cargo.toml
...
Add license field to cargo manifest
2024-01-11 13:10:18 -08:00
Paul Gebheim
de2709d82e
Update README.md
...
Add License / Contributing to readme
2024-01-11 12:42:54 -08:00
Paul Gebheim
7f5fae844c
Add files via upload
2024-01-11 12:40:10 -08:00
BGluth
ab05d181bc
Bumped eth_trie_utils
...
- Contains important fixes.
2024-01-11 11:10:59 -07:00
Hamy Ratoanina
f80ebe77f3
Remove full memory channel ( #1450 )
...
* Remove a full memory channel
* Remove unnecessary uses
* Revert PDF change
* Apply comments
* Apply more comments
* Move disabling functions to cpu_stark.rs
* Apply comments
2024-01-11 16:36:47 +00:00
Alonso González
a78a29a698
Merge pull request #1423 from topos-protocol/jumpdest_nd
...
Refactor jumpdest analysis
2024-01-11 17:14:48 +01:00
Linda Guiga
b05e84ddf8
Interpreter GenerationInputs ( #1455 )
...
* Add initialization with GenerationInputs to the interpreter
* Add new_with_generation_inputs_and_kernel
* Apply comments
2024-01-11 16:03:05 +01:00
Robin Salen
3b1ed824f5
Merge pull request #1447 from topos-protocol/plonky2_doc
...
Add some more explicit doc on plonky2 crate main components
2024-01-11 15:57:23 +01:00
4l0n50
ac9f704f97
Fix comment
2024-01-11 14:26:28 +01:00
4l0n50
f9c3ad6646
Update empty_txn_list
2024-01-11 13:44:20 +01:00
4l0n50
fdedf3e342
Merge remote-tracking branch 'public/main' into jumpdest_nd
2024-01-11 13:32:49 +01:00
4l0n50
bead1d60a7
Adress review comments
2024-01-11 13:32:22 +01:00
Robin Salen
233ddd4e0e
Constrain syscall/exceptions filter to be boolean ( #1458 )
2024-01-11 12:05:57 +01:00
Alonso González
6ef0a3c738
Apply suggestions from code review
...
Co-authored-by: Linda Guiga <101227802+LindaGuiga@users.noreply.github.com>
2024-01-11 10:55:04 +01:00
Robin Salen
606732a8b6
Free up some CPU cycles ( #1457 )
...
* Free up some cycles
* Comments
2024-01-11 08:58:09 +00:00
4l0n50
99a1eb5c85
Missing review comments
2024-01-10 17:58:41 +01:00
4l0n50
ae4a720a74
Address comments
2024-01-10 17:26:34 +01:00
Alonso González
92aaa404da
Apply suggestions from code review
...
Co-authored-by: Robin Salen <30937548+Nashtare@users.noreply.github.com>
2024-01-10 13:55:09 +01:00
wborgeaud
0bf9cd2f86
Use current context in ecrecover ( #1456 )
2024-01-10 13:24:16 +01:00
yanziseeker
c329b3681c
chore(evm,field,plonky2):fix typos ( #1454 )
2024-01-10 10:40:39 +00:00
Robin Salen
85524cfacc
Intra doc link
2024-01-10 09:06:34 +01: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
c8430dac39
Add Boolean constraints for ArithmeticStark ( #1453 )
...
* Constrain IS_READ to be boolean
* Constrain arithmetic flags to be boolean
* Comment on memory stark
2024-01-09 17:35:31 +01:00