209 Commits

Author SHA1 Message Date
Justin Traglia
ea37fc5140 Fix a few nits dealing with updated makefile
* Hide output from forced eth2spec rebuild
* Call detect_errors after all generators are done
* Allow output to stderr to show up in console when testing
    * Add note about printing to stderr
* Make check_toc private, as one should only use make lint
    * Move _check_toc rule closer to lint rule
* Force rebuild eth2spec when running generators
    * And do not rebuild pyspec now, no longer needed
2024-12-17 14:23:25 -06:00
Justin Traglia
98cf01d22d Refactor the main Makefile (#3988) 2024-12-13 13:30:23 -06:00
Justin Traglia
28719cdebf Rename eip7594 to fulu, p1 2024-12-11 08:09:59 -06:00
Justin Traglia
f392a22a50 Merge pull request #3986 from jtraglia/gen-collect-only
Add `gen-modcheck` CI check
2024-10-29 09:52:14 -05:00
Justin Traglia
6de2e297ea Upgrade pylint & split config files 2024-10-21 14:25:17 -05:00
Justin Traglia
57bd0ae2bf Remove --collect-only & rebrand to modcheck 2024-10-18 12:15:59 -05:00
Justin Traglia
991ccd233f Add gen-collect-only CI check 2024-10-18 11:44:01 -05:00
Justin Traglia
7922b62482 Merge pull request #3940 from jtraglia/move-depcon-make-rules
Move deposit contract rules to its own Makefile
2024-10-14 11:52:36 -05:00
Justin Traglia
a9e3aada7f Use bls.Scalar as the base class for BLSFieldElement (#3907) 2024-09-27 07:19:04 -05:00
Justin Traglia
3162c91aff Simplify output from make pyspec (#3938) 2024-09-26 09:34:53 -05:00
Justin Traglia
223d7346f9 Move deposit contract rules to its own Makefile 2024-09-23 14:23:38 -05:00
Justin Traglia
eff5e8f697 Remove ONESHELL stuff 2024-09-20 10:08:18 -05:00
Justin Traglia
e0651d34b0 Revert some changes 2024-09-20 09:35:44 -05:00
Justin Traglia
0c9762f837 Improve check_toc rule in Makefile 2024-09-20 09:23:01 -05:00
Justin Traglia
ea90d6f27d Fix test vector generators to work with Python 3.12 2024-09-17 14:56:59 -05:00
Hsiao-Wei Wang
8f8ab03acf Merge pull request #3828 from potuz/epbs_cl_repo
EIP-7732: Enshrined Proposer-Builder Separation
2024-08-07 01:19:53 +09:00
Justin Traglia
6d146e2bc1 For pytest, replace NUMBER_OF_CORES with auto 2024-07-16 14:16:18 -05:00
Potuz
a11ffb5278 use definitive EIP number 2024-07-08 14:36:49 -03:00
Potuz
752a804db6 use boolean instead of bool in forkchoice 2024-07-08 14:36:49 -03:00
Hsiao-Wei Wang
744ae2e687 Add EIP-6800 linter checks.
Fix the lint errors.
Remove custom type `StateDiff` and then use `List[StemStateDiff, MAX_STEMS]` directly in `ExecutionWitness`.
2024-05-28 16:24:11 +08:00
Parithosh Jayanthi
84c4aebfa8 github runner overhaul (#3751)
-    More isolated per job
-    Moderate speed increase
-    Moderate Cost reduction
-    Better security as jobs and tasks are fully isolated and run on ephemeral instances
2024-05-07 10:34:25 +02:00
Alex Stokes
034909ddb6 Merge in EIP-7251 tests to Electra 2024-04-15 20:10:14 -06:00
Hsiao-Wei Wang
91dc428d28 fix conflict 2024-04-12 21:29:10 +09:00
Alex Stokes
e4068b5391 Merge EIP-7549 into Electra 2024-04-05 13:56:57 -06:00
Hsiao-Wei Wang
55c81e7fa1 Merge EIP7002 into Electra 2024-04-05 11:36:49 -06:00
Hsiao-Wei Wang
d2c69fe3cf Rename EIP6110 to Electra 2024-04-05 10:53:42 -06:00
Hsiao-Wei Wang
ce591f98c8 Enable EIP7549 CI 2024-04-01 10:43:38 +09:00
Parithosh Jayanthi
e52594634c WIP: Update dockerisation (#3477)
* 🐳 add Dockerfile and dockerfile based script for consensus-spec tests
2024-01-04 17:09:06 +01:00
Hsiao-Wei Wang
d399cdedfa Fix linter config 2023-12-15 00:56:41 +08:00
Hsiao-Wei Wang
01fa0fe64a Replace ROOTS_OF_UNITY with runtime-computed compute_roots_of_unity(FIELD_ELEMENTS_PER_BLOB) 2023-10-16 17:38:09 +08:00
Hsiao-Wei Wang
c5785899f7 Use official KZG ceremony output trusted_setup_4096.json trusted setups 2023-10-12 19:54:18 +08:00
Hsiao-Wei Wang
f958c5fc61 Merge branch 'dev' into pr3255 2023-10-10 10:40:59 +09:00
Hsiao-Wei Wang
a39abe388b Upgrade wheel, pip, and setuptools with make install_test (#3443)
* Upgrade wheel pip setuptools with `make install_test`

* Set minimum requirements
2023-07-14 21:37:51 +08:00
dapplion
68bb5ee507 Ensure make lint resolves to the right pylint and mypy versions 2023-06-08 15:00:49 +03:00
Lion - dapplion
241e52a202 Whisk (SSLE) with Curdleproofs - rebased (#3342)
* Introduce consensus code for Whisk

* polish, simplify, clean up (~100 fewer lines)

@asn-d6: As discussed, I fixed a few bugs along the way but likely also introduced some bugs :)

* minor cleanups and fixes

* simplify is_k_commitment_unique

* Update beacon-chain.md

* Update beacon-chain.md

* Initialize `k` in `get_validator_from_deposit()`

* minor cleanups

* Update beacon-chain.md

* Create beacon-chain.md

This PR changes the Whisk tracker format to be of the form `(r * pubkey, r * BLS_GT_GENERATOR)` instead of `(r * k * BLS_G1_GENERATOR, r * BLS_G1_GENERATOR)`. This allows for non-interactive tracker registrations from validator pubkeys, removing ~50 lines the code. It also significantly reduces the amount of state overhead. This PR also removes permutation commitments, though those can be easily readded if deemed necessary.

* A couple of fixes to the no-registration simplification

@asn-d6: Readded a consistency check for `IsValidWhiskOpeningProof` (involving `pubkey` instead of `k_commitment`).

* remove unused helpers

* use Mary's suggested tracker

* Update beacon-chain.md

* Revert G_t element optimization

This needs its own ethresearch post, and some additional analysis to see if we can do the shuffle ZKP in the allowed
timeframe.

This reverts commit 8517acabfc.

* Implement new shuffling strategy

Ditch the Feistel logic and instead have each shuffler pick the row they shuffle using their RANDAO reveal.

* Curdleproofs edits

* working whisk eth2spec

* working whisk dummy test

* add more boilerplate set up code

* rebase constants

* Implement even newer and simplified shuffling strategy

This commit further simplifies 0faef30fc1 by removing the entire squareshuffle.

The latest version of https://eprint.iacr.org/2022/560 proposes that each shuffler picks random indices from the entire
candidate set instead of organizing validators into a square.

* Move to _features

* remove dummy test

* Run doctoc

* Change Whisk's previous fork to Capella instead of Bellatrix. Make linter happier.

* Fix lint

* Fix pylint

* Fix mypy issues

* Clean-up get_beacon_proposer_index

* Fix doc headers

* Fix capella link

* Update apply_deposit

* Rename process_shuffled_trackers

---------

Co-authored-by: George Kadianakis <desnacked@riseup.net>
Co-authored-by: Justin <drakefjustin@gmail.com>
Co-authored-by: Nalin Bhardwaj <nalinbhardwaj@nibnalin.me>
Co-authored-by: Hsiao-Wei Wang <hsiaowei.eth@gmail.com>
2023-06-08 15:35:03 +08:00
Hsiao-Wei Wang
21d4370fd5 Add docs about how to add a new feature proposal in consensus-specs and online viewer support (#3239)
* Add docs

* update link to template

* Add more info

* Try mkdocs

* Create docs.yml

* Update docs.yml

* update

* update

* update

* Try mkdocs

* Add "B: Make it executable for pytest and test generator" section

* Use mkdocs-material

* Use `mkdocs-awesome-pages-plugin` to create custom specs order

* Add toc permalink

* Update site_url

* Add .pages files for navigations. Update highlight style

* Dark theme

* Fix list indent
2023-04-18 18:31:34 +08:00
Danny Ryan
b53392b463 Merge pull request #3177 from mkalinin/deposits
In-protocol deposits flow (no queue approach)
2023-03-14 11:33:36 -06:00
Hsiao-Wei Wang
baaab93e6b Merge branch 'dev' into pr3255 2023-03-10 14:58:32 +08:00
dankrad
86fb82b221 Test generators for kzg-4844 libraries (#3274)
Arkworks integration and test generators for kzg-4844 libraries
2023-03-02 20:49:10 +00:00
Hsiao-Wei Wang
4a59bcfaa9 Merge branch 'dev' into deposits 2023-03-01 00:10:30 +08:00
Hsiao-Wei Wang
1f3249407a Full wildcard search MARKDOWN_FILES 2023-02-28 23:51:31 +08:00
Hsiao-Wei Wang
195babdf3d Refactoring the specs list. Avoid listing specs again and again. 2023-02-28 22:09:12 +08:00
Hsiao-Wei Wang
fda0eae70a Add EIP6110 to pylint and mypy scope 2023-02-23 23:41:57 +08:00
Hsiao-Wei Wang
4fa396d2cf Update testing_trusted_setups.json 2023-02-16 23:47:28 +08:00
Hsiao-Wei Wang
95720872e6 Update README.md 2023-02-14 23:53:23 +08:00
Paul Harris
317facbd64 Replaced EIP4844 references with Deneb
Fixes #3207
2023-01-23 15:08:34 +01:00
Etan Kissling
375436094c Merge branch 'dev' into lc-eph 2023-01-05 13:53:29 +01:00
Parithosh Jayanthi
bd26c96a8c Adds Github Actions CI (#3028)
* Squash commits

* Rename TEST_TYPE to TEST_PRESET_TYPE

* Try python3 -m pytest -n 16

* updating actions versions

* adding cleanup

* reorder

* Add eip4844

Co-authored-by: Hsiao-Wei Wang <hsiaowei.eth@gmail.com>
2023-01-03 23:23:09 +08:00
Etan Kissling
b0471511e5 Merge branch 'dev' into lc-eph 2023-01-03 15:36:37 +01:00
Hsiao-Wei Wang
2ac06c10d3 Update G2 trusted setup length to 65 2022-12-13 18:14:50 +08:00