5971 Commits

Author SHA1 Message Date
Jacek Sieka
1c529a858c
use SingleAttestation in honest validator spec 2024-09-20 09:25:35 +02:00
Jacek Sieka
0833551328
spelling 2024-08-28 07:35:12 +02:00
Jacek Sieka
5761fb4d97
update list of checks 2024-08-28 07:31:49 +02:00
Jacek Sieka
0b95012c2e
Separate type for unaggregated network attestations
As a complement to
https://github.com/ethereum/consensus-specs/pull/3787, this PR
introduces a `SingleAttestation` type used for network propagation only.

In Electra, the on-chain attestation format introduced in
[EIP-7549](https://github.com/ethereum/consensus-specs/pull/3559)
presents several difficulties - not only are the new fields to be
interpreted differently during network processing and onchain which adds
complexity in clients, they also introduce inefficiency both in hash
computation and bandwidth.

The new type puts the validator and committee indices directly in the
attestation type, this simplifying processing and increasing security.

* placing the validator index directly in the attestation allows
verifying the signature without computing a shuffling - this closes a
loophole where clients either must drop attestations or risk being
overwhelmed by shuffling computations during attestation verification
* the simpler "structure" of the attestation saves several hash calls
during processing (a single-item List has significant hashing overhead
compared to a field)
* we save a few bytes here and there - we can also put stricter bounds
on message size on the attestation topic because `SingleAttestation` is
now fixed-size
* the ambiguity of interpreting the `attestation_bits` list indices
which became contextual under EIP-7549 is removed

Because this change only affects the network encoding (and not block
contents), the implementation impact on clients should be minimal.
2024-08-26 15:54:59 +02:00
Justin Traglia
4eee3b0c3b Remove matrix specific configuration value
This also removes references to the "extended matrix" in favor of just "matrix"
which I think is better. It's not an extended matrix, it's a matrix of extended
blobs. Technically it's just a matrix of cells/proofs.
2024-08-14 20:19:50 -05:00
Alex Stokes
13ac373a2c
Merge pull request #3870 from fradamt/no-peer-sampling
Spec without peer sampling
2024-08-12 15:04:41 -06:00
Hsiao-Wei Wang
d8cbca76b2
Merge pull request #3877 from fradamt/dev
remove redundant copy()
2024-08-12 18:39:54 +09:00
fradamt
75e601a167 remove redundant copy() 2024-08-09 09:13:13 +02:00
fradamt
04ee34c504 revert to deneb-style fork-choice (is_data_available in on_block) 2024-08-08 10:01:20 +02:00
Hsiao-Wei Wang
f4e3908801
Merge pull request #3868 from mkalinin/fix-consolidation
Fix off-by-one in process_pending_consolidations
2024-08-08 14:43:56 +09:00
Hsiao-Wei Wang
bd396a6cee
Merge pull request #3873 from jtraglia/nits-in-7594-p2p-interface
Fix nits in eip7594 p2p-interface spec
2024-08-08 14:21:22 +09:00
Justin Traglia
54093964c9 Fix nits in eip7594 p2p-interface spec 2024-08-07 21:22:00 -05:00
Justin Traglia
80b94ba058
Fix bad suggestion 2024-08-07 15:24:48 -05:00
fradamt
06ead3aa0d
Apply suggestions from code review
Co-authored-by: Justin Traglia <95511699+jtraglia@users.noreply.github.com>
2024-08-07 22:13:41 +02:00
fradamt
7a6770a732 fix headers
Co-authored-by: Justin Traglia <95511699+jtraglia@users.noreply.github.com>
2024-08-07 16:52:06 +02:00
fradamt
111123723a fix function comment 2024-08-07 15:07:37 +02:00
fradamt
376ab85406 Split peer sampling spec from das-core.md 2024-08-07 14:52:36 +02:00
fradamt
4bd2f924de custody-based fork-choice 2024-08-07 11:28:16 +02:00
terence tsao
7c1092216c p2p: clean up payload_attestation_message conditions 2024-08-06 13:30:44 -04: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
Mikhail Kalinin
b665698350 Fix off-by-one in process_pending_balance_deposits 2024-08-06 17:29:13 +06:00
Mikhail Kalinin
fcca2b5c71 Fix off-by-one in process_pending_consolidations 2024-08-06 17:17:26 +06:00
Hsiao-Wei Wang
572ca9e032
Merge pull request #3821 from dapplion/csc
Add MetadataV3 with custody_subnet_count
2024-08-06 19:43:38 +09:00
Potuz
74124f521b Typo in validator.md 2024-08-02 12:50:25 -03:00
vbuterin
7ab2bbe89b
Make process_withdrawals slightly cleaner (equivalent functionality) (#3761) 2024-08-02 08:35:25 -05:00
George Kadianakis
92aeafeab9
Merge pull request #3863 from b-wagn/patch-3
EIP7594: Remove dead link
2024-08-02 15:35:21 +03:00
Mikhail Kalinin
10becc58b7
Merge pull request #3595 from etan-status/bf-safehash
Rename `get_safe_execution_payload_hash` -> `*_block_hash`
2024-08-02 18:31:10 +06:00
Benedikt Wagner
ef3c9dc84d
Remove dead link to no longer existing public method. 2024-08-02 08:35:02 +02:00
b-wagn
225c486183 some punctuation 2024-07-31 17:30:36 +02:00
b-wagn
85a42cd7bf improve comments in recovery 2024-07-31 11:56:39 +02:00
Potuz
b082140312 Revert "Remove block_timeliness from the store"
The damned linter complains and there's no problem having it

This reverts commit b7461ac174b56244a34e654f2083f35da3b4e29d.
2024-07-24 16:02:53 -03:00
Potuz
0c9ca6de24 solve ties by block slot first 2024-07-23 13:31:21 -03:00
Potuz
d0fad1f380 Advance best child with empty until it is higher than every children 2024-07-23 13:06:54 -03:00
Potuz
b7461ac174 Remove block_timeliness from the store 2024-07-23 07:53:50 -03:00
Potuz
8c9514ecc1 Restore proposer_boost timeliness calculation 2024-07-22 16:29:55 -03:00
0xTylerHolmes
80092b1b14 remove beacon_attestation_subnet from global topics 2024-07-19 12:52:59 -04:00
Hsiao-Wei Wang
a42d6706d8
Merge pull request #3811 from etan-status/lc-electra
Update light client specifications for Electra
2024-07-19 23:18:25 +08:00
kevaundray
233129122b
Replace recover_data with recover_polynomialcoeff (#3820)
* chore: remove recover_data

* make it look closer to final code

* Improve comments

* Fix lint issue

* Fix tests & clean things up a bit

* Replace a couple uses of "monomial" with "coefficient"

* Revert "Replace a couple uses of "monomial" with "coefficient""

This reverts commit c9a1a757d1a09190eee78767b3d36b2a84066e42.

* Only replace "monomial" with "coefficient"

---------

Co-authored-by: Justin Traglia <95511699+jtraglia@users.noreply.github.com>
Co-authored-by: Justin Traglia <jtraglia@pm.me>
2024-07-17 16:23:59 +03:00
Etan Kissling
460d46ddcd
Merge branch 'dev' into lc-electra 2024-07-17 13:30:30 +02:00
George Kadianakis
bb8f3caafc
Merge pull request #3836 from jtraglia/columns-cells-and-proofs
Update get_data_column_sidecars to take cells/proofs
2024-07-16 18:25:24 +03:00
Hsiao-Wei Wang
b4432fbef8
Merge pull request #3817 from dapplion/max-blobs-config
Make MAX_BLOBS_PER_BLOCK a config parameter
2024-07-16 22:27:13 +08:00
Potuz
5bb25c8088 remove spurious config prefix 2024-07-15 17:11:26 -03:00
Justin Traglia
5961e26931
Remove unnecessary comment 2024-07-15 15:09:01 -05:00
Potuz
4b43b96f83 doctoc 2024-07-15 15:17:20 -03:00
Justin Traglia
252b852a61
Rename column_index to cell_index in KZG spec (#3841)
* Rename column_index to cell_index in KZG spec

* Fix table of contents

* Replace list(set()) with set()

* Change coset_evals to cell_indices in some places

* Remove punctuation in table description

* Remove "row" from comments & improve docstring

* Replace unique with deduplicated
2024-07-15 19:41:33 +03:00
Potuz
3529b46149 Fix block_header.state_root and forkchoice filtering 2024-07-15 11:31:39 -03:00
Etan Kissling
9db6d3f2ef
Remove unnecessary cast 2024-07-15 14:02:07 +02:00
Etan Kissling
e2c06c32b1
Fix link 2024-07-15 13:56:54 +02:00
dapplion
db717702a8 Move to peerdas eip 2024-07-11 14:07:16 +02:00
George Kadianakis
dc5f74da0e
Merge pull request #3830 from jtraglia/remove-verify-cell-kzg-proof
Remove `verify_cell_kzg_proof` (non-batch)
2024-07-10 19:49:58 +03:00