-
Notifications
You must be signed in to change notification settings - Fork 0
/
zkp_auth.proto
44 lines (34 loc) · 880 Bytes
/
zkp_auth.proto
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
syntax = "proto3";
package zkp_auth;
service Auth {
rpc Register (RegisterRequest) returns (RegisterReply);
rpc CreateAuthenticationChallenge (AuthenticationChallengeRequest) returns (AuthenticationChallengeReply);
rpc VerifyAuthentication (VerifyAuthenticationRequest) returns (VerifyAuthenticationReply);
}
message NumTuple {
bytes t1 = 3;
bytes t2 = 4;
}
message RegisterRequest {
string username = 1;
NumTuple committs = 2;
}
message RegisterReply {
bool result = 1;
}
message AuthenticationChallengeRequest {
string username = 1;
string auth_uid = 2;
NumTuple auth_request = 3;
}
message AuthenticationChallengeReply {
bytes challenge_c = 1;
}
message VerifyAuthenticationRequest {
string username = 1;
string auth_uid = 2;
bytes answer_s = 3;
}
message VerifyAuthenticationReply {
bool result = 1;
}