Expand description
§Phantom Protocol SDK
Post-quantum secure L4/L6 universal transport framework.
Provides:
- Hybrid key exchange (X25519 + ML-KEM-768; X-Wing-style combiner). Under
--features fipsthe classical half swaps to ECDH-P-256. - Hybrid signatures (Ed25519 + ML-DSA-65) — both halves must verify.
- PhantomUDP, a native reliable transport over raw UDP (the production
transport), plus byte-pipe
SessionTransportimpls for TCP, browser WebSocket, WASI, embedded UART/USB, and an off-by-default TLS-mimicry leg. - Seamless single-path connection migration (not multipath aggregation — that was deliberately rejected) with liveness detection and keep-alive PINGs.
- Stream multiplexing (reliable + unreliable).
The core transmits only Vec<u8> / Bytes.
Serialization (JSON, Protobuf, etc.) is the user’s responsibility.
Re-exports§
pub use config::PhantomConfig;std
Modules§
- api
std - Phantom Protocol Public API
- config
std - crypto
std - observability
std - Phantom Protocol observability subsystem.
- runtime
std - Async runtime abstraction (Phase 3.1).
- security
std - transport
- Phantom Protocol transport internals.
- validation
std - Standalone input-validation helpers (DoS / malformed-input guards).
Macros§
- impl_
embedded_ session_ transport embedded - Generate a
SessionTransportimpl for a concreteEmbeddedLeg<$reader, $writer, $n>.
Enums§
- Core
Error - Universal Core Error Enum compatible with FFI exports