running clippy fix separating homepage to a file adding summary of network security removing the rewrite structure removing catch unwind adding sealing to persistence redirectng to the upstream fixing some startup endgecases Co-authored-by: Jakub Doka <jakub.doka2@gmail.com> Reviewed-on: SGX/hacker-challenge-sgx#2
28 lines
539 B
Protocol Buffer
28 lines
539 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 {
|
|
bytes keypair = 1;
|
|
string token_address = 2;
|
|
}
|
|
|
|
message Empty {}
|
|
|
|
service Update {
|
|
rpc GetKeys (Empty) returns (Keys);
|
|
rpc GetUpdates (stream NodeUpdate) returns (stream NodeUpdate);
|
|
}
|