miniproto.auth.key_exchange.select_rsa_key
miniproto.auth.key_exchange.select_rsa_key
Section titled “miniproto.auth.key_exchange.select_rsa_key”select_rsa_key(fingerprints: tuple[int, ...], keys: tuple[RSAKey, ...]) -> RSAKeySelect the first server-offered fingerprint present in trusted keys.
Parameters:
- fingerprints (
tuple[int, …]) – Server-advertised RSA fingerprints in Telegram preference order. - keys (
tuple[RSAKey, …]) – Trusted Telegram RSA public keys available to this client.
Raises:
ValueError– If Telegram offers no trusted public-key fingerprint.