Skip to main content

layer_mtproto/
lib.rs

1//! MTProto session and transport abstractions.
2//!
3//! This crate handles:
4//! * Message framing (sequence numbers, message IDs)
5//! * Plaintext transport (for initial handshake / key exchange)
6//! * Encrypted transport skeleton (requires a crypto backend)
7//!
8//! It is intentionally transport-agnostic: bring your own TCP/WebSocket.
9
10#![deny(unsafe_code)]
11#![warn(missing_docs)]
12
13pub mod authentication;
14pub mod encrypted;
15pub mod message;
16pub mod session;
17pub mod transport;
18
19pub use message::{Message, MessageId};
20pub use session::Session;
21pub use encrypted::EncryptedSession;
22pub use authentication::{Finished, step1, step2, step3, finish};