5902 Commits

Author SHA1 Message Date
fradamt
75e601a167 remove redundant copy() 2024-08-09 09:13:13 +02: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
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
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
Justin Traglia
5961e26931
Remove unnecessary comment 2024-07-15 15:09:01 -05: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
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
Justin Traglia
9a9fa965b0
In batch cell verification, take commitment for each cell (#3834) 2024-07-10 10:41:37 -05:00
Etan Kissling
a86eeb3ee0
Freeze Altair constants at Deneb 2024-07-09 20:23:27 +02:00
Etan Kissling
63433ec847
Use separate constant names for post-Electra gindices 2024-07-09 20:15:31 +02:00
Justin Traglia
c402414489
Merge branch 'dev' into remove-verify-cell-kzg-proof 2024-07-09 11:32:28 -05:00
Alex Stokes
b7149ef5fa
Update beacon-chain.md
Typo fix in deneb comment
2024-07-08 17:52:06 -06:00
Justin Traglia
8da90b2702 Fix linter issues 2024-07-08 14:20:45 -05:00
Justin Traglia
1dbb68d3d7 Update get_data_column_sidecars to take cells/proofs 2024-07-08 14:07:53 -05:00
Justin Traglia
b9e7b031b5 Update algorithm & remove check 2024-07-08 09:00:14 -05:00
Justin Traglia
228752c0d9 In batch cell verification, check if there are zero cells 2024-07-05 15:31:07 -05:00
Justin Traglia
0daa2acdff Remove verify_kzg_proof_multi_impl too 2024-07-02 17:05:40 -05:00
Justin Traglia
c078a97f0c Remove verify_cell_kzg_proof (non-batch) 2024-07-02 15:38:15 -05:00
Justin Traglia
7b72cbdfad Fix link to Deneb spec 2024-07-01 18:42:32 -05:00
Justin Traglia
77c371b22a
Replace "updated" with "modified" in Electra spec (#3823) 2024-07-01 15:36:17 -05:00
Justin Traglia
0e03d8c08d Fix beacon-chain.md section header issues 2024-06-28 14:24:49 -05:00
Benedikt Wagner
83da3807ab
EIP7594: Do universal verification in verify_cell_kzg_proof_batch() (#3812)
* restructure verify_cell_kzg_proof_batch a bit

* first draft of universal verification equation

* add one more empty line to make linter happy

* make linter happy

* more testcases for verify_cell_kzg_proof_batch

* verify_cell_kzg_proof_batch: derive coefficient via hash

* rename verify_cell_kzg_proof_batch_challenge -> compute_verify_cell_kzg_proof_batch_challenge

* verify_cell_kzg_proof_batch: editorial + some refactoring

* Improve documentation and variable naming.

* remove k_i from code and doc

---------

Co-authored-by: Justin Traglia <95511699+jtraglia@users.noreply.github.com>
2024-06-28 18:02:20 +03:00
dapplion
f25aac6adf Add MetadataV3 with custody_subnet_count 2024-06-28 15:53:29 +02:00
kevaundray
a3a6c916b2
Remove proof parameter from recover_cells_and_kzg_proofs (#3819) 2024-06-27 14:17:14 -05:00
Hsiao-Wei Wang
0a49572799
Merge pull request #3782 from cskiraly/peer-das-sampling
PeerDAS sampling clarifications
2024-06-27 19:27:57 +08:00
Hsiao-Wei Wang
258c2c9020
Merge pull request #3794 from cskiraly/peer-das-reconstruction
EIP-7594: clarifying reconstruction and cross-seeding
2024-06-27 18:58:23 +08:00
Csaba Kiraly
1ad381dccb
adding get_extended_sample_count docsstring
Signed-off-by: Csaba Kiraly <csaba.kiraly@gmail.com>
2024-06-27 10:28:21 +02:00
Csaba Kiraly
78b583d8b0
clarify use of get_extended_sample_count
Here we assume uniform random selection without replacement.
If other methods are used, the target false positive threshold
is the main rule to follow.

Signed-off-by: Csaba Kiraly <csaba.kiraly@gmail.com>
2024-06-27 09:48:32 +02:00
Csaba Kiraly
17dfb9ae57
fix get_extended_sample_count proc signature
Co-authored-by: Pop Chunhapanya <haxx.pop@gmail.com>
2024-06-27 09:30:39 +02:00
dapplion
9280cc7be9 Update doctoc 2024-06-26 12:46:16 +02:00
dapplion
ded072af40 Make MAX_BLOBS_PER_BLOCK a config parameter 2024-06-25 18:22:56 +02:00
Csaba Kiraly
4539265c55
moving part of text in custody section
Signed-off-by: Csaba Kiraly <csaba.kiraly@gmail.com>
2024-06-25 10:36:53 +02:00
Hsiao-Wei Wang
1f87bbeac0
Merge branch 'dev' into pr3782 2024-06-25 16:21:00 +08:00
Hsiao-Wei Wang
beedf852cb
Revert division change and add comments 2024-06-25 16:15:16 +08:00
Etan Kissling
67a053d6ce
Refer to Altair gindices as that's where they were introduced 2024-06-21 14:39:01 +02:00
Etan Kissling
ea04148a0d
Lint 2024-06-21 11:44:33 +02:00
Etan Kissling
2035a9fcad
Update light client specifications for Electra
Electra introduces two changes that affect light client data handling:

1. The `ExecutionPayloadHeader` is extended with new fields.
   This is handled similarly as before with the Deneb fork.

2. The `BeaconState` generalized indices change due to lack of EIP-6493.
   This is handled by making the generalized index be fork dependent via
   a helper function that computes it dynamically. Furthermore, the case
   where pre-Electra light client data is consumed by an Electra based
   `LightClientStore` requires normalizing the shorter proof of the
   pre-Electra data to fit into the Electra data structure by prepending
   a zero hash.
2024-06-21 11:33:52 +02:00