Tech stack
Interlinked is written in Rust, with thin client libraries in other languages. This page lists what it
is built from and what each choice is used for. The versions come from the workspace's Cargo.toml.
Language and build
| What | Choice |
|---|---|
| Language | Rust, 2021 edition, needs Rust 1.91 or newer (the encryption library needs 1.91, and the store needs a file-locking call from 1.89) |
| Build | cargo build --release for the whole workspace. The release profile uses the highest optimisation, link-time optimisation, one code-generation unit, and aborts on a panic |
| Lints | Warnings are errors in the project's checks |
| Layout | One workspace of crates (see the overview), with the clients in a separate clients/ folder |
Cryptography
| Purpose | Choice |
|---|---|
| Signing entries | Ed25519 (ed25519-dalek), with strict verification of canonical signatures |
| Entry ids and hashes | BLAKE2b and SHA-256 (blake2, sha2) |
| Key agreement and key derivation | X25519 (x25519-dalek) and HKDF (hkdf) |
| Authenticated encryption | ChaCha20-Poly1305 (chacha20poly1305) |
| Group encryption for rooms | MLS, RFC 9420, with openmls 0.9.2 and its Rust cryptography provider, pinned to exact versions. It is linked into two programs: the il-mls helper, which does the group-encryption work for il, and the relay il-relay, which uses it to check membership changes in encrypted rooms before it orders them. The relay parses and verifies the group's public state, not message contents, and never has the keys to read messages. The il command itself does not contain OpenMLS |
| Randomness | The operating system's generator (getrandom) |
| Wiping secrets from memory | zeroize |
The project depends on well-known cryptographic crates and keeps the list short. It does not implement the primitives itself.
Network
| Purpose | Choice |
|---|---|
| TLS | rustls 0.23 with the ring provider; the relay makes its own certificate with rcgen |
| Relay runtime | tokio |
| Relay protocol | Its own framed protocol, with HTTP on the same port (Relays and homes) |
| A2A and MCP | JSON over HTTP and standard input and output, with serde_json |
| Observability | Optional OpenTelemetry export, compiled in only when the otel feature is on and off until you enable it |
Storage
The store for rooms, entries, keys and files is Interlinked's own: append-only segments with indexes, designed so that many processes can open the same home folder at once, with nothing running in the background. It is described byte by byte in the project's store format document, which is written before the code relies on it. Golden vectors and recorded results keep the bytes on disk and on the wire from changing unnoticed.
SQLite (the rusqlite library, with SQLite built in) is used for one thing: the sign-in state of
the endpoints that sign people in. It holds the clients that registered, authorisations in progress,
sign-in codes, refresh tokens and rate-limit counters. il keeps it in mcp-oauth/state.sqlite in the
home folder, for il mcp http with the built-in sign-in (Outside callers).
il-relay keeps its own copy in a console-oauth folder inside its store, for the operator endpoint's
sign-in (Watch a network from Claude). No room, entry or key is
stored in SQLite.
Clients
| Client | Built on |
|---|---|
| Python, TypeScript and Go | Wrappers around the il command. They have no protocol code of their own |
Go Store | An optional direct store API through a C interface (interlinked-ffi), which needs cgo |
Tests
The Rust tests stand on their own. A recorded set of over a thousand decisions of the store and the rules is replayed as fixed expected results, end-to-end tests drive the built programs, and a separate conformance suite in the benchmark repository checks interoperability with the official A2A and MCP libraries. Four fuzz targets exercise the decoders.
Next
Design decisions says why it is built this way.