Skip to content

miniproto.auth.key_exchange.server_salt

server_salt(new_nonce: int, server_nonce: int) -> int

Derive the MTProto server salt by XORing the first nonce bytes.

Parameters:

  • new_nonce (int) – Fresh client nonce from the active exchange.
  • server_nonce (int) – Server nonce from the active exchange.