Skip to content

Commit f3d0a0e

Browse files
committed
Move containers to validator.md
1 parent 8aed037 commit f3d0a0e

File tree

2 files changed

+35
-29
lines changed

2 files changed

+35
-29
lines changed

specs/electra/beacon-chain.md

Lines changed: 10 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -33,11 +33,9 @@
3333
- [`PendingConsolidation`](#pendingconsolidation)
3434
- [Modified Containers](#modified-containers)
3535
- [`AttesterSlashing`](#attesterslashing)
36+
- [`IndexedAttestation`](#indexedattestation)
3637
- [Extended Containers](#extended-containers)
3738
- [`Attestation`](#attestation)
38-
- [`AggregateAndProof`](#aggregateandproof)
39-
- [`SignedAggregateAndProof`](#signedaggregateandproof)
40-
- [`IndexedAttestation`](#indexedattestation)
4139
- [`BeaconBlockBody`](#beaconblockbody)
4240
- [`ExecutionPayload`](#executionpayload)
4341
- [`ExecutionPayloadHeader`](#executionpayloadheader)
@@ -281,42 +279,25 @@ class AttesterSlashing(Container):
281279
attestation_2: IndexedAttestation # [Modified in Electra:EIP7549]
282280
```
283281

284-
### Extended Containers
285-
286-
#### `Attestation`
282+
#### `IndexedAttestation`
287283

288284
```python
289-
class Attestation(Container):
290-
aggregation_bits: Bitlist[MAX_VALIDATORS_PER_COMMITTEE * MAX_COMMITTEES_PER_SLOT] # [Modified in Electra:EIP7549]
285+
class IndexedAttestation(Container):
286+
# [Modified in Electra:EIP7549]
287+
attesting_indices: List[ValidatorIndex, MAX_VALIDATORS_PER_COMMITTEE * MAX_COMMITTEES_PER_SLOT]
291288
data: AttestationData
292-
committee_bits: Bitvector[MAX_COMMITTEES_PER_SLOT] # [New in Electra:EIP7549]
293289
signature: BLSSignature
294290
```
295291

296-
#### `AggregateAndProof`
297-
298-
```python
299-
class AggregateAndProof(Container):
300-
aggregator_index: ValidatorIndex
301-
aggregate: Attestation # [Modified in Electra:EIP7549]
302-
selection_proof: BLSSignature
303-
```
304-
305-
#### `SignedAggregateAndProof`
306-
307-
```python
308-
class SignedAggregateAndProof(Container):
309-
message: AggregateAndProof # [Modified in Electra:EIP7549]
310-
signature: BLSSignature
311-
```
292+
### Extended Containers
312293

313-
#### `IndexedAttestation`
294+
#### `Attestation`
314295

315296
```python
316-
class IndexedAttestation(Container):
317-
# [Modified in Electra:EIP7549]
318-
attesting_indices: List[ValidatorIndex, MAX_VALIDATORS_PER_COMMITTEE * MAX_COMMITTEES_PER_SLOT]
297+
class Attestation(Container):
298+
aggregation_bits: Bitlist[MAX_VALIDATORS_PER_COMMITTEE * MAX_COMMITTEES_PER_SLOT] # [Modified in Electra:EIP7549]
319299
data: AttestationData
300+
committee_bits: Bitvector[MAX_COMMITTEES_PER_SLOT] # [New in Electra:EIP7549]
320301
signature: BLSSignature
321302
```
322303

specs/electra/validator.md

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@
88

99
- [Introduction](#introduction)
1010
- [Prerequisites](#prerequisites)
11+
- [Containers](#containers)
12+
- [Modified Containers](#modified-containers)
13+
- [`AggregateAndProof`](#aggregateandproof)
14+
- [`SignedAggregateAndProof`](#signedaggregateandproof)
1115
- [Block proposal](#block-proposal)
1216
- [Constructing the `BeaconBlockBody`](#constructing-the-beaconblockbody)
1317
- [Attester slashings](#attester-slashings)
@@ -34,6 +38,27 @@ All behaviors and definitions defined in this document, and documents it extends
3438
All terminology, constants, functions, and protocol mechanics defined in the updated Beacon Chain doc of [Electra](./beacon-chain.md) are requisite for this document and used throughout.
3539
Please see related Beacon Chain doc before continuing and use them as a reference throughout.
3640

41+
## Containers
42+
43+
### Modified Containers
44+
45+
#### `AggregateAndProof`
46+
47+
```python
48+
class AggregateAndProof(Container):
49+
aggregator_index: ValidatorIndex
50+
aggregate: Attestation # [Modified in Electra:EIP7549]
51+
selection_proof: BLSSignature
52+
```
53+
54+
#### `SignedAggregateAndProof`
55+
56+
```python
57+
class SignedAggregateAndProof(Container):
58+
message: AggregateAndProof # [Modified in Electra:EIP7549]
59+
signature: BLSSignature
60+
```
61+
3762
## Block proposal
3863

3964
### Constructing the `BeaconBlockBody`

0 commit comments

Comments
 (0)