SSI / DID / VC Basics¶
Goal¶
SSI, DID, and VC often appear together, which makes their boundaries hard to see at first.
This chapter explains each role separately and then shows how IW3IP combines them.
- understand Self-Sovereign Identity (SSI)
- understand how DID and VC are used in policy decisions
General Explanation¶
Terms¶
- SSI: users manage identity credentials under user control. Standardization and implementation work can be followed at the Decentralized Identity Foundation [1]
- DID: decentralized identifier (example:
did:example:alice) [2] - VC: Verifiable Credential; the Phase 1 sample uses a Consent VC, and Part 2 covers six VC kinds [3]
Relationship Between the Three¶
- SSI is the design philosophy
- DID identifies a subject
- VC expresses verifiable claims about that subject
Why They Matter¶
In many conventional systems, one service provider stores both identity and permission data, making reuse and independent verification difficult.
SSI-oriented systems aim to let users or organizations hold credentials and present them only when needed.
Issuer, Holder, and Verifier¶
Three roles are involved in a VC.
flowchart LR
I["Issuer<br/>signs and issues the VC"] -->|"1. issue the VC"| H["Holder<br/>keeps the VC in a wallet"]
H -->|"2. present the VC"| V["Verifier<br/>checks the signature and content"]
V -.->|"verify the signature with the issuer's public key"| I
| Role | What it does | Who plays it on this site |
|---|---|---|
| Issuer | Signs the content of a VC and issues it | publisher |
| Holder | Receives and stores the VC, and presents it when needed | the phone wallet |
| Verifier | Checks the signature and content of a presented VC and decides whether to allow the request | publisher |
The verifier can check the signature with the issuer's public key without contacting the issuer. The holder decides which VC to show to whom and when.
Issuance and presentation protocols¶
The wallet-based hands-on pages (Part 2) use the following standards.
| Term | Meaning |
|---|---|
| OID4VCI (OpenID for Verifiable Credential Issuance) | How an issuer hands a VC to a wallet. The wallet receives it by scanning a QR code |
| OID4VP (OpenID for Verifiable Presentations) | How a wallet presents a VC to a verifier. The wallet scans a QR code shown by the verifier |
| Presentation Definition (PD) | The verifier's request stating which fields of which VC it wants to see |
| SD-JWT VC | A VC format that lets the holder disclose only the fields that are needed |
| did:jwk | A DID that uses the public key itself as the identifier. The wallet creates one at first run |
The figure below shows the flow in Part 2, where the publisher acts as both the issuer and the verifier.
sequenceDiagram
autonumber
participant W as Phone wallet<br>(holder)
participant P as publisher<br>(issuer and verifier)
participant A as Program that calls the API
W->>P: Scan the issuance QR and request a VC (OID4VCI)
P-->>W: VC signed with the publisher key (SD-JWT VC)
Note over W: Store the VC
W->>P: Scan the presentation QR and fetch the request (OID4VP)
P-->>W: Presentation Definition (fields to show)
W->>P: Present the VC, disclosing only the needed fields
P->>P: Check the signature with the publisher public key and evaluate the content
P->>P: If it passes, issue a short-lived token
P-->>A: Hand over the token
A->>P: Call the API with the token
Because the publisher is both the issuer and the verifier, step 6 uses the publisher's own public key. Issuing a VC (steps 1–2) and presenting and verifying it (steps 3–6) are separate operations. Once the wallet has a VC, it can present it many times.
VCs and tokens¶
A VC is a long-lived credential and is not presented on every API call. On this site, once a VC presentation is verified, the publisher issues a short-lived token, and APIs are called with that token. The mapping between VC kinds and tokens is summarized in the VC architecture overview (Part 2 / Stages 0–7, T, A, P).
Position in This System¶
Minimal Model in This Site¶
To keep the first explanation manageable, this site uses a minimal model focused on consent-based decisions.
- Consent VC includes
subject_did,dataset_id,allowed_purposes,valid_from/to - Data Publisher validates these fields and decides allow/deny
flowchart LR
A[Subject DID] --> B[Consent VC]
B --> C[Policy Engine]
C -->|allow| D[Send to Platform]
C -->|deny| E[Audit Log]
Why It Works¶
- machine-checkable constraints: who, for what purpose, until when
- easier audit trace of policy decisions
What This Sample Simplifies¶
The Phase 1 sample (registering JSON equivalent to a Consent VC with /consents) simplifies the following. The Part 2 hands-on pages that use the wallet cover issuing, presenting and verifying SD-JWT VCs.
- signature verification is still a placeholder
- DID resolution is not fully implemented
- advanced VC expression/presentation formats are not covered yet
Future Extensions¶
- full signature verification (placeholder now)
- DID resolution against DID Documents
- PEP in front of publisher
Read Next¶
In the short learning path of the Learning Roadmap, the next page is Prerequisites (install tools). This is the last of the foundations pages.
You first receive and present a VC with a wallet in Authenticate the data provider (Consent VC / Stage 1) in hands-on Part 2. Hands-on pages before it that handle consent register a JSON record equivalent to a Consent VC at /consents.
References¶
[1] Decentralized Identity Foundation, "Decentralized Identity Foundation (DIF)," https://identity.foundation/
[2] W3C, "Decentralized Identifiers (DIDs) v1.0," W3C Recommendation, 2022, https://www.w3.org/TR/did-1.0/
[3] W3C, "Verifiable Credentials Data Model v2.0," W3C Recommendation, 2025, https://www.w3.org/TR/vc-data-model-2.0/