7.8 · Exchange protocolsWorking
DIDComm or OpenID4VC?
Two families of protocol carry credentials: peer messaging between agents, and the OpenID request-and-response protocols. They answer different needs, and many deployments run both. The table compares them axis by axis.
In full
How to choose. Use the OpenID protocols when a person presents a credential to a web or app service in one transaction, and when the ecosystem’s profile requires them. Use DIDComm when two parties keep a relationship and exchange more than credentials, or when one party must be reached while offline. The decision is per interaction, not per platform.
Precisely
Each cell cites the clause that states it; 7.5 DIDComm messaging and 7.1 Issuance with OpenID4VCI introduce the two families.
Compared
| Axis | DIDComm | OpenID4VCI and OpenID4VP |
|---|---|---|
| Shape | Peer messages, one-way and asynchronous DIDCOMM-2.0 §1 | Request and response, shaped like OAuth OPENID4VCI-1.0 §3 OPENID4VP-1.0 §3 |
| Relationship | Lasting, identifier to identifier, keys rotatable DIDCOMM-2.0 §5.3 ARIES-RFC-0023 §1 | None beyond the transaction; the verifier is identified per request OPENID4VP-1.0 §5.9 |
| Reaching an offline party | Mediators, and collecting messages later DIDCOMM-2.0 §9.4 | Not applicable: the wallet answers when the person acts |
| Starting an interaction | An out-of-band invitation ARIES-RFC-0434 §1 | A credential offer, or a request by link, code or the browser interface OPENID4VCI-1.0 §4.1 OPENID4VP-1.0 §A |
| Web and platform integration | None specified (our inference) | The browser credential interface W3C-DIGITAL-CREDENTIALS §1 |
| Formats carried | Any, by attachment ARIES-RFC-0453 §4.5 ARIES-RFC-0771 §3 | Per profile: data model, mdoc, selective-disclosure tokens OPENID4VP-1.0 §B |
| Assurance profile | None (our inference) | The high-assurance profile HAIP-1.0 §1 |
Who can see what
- DIDComm’s mediators see routing metadata; the OpenID protocols’ servers see each request (4.5 Who can see what, across the whole lifecycle).
What this does not do
- Choosing a protocol does not choose a format or a trust framework.
Verified against
- ARIES-RFC-0023 Aries RFC 0023: DID Exchange v1
- ARIES-RFC-0434 Aries RFC 0434: Out-of-Band Protocol 1.1
- ARIES-RFC-0453 Aries RFC 0453: Issue Credential Protocol 2.0
- ARIES-RFC-0771 Aries RFC 0771: AnonCreds Attachment Formats for Requesting and Presenting Credentials
- DIDCOMM-2.0 DIDComm Messaging v2.0
- HAIP-1.0 OpenID4VC High Assurance Interoperability Profile 1.0
- OPENID4VCI-1.0 OpenID for Verifiable Credential Issuance 1.0
- OPENID4VP-1.0 OpenID for Verifiable Presentations 1.0
- W3C-DIGITAL-CREDENTIALS Digital Credentials API