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: Full MTProto packet whose nonempty encrypted suffix is hashed.
cargo-docs-md rendering
Section titled “cargo-docs-md rendering”quick_ack_token
Section titled “quick_ack_token”fn quick_ack_token(py: Python<'_>, auth_key: Vec<u8>, encrypted_packet: Vec<u8>) -> PyResult<u32>Defined in rust/miniproto/src/transport.rs:58-63
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: Full MTProto packet whose nonempty encrypted suffix is hashed.