Skip to content

SD-JWT .NET Tutorials

Step-by-step guides for learning SD-JWT implementation with working code samples.

Learning Path

Week 1: Fundamentals

Start with these beginner tutorials to understand core SD-JWT concepts:

  1. Hello SD-JWT - Create your first SD-JWT (5 min)
  2. Selective Disclosure - Hide and reveal claims (10 min)
  3. Holder Binding - Cryptographic proof of ownership (10 min)
  4. Verification Flow - Complete issuer-holder-verifier cycle (15 min)
  5. Hello mdoc - Create your first ISO 18013-5 credential (10 min)

Week 2: Standards

Build production skills with protocol tutorials:

  1. Verifiable Credentials - SD-JWT VC standard (15 min)
  2. Status List - Revocation and suspension (15 min)
  3. OpenID4VCI - Credential issuance protocol (20 min)
  4. OpenID4VP - Presentation protocol (20 min)
  5. Presentation Exchange - DIF query language (15 min)
  6. mdoc Issuance - Complete mdoc credential flows (20 min)
  7. Agent Trust Kits - Capability token enforcement for agent tool calls (25 min)

Week 3: Production

Advanced tutorials for enterprise deployment:

  1. OpenID Federation - Trust chain management (20 min)
  2. HAIP Compliance - Security levels 1-3 (15 min)
  3. Multi-Credential Flow - Combined presentations (20 min)
  4. Key Rotation - Operational security (15 min)
  5. mdoc OpenID4VP Integration - mdoc presentation flows (25 min)
  6. EUDIW Compliance - EU Digital Identity Wallet (25 min)

Running the Samples

All tutorials have corresponding runnable code in the samples/SdJwt.Net.Samples/ directory.

cd samples/SdJwt.Net.Samples
dotnet run

Or run specific tutorials directly:

dotnet run -- 1.1    # Hello SD-JWT
dotnet run -- 2.3    # OpenID4VCI
dotnet run -- 3.2    # HAIP Compliance

Prerequisites

  • .NET 9.0 SDK or later
  • Basic understanding of JWTs and public key cryptography
  • IDE with C# support (Visual Studio, VS Code, Rider)