hacker-challenge-sgx-general/rewrite/proto/challenge.proto

28 lines
540 B
Protocol Buffer

syntax = "proto3";
package challenge;
import "google/protobuf/timestamp.proto";
message NodeUpdate {
string ip = 1;
google.protobuf.Timestamp started_at = 2;
google.protobuf.Timestamp keepalive = 3;
uint64 mint_requests = 4;
uint64 mints = 5;
uint64 ratls_conns = 6;
uint64 ratls_attacks = 7;
bool public = 8;
}
message Keys {
string keypair = 1;
string token_address = 2;
}
message Empty {}
service Update {
rpc GetKeys (Empty) returns (Keys);
rpc GetUpdates (stream NodeUpdate) returns (stream NodeUpdate);
}