ElevenID
ElevenID LLC
All Posts
Flows
2 of 4
7 min read

Presentation Flows

Presentation is how a holder shares credentials with a verifier. OID4VP is MIP's standard protocol - with support for selective disclosure, ZK predicates, and both same-device and cross-device flows.


A presentation flow is the sequence of steps by which a holder selects credentials from their wallet and presents them to a verifier in response to a presentation request. The verifier's Presentation Policy describes what is needed; the wallet constructs a Verifiable Presentation that satisfies it - disclosing only the required claims.

OID4VP: The Standard Protocol

OpenID for Verifiable Presentations (OID4VP) is the standard protocol for credential presentation over the internet. The verifier creates an Authorization Request containing a Presentation Definition (a DIF-format policy description). The wallet selects matching credentials, applies selective disclosure, and returns a Verifiable Presentation. Both same-device flows (wallet on the browser device) and cross-device flows (scan a QR code on your phone) are supported.

OID4VP Authorization Request (simplified)

json
{
  "response_type": "vp_token",
  "client_id": "https://verifier.example.com",
  "nonce": "n-0S6_WzA2Mj",
  "presentation_definition": {
    "id": "building-access-check",
    "input_descriptors": [{
      "id": "employee-badge",
      "format": { "jwt_vc_json": {} },
      "constraints": {
        "fields": [
          {
            "path": ["$.vc.type"],
            "filter": { "type": "array", "contains": { "const": "EmployeeBadgeCredential" } }
          },
          {
            "path": ["$.vc.credentialSubject.employment_status"],
            "filter": { "const": "active" }
          }
        ]
      }
    }]
  }
}
Response Binding

In MIP's OID4VP implementation, presentations are bound to a nonce provided by the verifier. The holder's wallet signs a proof-of-possession using the holder's key along with the nonce. This prevents replay attacks - a captured presentation from yesterday cannot be reused today because the nonce has changed.