Authenticated file encryption
The proposed v1 resource format uses libsodium XChaCha20-Poly1305 secretstream. Authentication is intended to detect altered, missing or reordered stream data. The reader must reject incomplete streams and verify finalization before calling a resource complete.
This is a proposed protocol choice, not a completed independent audit. Format composition, parser limits, crash behavior and compatibility vectors require review.