enigma-signaling
Canonical JSON encoding for Enigma signaling envelopes (SDP/ICE) with strict validation.
Features
- Typed signaling envelope with UUID identifiers
- Strict serde JSON codec (unknown fields rejected)
- Validation helpers for sender/receiver ids, timestamps, and media payloads
Quick start
use ;
use Uuid;
let envelope = SignalingEnvelope ;
validate?;
let json = encode?;
let roundtrip = decode?;
assert_eq!;
Validation rules
fromandtoare non-empty and at most 64 charsts_msis strictly positive- Offers/answers require non-empty SDP
- ICE candidates require non-empty
candidate - Unknown JSON fields are rejected
License MIT 2025 Sébastien TOUILLEUX (Gladius33)