AEGIS by ProtoworksDevelopers
Menu

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.

An analogy

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).
Precisely

DIDComm Messaging defines how messages compose into the larger primitive of application-level protocols and workflows, while seamlessly retaining trust.

DIDCOMM-2.0 §1

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.

Diagram
Agent Aencrypts for BMediatoropens the outerAgent Bcollects, decryptsforwarddeliver
Agent A sends an encrypted message, wrapped in a forward envelope, to a mediator. The mediator removes the outer envelope and delivers the still-encrypted message to agent B when B collects it. Each message is a separate one-way arrow.
Who can see what
What this does not do
  • DIDComm does not decide who to trust: it delivers a message from whoever controls the sending identifier.
Verified against
  • ARIES-RFC-0005 Aries RFC 0005: DID Communication version 0005, checked 2026-10-28
  • DIDCOMM-2.0 DIDComm Messaging v2.0 version 2.0, checked 2026-10-28

Last reviewed 2026-10-28. Next review 2027-04-28. Every quotation is checked against the text it quotes, at the version named, before the page is published.