miniproto.auth.key_exchange.AuthKeyExchangeResult
miniproto.auth.key_exchange.AuthKeyExchangeResult
Section titled “miniproto.auth.key_exchange.AuthKeyExchangeResult”AuthKeyExchangeResult(auth_key: bytes, auth_key_id: bytes, server_salt: int, time_offset: float, dc_id: int) -> NoneAuthenticated MTProto key material and metadata produced by an exchange.
auth_key is deliberately omitted from the dataclass representation. Callers
must store it only in the configured protected session storage.
Parameters:
- auth_key (
bytes) – Newly derived 256-byte MTProto secret authorization key. - auth_key_id (
bytes) – Protocol key identifier derived fromauth_key. - server_salt (
int) – Initial MTProto server salt derived from exchange nonces. - time_offset (
float) – Server time minus local wall-clock time, in seconds. - dc_id (
int) – Logical Telegram data-center ID authorized by the key.