Zer0 Secret Stream
Framing
The encrypted stream has a three-byte transport frame header and a 16-byte Noise transport tag; the maximum Noise plaintext constant is 65,519 bytes.
Workflow and current contract
The encrypted stream has a three-byte transport frame header and a 16-byte Noise transport tag; the maximum Noise plaintext constant is 65,519 bytes. Protocol 1 pre-authentication frames are bounded separately at 16 KiB.
Use the selected session/stream API to send application data instead of manually splicing ciphertext frames. Validate framing errors, closure, deadlines, and flow-control limits. Encrypted framing authenticates transport content; the resource's application identity and permission checks still need the session-bound application exchange.
Source reference
cratedeclarations —network/zer0-secret-stream/src/lib.rs.codecdeclarations —network/zer0-secret-stream/src/codec.rs.protocoldeclarations —network/zer0-secret-stream/src/protocol.rs.sessiondeclarations —network/zer0-secret-stream/src/session.rs.