alpine/
lib.rs

1//! Authenticated Lighting Network Protocol (ALPINE) reference implementation (v1.0).
2//!
3//! Implements discovery, handshake, control, and streaming layers as defined in the
4//! specification documents. All messages are encoded using CBOR and cryptographically
5//! authenticated with Ed25519 + X25519 + HKDF + ChaCha20-Poly1305.
6
7pub mod attestation;
8pub mod control;
9pub mod crypto;
10pub mod device;
11pub mod discovery;
12pub mod e2e_common;
13pub mod handshake;
14pub mod messages;
15pub mod profile;
16pub mod session;
17pub mod stream;
18
19pub use control::{ControlClient, ControlCrypto, ControlResponder};
20pub use device::DeviceServer;
21pub use messages::{
22    Acknowledge, CapabilitySet, ChannelFormat, ControlEnvelope, ControlOp, DeviceIdentity,
23    DiscoveryReply, DiscoveryRequest, FrameEnvelope, MessageType, SessionEstablished,
24};
25pub use profile::{CompiledStreamProfile, StreamProfile};
26pub use session::{AlnpRole, AlnpSession, JitterStrategy};
27pub use stream::{AlnpStream, FrameTransport};
28
29mod c_api;