miniproto_native::crypto::mtproto_auth_key_id
Provenance
Section titled “Provenance”- 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)
Signature
Section titled “Signature”fn mtproto_auth_key_id(auth_key: &[u8]) -> _Arguments
Section titled “Arguments”auth_key: The 256-byte MTProto authorization key.
cargo-docs-md rendering
Section titled “cargo-docs-md rendering”mtproto_auth_key_id
Section titled “mtproto_auth_key_id”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.
Arguments
Section titled “Arguments”auth_key: The 256-byte MTProto authorization key.