mtcute/packages/tl/raw-schema.json

1 line
749 KiB
JSON
Raw Normal View History

2021-05-31 22:36:26 +03:00
{"mtproto":{"$root":{"classes":[{"name":"resPQ","id":85337187,"type":"ResPQ","arguments":[{"name":"nonce","type":"Int128","description":"Client nonce that was generated earlier"},{"name":"serverNonce","type":"Int128","description":"Random number generated by the server, used in the later steps"},{"name":"pq","type":"Buffer","description":"Big endian representation of a natural number, which is a product of two different odd prime numbers. Normally, this value is `<= 2^63-1`. Client is expected to decompose this product to `p` and `q`.\n"},{"name":"serverPublicKeyFingerprints","type":"Long[]","description":"List of public RSA key fingerprints, which are computed as follows:\n - First, the modulus and the exponent are extracted from the key\n - Then, the following TL type is written: `rsa_public_key n:string e:string = RSAPublicKey`\n - This is a bare type, meaning there's no 4-byte type number before it\n - `n` is the modulus, `e` is the exponent, encoded as big-endian\n - Finally, SHA1 is computed, and its last 8 bytes are taken and parsed as LE long\n (i.e. `parse_int64_le(sha1(rsa_public_key).slice(-8))`)\n\nClient is expected to choose out of those keys any single one that it has\nembedded in itself and return one of them in the following request.\n"}],"description":"Response for the first step of Authorization key derivation process"},{"name":"p_q_inner_data","id":2211011308,"type":"P_Q_inner_data","arguments":[{"name":"pq","type":"Buffer","description":"Original product of `p` and `q` sent by the server"},{"name":"p","type":"Buffer","description":"Big endian encoded first factor. Note - `p < q`"},{"name":"q","type":"Buffer","description":"Big endian encoded second factor. Node - `p < q`"},{"name":"nonce","type":"Int128","description":"Client nonce that was generated earlier"},{"name":"serverNonce","type":"Int128","description":"Server nonce that was received earlier"},{"name":"newNonce","type":"Int256","description":"New client nonce generated"}],"description":"Inner data used for {@link tl.mtproto.RawReqDHParamsRequest}"},{"name":"p_q_inner_data_dc","id":2851430293,"type":"P_Q_inner_data","arguments":[{"name":"pq","type":"Buffer"},{"name":"p","type":"Buffer"},{"name":"q","type":"Buffer"},{"name":"nonce","type":"Int128"},{"name":"serverNonce","type":"Int128"},{"name":"newNonce","type":"Int256"},{"name":"dc","type":"number"}]},{"name":"p_q_inner_data_temp","id":1013613780,"type":"P_Q_inner_data","arguments":[{"name":"pq","type":"Buffer","description":"Original product of `p` and `q` sent by the server"},{"name":"p","type":"Buffer","description":"Big endian encoded first factor. Note - `p < q`"},{"name":"q","type":"Buffer","description":"Big endian encoded second factor. Node - `p < q`"},{"name":"nonce","type":"Int128","description":"Client nonce that was generated earlier"},{"name":"serverNonce","type":"Int128","description":"Server nonce that was received earlier"},{"name":"newNonce","type":"Int256","description":"New client nonce generated"},{"name":"expiresIn","type":"number","description":"Maximum number of seconds that this key will be valid for. The server might discard the key earlier.\n"}],"description":"Inner data used for {@link tl.mtproto.RawReqDHParamsRequest}. Unlike {@link tl.mtproto.RawP_q_inner_data}, this is used to generate a temporary key.\n"},{"name":"p_q_inner_data_temp_dc","id":1459478408,"type":"P_Q_inner_d","arguments":[{"name":"pq","type":"Buffer"},{"name":"p","type":"Buffer"},{"name":"q","type":"Buffer"},{"name":"nonce","type":"Int128"},{"name":"serverNonce","type":"Int128"},{"name":"newNonce","type":"Int256"},{"name":"dc","type":"number"},{"name":"expiresIn","type":"number"}]},{"name":"server_DH_params_fail","id":2043348061,"type":"Server_DH_Params","arguments":[{"name":"nonce","type":"Int128","description":"Client nonce that was generated earlier"},{"name":"serverNonce","type":"Int128","description":"Server nonce that was received earlier"},{"name":"newNonceHash","type":"Int128"}],"description":"PQ decomposition was incorrect, try again."},{"name":"server_DH_params_ok","id":35048671