Commit Graph

9014 Commits

Author SHA1 Message Date
Hsiao-Wei Wang 63aa303c5a
consistent naming 2023-10-16 21:31:12 +08:00
Hsiao-Wei Wang 65e1371980
Fix tests 2023-10-16 21:31:07 +08:00
shuoer86 bae3384071 Fix typos 2023-10-16 21:16:26 +08:00
Hsiao-Wei Wang 8d6b28b752
set default bls lib to `fastest_bls` 2023-10-16 17:47:14 +08:00
Hsiao-Wei Wang 9257ad28ac
Rename `KZG_SETUP_LAGRANGE` to `KZG_SETUP_G1_LAGRANGE` and `KZG_SETUP_G2` to `KZG_SETUP_G2_MONOMIAL` 2023-10-16 17:41:46 +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 d74932bec9
Merge branch 'dev' into pr3442 2023-10-16 17:22:31 +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
George Kadianakis be3c0f7b04 Also make test_barycentric_within_domain() not exhaustive 2023-10-10 16:23:05 +03:00
George Kadianakis 09983a4416 Revive test_compute_kzg_proof_within_domain() -- but not exhaustive
It now creates 6 random proofs instead of all 4096.
2023-10-10 16:23:02 +03:00
Lion - dapplion 8acb254511
Use add_validator_to_registry in whisk (#3486) 2023-10-10 15:09:21 +03:00
dapplion 5bab432ff4 clean-up todo 2023-10-10 14:17:45 +03:00
dapplion de30a92f4c update CRS 2023-10-10 13:29:36 +03:00
Hsiao-Wei Wang fd082aede6
Delete `test_compute_kzg_proof_within_domain` 2023-10-10 16:57:34 +09:00
Hsiao-Wei Wang f958c5fc61
Merge branch 'dev' into pr3255 2023-10-10 10:40:59 +09:00
Hsiao-Wei Wang b04430332e
Merge pull request #3513 from asn-d6/testgen_kzg_4844_positive_g1_at_inf
generators/kzg_4844: Add positive G1_POINT_AT_INFINITY test vectors
2023-09-26 19:14:45 +08:00
Hsiao-Wei Wang 0052e68019
Fix linter error 2023-09-25 17:46:43 +08:00
George Kadianakis a2d500f684 generators/kzg_4844: Add positive G1_POINT_AT_INFINITY test vectors 2023-09-22 15:07:55 +03:00
joethechicken 28e3c807e2
Update validator.md (#3509) 2023-09-20 12:53:50 +01:00
Hsiao-Wei Wang 69d34dc4ee
Merge pull request #3507 from ethereum/kzg-tests
Add KZGProof at `G1_POINT_AT_INFINITY` test cases
2023-09-20 00:57:49 +08:00
Hsiao-Wei Wang 395bb71442
Add `verify_kzg_proof_case_incorrect_proof_point_at_infinity` 2023-09-20 00:39:47 +08:00
Hsiao-Wei Wang 256367b17c
Group the "incorrect_proof" test cases 2023-09-20 00:21:18 +08:00
Hsiao-Wei Wang 171ae02280
Apply suggestions from code review
Co-authored-by: Justin Traglia <95511699+jtraglia@users.noreply.github.com>
2023-09-20 00:18:08 +08:00
Hsiao-Wei Wang ba6165185d
Merge pull request #3508 from ethereum/fix-deneb-fc-simple
Fix Deneb fork choice baseline test case
2023-09-20 00:16:55 +08:00
Hsiao-Wei Wang 6041c9b9d6
Add KZGProof at `G1_POINT_AT_INFINITY` case 2023-09-19 23:55:09 +08:00
Hsiao-Wei Wang 8900127258
Remove the wrong store time setting 2023-09-19 23:20:33 +08:00
Jacek Sieka f2ad012cef
spelling bee and lint torture 2023-09-19 14:23:08 +02:00
Jacek Sieka fe95d7cb6d
ssz: `byte` type and canonical JSON mapping
This PR introduces a new `byte` type equivalent in all aspects to
`uint8` except that it has additional intent and display semantics
attached.

On top of this, the PR adds a canonical JSON mapping to the SSZ
specification, documenting current usage of JSON in tests, API:s and
simplifying future interop work between clients and adjacent
specifications such as the Beacon API. The encoding is appropriate to
use with YAML as well.

As an important property, this mapping contains a 1:1 mapping of SSZ
type to JSON encoding - this allows round-tripping any object between
JSON and SSZ based on the SSZ schema and usage of the core SSZ types
alone.

The encoding presented in this PR is used in tests and API:s with one
exception: the `ParticipationFlags` type from the Altair spec - it is
recommended we switch encoding in tests and eventually the beacon API to
address this irregularity, so as to avoid a proliferation "special"
primitive types in the SSZ spec that only appear in particular schemas
(and thus making validating general-purpose `SSZ/JSON` parsers more
complex) as well as differences in encoding between fields of the same
SSZ type.

The PR also clarifies that the introduction of new aliases does not lead
to changes in their canonical JSON specification - this allows building
general SSZ/JSON libraries that do not further depend on open-ended
knowledge about aliases.

This PR should be seen as an alternative to
https://github.com/ethereum/consensus-specs/pull/2983.
2023-09-19 14:11:42 +02:00
Hsiao-Wei Wang ce240ca795
Merge pull request #3505 from ethereum/bump-version
bump version.txt to 1.4.0-beta.2
2023-09-18 23:01:19 +08:00
Hsiao-Wei Wang c88cf05358
Merge pull request #3499 from dapplion/limit-churn-inbound
Add max epoch activation churn limit (EIP-7514) to Deneb
2023-09-18 23:01:03 +08:00
Hsiao-Wei Wang 264dfadfe0
Merge branch 'dev' into pr3499 2023-09-18 18:07:39 +08:00
Hsiao-Wei Wang 206c328aa3
bump version.txt to 1.4.0-beta.2 2023-09-18 10:07:29 +08:00
Hsiao-Wei Wang a0a512d821
Merge pull request #3484 from ethereum/rename-small-suite
Rename BLS/KZG suite name
2023-09-16 11:47:42 +08:00
Hsiao-Wei Wang e8041749a2
Apply PR feedback. Rename `inbound_limit` to `activation_limit` 2023-09-15 22:05:26 +08:00
Hsiao-Wei Wang 26d3fa3efd
Apply suggestions from code review
Co-authored-by: danny <dannyjryan@gmail.com>
2023-09-15 22:02:34 +08:00
Hsiao-Wei Wang d26dac9121
Merge pull request #3493 from mxinden/patch-1
fix(sepcs/p2p): link to libp2p Yamux specification
2023-09-15 16:00:27 +08:00
Hsiao-Wei Wang 96d8c052ab
Merge pull request #3503 from ethereum/fix-link
Update the link of `EIP-7044`
2023-09-15 11:21:33 +08:00
Hsiao-Wei Wang 468ae9aae4
Update the link of `EIP-7044` 2023-09-15 11:04:08 +08:00
Hsiao-Wei Wang e5e50e3e40
Add EIP-7514 into Deneb 2023-09-15 10:49:06 +08:00
Max Inden 909388ba8d
fix(sepcs/p2p): link to libp2p Yamux specification
Previously the specification would link to the Hashicorp Yamux specification.

https://github.com/hashicorp/yamux/blob/master/spec.md

Since adoption by libp2p, there have been multiple refinements to the original specification. The improved specification can be found in the libp2p specification repository.

https://github.com/libp2p/specs/blob/master/yamux/README.md
2023-09-14 17:08:44 +02:00
Lion - dapplion 0efd778594
Update beacon_chain.md 2023-09-14 16:31:42 +02:00
Lion - dapplion f165d39472
Update mainnet.yaml 2023-09-14 16:31:12 +02:00
dapplion a56c4d026f add extension 2023-09-14 13:47:11 +02:00
dapplion 19bf51dd93 Rename eip7668 to eip7514 2023-09-14 13:44:32 +02:00
Hsiao-Wei Wang 28286e7e5f
Fix tests 2023-09-14 19:05:31 +08:00
Hsiao-Wei Wang 8878a316c4
Fix test_process_voluntary_exit.py 2023-09-13 19:05:01 +08:00
Hsiao-Wei Wang 417b95c3e6
Add basic activation churn limit tests 2023-09-13 17:14:26 +08:00
dapplion 298a6304de review PR 2023-09-13 11:00:22 +02:00
Hsiao-Wei Wang cc3ced5965
Enable eip7668 pytest 2023-09-12 21:48:35 +08:00
Hsiao-Wei Wang fd37ffcb61
Add _features/eip7668 and make linter happy 2023-09-12 21:37:09 +08:00