Robin Salen
3e61f06a1d
Remove gas check in sys_stop ( #1448 )
2024-01-08 10:49:28 +01: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
Linda Guiga
7efd147e08
Use mstore_32bytes to optimize decode_int_given_len ( #1413 )
2023-12-07 21:48:37 +01: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
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
1f65a8a863
Add exceptions to specs ( #1372 )
...
* Add exceptions to specs
* Apply comments
2023-11-21 15:20:07 -05:00
Hamy Ratoanina
0e63e66196
Implement out of gas exception ( #1328 )
...
* Implement out of gas exception
* Use gas constants in gas_cost_for_opcode
* Remove comment
2023-11-15 11:20:14 -05:00
Hamy Ratoanina
a0876d73f7
Refactor JUMPDEST analysis ( #1347 )
...
* Use table for JUMPDEST
* Refactor jumpdest loop
* Update comment
---------
Co-authored-by: Robin Salen <salenrobin@gmail.com>
2023-11-15 11:12:07 -05:00
Hamy Ratoanina
6d751b13c1
Remove values of last memory channel ( #1291 )
...
* Remove values of last memory channel
Co-authored-by: Linda Guiga <lindaguiga3@gmail.com>
* Fix merge
* Apply comments
* Fix ASM
* Top stack documentation (#7 )
* Add doc file
* Apply comments
* Apply comments
* Fix visibility
* Fix visibility
---------
Co-authored-by: Linda Guiga <lindaguiga3@gmail.com>
2023-11-13 11:03:50 -05:00
Robin Salen
954d1a77c6
Remove logic for multiple txns at once ( #1341 )
...
* Have prover take only a single txn at most
* Update comment
* Apply review
2023-11-09 09:34:12 -05:00
Robin Salen
5d5628b59d
Move empty_check inside final iteration
2023-11-08 18:42:02 -05:00
wborgeaud
fa93454c5c
Add withdrawals ( #1322 )
...
* Withdrawals
* Remove AllRecursiveCircuits in withdrawals test
* Fix ERC20 test
2023-11-07 12:20:54 +01:00
shuoer86
a0ea26f4b2
Fix typos in comments
2023-11-04 23:07:36 +08:00
Robin Salen
afd357f4bf
More of memcpy_bytes
2023-10-30 14:15:15 -04:00
Robin Salen
c96a8700af
Move empty check inside final iteration
2023-10-30 08:33:58 -04:00
Robin Salen
6f52b76d03
Review
2023-10-27 11:16:47 -04:00
Robin Salen
75fdd342f5
Fix calldatacopy
2023-10-26 15:59:40 -04:00
Robin Salen
ade5b8c39b
Fix
2023-10-26 15:46:55 -04:00
Robin Salen
a9e47afc07
Refactor codecopy
2023-10-26 15:24:53 -04:00
Robin Salen
a1b178f6c7
Refactor memcpy
2023-10-26 11:47:21 -04:00
Robin Salen
3feb04d252
Refactor wcopy syscalls
2023-10-26 11:47:21 -04:00
Robin Salen
c1c1ab6d0f
Fix wcopy and extcodecopy for ranges over code limit
2023-10-24 18:10:06 -04:00
Robin Salen
60811d083f
Also for memset
2023-10-23 19:40:32 -04:00
Robin Salen
83054b0ffe
Handle empty case for memcpy_bytes
2023-10-23 19:12:54 -04:00
Robin Salen
385ab3c64f
Remove redundant
2023-10-23 08:15:10 -04:00
Robin Salen
d185d30e89
Speed-up memset and fix it to write 0 values
2023-10-23 07:55:09 -04:00
Robin Salen
0300a322de
Merge pull request #1304 from topos-protocol/memcpy_bytes
...
Add macro for copying sequences of bytes
2023-10-23 07:32:07 -04:00
Robin Salen
4140eb54f4
Fix
2023-10-23 07:20:52 -04:00
Robin Salen
503a31b6f0
Reviews
2023-10-23 07:16:39 -04:00
Robin Salen
e2b662062a
Merge pull request #1302 from topos-protocol/remove_kernel_memory_zeroing
2023-10-23 06:33:05 -04:00
Robin Salen
9607a41b84
Merge pull request #1303 from topos-protocol/amortize_receipt_reset
2023-10-23 06:32:27 -04:00
Robin Salen
ba61d15cf9
Add macro for copying sequences of bytes
2023-10-21 16:36:41 -04:00
Robin Salen
6d2586ef58
Amortize bloom reset
2023-10-21 14:39:34 -04:00
Robin Salen
40de505954
Remove outdated code
2023-10-21 13:36:22 -04:00
Robin Salen
07ffe4f591
Combine stack macros for fewer operations
2023-10-21 13:04:27 -04:00
Robin Salen
6ca9970a3b
Alter stack to remove SWAPs for SUBMOD
2023-10-21 12:17:04 -04:00
Robin Salen
29005dc586
Use SUBMOD in Kernel
2023-10-21 11:44:23 -04:00
Robin Salen
49976ea2a9
Check gas in sys_stop ( #1297 )
2023-10-19 07:55:39 -04:00
wborgeaud
762e6f07b8
Fix hash node case in mpt_delete_branch ( #1278 )
...
* Fix
* Add test
* Fix test
* Clippy
2023-10-11 18:57:17 +02:00
Linda Guiga
d7990ee137
Add journal entry for logs ( #1286 )
...
* Add journal entry for logs
* Move journal labels to another file.
* Minor cleanup
2023-10-11 10:36:23 -04:00
wborgeaud
9fd0425f67
Fix journal order in sys_selfdestruct ( #1287 )
...
* Fix
* Minor
2023-10-11 16:24:00 +02:00
Hamy Ratoanina
49ca63ee0f
Fix sys_blockhash ( #1285 )
2023-10-11 10:23:09 -04:00
Linda Guiga
2aeecc3dd8
Fix failed receipt. ( #1284 )
2023-10-11 10:02:24 -04:00
Robin Salen
b4203c3d47
Make sure success is 0 in contract failure ( #1283 )
2023-10-10 06:23:20 -04:00
Alonso González
f49fbc8e9b
Transactions trie support ( #1232 )
...
* Implement transactions.
* Fix receipts and transactions
* Add some fixes
* Update tests
* Remove changes added for debugging purposes only
* Clippy
* Remove additional debug changes
* Remove unused
* Apply comments
---------
Co-authored-by: Linda Guiga <lindaguiga3@gmail.com>
Co-authored-by: Robin Salen <salenrobin@gmail.com>
2023-09-27 10:00:16 -04:00