36 lines
589 B
Protocol Buffer
36 lines
589 B
Protocol Buffer
syntax = "proto3";
|
|
|
|
package arbiter.auth;
|
|
|
|
import "google/protobuf/timestamp.proto";
|
|
|
|
message AuthChallengeRequest {
|
|
bytes pubkey = 1;
|
|
optional string bootstrap_token = 2;
|
|
}
|
|
|
|
message AuthChallenge {
|
|
bytes pubkey = 1;
|
|
int32 nonce = 2;
|
|
}
|
|
|
|
message AuthChallengeSolution {
|
|
bytes signature = 1;
|
|
}
|
|
|
|
message AuthOk {}
|
|
|
|
message ClientMessage {
|
|
oneof payload {
|
|
AuthChallengeRequest auth_challenge_request = 1;
|
|
AuthChallengeSolution auth_challenge_solution = 2;
|
|
}
|
|
}
|
|
|
|
message ServerMessage {
|
|
oneof payload {
|
|
AuthChallenge auth_challenge = 1;
|
|
AuthOk auth_ok = 2;
|
|
}
|
|
}
|