forked from ethereum/consensus-specs
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
move attestation index outside signed message
- Loading branch information
Showing
12 changed files
with
102 additions
and
43 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
# EIP-7549 -- The Beacon Chain | ||
|
||
## Table of contents | ||
|
||
<!-- TOC --> | ||
<!-- START doctoc generated TOC please keep comment here to allow auto update --> | ||
<!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE --> | ||
|
||
- [Introduction](#introduction) | ||
- [Containers](#containers) | ||
- [Extended containers](#extended-containers) | ||
- [AttestationData](#attestationdata) | ||
- [Attestation](#attestation) | ||
- [Helper functions](#helper-functions) | ||
- [Beacon state accessors](#beacon-state-accessors) | ||
- [`get_attestation_index`](#get_attestation_index) | ||
|
||
<!-- END doctoc generated TOC please keep comment here to allow auto update --> | ||
<!-- /TOC --> | ||
|
||
## Introduction | ||
|
||
This is the beacon chain specification to move the attestation committee index outside of the signed message. For motivation, refer to [EIP-7549](https://github.com/ethereum/EIPs/pull/7944). | ||
|
||
*Note:* This specification is built upon [Deneb](../../deneb/beacon_chain.md) and is under active development. | ||
|
||
## Containers | ||
|
||
### Extended containers | ||
|
||
#### AttestationData | ||
|
||
```python | ||
class AttestationData(Container): | ||
slot: Slot | ||
# index: CommitteeIndex # [Modified in EIP7549] | ||
# LMD GHOST vote | ||
beacon_block_root: Root | ||
# FFG vote | ||
source: Checkpoint | ||
target: Checkpoint | ||
``` | ||
|
||
#### Attestation | ||
|
||
```python | ||
class Attestation(Container): | ||
aggregation_bits: Bitlist[MAX_VALIDATORS_PER_COMMITTEE] | ||
data: AttestationData | ||
index: CommitteeIndex # [New in EIP7549] | ||
signature: BLSSignature | ||
``` | ||
|
||
## Helper functions | ||
|
||
### Beacon state accessors | ||
|
||
#### Modified `get_attestation_index` | ||
|
||
```python | ||
def get_attestation_index(attestation: Attestation) -> CommitteeIndex: | ||
return attestation.index | ||
``` | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters