Skip to content

miniproto.auth.key_exchange.PQInnerDataDC

PQInnerDataDC(pq: bytes, p: bytes, q: bytes, nonce: int, server_nonce: int, new_nonce: int, dc_id: int) -> None

Plaintext p_q_inner_data_dc encrypted into req_DH_params.

The random new_nonce binds every exchange and must stay secret until the authorization key is established.

Parameters:

  • pq (bytes) – Original big-endian composite value returned by Telegram.
  • p (bytes) – First factor of pq in minimal big-endian form.
  • q (bytes) – Second factor of pq in minimal big-endian form.
  • nonce (int) – Client nonce echoed by Telegram.
  • server_nonce (int) – Server nonce returned in resPQ.
  • new_nonce (int) – Fresh random nonce that binds this key exchange.
  • dc_id (int) – Target Telegram DC ID, encoded for test mode when applicable.