layer-mtproto 0.4.8

MTProto 2.0 session management, message framing, DH key exchange and transport abstractions
Documentation
#![cfg_attr(docsrs, feature(doc_cfg))]
#![doc(html_root_url = "https://docs.rs/layer-mtproto/0.4.6")]
//! 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.

#![deny(unsafe_code)]
#![warn(missing_docs)]

pub mod authentication;
pub mod encrypted;
pub mod message;
pub mod session;
pub mod transport;

pub use authentication::{Finished, finish, step1, step2, step3};
pub use encrypted::EncryptedSession;
pub use message::{Message, MessageId};
pub use session::Session;