miniproto_native::transport::quick_ack_token
Provenance
Section titled “Provenance”- Rust visibility:
restricted - Source:
rust/miniproto/src/transport.rs - Python exposure:
miniproto._native.quick_ack_token(confirmed from adjacent PyO3 attributes)
Signature
Section titled “Signature”fn quick_ack_token(py: _, auth_key: _, encrypted_packet: _) -> _Arguments
Section titled “Arguments”py: Acquired Python token used to detach hashing for sufficiently large packets.auth_key: 256-byte MTProto authorization key used by the quick-ACK hash schedule.encrypted_packet: Complete client-to-server packet whose decrypted and padded payload determines the token.
quick_ack_token
Section titled “quick_ack_token”fn quick_ack_token(py: Python<'_>, auth_key: std::borrow::Cow<'_, [u8]>, encrypted_packet: std::borrow::Cow<'_, [u8]>) -> PyResult<u32>Defined in rust/miniproto/src/transport.rs:55-64
Computes the flagged quick-ACK token for Python quick_ack_token.
The 256-byte auth_key and nonempty encrypted portion of encrypted_packet are validated.
Returns the token with the quick-ACK bit set or ValueError for invalid packet/key input.
Arguments
Section titled “Arguments”py: Acquired Python token used to detach hashing for sufficiently large packets.auth_key: 256-byte MTProto authorization key used by the quick-ACK hash schedule.encrypted_packet: Complete client-to-server packet whose decrypted and padded payload determines the token.