Lecture 15 - Self-Sovereign Identity (SSI) Concepts, Architecture, and Applications

Lecture 15 - Self-Sovereign Identity (SSI) Concepts, Architecture, and Applications

Updated 11 Nov 2026

  • Lecturer: Dr. Somchart Fugkeaw (somchart@siit.tu.ac.th)
  • School of Information, Computer and Communication Technology, Thammasat University

Motivation

  • Centralized / federated identity models limit user control
  • SSI enables privacy-preserving, user-centric identity
  • Reduces dependency on third-party providers (e.g., Google, Facebook login)

Analogy Today your identity is like a library card — the library owns the record, and if the library closes or bans you, your card is useless. SSI is like having your own passport-style wallet: 

you keep your documents and decide who sees what.


Definition

  • Self-Sovereign Identity (SSI) empowers individuals to fully own, control, and share their digital identity and credentials securely

Evolution of Digital Identity

[Image]

  1. Centralized — managed by an authority (e.g., government ID)
  2. Federated — shared identity across services (e.g., Google, Facebook login)
  3. User-Centric — e.g., OpenID Connect
  4. Self-Sovereign — blockchain-based DID & VC

Analogy

  1. Centralized = each shop gives you its own membership card.
  2. Federated = "Login with Google" — one big company vouches for you everywhere (but it sees everything and can lock you out).
  3. User-Centric = you choose which provider vouches for you.
  4. Self-Sovereign = you carry your own signed documents; nobody needs to be "in the middle" when you show them.

Ecosystem Roles

[Image]

  • Issuer → issues credentials
    • A bank, university, or government agency that issues the DID/credentials for SSI
    • Technically, the issuer "controls" the DID it registers
  • Holder → controls and presents credentials
    • The "owner" of the DID
  • Verifier → checks credential validity via blockchain
    • A third party or organization that validates the information associated with the DID
    • A verifier does not own the DID — it relies on the issuer and holder to ensure the DID's accuracy and validity
  • All three interact through a Decentralized Trust Network (DTN) (DID registration + verification)

Analogy

  • Issuer = the university that prints your diploma
  • Holder = you, keeping the diploma in your folder
  • Verifier = the employer who looks at the diploma and checks the university's official seal
  • DTN / blockchain = a public notice board where anyone can look up what the university's real seal looks like

Core Components

  1. Decentralized Identifiers (DIDs)
  2. Verifiable Credentials (VCs)
  3. Digital Wallets
  4. Blockchain for verification and revocation

Decentralized Identifier (DID)

  • A globally unique, persistent digital identifier that does not require a centralized registration authority
  • Created, managed, and verified through decentralized systems such as blockchain, distributed ledgers, or decentralized databases

Key Properties

  • Self-owned: Users or organizations generate and control their own DIDs using cryptographic key pairs (no third-party dependency)
  • Resolvable: Each DID can be resolved to a DID Document, which contains metadata such as:
    • Public keys
    • Authentication methods
    • Service endpoints (e.g., messaging, credential exchange)
  • Verifiable: The authenticity and integrity of a DID and its document are verifiable through digital signatures

Analogy A DID is like an 

email address you made yourself without any email provider — and the DID Document is its "contact card" saying "here's my public key, here's how to message me."


SSI Concept: DID

  • In the SSI model, each user (or entity) — person, organization, IoT device, or even a software agent — has its own DID
  • Each DID corresponds to exactly one DID Document, which defines:
    • The entity's public keys
    • Authentication methods
    • Service endpoints
    • Optional capabilities or communication protocols

Can each user/entity have more than ONE DID?

  • Yes. Each participant in the SSI ecosystem has at least one DID:
RoleExampleDID Example
IssuerUniversity, Government, Bankdid:univ:siit123
Holder (User)You, as a persondid:user:alice987
VerifierEmployer, Service Providerdid:corp:thbank001
DeviceIoT sensor, drone, or smart cardid:iot:drone-46f8
  • A single user may hold multiple DIDs for different contexts, e.g.:
    • One for professional credentials
    • One for healthcare
    • One for social identity
  • This is called "pairwise DIDs" — they prevent correlation and protect privacy

Analogy Pairwise DIDs are like using 

different email addresses for work, your doctor, and social media — so no one can easily link all your activities together.


DID Syntax

  • A DID follows a uniform structure defined by the W3C DID Core Specification:

\boxed{\texttt{did:<method>:<method-specific-identifier>[;<parameters>][?<query>][#<fragment>]}}

  • Examples:
    • did:example:123456789abcdef
    • did:sov:WRfXPg8dantKVubE3HX8pw (Sovrin)
    • did:ethr:0x1234abcd5678ef90 (Ethereum)

Analogy Like a URL: 

https:// tells you the protocol, the rest tells you where. In a DID, did: is the scheme, <method> tells you which blockchain/system to look in (sov, ethr…), and the identifier is the unique ID there.


DID Resolution

  • When you resolve a DID (e.g., via a DID resolver or blockchain lookup), you obtain its corresponding DID Document, which might look like this:
{
  "@context": "https://www.w3.org/ns/did/v1",
  "id": "did:sov:WRfXPg8dantKVubE3HX8pw",
  "authentication": [{
    "id": "did:sov:WRfXPg8dantKVubE3HX8pw#key-1",
    "type": "Ed25519VerificationKey2018",
    "controller": "did:sov:WRfXPg8dantKVubE3HX8pw",
    "publicKeyBase58": "GfHq9YZp3sQnJ7U..."
  }],
  "service": [{
    "id": "did:sov:WRfXPg8dantKVubE3HX8pw#msg",
    "type": "DIDCommMessaging",
    "serviceEndpoint": "https://example.com/endpoint"
  }]
}
  • This document defines how to authenticate, verify, and communicate with the DID owner
    • authentication → which public key proves "this is really me"
    • service → where/how to send messages (e.g., DIDComm endpoint)

Analogy Resolving a DID = 

looking up a phone number in a directory and getting back the person's full contact card (public key = their signature sample, service endpoint = their mailing address).


DID Architecture

[Image]

  • DID → refers to → DID Subject (the entity the DID is about)
  • DID URL contains a DID, and refers to / dereferences to the DID Document
  • DID → resolves to → DID Document
  • DID Controller → controls → DID Document
  • Both DID and DID Document are recorded on a Verifiable Data Registry (e.g., blockchain)

Analogy

  • DID Subject = the house
  • DID = the house's address
  • DID Document = the house's registration record (who owns it, how to contact them)
  • DID Controller = the owner who can update the record
  • Verifiable Data Registry = the public land registry office

Verifiable Credential (VC)

  • A tamper-evident digital statement made by an issuer about a subject, using cryptographic proofs (signatures or ZKPs) to ensure integrity, authenticity, and privacy

Structure

  • A VC typically consists of three main components:
    1. Issuer — Entity that creates and signs the credential (e.g., University, Government)
    2. Subject — The person or entity described by the credential
    3. Claims — Assertions about the subject (e.g., "Name: Alice," "Degree: M.Eng.," "Age > 18")

Analogy A VC is a 

digital diploma with an unforgeable university stamp. Change one letter and the stamp no longer matches — that's "tamper-evident."


VC Example

{
  "@context": ["https://www.w3.org/2018/credentials/v1"],
  "id": "http://example.edu/credentials/3732",
  "type": ["VerifiableCredential", "UniversityDegreeCredential"],
  "issuer": "did:example:76e12ec712ebc6f1c221ebfeb1f",
  "issuanceDate": "2025-01-09T21:19:10Z",
  "credentialSubject": {
    "id": "did:example:abcdef1234567890",
    "degree": {
      "type": "BachelorDegree",
      "name": "B.Eng. in Computer Engineering"
    }
  },
  "proof": {
    "type": "Ed25519Signature2018",
    "created": "2025-01-09T21:19:10Z",
    "proofPurpose": "assertionMethod",
    "verificationMethod": "did:example:76e12ec712ebc6f1c221ebfeb1f#key-1",
    "jws": "eyJhbGciOiJFZERTQSJ9..."
  }
}
  • Mapping to the structure:
    • issuer → Issuer (the university's DID)
    • credentialSubject.id → Subject (the student's DID)
    • credentialSubject.degree → Claims
    • proof → the issuer's digital signature (jws), verified with the key at verificationMethod

VC Verification Process

  1. The Verifier checks the signature against the Issuer's DID Document
  2. Validates credential integrity, issuer authenticity, and optional revocation status
  3. Holder can use ZKPs or selective disclosure to prove specific attributes without revealing all data

Purpose

  • Replace traditional physical credentials (ID cards, certificates) with digitally verifiable, privacy-preserving proofs
  • Supports selective disclosure, revocation, and trust without intermediaries

Analogy Instead of phoning the university to ask "Is this diploma real?", the employer just compares the stamp with the university's 

public stamp sample posted on the notice board (blockchain).


Technical Architecture — Layers

  1. Identifier Layer (DID)
  2. Credential Layer (VC)
  3. Communication Layer (DIDComm)
  4. Presentation Layer (ZKP)
  5. Governance Layer

Analogy Like a postal system: 

(1) your address, (2) the signed letter, (3) the delivery service, **(4)**showing only the parts of the letter you want, (5) the postal rules everyone agrees to follow.


DID + VC Relationship

RoleDescription
DIDProvides the decentralized, verifiable identity (who you are)
VCProvides the verifiable statements or claims about that identity (what you are or have)
TogetherEnable trustworthy, privacy-preserving, decentralized identity ecosystems — core to SSI

Analogy DID = 

your name/ID number; VC = the certificates attached to that name (degree, driving license, vaccination record).


Verification Process (Overall)

[Image]

  • Issuer → registers public DID → Verifiable Data Registry (e.g., public blockchain)
  • Issuer → issues VC → Holder
  • Holder (has DID + keys) → its DID Document is on the registry
  • Holder → presents VC → Verifier
  • Verifier → verifies signatures using the registry

Verifiable Presentation JSON-LD

{
  "@context": ["https://www.w3.org/2018/credentials/v1"],
  "type": ["VerifiablePresentation"],
  "verifiableCredential": [
    "-----VC JSON above-----"
  ],
  "holder": "did:example:alice",
  "proof": {
    "type": "Ed25519Signature2018",
    "created": "2025-02-01T10:15:00Z",
    "proofPurpose": "authentication",
    "verificationMethod": "did:example:alice#key-1",
    "challenge": "123abc",
    "domain": "employer.com",
    "jws": "eyJhbGciOiJFZERTQSJ9..."
  }
}
  • Created by the Holder at the time of sharing
  • Signed with the Holder's private key
  • Includes a challenge and domain to prevent replay (context-bound proof)

Analogy The 

challenge is like the verifier saying "write today's code word 123abc on the envelope" and the domain is "addressed to employer.com only." A thief who copies the envelope can't reuse it elsewhere or later.


Verifiable Presentation (VP)

  • A VP is a tamper-evident data structure that allows the Holder of one or more VCs to present them to a Verifier in a cryptographically verifiable manner
  • It serves as a proof container, demonstrating:
    1. Possession of valid credential(s) issued by trusted Issuers
    2. Control over the subject's identifier (credentialSubject.id)
    3. Consent and freshness of disclosure through a signed proof
    4. Optional selective disclosure or zero-knowledge proofs of the claims contained in the VCs

Analogy VC = the diploma. VP = 

the sealed envelope you put the diploma in, signed by you, proving "I'm the real owner and I'm handing it to you right now, on purpose."


Flow (VC → VP)

[Image]

  • Issuer → Holder: Issues VC (signed by Issuer)
    • e.g., University → Student
  • Holder → Verifier: Wraps VC into VP (signed by Holder)
    • e.g., Student creates VP (with VC + holder signature) → Employer
  • Verifier: Verifies both signatures
    • Issuer's signature → the credential is genuine
    • Holder's signature → the presenter really owns it

Wallet

  • In the SSI ecosystem, a wallet is the user-controlled software or hardware that securely stores and managestheir digital identity materials — such as DIDs, cryptographic keys, and verifiable credentials

Wallet Holds

ItemDescription
DIDsYour decentralized identifiers (one or many) and their DID Documents
KeysPrivate/public key pairs for signing and encryption
Verifiable Credentials (VCs)Credentials you've received from trusted issuers (e.g., diploma, ID card, license)
Verifiable Presentations (VPs)Proof packages generated from your credentials to show to verifiers
MetadataConnection records, revocation info, and consent history

Core Functions

FunctionDescription
Key ManagementSecurely generates, stores, and rotates private keys
Credential StorageKeeps encrypted copies of issued VCs
Selective Disclosure / ZKPDerives minimal-data proofs (e.g., "over 18")
Presentation CreationBuilds and signs Verifiable Presentations (VPs)
Secure MessagingSends/receives DIDComm messages to other agents (issuers, verifiers)

Examples

TypeExampleNotes
Software wallet(mobile/desktop)Trinsic, Lissi, Dock, Microsoft Entra WalletRuns on user's device; integrates with DIDComm
Cloud walletCustodial SSI servicesKeys stored in secure enclave or HSM
Hardware wallet / secure elementLedger, YubiKey, TPM-basedKeys stored in tamper-resistant hardware

Analogy Like 

Apple Wallet, but instead of boarding passes and credit cards, it holds your IDs, diplomas, and the private keys that prove they're yours.


Interaction Flow (with Wallet)

[Image]

  1. Issuer → Wallet: issues VC to user's DID
  2. Wallet: stores VC securely
  3. Verifier → Wallet: sends a proof request
  4. Wallet: creates VP using selective disclosure / ZKP
  5. Wallet → Verifier: sends VP; verifier validates issuer + holder proofs

Cryptographic Foundations — Public/Private Keys for Signatures

RoleOperationExample
IssuerSigns a VC with its private keyProof.signature = Sign(IssuerPrivateKey, VC)
HolderSigns a VP to prove control of the DID and consent to shareProof.signature = Sign(HolderPrivateKey, VP)
VerifierRetrieves the signer's public key from the DID Document (via blockchain or resolver) and verifies the signatureVerify(VC, IssuerPublicKey)

σVC=Sign(skIssuer, VC)\boxed{\sigma_{VC} = \text{Sign}(sk_{Issuer},\ VC)}

σVP=Sign(skHolder, VP)\boxed{\sigma_{VP} = \text{Sign}(sk_{Holder},\ VP)}

Verify(VC, pkIssuer)∈true,false\boxed{\text{Verify}(VC,\ pk_{Issuer}) \in {\text{true}, \text{false}}}

  • Key algorithms: Ed25519, secp256k1, RSA-2048, or post-quantum keys (e.g., Kyber / Dilithium)
  • Each key is anchored in a DID Document, making it verifiable and tamper-resistant

Analogy The 

private key is your personal stamp (kept secret); the public key is a photo of the stamp posted publicly. Anyone can compare, but only you can stamp.


Cryptographic Foundation — Zero-Knowledge Proofs (ZKP)

  • ZKP allows the holder to prove a statement is true without revealing the underlying data
  • Example: Prove "I am over 18" without revealing your exact date of birth

Function in SSI

  • Enables selective disclosure of claims within a VC
  • Used when the holder creates a Verifiable Presentation (VP)
  • Prevents over-sharing of personal information (compliance with GDPR / PDPA)

Analogy At a bar, instead of handing over your whole ID card (name, address, exact birthday), you show a magic card that only lights up 

"18+ ✅" — and the bouncer can trust it without learning anything else.


ZKP — Notation

SymbolMeaning
dHd_HHolder's date of birth (in timestamp or year form)
t0t_0Current date (timestamp) known to both Holder and Verifier
AAMinimum birth date threshold (i.e., the latest possible birthdate for age ≥ 18)
h(x)h(x)Cryptographic hash function (e.g., SHA-256)
C(x,r)=gxhrC(x, r) = g^x h^rPedersen commitment of value xx with random blinding factor rr
ProveZK\text{Prove}_{ZK}Zero-knowledge proof protocol (range or inequality proof)

ZKP Age Verification | 1. Credential & Proof

  • Goal: Prove "I am at least 18" without disclosing the date of birth (DOB)

Step 1 — Holder creates a hidden DOB commitment

  • Encode the DOB as dd; choose a fresh secret random blinding factor rr

C=gd⋅hr(Pedersen commitment)\boxed{C = g^{d} \cdot h^{r}} \quad \text{(Pedersen commitment)}

Analogy

CC is like putting your DOB in a locked, opaque box and handing the box over. Nobody can see inside (rr makes it random-looking — hiding), and you can't later swap what's inside (binding).

Step 2 — Issuer validates DOB and issues a credential

  • Issuer checks the DOB and that CC commits to that verified DOB; then signs CC and the holder identifier

VC=Signissuer(C, HolderID, metadata)\boxed{VC = \text{Sign}_{issuer}(C,\ \text{HolderID},\ \text{metadata})}

Step 3 — Holder generates a zero-knowledge age proof

  • For verification date t0t_0, define AA = calendar date exactly 18 years earlier

A=t0−18 years\boxed{A = t_0 - 18 \text{ years}}

π=ZK.Prove( public: C,A;  secret: d,r )\boxed{\pi = \text{ZK.Prove}(\ \text{public: } C, A;\ \ \text{secret: } d, r\ )}

  • Proof statement: CC commits to a valid DOB dd, and d≤Ad \le A
  • The DOB dd and blinding factor rr remain private

Analogy If today is 11 Nov 2026, then

AA = 11 Nov 2008. Being born on or before that date means you're 18+. So "older" = "smaller (earlier) date" → the check is d≤Ad \le A.


ZKP Age Verification | 2. Submit & Verify

  • The verifier validates the signed commitment and the age proof — without learning the DOB

Holder → Verifier

  • Send: signed VC + zero-knowledge proof π\pi + public cutoff date AA

Step 1 — Verify the credential

  • Check the issuer's trusted public key, signature, validity, and applicable holder binding

VerifySig(pkissuer, VC)=true\boxed{\text{VerifySig}(pk_{issuer},\ VC) = \text{true}}

Step 2 — Verify the zero-knowledge proof

  • Extract CC from the signed VC; verify π\pi against that exact CC and cutoff AA

ZK.Verify(C, A, π)=true\boxed{\text{ZK.Verify}(C,\ A,\ \pi) = \text{true}}

Result

  • ACCEPT "age ≥ 18" only if BOTH checks succeed
  • The verifier does not learn the DOB or the blinding factor

Analogy Check 1: "Is this locked box really sealed by the government?" Check 2: "Does the math prove the thing inside the box is an early-enough date?" Both yes → let them in. The box is never opened.


How Can the Verifier Check Without Knowing the DOB?

  • The verifier checks a proof of a mathematical relationship — not the secret values
HOLDER (Prover)VERIFIER
Private inputsDOB dd, blinding rr—
Public / receivedcommitment CC, cutoff AAReceives CC, AA, proof π\pi
ActionGenerates proof π\pi using dd and rrChecks issuer signature on CC; runs Verify(vc,C,A,π)=true\text{Verify}(vc, C, A, \pi) = \text{true}
  • What π\pi proves:

∃,d,r such that  C=gdhr  ∧  d≤A\boxed{\exists, d, r \ \text{such that}\ \ C = g^{d} h^{r} \ \ \wedge \ \ d \le A}

  • Why this works:
    • Soundness prevents false claims (a 16-year-old can't make a valid proof)
    • Zero knowledge hides dd and rr
    • The issuer must first validate the DOB and certify the same commitment CC
  • Note: An appropriate range-proof circuit/protocol and unambiguous DOB encoding are required

Analogy Like a 

"Where's Waldo" proof: you cover a huge sheet with cardboard that has a tiny hole showing only Waldo. The other person is convinced you know where Waldo is, but learns nothing about where on the page he is.


Hash Anchoring

Concept

  • Hash anchoring is the process of storing cryptographic hashes of important data (e.g., VC metadata, DID Documents, revocation registries) on a public blockchain or ledger
  • This creates an immutable, verifiable record of integrity

How It Works

  1. Compute a hash (e.g., SHA-256) of the VC or DID Document

H=SHA-256(VC or DID Document)\boxed{H = \text{SHA-256}(\text{VC or DID Document})}

  1. Store only the hash (not the credential itself) on the blockchain
  2. Anyone can later recompute the hash and verify that the document has not been altered

SHA-256(doc′)=?Hon-chain ⇒ unaltered\boxed{\text{SHA-256}(\text{doc}') \stackrel{?}{=} H_{\text{on-chain}} \ \Rightarrow\ \text{unaltered}}

Analogy Like posting a document's 

fingerprint on a public wall instead of the document itself. Your private data stays private, but anyone holding the document can check its fingerprint still matches.


Standards and Frameworks

  • W3C DID & VC Data Model
  • DIDComm Protocol
  • Hyperledger Indy
    • A purpose-built blockchain for decentralized identity (developed by the Linux Foundation)
    • Implements W3C DID concepts with support for: public DID registration, credential schemas, revocation registries
  • Used as the ledger layer in SSI ecosystems (e.g., Sovrin Network)
    • Sovrin = a public permissioned blockchain network built on Hyperledger Indy
    • Serves as a global decentralized identity registry for publishing DIDs and schemas

Analogy

  • W3C specs = the grammar rules everyone writes in
  • DIDComm = the encrypted postal service between DIDs
  • Hyperledger Indy = the software for building the public registry
  • Sovrin = one real registry actually running on that software

Challenges

  • Scalability
  • Usability
  • Interoperability
  • Revocation management
  • Regulatory compliance (GDPR, PDPA)

Analogy Building SSI is like introducing a new national ID system: it must handle millions of people (

scalability), be easy for grandma (usability), work across countries (interoperability), cancel lost cards (revocation), and follow privacy law (compliance).


Integration with ZKP and Blockchain

  • ZKP → for privacy-preserving proofs
  • Smart contracts → for trust automation
  • Blockchain → for hash anchoring and revocation

Research Directions

  1. Post-Quantum SSI
  2. Cross-domain interoperability
  3. Dynamic credential updates
  4. Fog/Edge SSI for IoT
  5. SSI for e-KYC / e-Health

Summary

  • SSI promotes user sovereignty, privacy, and interoperability
  • Combines blockchain, ZKP, and decentralized governance
  • Foundation of next-generation digital trust

References

  • W3C DID Spec v1.0 (2022)
  • Hyperledger Aries Framework
  • EBSI Technical Overview
  • Sovrin Foundation Whitepaper
  • Allen, C. "The Path to SSI" (2016)