Expand description
Top-level codec: ties container framing, crypto, and compression into
pack/open for whole bundles. This is the single place that generates a
fresh salt + nonce, derives the key, and assembles the plaintext header.
Structs§
- Bundle
Params - Inputs for packing a bundle.
metais the opaque header metadata (stream manifest and/or task spec, built by the evidence/task layers).
Constants§
- DEFAULT_
M_ COST - Default Argon2id cost (memory in KiB, iterations, parallelism). Tuned for an interactive in-browser unlock; stored per-bundle so it can evolve.
- DEFAULT_
P_ COST - DEFAULT_
T_ COST
Functions§
- open_
bytes - Open a sealed FCB container to its kind, plaintext header, and decrypted +
decompressed payload bytes. The plaintext prefix preceding the payload is the
AEAD additional authenticated data, so any header tamper fails as
Corrupt. - pack_
bytes - Pack payload bytes into a sealed FCB container (compress-then-encrypt) with a fresh random salt and nonce.