8.6 · Agents and walletsSpecialist
Setting up mediation and collecting messages
Mediation is set up by a short protocol between the recipient and the mediator: the recipient asks for mediation, the mediator grants or denies it, and the recipient registers the keys messages will be addressed to. Collecting is a second protocol: the recipient asks how many messages are waiting, asks for them, and confirms receipt so the mediator can delete them. A live mode lets the mediator push messages while a connection is open.
Opening a post-office box, then visiting it.
Where it breaks:
- Registering a key tells the mediator which messages are yours.
- Confirming receipt is what lets the mediator delete a message; until then it keeps it.
Asking for mediation DIDCOMM-ORG-COORDINATE-MEDIATION-2.0 §9.1, the grant DIDCOMM-ORG-COORDINATE-MEDIATION-2.0 §9.3, and registering keys DIDCOMM-ORG-COORDINATE-MEDIATION-2.0 §9.4; then the status of waiting messages DIDCOMM-ORG-MESSAGEPICKUP-3.0 §7.1, delivery DIDCOMM-ORG-MESSAGEPICKUP-3.0 §7.4, confirming receipt DIDCOMM-ORG-MESSAGEPICKUP-3.0 §7.5 and live mode DIDCOMM-ORG-MESSAGEPICKUP-3.0 §7.6. The first version of each protocol is still deployed ARIES-RFC-0211 ARIES-RFC-0685.
- The mediator sees the keys you register and every collection, as 8.5 What a mediator can see sets out.
- Setting up mediation does not publish anything by itself: the recipient must name the mediator in its own identifier document for senders to use it.
- ARIES-RFC-0211 Aries RFC 0211: Mediator Coordination Protocol
- ARIES-RFC-0685 Aries RFC 0685: Pickup Protocol 2.0
- DIDCOMM-ORG-COORDINATE-MEDIATION-2.0 didcomm.org protocol: Coordinate Mediation 2.0
- DIDCOMM-ORG-MESSAGEPICKUP-3.0 didcomm.org protocol: Message Pickup 3.0