forked from bluefoxah/telegramd
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathschema.tl.handshake_service.proto
77 lines (64 loc) · 2.76 KB
/
schema.tl.handshake_service.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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
/*
* WARNING! All changes made in this file will be lost!
* Created from 'scheme.tl' by 'codegen_proto.py'
*
* Copyright (c) 2017, https://github.com/nebulaim
* All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
syntax = "proto3";
package mtproto;
option java_package = "com.nebulaim.engine.mtproto";
option java_outer_classname = "MTProto";
option optimize_for = CODE_SIZE;
// import "schema.tl.core_types.proto";
import "schema.tl.handshake.proto";
///////////////////////////////////////////////////////////////////////////////
// req_pq#60469778 nonce:int128 = ResPQ;
message TL_req_pq {
bytes nonce = 1;
}
///////////////////////////////////////////////////////////////////////////////
// req_DH_params#d712e4be nonce:int128 server_nonce:int128 p:string q:string public_key_fingerprint:long encrypted_data:string = Server_DH_Params;
message TL_req_DH_params {
bytes nonce = 1;
bytes server_nonce = 2;
string p = 3;
string q = 4;
int64 public_key_fingerprint = 5;
string encrypted_data = 6;
}
///////////////////////////////////////////////////////////////////////////////
// set_client_DH_params#f5045f1f nonce:int128 server_nonce:int128 encrypted_data:string = Set_client_DH_params_answer;
message TL_set_client_DH_params {
bytes nonce = 1;
bytes server_nonce = 2;
string encrypted_data = 3;
}
///////////////////////////////////////////////////////////////////////////////
// destroy_auth_key#d1435160 = DestroyAuthKeyRes;
message TL_destroy_auth_key {
}
///////////////////////////////////////////////////////////////////////////////
// rpc
service RPCAuthKey {
// req_pq#60469778 nonce:int128 = ResPQ;
rpc req_pq(TL_req_pq) returns (ResPQ) {}
// req_DH_params#d712e4be nonce:int128 server_nonce:int128 p:string q:string public_key_fingerprint:long encrypted_data:string = Server_DH_Params;
rpc req_DH_params(TL_req_DH_params) returns (Server_DH_Params) {}
// set_client_DH_params#f5045f1f nonce:int128 server_nonce:int128 encrypted_data:string = Set_client_DH_params_answer;
rpc set_client_DH_params(TL_set_client_DH_params) returns (Set_client_DH_params_answer) {}
// destroy_auth_key#d1435160 = DestroyAuthKeyRes;
rpc destroy_auth_key(TL_destroy_auth_key) returns (DestroyAuthKeyRes) {}
}