caretta-sync/core/proto/caretta_sync.common.proto

34 lines
No EOL
565 B
Protocol Buffer

syntax = "proto3";
package caretta_sync.common;
import "tripod_id.proto";
message PublicKey {
bytes key = 1;
}
message Uuid {
uint64 first_half = 1;
uint64 second_half = 2;
}
message PeerIdentifier {
oneof peer_identifier {
tripod_id.Double id = 1;
PublicKey public_key = 2;
}
}
message AuthorizedNodeIdentifier {
oneof identifier {
tripod_id.Single id = 1;
PublicKey public_key = 2;
}
}
message AuthorizedNodeInfo {
tripod_id.Single id = 1;
PublicKey public_key = 2;
string note = 3;
}