Files
Amicitia-Tabellarius/crates/client/Cargo.toml
T
mnovak 3a0944ebff
ci / check (pull_request) Has been cancelled
[relay] Files: a file route for same-size encrypted chunks with its own quotas; the client seals chunks in STREAM and sends a file payload inside MLS
The relay stores files (id, upload and fetch token hashes, chunk count, uploaded hour) and chunks
(file id, index, ciphertext): every chunk is 256 000 bytes, so it learns the size rounded up to
250 KiB and nothing finer, and it keeps no fetch count. Only the uploader's token puts or deletes,
only the fetch token gets, a chunk never changes; per-file and relay-wide quotas answer 507; files
go after 30 days, incomplete ones after 24 hours. The client pads a file to whole chunks and seals
each with ChaCha20-Poly1305 in the aead crate's STREAM, under a key made for that file; the key,
name, type, size and thumbnail travel only in the new `file` payload, which shares `seq` with text.
Also: every route now answers a bare 413 (axum's own carried a text). PROTOCOL.md §1, §4, §5, §7, §8.
2026-11-22 19:29:37 +01:00

37 lines
1.4 KiB
TOML

[package]
name = "tabellarius-client"
description = "OpenMLS wrapper and mailbox client, embedded by apps."
license = "Apache-2.0 OR MIT"
version.workspace = true
edition.workspace = true
publish.workspace = true
[dependencies]
tabellarius-protocol = { path = "../protocol" }
# MLS (RFC 9420). Pure-Rust crypto provider (RustCrypto), so Android and iOS need no C toolchain.
openmls = "0.9"
openmls_rust_crypto = "0.6"
openmls_basic_credential = "0.6"
openmls_traits = "0.6"
# Derives the welcome mailbox from an invite secret (client.md §2).
hkdf = "0.12"
sha2 = "0.10"
serde = { version = "1", features = ["derive"] }
serde_json = "1"
# The snapshot's byte fields (already in the tree through the protocol crate).
base64 = "0.22"
# Files (files.md §2.2): ChaCha20-Poly1305 in the aead crate's STREAM construction. Already in the
# tree through openmls_rust_crypto (same version); `stream` adds no dependency.
chacha20poly1305 = { version = "0.10", default-features = false, features = ["alloc", "stream"] }
[dev-dependencies]
# The real relay, for the end-to-end test only. `check-deps.sh` checks normal edges: the client
# library itself never depends on the relay.
tabellarius-relay = { path = "../relay" }
axum = { version = "0.8", default-features = false, features = ["http1", "tokio"] }
tokio = { version = "1", features = ["rt", "net"] }
tempfile = "3"
[lints]
workspace = true