2018-04-01 13:19:25 +02:00
|
|
|
---
|
|
|
|
title: server_DH_inner_data
|
2018-12-26 02:56:50 +01:00
|
|
|
description: Server inner data
|
2018-04-04 19:52:48 +02:00
|
|
|
image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
|
2018-04-01 13:19:25 +02:00
|
|
|
---
|
2018-04-05 01:19:57 +02:00
|
|
|
# Constructor: server\_DH\_inner\_data
|
2018-04-01 13:19:25 +02:00
|
|
|
[Back to constructors index](index.md)
|
|
|
|
|
|
|
|
|
|
|
|
|
2018-12-26 02:56:50 +01:00
|
|
|
Server inner data
|
|
|
|
|
2018-04-01 13:19:25 +02:00
|
|
|
### Attributes:
|
|
|
|
|
2018-12-26 02:56:50 +01:00
|
|
|
| Name | Type | Required | Description |
|
|
|
|
|----------|---------------|----------|-------------|
|
|
|
|
|nonce|[int128](../types/int128.md) | Yes|Random number for cryptographic security|
|
|
|
|
|server\_nonce|[int128](../types/int128.md) | Yes|Random number for cryptographic security, given by server|
|
|
|
|
|g|[int](../types/int.md) | Yes|G|
|
|
|
|
|dh\_prime|[bytes](../types/bytes.md) | Yes|Dh prime|
|
|
|
|
|g\_a|[bytes](../types/bytes.md) | Yes|G a|
|
|
|
|
|server\_time|[int](../types/int.md) | Yes|Server time|
|
2018-04-01 13:19:25 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
### Type: [Server\_DH\_inner\_data](../types/Server_DH_inner_data.md)
|
|
|
|
|
|
|
|
|
|
|
|
### Example:
|
|
|
|
|
2018-10-17 17:10:50 +02:00
|
|
|
```php
|
2018-04-01 13:19:25 +02:00
|
|
|
$server_DH_inner_data = ['_' => 'server_DH_inner_data', 'nonce' => int128, 'server_nonce' => int128, 'g' => int, 'dh_prime' => 'bytes', 'g_a' => 'bytes', 'server_time' => int];
|
|
|
|
```
|
|
|
|
|
|
|
|
[PWRTelegram](https://pwrtelegram.xyz) json-encoded version:
|
|
|
|
|
|
|
|
```
|
2018-04-19 19:56:40 +02:00
|
|
|
{"_": "server_DH_inner_data", "nonce": int128, "server_nonce": int128, "g": int, "dh_prime": {"_": "bytes", "bytes":"base64 encoded bytes"}, "g_a": {"_": "bytes", "bytes":"base64 encoded bytes"}, "server_time": int}
|
2018-04-01 13:19:25 +02:00
|
|
|
```
|
|
|
|
|
|
|
|
|
2018-10-17 17:10:50 +02:00
|
|
|
Or, if you're into Lua:
|
2018-04-01 13:19:25 +02:00
|
|
|
|
2018-10-17 17:10:50 +02:00
|
|
|
```lua
|
2018-04-01 13:19:25 +02:00
|
|
|
server_DH_inner_data={_='server_DH_inner_data', nonce=int128, server_nonce=int128, g=int, dh_prime='bytes', g_a='bytes', server_time=int}
|
|
|
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|