8.5 · Agents and walletsWorking
What a mediator can see
A mediator opens the outer envelope of each message it receives, so it learns which recipient the message is for and when it arrived, and it can see how large it is. It cannot read the message itself, which stays encrypted for the recipient. It also learns when the recipient collects, and from where. A mediator serving many recipients hides each among the others; one serving a single person reveals that person’s traffic pattern.
Send DIDComm’s own test message through one or two mediators, and open each hop with that hop’s key to see what it can log.
A post office that sees every envelope’s addressee and postmark, never its contents.
Where it breaks:
- The post office does not learn who sent the letter if it is posted anonymously; whether a mediator does depends on how the sender wraps it.
- A mediator keeps records only as long as its operator chooses (10.2 Mediation in production: capacity, retention, herd privacy).
The mediator decrypts the outer forward message and passes on a payload still encrypted for the next recipient DIDCOMM-2.0 §9.4. Herd privacy from hosting many agents at one endpoint ARIES-RFC-0046 §3.2.2. Collecting messages, and what the exchange reveals DIDCOMM-ORG-MESSAGEPICKUP-3.0 §6.
| Learns | Does not learn |
|---|---|
| Which recipient a message is for DIDCOMM-2.0 §9.4 | What the message says DIDCOMM-2.0 §9.4 |
| When it arrived, and how large it is | Who sent it, if the sender wrapped it anonymously DIDCOMM-2.0 §5.1.2 |
| When the recipient collects, and from where DIDCOMM-ORG-MESSAGEPICKUP-3.0 §7.3 | Anything the recipient does with it afterwards |
- This page is the answer, for the mediator.
- Padding and timing are not hidden by the protocol: a mediator can still see sizes and times.
- ARIES-RFC-0046 Aries RFC 0046: Mediators and Relays
- DIDCOMM-2.0 DIDComm Messaging v2.0
- DIDCOMM-ORG-MESSAGEPICKUP-3.0 didcomm.org protocol: Message Pickup 3.0