---
title: "Overview"
description: "Host and resolve did:web identifiers in the walt.id Enterprise Stack with the DID Registry, DID Store, and DID Service working together."
stack: "Enterprise Stack (commercial) — version 1.2.1"
stack_version: "1.2.1"
stack_comparison: https://docs.walt.id/community-vs-enterprise.md
canonical_url: https://docs.walt.id/enterprise-stack/services/did-registry/overview
generated: 2026-11-11
---
# Overview

The **DID Registry** subsystem hosts and resolves `did:web` identifiers in the walt.id Enterprise Stack. Three services cooperate: the DID Store persists documents, the DID Service creates them, and the DID Registry serves them publicly.

A `did:web` DID must be **created** through the DID Service and **resolved** through a DID Registry. The registry stores nothing — it reads from whichever DID Stores are attached as dependencies.

## The three services

| Service | Serial name | Role |
|:--------|:------------|:-----|
| **DID Store** | `did-store` | Persistent storage for DID entries and their documents |
| **DID Service** | `did` | Creates DIDs (`did:key`, `did:jwk`, `did:web`) and writes them into linked DID Stores |
| **DID Registry** | `did-registry` | Public resolution aggregator — serves `did.json` by querying linked DID Stores |

```mermaid
flowchart LR
    KMS[KMS] -->|key material| DID[DID Service]
    DID -->|writes| Store[DID Store]
    Registry[DID Registry] -->|reads| Store
    Client[Wallets / Verifiers] -->|GET did.json| Registry
```

| Dependency | Direction | Purpose |
|:-------------|:----------|:--------|
| DID Service → KMS | required | Key material for verification methods |
| DID Service → DID Store | required | Persist created DID documents |
| DID Registry → DID Store | required | Read-only fan-out for resolution |

![DID Registry Dependencies](https://docs.walt.id/img/enterprise-stack/services/DID-Registry-Service-Dependencies.png)

**Note:**

The DID Registry does **not** create or persist DIDs. Use the [DID Service](https://docs.walt.id/enterprise-stack/services/did-service/overview.md) to generate documents and the [DID Store Service](https://docs.walt.id/enterprise-stack/services/did-store-service/overview.md) to persist them.

## How `did:web` maps to a URL

The `did:web` method encodes the HTTPS location of the DID document:

```text
did:web:<host>:<path-segments>
         │       └── colons in the DID become slashes in the URL
         └── domain (port encoding is also supported)
```

| DID | Resolution URL |
|:----|:---------------|
| `did:web:example.com:users:alice` | `https://example.com/users/alice/did.json` |
| `did:web:example.com:alice` | `https://example.com/alice/did.json` |

When creating a DID, the `domain` and `path` fields must match the URL you intend to serve. Path segments in the request (`users/alice`) become colon-separated segments in the DID (`users:alice`).

**Note:**

The registry does not automatically host documents at the standard `did:web` HTTPS path. You must either point a reverse proxy at the Enterprise API resolution endpoints or configure DNS/TLS so that `https://{domain}/{path}/did.json` routes to the API. See [Resolution](https://docs.walt.id/enterprise-stack/services/did-registry/resolution.md) and [External DID Web Hosting](https://docs.walt.id/enterprise-stack/services/did-registry/external-did-web-hosting.md).

## Resolution at a glance

The DID Registry exposes three unauthenticated GET patterns for serving DID documents:

| Pattern | URL | When to use |
|:--------|:----|:------------|
| **Service-targeted** | `GET /v1/{registry-target}/did-registry-service-api/registry/{id}/did.json` | You know the exact registry service path |
| **Tenant-relative** | `GET /v1/{orgId}/{target}/{id}/did.json` | Registry path is stable within a tenant |
| **Organization root** | `GET /v1/{orgId}/{id}/did.json` | `rootDidRegistry` is configured on the organization |

See [Resolution](https://docs.walt.id/enterprise-stack/services/did-registry/resolution.md) for full details, parameters, and response codes.

## Tenant vs organization placement

Both `did-registry` and `did` service instances live inside the organization tree. The distinction between "tenant level" and "organization level" is where in the path the service is placed — not a separate service type.

| Scenario | Target path pattern | Root resolution URL |
|:---------|:--------------------|:--------------------|
| Single tenant | `waltid.tenant1.did-registry.main` | `GET /v1/waltid/tenant1.did-registry.main/{id}/did.json` |
| Organization root | `waltid.did-registry.main` | `GET /v1/waltid/{id}/did.json` (requires `rootDidRegistry`) |
| Multi-tenant | `waltid.tenantA.did-registry.main`, `waltid.tenantB.did-registry.main` | Per-tenant resolution URLs |

See [Setup → Tenant vs organization level](https://docs.walt.id/enterprise-stack/services/did-registry/setup.md#tenant-vs-organization-level) for configuration.

## Complete flow

For `did:web:example.com:users:alice`:

1. Create **DID Store** at `waltid.tenant1.did-store.main`
2. Create **KMS** at `waltid.tenant1.kms.main` and generate a key
3. Create **DID Service** at `waltid.tenant1.did.main` — attach KMS and DID Store dependencies
4. **Create did:web** via `POST .../dids/create/web` — document written to the DID Store
5. Create **DID Registry** at `waltid.tenant1.did-registry.main` — attach DID Store dependency
6. (Optional) Set `rootDidRegistry` on the organization
7. **Resolve publicly**: `GET /v1/waltid/users:alice/did.json`

Or follow [Setup](https://docs.walt.id/enterprise-stack/services/did-registry/setup.md) to provision the three services.

## Get started

1. [Setup](https://docs.walt.id/enterprise-stack/services/did-registry/setup.md) — Provision and wire the three services
2. [Create did:web](https://docs.walt.id/enterprise-stack/services/did-registry/create-did-web.md) — Generate DIDs with single or multiple keys
3. [Resolution](https://docs.walt.id/enterprise-stack/services/did-registry/resolution.md) — Serve and verify `did.json` publicly
4. [DID Store](https://docs.walt.id/enterprise-stack/services/did-store-service/overview.md) — Persist, list, view, and delete stored DIDs

**Advanced:**

- [External DID Web Hosting](https://docs.walt.id/enterprise-stack/services/did-registry/external-did-web-hosting.md) — Custom domains, DNS, and reverse proxy
- [Full API Reference](https://docs.walt.id/enterprise-stack/services/did-registry/full-api-reference.md) — Swagger documentation

## Operational endpoints

Service lifecycle and dependency management are documented under Administration → Service Operations:

- [Create this service](https://docs.walt.id/enterprise-stack/administration/services/create.md)
- [View or update configuration](https://docs.walt.id/enterprise-stack/administration/services/configuration/view.md)
- [Manage dependency services](https://docs.walt.id/enterprise-stack/administration/services/dependency-services/view.md)
