4856 Commits

Author SHA1 Message Date
Robin Salen
f76245e298
Cleanup imports (#1492) 2024-02-01 07:16:28 -05:00
Daniel Lubarov
a9060e61b8 Add LA audit report 2024-01-28 09:04:16 -08:00
Vivek Pandya
36e62a134d
Use usize::BITS and wrapping_shr in reverse_index_bits_in_place_small (#1478) 2024-01-26 10:10:45 -05:00
Vivek Pandya
14bb5bdb82
Use web_time crate instead of std::time (#1481) 2024-01-25 08:20:34 -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
Léo Vincent
265d46a96e
chore: update ci workflow (#1475)
* chore: bump `actions/checkout` and `actions/cache`

* chore: use `dtolnay/rust-toolchain` and `Swatinem/rust-cache` instead of outdated github actions

* chore: use `cargo test`

* chore: remove `actions-rs/cargo`

* fix: typo

* chore: enable to cancel in-progress jobs

* chore: add job timeouts
2024-01-18 15:46:11 +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
Ratan Kaliani
c4319dcee6
fix: make add_generators public (#1463) 2024-01-12 18:25:31 +00: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
Robin Salen
c2a73ad89f
Fix clippy (#1464) 2024-01-12 15:09:19 +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
b119e96f7f
Merge pull request #1461 from 0xPolygonZero/eth_trie_utils_bug_fix
Bumped `eth_trie_utils`
2024-01-11 11:29:02 -07: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
Robin Salen
cda30847a9
Apply review 2024-01-11 15:43:51 +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
Robin Salen
33def0841d
Merge branch 'main' into plonky2_doc 2024-01-10 09:01:30 +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