syntax = "proto3"; package ethereum.eth.v1alpha1; import "github.com/gogo/protobuf/gogoproto/gogo.proto"; option go_package = "github.com/prysmaticlabs/prysm/proto/eth/v1alpha1;eth"; message Attestation { // A bitfield representation of validator indices that have voted exactly // the same vote and have been aggregated into this attestation. // Spec type: Bitlist[N] bytes aggregation_bits = 1 [(gogoproto.moretags) = "ssz-max:\"2048\"", (gogoproto.casttype) = "github.com/prysmaticlabs/go-bitfield.Bitlist"]; AttestationData data = 2; // Not used in phase 0. bytes custody_bits = 3 [(gogoproto.moretags) = "ssz-max:\"2048\"", (gogoproto.casttype) = "github.com/prysmaticlabs/go-bitfield.Bitlist"]; // 96 byte BLS aggregate signature. bytes signature = 4 [(gogoproto.moretags) = "ssz-size:\"96\""]; } message AttestationData { // Slot of the attestation for. uint64 slot = 1; // Committee index voted this attestation. uint64 index = 2; // Attestation data includes information on Casper the Friendly Finality Gadget's votes // See: https://arxiv.org/pdf/1710.09437.pdf // 32 byte root of the LMD GHOST block vote. bytes beacon_block_root = 3 [(gogoproto.moretags) = "ssz-size:\"32\""]; // Source contains information relating to the recent justified epoch // as well as the 32 byte root of the epoch boundary block at the // source epoch. Checkpoint source = 4; // Target contains information relating to the epoch the attestation // is targeting as well as the 32 byte root of the epoch boundary // block at the source epoch. Checkpoint target = 5; } message Checkpoint { // A checkpoint is every epoch's first slot. The goal of Casper FFG // is to link the check points together for justification and finalization. // epoch of the check point reference to. uint64 epoch = 1; // block root of the check point reference to. bytes root = 2 [(gogoproto.moretags) = "ssz-size:\"32\""]; }