Expand description
Transport-agnostic application payload encryption envelope.
This mirrors the TypeScript createSharedSecretApplicationCrypto envelope:
ORTCE1 || version || nonce || XChaCha20-Poly1305(type_id || payload).
It is intentionally separate from raw iroh stream APIs so native callers can
opt into the same app-layer E2EE format before writing application bytes.
Structs§
Enums§
Constants§
- APPLICATION_
ENVELOPE_ MAGIC - APPLICATION_
ENVELOPE_ VERSION_ REPLAY - APPLICATION_
KEY_ BYTES - APPLICATION_
NONCE_ BYTES - APPLICATION_
REPLAY_ SEQUENCE_ BYTES - DEFAULT_
MAX_ RAW_ FRAME_ BYTES - RAW_
STREAM_ TYPE_ ID