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/api/consensus/consensus.proto

22 lines
346 B

syntax = "proto3";
package consensus;
enum MessageType {
UNKNOWN = 0;
ANNOUNCE = 1;
6 years ago
PREPARE = 2;
PREPARED = 3;
COMMIT = 4;
COMMITTED = 5;
}
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;
}