handshake/api/v1/handshake.proto
Vincent Batts 4c8aa9909f
initial handshake
Signed-off-by: Vincent Batts <vbatts@hashbangbash.com>
2020-10-12 15:37:06 -04:00

25 lines
500 B
Protocol Buffer

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;
}