What Llamesh protects, and what it doesn't

Questions are encrypted for the one provider that answers, and several measures make it harder to tell who asks them. Here they are, and where they stop.

What Llamesh does not guarantee
Llamesh goes over the radio. Any transmission can be picked up, and someone nearby can locate a device from the strength of its signal, whatever its keys and addresses. The measures below are mitigations and obfuscation: they make it harder to tell who asks a question or which device answers, they do not make it impossible. Encryption protects the content of messages, not the fact of transmitting.

The protections

They are on by default. When a measure needs the Linux gateway as the provider, it says so.

End-to-end encrypted

Each question is sealed for the chosen provider's key, and each piece of the answer with a key only your device knows. Relays can read neither.

Hidden size

Questions and answers are padded to fixed sizes, so a message's size does not give away the length of the question or of the words sent back.

One-time address

The address the answer comes back to changes with every question. Two questions from the same device cannot be linked through it.

Rotating provider keys

A provider changes its key about every 15 minutes. The Linux gateway changes its Bluetooth address and local network names at the same time: nothing links the old identity to the new one.

A provider looks like a relay

Over the radio, nothing tells a provider from a plain relay, and the distance revealed by the hop count is blurred.

Signed announcements

A known provider signs each of its announcements with its reputation key. Nobody can pass for it, or replay an old announcement.

No replay

A question or a strong-mode layer that is recorded and sent again is ignored: the provider and relays only answer once.

Private networks

A private provider seals its announcement for its guests. With the Linux gateway, blind tokens tell it who is a member, but not which member asks each question.

Who sees what

In normal mode, for a question asked to a provider.

Content of the question and answer Who asked it
A relay No, only encrypted messages, with rounded sizes. Your direct neighbour sees a question leave your device. Further away, relays see a message to pass on.
The provider Yes, it has to read the question to answer it. It receives no name and no stable identifier, only a one-time reply address. In a Linux gateway's private network, a blind token proves the question comes from a member without saying which.
Someone nearby No. They can see that a device is transmitting, and locate it from its signal.

Strong mode

An optional mode, turned on in the app's settings, so that no relay sees both who asks the question and which provider answers.

Experimental
  1. 1 Three onion relays. The question is wrapped in three layers and goes through three randomly chosen relays. Each one only opens its own layer.
  2. 2 Cover traffic. The app sends a message every 2 seconds, whether it is asking a question or not. From the outside, the two look the same.
  3. 3 A provider on a fixed beat. The Linux gateway in strong mode transmits at regular intervals, answer or not: you can no longer see when it answers, only that it is there.
What strong mode costs, with the default settings. Someone nearby may also notice that a device is in strong mode.
Normal mode Strong mode
Wait before sending none 1 s on average, plus three relays
Answer streamed 320 characters per second at most
Phone transmission only its questions about 4.4 MB per hour

Under the hood

Standard, public building blocks, checked against the RFC test vectors and between the Kotlin and Python implementations.

Questions
HPKE (RFC 9180) with X25519, HKDF-SHA256 and ChaCha20-Poly1305
Answers
ChaCha20-Poly1305 with a key drawn by the client for each question
Padding
ISO/IEC 7816-4, in steps from 64 to 2,048 bytes
Provider keys
X25519, renewed about every 15 minutes and kept in memory only
Provider announcements
Signed with Ed25519 by the reputation key for a known provider
Private network tokens
VOPRF (RFC 9497) over ristretto255, one key per day (Linux gateway)
Trust reviews
COSE_Sign1 (RFC 9052) signed with Ed25519
Identity backup
PBKDF2-HMAC-SHA256 (600,000 iterations) and ChaCha20-Poly1305

Try Llamesh before everyone else

A first test version for Android is ready. Leave us a message to get it and help the mesh grow around you.

Request early access