The core protocol of WoopChain
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
woop/consensus/proto/consensus.proto

25 lines
418 B

syntax = "proto3";
package consensus;
enum MessageType {
UNKNOWN = 0;
ANNOUNCE = 1;
COMMIT = 2;
CHALLENGE = 3;
RESPONSE = 4;
COLLECTIVE_SIG = 5;
FINAL_COMMIT = 6;
FINAL_CHALLENGE = 7;
FINAL_RESPONSE = 8;
}
message Message {
MessageType type = 1;
uint32 consensus_id = 2;
uint32 sender_id = 3; // TODO: make it public key
bytes block_hash = 4;
bytes payload = 5;
bytes signature = 6;
}