4867 Commits

Author SHA1 Message Date
Robin Salen
1a08e783da
Fix no-std tests and add corresponding jobs in the CI (#1501) 2024-02-06 14:59:34 -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
David
fb8452de8e
Merge pull request #1500 from topos-protocol/ci
Pin nightly version to 2024-02-01
2024-02-06 16:28:55 +01:00
Robin Salen
246c2b6263
Fix workflow 2024-02-06 09:39:29 -05:00
Robin Salen
8f91913337
Fix nightly version 2024-02-06 09:32:45 -05: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
Utsav Jain
1dc22b761f
Fix BaseSumGenerator and BaseSplitGenerator Ids (#1494)
* fix: different ids for generators with different bases

required for correct serialisation

Signed-off-by: electron-team <utsavjn48@gmail.com>

* fixing wasm32 build issue

Signed-off-by: electron-team <utsavjn48@gmail.com>

* fix fmt issue

Signed-off-by: electron-team <utsavjn48@gmail.com>

---------

Signed-off-by: electron-team <utsavjn48@gmail.com>
2024-02-01 08:49:36 -05:00
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