2018-07-17 18:39:04 +00:00
|
|
|
syntax = "proto3";
|
|
|
|
|
2018-07-31 18:54:45 +00:00
|
|
|
package ethereum.beacon.p2p.v1;
|
2018-07-17 18:39:04 +00:00
|
|
|
|
2018-11-20 19:43:07 +00:00
|
|
|
import "proto/beacon/p2p/v1/types.proto";
|
2018-07-28 19:53:02 +00:00
|
|
|
|
2018-08-29 16:32:54 +00:00
|
|
|
enum Topic {
|
|
|
|
UNKNOWN = 0;
|
2018-11-21 18:00:36 +00:00
|
|
|
BEACON_BLOCK_ANNOUNCE = 1;
|
2018-08-29 16:32:54 +00:00
|
|
|
BEACON_BLOCK_REQUEST = 2;
|
|
|
|
BEACON_BLOCK_REQUEST_BY_SLOT_NUMBER = 3;
|
|
|
|
BEACON_BLOCK_RESPONSE = 4;
|
2018-12-26 14:16:46 +00:00
|
|
|
BATCHED_BEACON_BLOCK_REQUEST = 5;
|
|
|
|
BATCHED_BEACON_BLOCK_RESPONSE = 6;
|
|
|
|
CHAIN_HEAD_REQUEST = 7;
|
|
|
|
CHAIN_HEAD_RESPONSE = 8;
|
|
|
|
BEACON_STATE_HASH_ANNOUNCE = 9;
|
|
|
|
BEACON_STATE_REQUEST = 10;
|
|
|
|
BEACON_STATE_RESPONSE = 11;
|
2019-01-21 18:41:16 +00:00
|
|
|
ATTESTATION_ANNOUNCE = 12;
|
|
|
|
ATTESTATION_REQUEST = 13;
|
|
|
|
ATTESTATION_RESPONSE = 14;
|
2018-09-09 03:05:36 +00:00
|
|
|
}
|
2018-08-29 16:32:54 +00:00
|
|
|
|
2018-11-21 18:00:36 +00:00
|
|
|
message BeaconBlockAnnounce {
|
2018-07-28 19:53:02 +00:00
|
|
|
bytes hash = 1;
|
2018-11-21 18:00:36 +00:00
|
|
|
uint64 slot_number = 2;
|
2018-07-28 19:53:02 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
message BeaconBlockRequest {
|
|
|
|
bytes hash = 1;
|
|
|
|
}
|
|
|
|
|
2018-08-07 12:12:10 +00:00
|
|
|
message BeaconBlockRequestBySlotNumber{
|
|
|
|
uint64 slot_number = 1;
|
|
|
|
}
|
|
|
|
|
2018-07-28 19:53:02 +00:00
|
|
|
message BeaconBlockResponse {
|
2018-08-05 23:23:31 +00:00
|
|
|
BeaconBlock block = 1;
|
2018-12-22 20:30:59 +00:00
|
|
|
Attestation attestation = 2;
|
2018-08-05 23:23:31 +00:00
|
|
|
}
|
|
|
|
|
2018-12-26 14:16:46 +00:00
|
|
|
message BatchedBeaconBlockRequest {
|
|
|
|
uint64 start_slot = 1;
|
|
|
|
uint64 end_slot =2;
|
|
|
|
}
|
|
|
|
|
|
|
|
message BatchedBeaconBlockResponse {
|
|
|
|
repeated BeaconBlock batched_blocks = 1;
|
|
|
|
}
|
|
|
|
|
2018-11-20 19:43:07 +00:00
|
|
|
message ChainHeadRequest {}
|
2018-11-19 01:59:11 +00:00
|
|
|
|
|
|
|
message ChainHeadResponse {
|
|
|
|
bytes hash = 1;
|
|
|
|
uint64 slot = 2;
|
|
|
|
BeaconBlock block = 3;
|
|
|
|
}
|
|
|
|
|
2018-12-01 22:09:12 +00:00
|
|
|
message BeaconStateHashAnnounce {
|
2018-07-31 00:29:40 +00:00
|
|
|
bytes hash = 1;
|
|
|
|
}
|
|
|
|
|
2018-12-01 22:09:12 +00:00
|
|
|
message BeaconStateRequest {
|
2018-07-31 00:29:40 +00:00
|
|
|
bytes hash = 1;
|
|
|
|
}
|
|
|
|
|
2018-12-01 22:09:12 +00:00
|
|
|
message BeaconStateResponse {
|
|
|
|
BeaconState beacon_state = 1;
|
2018-08-05 23:23:31 +00:00
|
|
|
}
|
2019-01-21 18:41:16 +00:00
|
|
|
|
|
|
|
message AttestationAnnounce {
|
|
|
|
bytes hash = 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
message AttestationRequest {
|
|
|
|
bytes hash = 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
message AttestationResponse {
|
|
|
|
bytes hash = 1;
|
|
|
|
Attestation attestation = 2;
|
|
|
|
}
|