7.5 · Exchange protocolsWorking
DIDComm messaging
DIDComm is a way for two parties’ agents to send each other encrypted messages, addressed by decentralized identifier (DID), with no live connection between them. Messages are one-way and asynchronous, and protocols such as issuing a credential are built as sequences of them. Routing through mediators lets a message reach someone who is offline.
Sealed post between two offices that hold each other’s address, rather than a phone call.
Where it breaks:
- A relationship persists as identifiers and keys on both sides.
- Either side can rotate its keys and tell the other.
- Mediators along the way learn routing metadata (8.5 What a mediator can see).
DIDComm Messaging defines how messages compose into the larger primitive of application-level protocols and workflows, while seamlessly retaining trust.
Messages are plaintext, signed or encrypted DIDCOMM-2.0 §2; they are routed through mediators DIDCOMM-2.0 §9.4; and either party can rotate its identifier DIDCOMM-2.0 §5.3. The first version of the protocol is still widely deployed ARIES-RFC-0005 §1.
- Only the recipient reads the message. A mediator sees which recipient it is for, and when (8.5 What a mediator can see).
- DIDComm does not decide who to trust: it delivers a message from whoever controls the sending identifier.
- ARIES-RFC-0005 Aries RFC 0005: DID Communication
- DIDCOMM-2.0 DIDComm Messaging v2.0