2023-10-12 19:21:49 +00:00
|
|
|
syntax = "proto3";
|
|
|
|
|
|
|
|
option go_package = "./;protobuf";
|
|
|
|
package protobuf;
|
|
|
|
|
|
|
|
message Shard {
|
|
|
|
int32 cluster = 1;
|
|
|
|
int32 index = 2;
|
|
|
|
}
|
2023-12-22 12:37:37 +00:00
|
|
|
|
|
|
|
message PublicShardInfo {
|
|
|
|
// clock
|
|
|
|
uint64 clock = 1;
|
|
|
|
// community ID
|
|
|
|
bytes community_id = 2;
|
|
|
|
// shard information
|
|
|
|
Shard shard = 3;
|
|
|
|
// if chainID > 0, the signer must be verified through the community contract
|
|
|
|
uint64 chainId = 4;
|
|
|
|
}
|
|
|
|
|
|
|
|
message CommunityPublicShardInfo {
|
|
|
|
// Signature of the payload field
|
|
|
|
bytes signature = 1;
|
|
|
|
// Marshaled PublicShardInfo
|
|
|
|
bytes payload = 2;
|
|
|
|
}
|