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;
|
|
|
|
BEACON_BLOCK_HASH_ANNOUNCE = 1;
|
|
|
|
BEACON_BLOCK_REQUEST = 2;
|
|
|
|
BEACON_BLOCK_REQUEST_BY_SLOT_NUMBER = 3;
|
|
|
|
BEACON_BLOCK_RESPONSE = 4;
|
2018-11-19 01:59:11 +00:00
|
|
|
CHAIN_HEAD_REQUEST = 5;
|
|
|
|
CHAIN_HEAD_RESPONSE = 6;
|
|
|
|
CRYSTALLIZED_STATE_HASH_ANNOUNCE = 7;
|
|
|
|
CRYSTALLIZED_STATE_REQUEST = 8;
|
|
|
|
CRYSTALLIZED_STATE_RESPONSE = 9;
|
|
|
|
ACTIVE_STATE_HASH_ANNOUNCE = 10;
|
|
|
|
ACTIVE_STATE_REQUEST = 11;
|
|
|
|
ACTIVE_STATE_RESPONSE = 12;
|
2018-09-09 03:05:36 +00:00
|
|
|
}
|
2018-08-29 16:32:54 +00:00
|
|
|
|
2018-07-28 19:53:02 +00:00
|
|
|
message BeaconBlockHashAnnounce {
|
|
|
|
bytes hash = 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
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-09-15 14:51:17 +00:00
|
|
|
AggregatedAttestation attestation = 2;
|
2018-08-05 23:23:31 +00:00
|
|
|
}
|
|
|
|
|
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-07-31 00:29:40 +00:00
|
|
|
message CrystallizedStateHashAnnounce {
|
|
|
|
bytes hash = 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
message CrystallizedStateRequest {
|
|
|
|
bytes hash = 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
message CrystallizedStateResponse {
|
2018-08-05 23:23:31 +00:00
|
|
|
CrystallizedState crystallized_state = 1;
|
|
|
|
}
|
|
|
|
|
2018-07-31 01:13:25 +00:00
|
|
|
message ActiveStateHashAnnounce {
|
|
|
|
bytes hash = 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
message ActiveStateRequest {
|
|
|
|
bytes hash = 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
message ActiveStateResponse {
|
2018-08-05 23:23:31 +00:00
|
|
|
ActiveState active_state = 1;
|
|
|
|
}
|