Skip to main content

vcl_protocol/
lib.rs

1//! # VCL Protocol
2//!
3//! Cryptographically chained packet transport protocol with:
4//! - SHA-256 integrity chain
5//! - Ed25519 digital signatures
6//! - X25519 ephemeral key exchange
7//! - XChaCha20-Poly1305 authenticated encryption
8//! - Replay protection
9//! - Connection events, ping/heartbeat, mid-session key rotation
10//! - Connection pool for managing multiple peers
11//!
12//! ## Quick Start
13//!
14//! ```no_run
15//! use vcl_protocol::connection::VCLConnection;
16//!
17//! #[tokio::main]
18//! async fn main() {
19//!     let mut server = VCLConnection::bind("127.0.0.1:8080").await.unwrap();
20//!     server.accept_handshake().await.unwrap();
21//!
22//!     let packet = server.recv().await.unwrap();
23//!     println!("Received: {}", String::from_utf8_lossy(&packet.payload));
24//! }
25//! ```
26
27pub mod error;
28pub mod event;
29pub mod packet;
30pub mod crypto;
31pub mod connection;
32pub mod handshake;
33pub mod pool;
34pub mod config;
35pub mod transport;
36pub mod fragment;
37pub mod flow;
38
39pub use error::VCLError;
40pub use event::VCLEvent;
41pub use pool::VCLPool;
42pub use config::VCLConfig;
43pub use transport::VCLTransport;
44pub use fragment::{Fragmenter, Reassembler, Fragment};
45pub use flow::FlowController;