Identity vs DID

Domain Modeling Concepts
Technical guide explaining the relationship between DIDs and complete organizational identities

🎯 Key Insight

DID ⊂ Identity

DID operations are a subset of Identity operations. We usually don't create standalone DIDs - we create complete Identities that include DIDs as components.

🏢 Our Business Goal

Link Domain + Organization → Complete Identity

Domain (example.com) + Organization (Acme Corp) = Identity Account
├── DID: did:iota:example.com
├── Verification Methods
├── Credential Issuance
├── OpenID4VC Support
└── Blockchain Registration

📊 Conceptual Hierarchy

IDENTITY

Complete SSI account with full capabilities

DID

Just the identifier string

e.g., "did:iota:example.com"

DID Document
verification methods
Cryptographic Keys
security foundation
Credential Issuance
capabilities
OpenID4VC
integration
Local Storage
& management

🔍 In Practice

What We Usually Want: Complete Identity

Ruby Code Example:

# Creates COMPLETE identity for organization
service = DigitalIdentityService.new(organization, domain)
result = service.create!(method: 'iota')

This gives us:

  • DID identifier: "did:iota:example.com"
  • DID Document with verification methods
  • Credential issuance capabilities
  • OpenID4VC integration
  • Blockchain registration

What We Rarely Want: Just DID

Ruby Code Example:

# Creating standalone DID (rarely needed)
did_string = "did:iota:example.com"  # Just the identifier

This approach is limited because it only provides the identifier string without the complete identity infrastructure needed for business operations.

📝 TypeScript Prototype Evidence

Looking at identity.service.ts, the newDid() method actually creates a complete identity:

TypeScript Code Example:

async newDid(props: { alias: string; method: string }) {
    const did = await this.manager.createDid({...});  // Full identity account
    
    // Returns enriched identity with FULL capabilities:
    return this._enrichAccountWithRelyingPartyAndIssuer(did, did.getDid());
}

The enriched result includes:

  • account: Core identity account
  • rp: RelyingParty (credential verification)
  • issuer: VcIssuer (credential issuance)
  • holder: VcHolder (credential holding)
  • op: OpenidProvider (OpenID4VC)

Key Point: Even though it's called newDid(), it actually creates a complete Identity with the DID as just one component.

🏗️ Architectural Implications

Correct Domain Model

class Organization
  # Links to complete identity (not just DID)
  has_one :identity_account
  
  # DID is just a reference/identifier
  attribute :did_identifier, :string
  
  # But we store identity capabilities
  attribute :did_document, :text           # Full W3C DID Document
  attribute :identity_provider, :string    # IOTA, etc.
  attribute :did_network, :string         # testnet, mainnet
end

Service Responsibilities

Service Responsibility Creates
DigitalIdentityService Complete Identity for domain+org Full identity account
NodejsIdentityService Technical integration wrapper Delegates to TypeScript SDK
DomainVerificationService Domain ownership verification DNS verification only

🎭 Real-World Analogy

DID

= Social Security Number

(just an identifier)

Identity

= Complete person with SSN + passport + driver's license + capabilities

(full identity system)

You don't usually create "just a SSN" - you create a complete person identity that includes the SSN.

💡 Why This Matters

For Developers

  • Don't think "create DID" - think "create organizational identity"
  • DID is just the identifier part of a larger identity system
  • Focus on business capabilities, not technical identifiers

For Business Logic

Organizations need complete identities for:

  • Issuing credentials to customers
  • Verifying credentials from suppliers
  • Participating in verifiable credential ecosystems
  • Regulatory compliance and audit trails

For API Design

✅ Good - business-focused

POST /organizations/:id/identity

❌ Less good - technical implementation detail

POST /organizations/:id/did

🔗 Core Orobo Concept: Domain ↔ Identity Linkage

The Main Linkage in Orobo

Domain (example.com)
↔
Organizational Identity
↔
DPPs
↓
IOTA Blockchain

When a DPP is logged onto IOTA and linked to a domain, it's linked to the Identity.

1. Domain Verification

Establishes domain ownership

2. Identity Creation

Links domain to complete identity account

3. DPP Creation

DPPs inherit the domain's identity capabilities

Technical Implementation

# This creates the Domain ↔ Identity linkage
service = DigitalIdentityService.new(organization, domain)
result = service.create!(method: 'iota')

# Behind the scenes this:
# 1. Creates complete identity via TypeScript SDK (matches prototype)
# 2. Registers on blockchain via abstraction layer (auto-network)
# 3. Links domain.hostname ↔ identity.did
# 4. Enables DPP → Identity → Blockchain traceability

🔧 Command Line Clarity

Based on this understanding:

Primary use case - create complete organizational identity

thor orobo_admin:create_identity example.com 1 --method=iota

Domain verification (prerequisite)

thor orobo_admin:verify_domain example.com 1

Technical testing (rare)

thor orobo:admin:domains:create_test_identity

📚 References

W3C DID Core Specification

DIDs are identifiers

View Specification →

IOTA Identity Framework

Identity includes DIDs

View Documentation →

TypeScript Prototype

identity.service.ts - Shows complete identity creation

Internal Reference

Bottom Line

We're building an Identity Management System where the core concept is Domain ↔ Identity linkage.

DIDs are just identifiers - the real value is in complete organizational identities that enable credential ecosystems.

Last updated: July 19, 2026