2018-03-14 17:03:21 -07:00
|
|
|
syntax = "proto3";
|
|
|
|
|
|
|
|
message MessageProto {
|
2018-05-09 07:27:31 -07:00
|
|
|
oneof payload {
|
|
|
|
BroadcastProto broadcast = 1;
|
|
|
|
AgreementProto agreement = 2;
|
|
|
|
}
|
2018-03-14 17:03:21 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
message BroadcastProto {
|
2018-05-09 07:27:31 -07:00
|
|
|
oneof payload {
|
|
|
|
ValueProto value = 1;
|
|
|
|
EchoProto echo = 2;
|
|
|
|
ReadyProto ready = 3;
|
|
|
|
}
|
2018-03-14 17:03:21 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
message ValueProto {
|
2018-05-09 07:27:31 -07:00
|
|
|
ProofProto proof = 1;
|
2018-03-14 17:03:21 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
message EchoProto {
|
2018-05-09 07:27:31 -07:00
|
|
|
ProofProto proof = 1;
|
2018-03-14 17:03:21 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
message ReadyProto {
|
2018-05-09 07:27:31 -07:00
|
|
|
bytes root_hash = 1;
|
2018-03-14 17:03:21 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
message ProofProto {
|
2018-05-09 07:27:31 -07:00
|
|
|
bytes root_hash = 1;
|
|
|
|
LemmaProto lemma = 2;
|
|
|
|
bytes value = 3;
|
2018-03-14 17:03:21 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
message LemmaProto {
|
2018-05-09 07:27:31 -07:00
|
|
|
bytes node_hash = 1;
|
|
|
|
LemmaProto sub_lemma = 2;
|
2018-03-14 17:03:21 -07:00
|
|
|
|
2018-05-09 07:27:31 -07:00
|
|
|
oneof sibling_hash {
|
|
|
|
bytes left_sibling_hash = 3;
|
|
|
|
bytes right_sibling_hash = 4;
|
|
|
|
}
|
2018-03-14 17:03:21 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
message AgreementProto {
|
2018-05-09 07:27:31 -07:00
|
|
|
uint32 epoch = 1;
|
|
|
|
oneof payload {
|
|
|
|
bool bval = 2;
|
|
|
|
bool aux = 3;
|
2018-05-23 10:38:33 -07:00
|
|
|
uint32 conf = 4;
|
2018-06-07 12:06:44 -07:00
|
|
|
bool term = 5;
|
2018-05-09 07:27:31 -07:00
|
|
|
}
|
2018-03-14 17:03:21 -07:00
|
|
|
}
|