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
11 changed files
with
98 additions
and
38 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
# EIP-XXXX -- 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. | ||
|
||
*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 | ||
beacon_block_root: Root | ||
source: Checkpoint | ||
target: Checkpoint | ||
``` | ||
|
||
#### Attestation | ||
|
||
```python | ||
class Attestation(Container): | ||
aggregation_bits: Bitlist[MAX_VALIDATORS_PER_COMMITTEE] | ||
index: CommitteeIndex # [New in EIPXXXX] | ||
data: AttestationData | ||
signature: BLSSignature | ||
``` | ||
|
||
## Helper functions | ||
|
||
### Beacon state accessors | ||
|
||
#### `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