Alonso González
710225c9e0
Simulate jumpdest data with the interpreter ( #1489 )
...
* Simulate jumpdest data with the interpreter
* Fix mising type paramenter on some tests
* Refactor simulation and fix some intepreter bugs
* Fix bug in interpreter
* Apply suggestions from code review
Co-authored-by: Robin Salen <30937548+Nashtare@users.noreply.github.com>
* Address remaining reviews
* [WIP] Fixing memory issue
* [WIP] Fixed memory issue but erc20 failing
* Fix interpreter halting issue
* Restore transition.rs
* Minor
* Adress reviews
* Address reviews
* Missing fix
---------
Co-authored-by: Robin Salen <30937548+Nashtare@users.noreply.github.com>
2024-02-13 11:53:52 -05:00
Robin Salen
6b39fc9006
Remove risk of panics in interpreter ( #1519 )
2024-02-10 14:11:52 -05:00
Robin Salen
f3f7433c29
Some cleanup ( #1498 )
2024-02-03 12:21:38 -05:00
Robin Salen
f76245e298
Cleanup imports ( #1492 )
2024-02-01 07:16:28 -05: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
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
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
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
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
4l0n50
ac9f704f97
Fix comment
2024-01-11 14:26:28 +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
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
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
54a1313588
Improve some calls to %mstore_rlp ( #1452 )
...
* Improve some calls to mstore_rlp
* Remove comment
2024-01-09 14:25:31 +00:00
4l0n50
1715573c22
Fix problems after address bundling
2024-01-09 14:15:16 +01:00
4l0n50
5b71eb4ee0
Address review comments
2024-01-09 11:48:30 +01:00
4l0n50
3c699be781
Merge remote-tracking branch 'public/main' into refactor_encode_funcs
2024-01-09 11:45:55 +01:00
4l0n50
22e267c34c
Address bundling
2024-01-09 11:32:31 +01:00
wborgeaud
bd02117cdc
Fix after_mpt_delete_extension_branch ( #1449 )
...
* Fix after_mpt_delete_extension_branch
* Rename test
* PR feedback
2024-01-09 11:15:53 +01:00
4l0n50
80917cbe66
Merge remote-tracking branch 'public/main' into refactor_encode_funcs
2024-01-08 14:40:40 +01:00
4l0n50
7fc6b86d8a
Minor
2024-01-08 14:36:12 +01:00
4l0n50
77f5109508
Adress reviewer comments
2024-01-08 14:34:26 +01:00
4l0n50
47b428569d
Remove unused macro
2024-01-08 13:53:52 +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
4l0n50
18a14bf2f2
Remove assertion
2024-01-05 18:15:57 +01:00
4l0n50
897ba5856a
Remove assertion in packed verif
2024-01-05 17:57:46 +01:00
4l0n50
1c994737ef
Address comments
2024-01-05 17:30:59 +01:00
Alonso González
f4713c44d3
Apply suggestions from code review
...
Co-authored-by: Linda Guiga <101227802+LindaGuiga@users.noreply.github.com>
Co-authored-by: Robin Salen <30937548+Nashtare@users.noreply.github.com>
2024-01-05 17:18:03 +01:00
4l0n50
247d655b39
Minor
2024-01-05 17:00:46 +01:00
4l0n50
8f1efa1554
Fix minor error
2024-01-05 16:15:16 +01:00
4l0n50
ab4508fc8b
Add packed verification
2024-01-05 16:07:33 +01:00
Robin Salen
f46cf4ef68
Prevent some lints from being allowed ( #1443 )
2024-01-02 12:47:09 +00:00
4l0n50
a85f9872f1
Fix bug in jumpdest proof generation and check that jumpdest addr < code_len
2023-12-28 14:04:23 +01:00
4l0n50
48b9769e34
Remove duplicated label
2023-12-27 12:24:12 +01:00
4l0n50
a83404966e
Rebase to main
...
Refactor encode_empty_node and encode_branch_node
Add constant and store encoded empty node in an other position
Remove child segment
Clean code
Apply suggestions from code review
Co-authored-by: Robin Salen <30937548+Nashtare@users.noreply.github.com>
Remive global label
Move encoded empty nodes
2023-12-27 12:04:14 +01:00
4l0n50
dfcf276dab
Refactor encode_empty_node and encode_branch_node
...
Clean code
Not important
Restore jumpdets_analysis.asm
Refactor encode_empty_node and encode_branch_node
2023-12-21 16:15:36 +01:00