Ford
da85f1be36
typo ( #1533 )
2024-02-18 15:25:16 +00:00
Robin Salen
cfe4448341
Implement Default for DefaultGateSerializer and DefaultGeneratorSerializer ( #1531 )
...
* Implement Default for DefaultGateSerializer and DefaultGeneratorSerializer
* Apply comments
* Update doc
* Clippy
2024-02-18 14:34:00 +00:00
Robin Salen
3e579b6d43
Remove plonky2_evm post-migration to zk_evm monorepo ( #1530 )
2024-02-17 11:04:07 -05:00
Hamy Ratoanina
a7b985ce39
Add hash public input methods ( #1529 )
...
* Add hash public input methods
* Change vecs to arrays
* ::
* Fix method name
2024-02-16 16:55:46 +00:00
Georgy Shepelev
8753162b77
Fix build for wasm32/64-unknown-unknown without std ( #1528 )
...
* adjust to no_std build
* disable default features of serde_json
* cargo fmt & clippy
* fix review remarks
2024-02-15 09:14:44 -05:00
Robin Salen
6f42ed5ca3
Add additional methods for Poseidon with PackedField ( #1526 )
...
* Add additional methods for Poseidon with PackedField
* Apply comments
* Comment
---------
Co-authored-by: Linda Guiga <lindaguiga3@gmail.com>
2024-02-15 13:52:34 +00:00
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
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
David
b6fec06c38
Fix nightly build (ahash issue) ( #1524 )
...
* Revert "Fix workflow"
This reverts commit 246c2b6263f71313192801b1c27a3c08e241f545.
* Revert "Fix nightly version"
This reverts commit 8f919133379213698ba43fda5a39a153a17324b7.
* chore: remove stdsimd feature req (stabilized)
2024-02-12 09:42:07 -05:00
Robin Salen
b600142cd4
Cleanup alloc / std imports for plonky2 ( #1518 )
...
* Cleanup alloc/std versions for plonky2
* Fix import for macro
2024-02-10 15:48:52 -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
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