Expand description
MTProto session and transport abstractions.
This crate handles:
- Message framing (sequence numbers, message IDs)
- Plaintext transport (for initial handshake / key exchange)
- Encrypted transport skeleton (requires a crypto backend)
It is intentionally transport-agnostic: bring your own TCP/WebSocket.
Re-exports§
pub use authentication::Finished;pub use authentication::finish;pub use authentication::step1;pub use authentication::step2;pub use authentication::step3;pub use bind_temp_key::encrypt_bind_inner;pub use bind_temp_key::gen_msg_id;pub use bind_temp_key::serialize_bind_temp_auth_key;pub use encrypted::DecryptedMessage;pub use encrypted::EncryptedSession;pub use encrypted::SeenMsgIds;pub use encrypted::new_seen_msg_ids;pub use message::Message;pub use message::MessageId;pub use session::Session;
Modules§
- authentication
- Sans-IO MTProto authorization key generation.
- bind_
temp_ key - Build the
encrypted_messagepayload forauth.bindTempAuthKey. - encrypted
- Encrypted MTProto 2.0 session (post auth-key).
- message
- MTProto message framing types.
- session
- MTProto client session state.
- transport
- Pluggable transport layer.