Skip to content

miniproto_native::crypto::mtproto_auth_key_id

  • Crate: miniproto_native
  • Rust visibility: restricted
  • Source: rust/miniproto/src/crypto.rs
  • Python exposure: miniproto._native.mtproto_auth_key_id (confirmed from adjacent PyO3 attributes)
fn mtproto_auth_key_id(auth_key: &[u8]) -> _
  • auth_key: The 256-byte MTProto authorization key.
fn mtproto_auth_key_id(auth_key: &[u8]) -> PyResult<Vec<u8>>

Defined in rust/miniproto/src/crypto.rs:126-128

Computes Python mtproto_auth_key_id(auth_key) from a validated 256-byte key.

Returns ValueError when auth_key has the wrong length.

  • auth_key: The 256-byte MTProto authorization key.