TL;DR: Self-sovereign identity (SSI) shifts identity from IdP-mediated sessions to holder-controlled wallets that store and present verifiable credentials using standards such as DIDs, W3C VCs, OpenID4VC, SD-JWT VC, and mdoc. Evolving SSO into SSI is usually a phased, hybrid migration where IdPs become issuers, RPs become verifiers, and gateways bridge legacy apps—delivering stronger user control and selective disclosure, but introducing new challenges in key recovery, trust frameworks, revocation privacy, and interoperability.
Single sign-on (SSO) made identity easier to reuse across applications, but it kept users and relying parties dependent on live identity providers, centralized account stores, and broad attribute sharing. Self-sovereign identity (SSI) changes the model by letting holders receive cryptographically verifiable credentials, keep them in a wallet, and present only what a verifier needs—often without contacting the original issuer at presentation time.
This article examines how SSI is implemented in practice, how organizations can evolve existing SAML/OAuth 2.0/OpenID Connect systems toward SSI, and what the shift means from security and technical perspectives. The focus is on primary standards and frameworks, including W3C DID and Verifiable Credentials, OpenID for Verifiable Credentials, IETF SD-JWT and Token Status List drafts, ISO mdoc, the EU EUDI Wallet Architecture and Reference Framework (ARF), and NIST digital identity guidance.
SSI Foundations
Core actors and trust components
| Component | Role in SSI | SSO-era parallel |
|---|---|---|
| Issuer | Creates and signs credentials about a subject; publishes metadata and status infrastructure | Identity provider / attribute authority |
| Holder | Controls a wallet, stores credentials, consents to disclosure, and generates presentations/proofs | End user with an account/session |
| Verifier (Relying Party) | Requests claims, verifies proofs and trust, checks status/freshness, applies policy | Service provider / RP |
| Trust infrastructure | DID documents, issuer/verifier metadata, PKI, trusted lists/registries, schemas, status endpoints | Federation metadata, certificates, trust frameworks |
W3C’s Verifiable Credentials Data Model v2.0 defines credentials as tamper-evident claim packages issued by an issuer and presentations as holder-assembled data shown to a verifier. Importantly, cryptographic verification is distinct from validation: a verifier must still decide whether the issuer, credential type, status, and claims are acceptable for its policy and use case.
Identifiers, credentials, and formats
- DIDs (Decentralized Identifiers v1.0) are URI-like identifiers resolved through method-specific rules to DID documents containing verification methods, relationships, and service endpoints. DID methods differ in anchoring, privacy, governance, and operational assumptions, so “using DIDs” is not a single trust model.
- VCs/VPs (W3C VC Data Model 2.0) provide the core data model for issuers, holders, and verifiers, with support for securing mechanisms, validity periods, and status information.
- SD-JWT VC (IETF OAuth draft) combines JWT-based credentials with selective disclosure using SD-JWT disclosures and optional key binding; it is widely used in OpenID4VC and EUDI-aligned profiles but remains an active Internet-Draft.
- mdoc/mDL (ISO/IEC 18013 family) uses CBOR/COSE encodings and supports proximity and online presentation patterns, making it common for high-assurance government credentials and mobile driving licenses.
- JSON-LD VC / Data Integrity and AnonCreds/BBS+ ecosystems offer richer semantics or privacy-preserving proof capabilities in some stacks, but interoperability depends heavily on chosen profiles and libraries.
Protocols and lifecycle primitives
Modern SSI implementations commonly combine:
- OpenID for Verifiable Credential Issuance (OID4VCI) 1.0 for issuer-to-wallet issuance (authorization code or pre-authorized flows, proof/nonce handling, immediate or deferred issuance).
- OpenID for Verifiable Presentations (OID4VP) 1.0 for verifier-to-wallet presentation requests and responses (including query constraints, response modes, and holder proofs in profile-specific flows).
- SIOPv2 in historical or profile-specific contexts for self-issued authentication patterns, increasingly discussed in relation to OpenID4VP profiles.
- DIDComm v2 for secure DID-to-DID agent messaging in some decentralized agent architectures.
- Status mechanisms such as W3C Bitstring Status List v1.0 and IETF Token Status List for revocation/suspension/freshness with scalability and privacy trade-offs.
How People Implement SSI Today
Common architecture patterns
| Pattern | Typical components | Where it fits |
|---|---|---|
| OpenID4VC-first stack | OID4VCI, OID4VP, SD-JWT VC and/or mdoc, issuer/verifier metadata, PKI/trusted lists, Token Status List or Bitstring Status List | Enterprise and government programs prioritizing OAuth/OIDC alignment and interoperability profiles |
| DID/agent stack | DIDs, VCs, DIDComm messaging, agent frameworks; sometimes AnonCreds/ledger-based trust in legacy deployments | Peer-to-peer or ecosystem-specific deployments with strong agent-to-agent messaging needs |
| Regulated wallet ecosystem | Certified wallets, accredited issuers/verifiers, PID/attestations, OpenID4VC + mdoc/SD-JWT profiles, lifecycle governance | High-assurance public-sector ecosystems such as the EU Digital Identity Wallet |
Real-world implementation signals
- EU EUDI Wallet (ARF): A regulation-driven reference architecture covering wallet providers, person identification data (PID), electronic attestations of attributes, issuer/verifier roles, trust establishment, certification, and lifecycle controls. It aligns implementation work with OpenID4VC and ISO mdoc/SD-JWT profile families while emphasizing governance as much as protocol mechanics.
- Microsoft Entra Verified ID: An enterprise-oriented service that brings verifiable credential issuance and verification into existing Microsoft identity environments, illustrating a bridge between centralized IAM and portable credentials.
- Hyperledger Aries / Indy / AnonCreds ecosystem: A long-running SSI tooling lineage with agent frameworks, DIDComm patterns, and privacy-preserving credential approaches (especially AnonCreds). Many deployments now coexist with or migrate toward newer OpenID4VC-based interoperability profiles.
- Commercial and open-source platforms (e.g., Spruce, MATTR and others): Productized SDKs and services for issuance, verification, and wallet integration, often differentiated by supported profiles, trust models, and developer tooling rather than by SSI principles alone.
Public capabilities evolve quickly, so vendor claims should be validated against current technical documentation, supported profiles, and interoperability test results.
Credential lifecycle in practice
- Issuance: The wallet discovers issuer capabilities, completes authorization (OID4VCI authorization code or pre-authorized flow), proves key possession or satisfies issuance requirements, and receives credentials immediately or via deferred issuance.
- Storage and key control: Credentials and keys are stored in wallet-controlled environments (device secure hardware, TEE/secure enclave, or managed/HSM-backed models depending on assurance). Holder binding links a credential presentation to a key or device under the holder’s control when required by the profile.
- Presentation: A verifier sends a request (often OID4VP) with nonce/query constraints; the wallet selects credentials, applies selective disclosure and consent, creates proofs, and returns a presentation response.
- Verification and status: The verifier checks cryptographic proofs, issuer trust, holder binding, schema/profile conformance, validity windows, and revocation/suspension status (e.g., Bitstring Status List or Token Status List) before making a policy decision.
From SSO to SSI: Evolution Paths
Conceptual mapping
| SSO element | SSI evolution | Practical implication |
|---|---|---|
| IdP | Becomes an issuer (and may still run authorization services for issuance) | Identity proofing and attribute authority remain valuable, but assertions become reusable credentials |
| SP/RP | Becomes a verifier | Apps verify holder-presented proofs instead of always redirecting users to an IdP |
| User account/session | Becomes a wallet + credentials + holder keys | Users manage portable credentials and consent; session tokens may still exist for app/API access |
| Federation metadata | Expands to issuer/verifier metadata, DID docs, trusted lists, PKI, status endpoints | Trust bootstrapping becomes multi-artifact and profile-dependent |
| SAML assertion / ID token | Complements or yields to VCs, VPs, SD-JWT VCs, mdocs | Claims can be selectively disclosed and reused across contexts with appropriate governance |
Migration strategies
1. Add VC issuance to existing IAM
Keep current SAML/OIDC login flows, but extend the IdP or IAM platform to issue verifiable credentials for reusable attributes (employee status, student enrollment, verified age, KYC outcomes). This delivers early value without forcing application rewrites.
2. Introduce a verifier gateway or broker
Deploy a VC/OID4VP verifier service that translates successful presentations into claims, entitlements, or legacy OIDC/SAML assertions for downstream applications. This is often the fastest path for brownfield estates, but it can re-centralize trust and availability if the gateway becomes mandatory for everything.
3. Run dual-stack federation
Operate SSO and SSI in parallel: high-assurance, privacy-sensitive, or cross-organization verification flows use wallets and credentials, while routine session-heavy application access continues on OIDC/SAML. This reduces rollout risk and supports phased partner onboarding.
4. Replace targeted high-value flows first
Prioritize use cases where SSI’s benefits are clear—reusable identity proofing, eligibility/attribute verification, workforce/mobile credentials, regulated wallet scenarios, or phishing-resistant step-up checks—rather than attempting a wholesale SSO replacement.
What changes in trust, data flow, and UX
- Trust moves from live IdP mediation toward credential trust: verifier confidence depends on issuer authenticity, holder binding, status/freshness, schema/profile conformance, and ecosystem accreditation or trusted lists.
- Data flow changes from “RP redirects to IdP every time” to “wallet presents selected credentials to verifier,” with possible status/metadata lookups. This can reduce synchronous IdP dependence but increases the importance of endpoint availability and secure retrieval.
- UX can improve through consentful selective disclosure and credential reuse, but users must handle wallet onboarding, backup/recovery, cross-device flows, and trust signals about verifiers and requested data.
How SSI works with SSO (and what is online vs offline)
The key mental model: SSO authenticates by talking to an IdP at login time, while SSI authenticates by presenting a previously issued credential from a wallet. Issuance usually happens earlier (online), and presentation may happen online or offline depending on the use case and profile.
What can be offline vs online
| Step | Typical connectivity | Notes |
|---|---|---|
| Credential issuance | Usually online | Wallet and issuer/authorization server exchange offers, authorization, proofs, and credential delivery (OID4VCI). Deferred issuance may delay delivery, but issuance is still a connected process. |
| Credential/key storage | Offline/local | Once issued, credentials and holder keys live in the wallet (device secure storage/SE/TEE or managed wallet) and can be available without network access. |
| Remote presentation (e.g. web login, cross-device QR, API access) | Online | Wallet and verifier exchange request/response over the internet (e.g. OID4VP). User can still disclose only selected claims. |
| Proximity/offline presentation (e.g. mDL/mdoc in-person) | Often offline/local between holder and verifier | Wallet and verifier can communicate via NFC/BLE/QR/device engagement per profile. The verifier must already trust issuer keys/certificates (or have them cached/provisioned) to validate cryptographically offline. |
| Status/revocation/freshness checks | Often online, sometimes cached or policy-dependent | Verifiers may fetch Bitstring Status List/Token Status List endpoints; caches improve availability/privacy but can be stale. Some flows rely on short-lived credentials or accept risk-based freshness windows when offline. |
| Trust metadata/DID resolution | Online for retrieval, cacheable | Issuer metadata, JWKS, trusted lists, and DID documents can be fetched ahead of time or cached; fully offline verification requires pre-provisioned trust anchors. |
| Legacy app access via SSO bridge | Online at integration points | A verifier gateway can validate a VC presentation, then mint an OIDC/SAML assertion for an app that still expects SSO. |
Hybrid flow: SSI presentation bridged into legacy SSO
In this hybrid pattern, the user experience and credential verification become SSI-based, but the downstream application can remain unchanged because the gateway speaks SSO on its behalf. This is why many migrations keep SSO protocols at the edge while moving trust and attribute presentation toward verifiable credentials.
Security Model and Threats
SSI security is socio-technical: cryptographic correctness is necessary, but outcomes also depend on wallet UX, governance, accreditation, endpoint operations, and user behavior. Threat modeling for SSI therefore spans protocol flows, device and key storage, trust registries/metadata, and ecosystem rules.
Threat-model scope
| Element | Examples | Why it matters |
|---|---|---|
| Primary assets | Holder private keys, credentials/attestations, PID/PII attributes, consent decisions, session/nonces, issuer signing keys, status/trust metadata | Compromise or misuse enables impersonation, fraud, surveillance, or denial of service |
| Actors | Holder/user, wallet/wallet provider, issuer, verifier/relying party, trust registry/status provider, network attacker, malicious insiders/colluding parties | Any role can be benign, compromised, negligent, or adversarial depending on the scenario |
| Trust boundaries | User device/secure hardware, wallet app and backend, issuer/verifier services, browser/app redirect channels, DID/metadata/status endpoints, cross-device transport | Most high-impact threats occur at boundary crossings (input parsing, key use, URL fetches, trust decisions) |
| Security goals | Authenticity, integrity, confidentiality, holder binding, freshness/replay resistance, least disclosure, unlinkability where possible, availability, accountability/non-repudiation as required | SSI often improves phishing resistance and minimization, but introduces new privacy and lifecycle risks |
This framing aligns with emerging decentralized-credential threat-model work (e.g. W3C’s Decentralized Credentials Threat Model draft) and regulated wallet risk analyses such as the EUDI ARF risk register, which distinguish high-level risks (identity theft, data disclosure/manipulation, unauthorized transactions, surveillance) from technical threats (physical attacks, misconfiguration, unreliable dependencies, outages, and malicious actions).
Threats by lifecycle phase
| Phase / boundary | Representative threats | Security and privacy impact | Mitigations |
|---|---|---|---|
| Issuance (OID4VCI, onboarding) | Phishing during pre-authorized or cross-device flows, stolen authorization codes/tokens, credential issuance to wrong wallet/key, issuer key compromise, malicious issuance metadata | Wrong subject binding, fraudulent credentials, account takeover at source | Strong user/holder authentication, proof-of-possession and key attestation, issuer metadata validation, PKI/accreditation controls, short-lived tokens/nonces, audited issuance processes |
| Wallet storage and key lifecycle | Device theft/malware, key extraction, backup/restore abuse, weak recovery, wallet-provider compromise, “wallet for hire” or voluntary sharing, cloned/transferable attestations in weak designs | Credential theft, impersonation, repudiation disputes, long-lived compromise | Hardware-backed keys (SE/TEE/WSCD), local user verification, wallet/app attestation, certified components, secure backup/reissuance, rate limits and anomaly detection, clear recovery and revocation playbooks |
| Presentation (OID4VP, DIDComm, proximity flows) | Replay of presentations/proofs, verifier impersonation/phishing, over-asking and consent manipulation, request tampering, cross-device/session confusion, credential pooling/collusion where only per-credential binding is checked | Unauthorized access, data over-disclosure, fraudulent composite claims (e.g. combining credentials from different holders), correlation | Nonce and audience/client binding, transaction/data binding, verifier authentication/trust marks and signed requests, strict response-mode handling, holder-binding proofs, per-transaction freshness checks, policy checks for multi-credential presentations |
| Verification and trust infrastructure | Accepting untrusted issuers/schemas, stale or unavailable status, status endpoint tracking, DID/metadata/status SSRF or parser abuse, trust-list/cache poisoning, algorithm/configuration errors | False acceptance/rejection, privacy leakage, verifier compromise, ecosystem denial of service | Separate cryptographic verification from business validation, explicit issuer/schema/trust policies, status caching with privacy controls (Bitstring Status List/Token Status List), strict URL/content validation and egress controls, robust parsers and conformance testing |
| Ecosystem and systemic risks | Wholesale surveillance/correlation, issuer-verifier collusion, governance failures, legal/non-compliance, supply-chain compromise, concentration in gateways/wallet providers | Large-scale privacy harm, loss of trust, vendor lock-in, single points of failure | Data minimization by design, unlinkability techniques where feasible, independent audits/certification, transparency and redress mechanisms, federated/brokered architectures with strong policy boundaries, resilient operations |
Notable SSI-specific threat patterns
- Replay and audience confusion: Presentations must be bound to the verifier and transaction (nonce/client/audience/origin as applicable). Formal analyses of OpenID for Verifiable Credentials found that cross-device and some pre-authorized patterns require careful user and protocol safeguards, while same-device flows can be secure when specified checks are enforced.
- Verifier phishing and over-collection: SSI reduces IdP-in-the-middle dependency but does not remove malicious verifiers. Wallets and ecosystems need verifier registration, authenticated/signed requests, clear purpose display, and selective-disclosure enforcement.
- Correlation and linkability: Even with selective disclosure, holders can be tracked via stable identifiers, credential fingerprints, issuer signatures, transaction timing, colluding verifiers, or naive status checks. Status-list “phone home” effects and metadata fetch behavior are practical privacy risks.
- Credential pooling and composite-proof gaps: If verifiers only validate that each presented credential is individually holder-bound, colluding users may combine separately valid credentials in one transaction. High-assurance designs must define when credentials must be bound to the same holder/device/session.
- Metadata and endpoint attack surface: Wallets and verifiers routinely fetch issuer metadata, JWKS, DID documents, schemas, and status resources. Each fetch path is a potential SSRF, injection, tracking, or availability vector and must be treated as untrusted input.
- Recovery and delegated control: Lost devices, key rotation, guardianship, and backup/restore are frequent failure points. Weak recovery can be worse than weak authentication because it rebinds long-lived identity authority.
Security properties SSI can improve
Compared with conventional SSO sessions, SSI can improve phishing resistance and reduce centralized blast radius in some flows: verifiers can require holder-bound, verifier-targeted proofs instead of reusable passwords or broadly scoped bearer artifacts, and users can avoid exposing a full identity profile for every interaction through selective disclosure. These benefits are real but conditional—they depend on wallet security, verifier request integrity, trust governance, and disciplined status/revocation operations.
Key management, holder binding, and revocation
- Holder binding is central to preventing credential forwarding. OID4VCI proof mechanisms, SD-JWT key binding concepts, and mdoc device-bound models aim to ensure the presenter controls the relevant key/device.
- Key lifecycle must cover generation, rotation, suspension, revocation, migration, and recovery. Standards provide building blocks, but recovery remains one of the hardest operational problems.
- Revocation/freshness requires a policy choice: online status checks (Bitstring Status List, Token Status List), short-lived credentials, or hybrid approaches. Faster revocation can increase availability/privacy pressure; offline acceptance can increase stale-trust risk.
Security guidance for migration programs
- Define assurance targets early (identity proofing, authentication, holder binding, verifier trust) and map them to NIST-aligned or sector-specific controls.
- Treat the wallet as a high-value endpoint: secure hardware, attestation, phishing-resistant verifier UX, and tested recovery are non-negotiable for sensitive use cases.
- Separate cryptographic verification from business validation in verifier design; a valid signature does not imply issuer trust, correct schema, active status, or policy fit.
- Minimize data by default: request only required claims, avoid unnecessary stable identifiers, and assess correlation risks across issuers, verifiers, and status providers.
- Harden all network fetch paths (metadata, DID resolution, status, schemas) against SSRF, parser confusion, and malicious content.
Technical View
Protocol flow snapshots
Issuance (OID4VCI, simplified)
- Wallet discovers issuer/credential metadata and receives a credential offer.
- Holder completes authorization (authorization code or pre-authorized code).
- Wallet obtains token/nonce context and sends credential request with required proof.
- Issuer returns credential immediately or as a deferred transaction.
- Wallet validates, stores, and indexes credential for future presentations.
Presentation (OID4VP remote, simplified)
- Verifier creates a request (nonce, response mode, credential/query constraints).
- Wallet authenticates the user, evaluates matching credentials, and requests consent.
- Wallet applies selective disclosure and generates holder-binding proofs.
- Wallet submits presentation response to verifier endpoint (online).
- Verifier validates request-response binding, signatures/proofs, trust chain, profile conformance, and status/freshness.
Presentation (proximity/offline-capable, simplified)
- Verifier and wallet establish local engagement (e.g. QR/NFC/BLE in mdoc profiles).
- Verifier sends a request with session/nonce data over the local channel.
- Wallet authenticates the user, applies consent/selective disclosure, and returns device-bound proofs locally.
- Verifier validates signatures/proofs and pre-provisioned or cached trust anchors; status/freshness checks may be deferred, cached, or policy-limited if no connectivity is available.
Interoperability and standards landscape
| Area | Current reality | Engineering implication |
|---|---|---|
| Credential formats | JSON-LD VC, JWT VC, SD-JWT VC, mdoc, and ecosystem-specific formats coexist | Choose explicit profiles; do not assume cross-format portability |
| Presentation/issuance protocols | OpenID4VCI/OID4VP are converging points; drafts, options, and regional profiles still vary | Pin versions/profiles and run conformance tests |
| Status/revocation | Bitstring Status List and Token Status List address different token ecosystems and deployment preferences | Abstract status checking behind policy-aware interfaces |
| Trust establishment | DID-method trust, PKI/trusted lists, and regulated accreditation frameworks differ | Build pluggable trust evaluators and clear acceptance policies |
| Messaging | DIDComm is relevant for agent-to-agent flows but not required for OpenID4VC-based web/mobile exchanges | Select transport/protocols per use case, not ideology |
Scalability and performance
- Status checks benefit from compact list formats and caching, but verifiers must balance freshness, availability, and privacy. Bitstring Status List and Token Status List are designed with large-scale distribution in mind.
- Issuance throughput depends on authorization architecture, deferred/batch flows, and backend attribute sources; separating authorization and credential issuance can improve operational flexibility.
- Verification latency includes signature/proof checks, trust-chain evaluation, schema/profile validation, and status retrieval. Local policy caches and prevalidated trust metadata can materially reduce user-perceived delay.
- Offline/proximity use cases (notably mdoc) shift some trust/freshness trade-offs to device and policy design; online revocation guarantees may be weaker or deferred.
Integrating SSI with existing IAM
- Model claims deliberately: use VCs for durable or reusable verified attributes and keep OAuth access tokens for runtime API authorization where appropriate.
- Bridge legacy systems: verifier gateways can emit OIDC/SAML-compatible outputs, allowing incremental adoption without rewriting every relying party.
- Align assurance and lifecycle: map credential issuance assurance, holder binding, authenticator strength, and revocation SLAs to existing IAM governance (e.g., NIST SP 800-63 concepts and sector controls).
- Avoid recreating centralized chokepoints: gateways are useful, but over-centralization can reintroduce availability, surveillance, and vendor-lock-in risks that SSI aims to reduce.
Open-Source Libraries and Implementation Patterns
Choosing a stack depends on your target profile (W3C VC vs SD-JWT VC vs mdoc), protocol (OID4VCI/OID4VP, DIDComm), language/runtime, and whether you need wallet, issuer, verifier, or agent capabilities. The ecosystem is active and APIs evolve quickly, so treat versioned docs and conformance tests as the source of truth.
Library landscape (representative)
| Project | Primary language(s) | Typical use | Strengths / notes |
|---|---|---|---|
| Credo (OpenWallet Foundation, formerly Aries Framework JavaScript) | TypeScript/JavaScript | Wallet/issuer/verifier agents, OpenID4VC, DIDComm, multi-tenant agents | Modern TS stack for mobile/web/server; good fit for OpenID4VC-based credential exchange and DIDComm workflows |
| Veramo | TypeScript/JavaScript | Modular agent framework for DIDs, VC issuance/verification, DID resolution, storage plugins | Flexible plugin architecture; useful for building custom issuer/verifier services and experimenting with DID methods and proof formats |
| walt.id Community Stack | Kotlin/JVM, REST APIs, SDKs | Issuer/verifier/wallet services, OID4VCI/OID4VP, SD-JWT VC, W3C VC, mDL | API-first and profile-oriented (Issuer2/Verifier2/Wallet2), practical for rapid integration and standards-aligned pilots |
| Hyperledger Identus (Aries/PRISM lineage in LF Decentralized Trust) | Scala, SDKs/APIs | Enterprise SSI platform components (cloud agent, edge/wallet SDKs) | Targets interoperable, production-oriented identity infrastructure; evaluate current modules and protocol support for your profile |
| ACA-Py (Aries Cloud Agent Python) | Python + REST Admin API | Cloud/enterprise agents for issuance, verification, connections, mediation | Mature Aries/DIDComm tooling and operational controls; often used with controllers/services that orchestrate flows via API |
| DIDKit (SpruceID) | Rust core, CLI, C/FFI, WASM bindings | DID operations, VC/VP signing and verification, portable crypto tooling | Lightweight and embeddable; useful for CLI pipelines, cross-platform libraries, and low-level credential operations |
| Bifold / OWF wallet projects | React Native (Bifold ecosystem) | Mobile wallet UX/reference implementations | Starting point for mobile holder apps; pair with protocol/agent libraries and platform security hardening |
| OpenID4VC client/server libraries | Various (TS, Kotlin, Java, Rust, Go, etc.) | Standards-focused OID4VCI/OID4VP implementations | Useful when you want protocol-level control and narrower dependencies; verify spec version/profile compatibility carefully |
Implementation deep dive: what you actually build
At minimum, an SSI integration implements three responsibilities:
- Issuance service: authenticates the subject, resolves attributes from authoritative sources, selects credential schema/profile, binds holder key material when required, signs the credential, and exposes OID4VCI metadata/endpoints or DIDComm issuance flows.
- Wallet/holder agent: manages keys in secure storage, handles credential offers and proof-of-possession, stores credentials, renders consent UX, performs selective disclosure, and creates verifiable presentations.
- Verifier service: generates presentation requests (nonce/audience/query constraints), validates presentation proofs and credential signatures, resolves issuer trust (DID/PKI/trusted lists), checks status/freshness, and maps verified claims into application policy/session tokens.
Verification is a pipeline, not a single signature check
1. Parse request/response and enforce profile constraints (format, alg, transport)2. Verify cryptographic proof(s) (issuer signature + holder binding/proof of possession)3. Validate identifiers and trust anchors (DID document, x5c/PKI chain, trusted list, metadata)4. Check temporal validity (nbf/iat/exp, issuance/validity windows)5. Check credential status/freshness (Bitstring Status List / Token Status List / policy cache)6. Validate schema/claims/query satisfaction (required fields, DCQL/presentation definition)7. Apply business authorization policy (purpose, assurance, risk, consent context)Example 1: Issue and verify a W3C VC with Veramo (TypeScript)
Veramo’s plugin-based agent can create DIDs, issue credentials, and verify them. This example shows the core credential flow (storage/resolver/KMS configuration omitted for brevity).
import { createAgent } from '@veramo/core'import { DIDManager, MemoryDIDStore } from '@veramo/did-manager'import { KeyManager, MemoryKeyStore, MemoryPrivateKeyStore } from '@veramo/key-manager'import { KeyManagementSystem } from '@veramo/kms-local'import { CredentialPlugin } from '@veramo/credential-w3c'import { CredentialProviderJWT } from '@veramo/credential-jwt'import { DIDResolverPlugin } from '@veramo/did-resolver'import { getResolver as keyDidResolver } from 'key-did-resolver'
type AgentPlugins = DIDManager & KeyManager & CredentialPlugin
const agent = createAgent<AgentPlugins>({ plugins: [ new KeyManager({ store: new MemoryKeyStore(), kms: { local: new KeyManagementSystem(new MemoryPrivateKeyStore()) }, }), new DIDManager({ store: new MemoryDIDStore(), defaultProvider: 'did:key', providers: { // register a did:key provider in a full setup }, }), new DIDResolverPlugin({ ...keyDidResolver(), }), new CredentialPlugin([new CredentialProviderJWT()]), ],})
async function issueAndVerify() { // In a real app, create/load issuer and holder identifiers first const issuer = await agent.didManagerGetOrCreate({ alias: 'issuer' })
const credential = await agent.createVerifiableCredential({ credential: { '@context': ['https://www.w3.org/2018/credentials/v1'], type: ['VerifiableCredential', 'EmployeeCredential'], issuer: { id: issuer.did }, issuanceDate: new Date().toISOString(), credentialSubject: { id: 'did:example:holder-123', employeeId: 'E-1007', department: 'Engineering', clearance: 'internal', }, }, proofFormat: 'jwt', })
const result = await agent.verifyCredential({ credential })
if (!result.verified) { throw new Error(`Credential verification failed: ${JSON.stringify(result.error)}`) }
return credential}Why this matters technically: the issued JWT VC contains signed claims (issuer, subject, issuance time, proof/JWT). The verifier must still add trust and policy checks beyond verified === true (is this issuer allowed to issue EmployeeCredential? is status valid? is the holder bound/present in this transaction?).
Example 2: Quick DID and credential operations with DIDKit (CLI)
DIDKit is useful for prototyping, testing, and understanding credential primitives without building a full agent stack.
# 1) Generate an issuer key (JWK)didkit generate-ed25519-key > issuer.jwk
# 2) Derive a did:key identifier from the keydidkit key-to-did key -k issuer.jwk# -> did:key:z6Mk...
# 3) Prepare an unsigned credential (credential.json)cat > credential.json <<'JSON'{ "@context": ["https://www.w3.org/2018/credentials/v1"], "type": ["VerifiableCredential", "MembershipCredential"], "issuer": "did:key:REPLACE_WITH_ISSUER_DID", "issuanceDate": "2026-11-10T00:00:00Z", "credentialSubject": { "id": "did:example:member-42", "membershipLevel": "gold" }}JSON
# 4) Sign/issue the credentialdidkit vc-issue-credential \ -k issuer.jwk \ -p assertionMethod \ < credential.json > vc-signed.json
# 5) Verify the credentialdidkit vc-verify-credential < vc-signed.jsonIn real deployments you would pair this with secure key storage, DID method resolution, revocation/status checks, and presentation protocols (OID4VP/DIDComm) rather than file-based CLI flows.
Example 3: Orchestrating issuance with ACA-Py (REST controller pattern)
ACA-Py exposes an Admin API that a controller application drives. The exact endpoints and payloads vary by protocol/version and credential format, but the controller pattern is consistent.
# Example: list credential exchange records (issuer or holder side)curl -s "$ACA_PY_ADMIN_URL/issue-credential-2.0/records" \ -H "X-API-Key: $ACA_PY_ADMIN_API_KEY"
# Example: controller sends an offer (payload fields depend on connection, filter, and format)curl -s -X POST "$ACA_PY_ADMIN_URL/issue-credential-2.0/send-offer" \ -H "Content-Type: application/json" \ -H "X-API-Key: $ACA_PY_ADMIN_API_KEY" \ -d '{ "connection_id": "<connection-id>", "comment": "Employee credential offer", "filter": { "ld_proof": { "credential": { "@context": ["https://www.w3.org/2018/credentials/v1"], "type": ["VerifiableCredential", "EmployeeCredential"], "issuer": "did:example:issuer", "credentialSubject": { "id": "did:example:holder", "department": "Engineering" } }, "options": { "proofType": "Ed25519Signature2018" } } } }'This model is powerful for backend orchestration, but it means your security boundary includes the Admin API, controller logic, webhook handlers, wallet/key storage, and transport configuration.
Example 4: Mapping verified claims into a legacy SSO session
A verifier gateway can bridge SSI verification results into existing applications. The key technical rule is to mint short-lived, audience-scoped tokens only after full VC/VP validation.
// Pseudocode: after OID4VP/VC validation succeedstype VerifiedClaims = { subjectDid: string employeeId: string department: string assurance: 'high' | 'substantial' | 'low'}
function toOidcClaims(vcClaims: VerifiedClaims) { return { sub: vcClaims.subjectDid, employee_id: vcClaims.employeeId, department: vcClaims.department, acr: vcClaims.assurance, amr: ['vc_presentation', 'holder_binding'], }}
// 1) validate VP signature, nonce, audience/client_id, holder binding// 2) validate issuer trust + credential status/freshness + schema/profile// 3) map claims and mint a short-lived ID token/assertion for the legacy RPThis is the practical “SSI on top of SSO” pattern: the relying app still consumes familiar tokens, while trust moves to verifiable credential verification at the gateway.
Protocol artifacts to understand (OID4VC debugging)
When debugging real implementations, you will spend time inspecting metadata and token/presentation payloads. Useful artifacts include issuer metadata, credential offers, authorization/presentation requests, and status entries.
{ "vct": "https://credentials.example.com/employee", "iss": "https://issuer.example.com", "iat": 1762732800, "cnf": { "jwk": { "kty": "EC", "crv": "P-256", "x": "...", "y": "..." } }, "employee_id": "E-1007", "department": "Engineering", "_sd_alg": "sha-256"}In SD-JWT VC flows, selectively disclosable claims and disclosures allow the wallet to reveal only required data, while key binding (cnf / KB-JWT patterns, profile-dependent) helps prove the presenter controls the holder key for that transaction.
Licensing, Open-Source Status, and Gotchas
Most SSI building blocks are available as permissively licensed open-source software, but “open source” does not automatically mean “zero cost”, “fully featured”, or “safe to use without review”. License terms, governance, packaging, and operational requirements all matter.
License snapshot (libraries mentioned above)
| Project | Typical license | Commercial use | Common gotchas |
|---|---|---|---|
| Credo (OpenWallet Foundation) | Apache-2.0 | Yes, permissive | Spec/profile coverage evolves quickly; mobile/wallet security depends heavily on your app, key storage, and dependency choices |
| Veramo | Apache-2.0 | Yes, permissive | Modular plugin design means you assemble many parts (DID methods, KMS, storage, resolvers); you own production hardening and upgrade path |
| walt.id Community Stack | Apache-2.0 (community repositories/services) | Yes for community code | Open-core split: Enterprise Stack, hosted offerings, SLAs, and some advanced/compliance features may be commercial; verify exactly which repo/service/version you deploy |
| Hyperledger Identus | Apache-2.0 | Yes, permissive | Platform components and deployment topologies can be complex; evaluate which modules, ledgers, and protocol profiles are production-ready for your use case |
| ACA-Py | Apache-2.0 | Yes, permissive | Powerful but operationally non-trivial (controller app, Admin API security, webhooks, storage/mediator/ledger dependencies); protocol support differs by credential format and version |
| DIDKit (SpruceID) | Commonly dual-licensed Apache-2.0 and/or MIT (verify per crate/repo) | Yes, permissive | Low-level toolkit: great for primitives, but you must build/compose issuance, presentation protocols, trust policy, status handling, and UX around it |
| Bifold (OpenWallet Foundation) | Apache-2.0 | Yes, permissive | Wallet UI/reference implementation, not a complete regulated wallet product; platform security, certification, and backend integrations are your responsibility |
What “permissive open source” usually gives you
- Apache-2.0 and MIT generally allow use, modification, redistribution, and commercial deployment, provided you keep required notices and comply with license terms.
- Apache-2.0 includes an explicit patent license grant from contributors (subject to the license conditions), which is often relevant in cryptography/protocol implementations.
- You can usually fork and self-host, but you still need to track upstream security fixes, breaking changes, and interoperability updates.
Practical gotchas to evaluate
- Open core vs community edition: some vendors publish core libraries/services as open source while reserving enterprise features, managed hosting, support, certification tooling, or advanced integrations for paid plans. “Open source project” and “commercial product” may not have identical capabilities.
- Protocol/spec version drift: a library can be “open source” but implement an older draft/profile (e.g. OpenID4VC draft vs 1.0, SD-JWT VC draft revisions, W3C VC 1.1 vs 2.0). This is a technical gotcha with licensing/operational consequences when you need interoperability or certification.
- Hosted service is not the same as source license: using a vendor-hosted SaaS introduces terms of service, data processing, residency, pricing, and availability constraints even if underlying components are open source.
- Dependencies and transitive licenses: crypto libraries, DID resolvers, JSON-LD processors, mobile SDKs, and database drivers may carry different licenses/obligations. Run SBOM/license scans in CI.
- Trademarks and compatibility claims: license to use code is not license to use project trademarks or imply certification/conformance. Be careful with “compatible with X” claims in regulated ecosystems.
- Contribution requirements: projects may require DCO sign-off or CLAs. This affects how your team can contribute fixes upstream.
- Security and compliance are not included: permissive licenses disclaim warranties/liability; secure key storage, wallet hardening, audits, penetration testing, incident response, and regulatory compliance remain your responsibility.
- Operational cost is real: even with free code, you pay for infrastructure, HSM/KMS/secure hardware, monitoring, status endpoints, trust-list operations, developer time, and interoperability testing.
Due-diligence checklist before adopting a library
- Confirm the exact license for the repo/tag/package and all critical dependencies.
- Check current spec/profile support (OID4VCI/OID4VP versions, VC format, DID methods, status mechanism, mdoc/SD-JWT support).
- Review maintenance signals: recent commits/releases, issue response, security advisories, roadmap, and governance (foundation-backed vs single-vendor).
- Evaluate security model fit: key management options, hardware-backed storage support, threat-model docs, and update process.
- Prototype an end-to-end flow (issue → store → present → verify → revoke/status check) against your target wallet/verifier ecosystem before standardizing.
Open Challenges
SSI standards have matured significantly in 2024–2026—W3C VC Data Model 2.0 and Bitstring Status List v1.0 became Recommendations in 2025, and OpenID4VCI/OID4VP 1.0 are published as final-specification-line documents—but several challenges remain. Recovery and delegated control are not uniformly solved, cross-ecosystem trust portability is often governance-limited rather than cryptography-limited, selective disclosure does not eliminate all correlation risks, and some widely deployed building blocks (such as SD-JWT VC and Token Status List at the time of research) continue to evolve through the standards process.
For most organizations, the practical path is not “replace SSO overnight” but “add verifiable credentials where portability, privacy, and assurance matter most,” while investing early in profiles, wallet/key lifecycle, verifier policy, and trust governance.
References
- Decentralized Identifiers (DIDs) v1.0 — W3C Recommendation (July 19, 2022) — https://www.w3.org/TR/did-core/
- Verifiable Credentials Data Model v2.0 — W3C Recommendation (May 15, 2025) — https://www.w3.org/TR/vc-data-model-2.0/
- Verifiable Credential Data Integrity 1.0 — W3C Recommendation (May 15, 2025) — https://www.w3.org/TR/vc-data-integrity/
- Bitstring Status List v1.0 — W3C Recommendation (May 15, 2025) — https://www.w3.org/TR/vc-bitstring-status-list/
- OpenID for Verifiable Credential Issuance 1.0 — OpenID Foundation (Final specification) — https://openid.net/specs/openid-4-verifiable-credential-issuance-1_0.html
- OpenID for Verifiable Presentations 1.0 — OpenID Foundation (Final specification) — https://openid.net/specs/openid-4-verifiable-presentations-1_0.html
- SD-JWT-based Verifiable Credentials (SD-JWT VC) — IETF OAuth Working Group, Internet-Draft — https://datatracker.ietf.org/doc/draft-ietf-oauth-sd-jwt-vc/
- Selective Disclosure for JSON Web Tokens (SD-JWT) — IETF RFC 9901 (November 2025) — https://www.rfc-editor.org/rfc/rfc9901.html
- Token Status List — IETF OAuth Working Group, Internet-Draft — https://datatracker.ietf.org/doc/draft-ietf-oauth-status-list/
- DIDComm Messaging v2.x — Decentralized Identity Foundation — https://identity.foundation/didcomm-messaging/spec/
- ISO/IEC 18013-5 Personal identification — ISO-compliant driving licence — Part 5: Mobile driving licence (mDL) application — ISO — https://www.iso.org/standard/69084.html
- Architecture and Reference Framework (ARF) — European Digital Identity Wallet, European Commission — https://eu-digital-identity-wallet.github.io/eudi-doc-architecture-and-reference-framework/latest/architecture-and-reference-framework-main/
- Annex 6 — Risk Register — European Digital Identity Wallet ARF — https://eudi.dev/latest/annexes/annex-6/annex-6-risk-register/
- European Digital Identity (EUDI) Regulation / eIDAS 2.0 framework — European Commission — https://commission.europa.eu/strategy-and-policy/priorities-2019-2024/europe-fit-digital-age/european-digital-identity_en
- Microsoft Entra Verified ID documentation — Microsoft Learn — https://learn.microsoft.com/en-us/entra/verified-id/
- Hyperledger Aries — LF Decentralized Trust — https://www.lfdecentralizedtrust.org/projects/aries
- AnonCreds Specification — Hyperledger AnonCreds — https://hyperledger.github.io/anoncreds-spec/
- Digital Identity Guidelines (SP 800-63-4) — NIST — https://pages.nist.gov/800-63-4/
- Digital Identity Guidelines: Federation and Assertions (SP 800-63C-4) — NIST — https://pages.nist.gov/800-63-4/sp800-63c.html
- Threat Model for Decentralized Credentials — W3C Group Note Draft (September 8, 2026) — https://www.w3.org/TR/threat-model-decentralized-credentials/
- Formal Security Analysis of OpenID for Verifiable Credentials — OpenID Foundation / Fabian Hauck, University of Stuttgart (January 19, 2024) — https://openid.net/2024/01/19/formal-security-analysis-openid-verifiable-credentials/
- Formal Security Analysis of the OpenID for Verifiable Presentations (DC API analysis) — OpenID Foundation (August 2025) — https://openid.net/wp-content/uploads/2025/08/Report-Deliverable-A_1_B_.pdf
- Protecting Digital Identity Wallet: A Threat Model in the Age of eIDAS 2.0 — Amir Sharif et al., Springer (2024) — https://link.springer.com/chapter/10.1007/978-3-031-82362-6_6
- The OAuth 2.0 Authorization Framework — IETF RFC 6749 — https://www.rfc-editor.org/rfc/rfc6749
- OpenID Connect Core 1.0 — OpenID Foundation — https://openid.net/specs/openid-connect-core-1_0.html
- Security Assertion Markup Language (SAML) V2.0 Technical Overview — OASIS — http://docs.oasis-open.org/security/saml/Post2.0/sstc-saml-tech-overview-2.0.html
- OAuth 2.0 Security Best Current Practice — IETF RFC 9700 — https://www.rfc-editor.org/rfc/rfc9700
This article was written by Iceman Free (iceman-free | opencode).

