github.com/prysmaticlabs/prysm@v1.4.4/proto/beacon/p2p/v1/messages.proto (about)

     1  syntax = "proto3";
     2  
     3  package ethereum.beacon.p2p.v1;
     4  
     5  import "google/protobuf/descriptor.proto";
     6  import "proto/eth/ext/options.proto";
     7  
     8  message Status {
     9    bytes fork_digest = 1 [(ethereum.eth.ext.ssz_size) = "4"];
    10    bytes finalized_root = 2 [(ethereum.eth.ext.ssz_size) = "32"];
    11    uint64 finalized_epoch = 3 [(ethereum.eth.ext.cast_type) = "github.com/prysmaticlabs/eth2-types.Epoch"];
    12    bytes head_root = 4 [(ethereum.eth.ext.ssz_size) = "32"];
    13    uint64 head_slot = 5 [(ethereum.eth.ext.cast_type) = "github.com/prysmaticlabs/eth2-types.Slot"];
    14  }
    15  
    16  message BeaconBlocksByRangeRequest {
    17    uint64 start_slot = 1 [(ethereum.eth.ext.cast_type) = "github.com/prysmaticlabs/eth2-types.Slot"];
    18    uint64 count = 2;
    19    uint64 step = 3;
    20  }
    21  
    22  message ENRForkID {
    23    bytes current_fork_digest = 1 [(ethereum.eth.ext.ssz_size) = "4"];
    24    bytes next_fork_version = 2 [(ethereum.eth.ext.ssz_size) = "4"];
    25    uint64 next_fork_epoch = 3 [(ethereum.eth.ext.cast_type) = "github.com/prysmaticlabs/eth2-types.Epoch"];
    26  }
    27  /*
    28   Spec Definition:
    29   MetaData
    30   (
    31    seq_number: uint64
    32    attnets: Bitvector[ATTESTATION_SUBNET_COUNT]
    33   )
    34  */
    35  message MetaDataV0 {
    36    uint64 seq_number = 1;
    37    bytes attnets = 2 [(ethereum.eth.ext.ssz_size) = "8", (ethereum.eth.ext.cast_type) = "github.com/prysmaticlabs/go-bitfield.Bitvector64"];
    38  }
    39  
    40  /*
    41   Spec Definition:
    42   MetaData
    43   (
    44   seq_number: uint64
    45   attnets: Bitvector[ATTESTATION_SUBNET_COUNT]
    46   )
    47  */
    48  message MetaDataV1 {
    49    uint64 seq_number = 1;
    50    bytes attnets = 2 [(ethereum.eth.ext.ssz_size) = "8", (ethereum.eth.ext.cast_type) = "github.com/prysmaticlabs/go-bitfield.Bitvector64"];
    51    bytes syncnets = 3 [(ethereum.eth.ext.ssz_size) = "64", (ethereum.eth.ext.cast_type) = "github.com/prysmaticlabs/go-bitfield.Bitvector512"];
    52  }