eth2.0-specs/specs/_features/eip7549/beacon-chain.md

1.7 KiB

EIP-7549 -- The Beacon Chain

Table of contents

Introduction

This is the beacon chain specification to move the attestation committee index outside of the signed message. For motivation, refer to EIP-7549.

Note: This specification is built upon Deneb and is under active development.

Containers

Extended containers

AttestationData

class AttestationData(Container):
    slot: Slot
    # index: CommitteeIndex  # [Modified in EIP7549]
    # LMD GHOST vote
    beacon_block_root: Root
    # FFG vote
    source: Checkpoint
    target: Checkpoint

Attestation

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

def get_attestation_index(attestation: Attestation) -> CommitteeIndex:
    return attestation.index