Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 28 additions & 0 deletions documentation/examples/consent-vc-oidc4vp.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
Rights Reserved, Unlicensed
# Example: Health-data consent VC with Presentation Definition (OIDC4VP)

This example shows a Presentation Definition to request a health-data consent credential (VC) using Presentation Exchange / OIDC4VP.

```json
{
"id": "health-consent-request",
"input_descriptors": [
{
"id": "consent-credential",
"name": "Health Data Consent",
"purpose": "Prove valid consent to access and share specified health data",
"constraints": {
"fields": [
{
"path": ["$.type", "$.credentialSubject.type"],
"filter": {
"type": "array",
"contains": {"const": "HealthDataConsent"}
}
}
]
}
}
]
}
```