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

Tabellarius

Tabellarius — the Roman letter carrier. He carried sealed tablets and could not read them.

An open-source, self-hostable relay and client library for end-to-end encrypted messages between devices that are rarely online at the same time. Built for Amicitia Domi; usable by anyone.

  • The relay stores only ciphertext addressed to a random mailbox id, deletes it once delivered, and forgets it after a fixed time either way. No accounts, no phone numbers, no contact lists, no IP logs.
  • Encryption is MLS (RFC 9420) via OpenMLS. Nothing cryptographic is written here by hand.
  • Only people you invited can post to your mailbox — invitations carry a capability token.
  • Runs on a home server: a NixOS module and a container image.

Read docs/PROTOCOL.md for exactly what the relay sees and what it does not protect against, and docs/VERIFY.md for how to check every claim yourself — reproducible builds, signed SHA-256 footprints, key fingerprints and a wire inspector.

Status: Phase 0 — protocol and threat model under review. The workspace exists with three empty crates and a placeholder relay binary that only prints its version; no protocol or relay code yet. Licence: relay under AGPL-3.0 (LICENSE-AGPL), so a modified public relay stays open; client and protocol crates under Apache-2.0 OR MIT (LICENSE-APACHE, LICENSE-MIT), so any app can embed them.

Building

nix build                # reproducible build (Linux); `nix build --rebuild` checks it
cargo test --workspace   # without Nix
git config core.hooksPath .githooks   # once per clone: pre-commit size and build-output check
S
Description
No description provided
Readme 895 KiB
Languages
Rust 95.5%
Nix 3.2%
Shell 0.7%
HTML 0.6%