handshake/api/v1/handshake.proto

26 lines
500 B
Protocol Buffer
Raw Normal View History

syntax = "proto3";
package de.thisco.vbatts.handshake.v1;
import weak "gogoproto/gogo.proto";
//import "google/protobuf/empty.proto";
option go_package = "git.thisco.de/vbatts/handshake/api/v1;v1";
service Handshake {
rpc Hello(Request) returns (Response);
}
message Request {
string id = 1 [(gogoproto.customname) = "ID"];
string msg = 2;
string pubkey = 3;
}
message Response {
string id = 1 [(gogoproto.customname) = "ID"];
string msg = 2;
string pubkey = 3;
string challenge = 4;
}