Identity vs DID
🎯 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
📊 Conceptual Hierarchy
Complete SSI account with full capabilities
Just the identifier string
e.g., "did:iota:example.com"
🔍 In Practice
What We Usually Want: Complete Identity
Ruby Code Example:
# Creates COMPLETE identity for organizationservice=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:
asyncnewDid(props: {alias:string;method:string}) {constdid=awaitthis.manager.createDid({...});// Full identity account// Returns enriched identity with FULL capabilities:returnthis._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
classOrganization# Links to complete identity (not just DID)has_one:identity_account# DID is just a reference/identifierattribute:did_identifier,:string# But we store identity capabilitiesattribute:did_document,:text# Full W3C DID Documentattribute:identity_provider,:string# IOTA, etc.attribute:did_network,:string# testnet, mainnetend
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
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 linkageservice=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
TypeScript Prototype
identity.service.ts - Shows complete identity creation
Internal ReferenceBottom 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.