The did:cde DID Method

Specification — Version 1.0.1

Unofficial Draft

More details about this document
Latest published version:
https://resources.clouddataengine.io/docs/did-cde-spec-v1.0.1.html
Editor:
(Cloud Data Engine)
Source repository
gitlab.com/cde-public/did-cde-spec
Feedback
GitLab issues
Other formats
PDF

Abstract

The cde DID method identifies domain managers operating a decentralized, globally scoped registry, and addresses the namespaces and content-addressed objects they manage. It builds on the Web infrastructure trust model of did:web [DID-WEB]: a DID controller proves control of a domain name and publishes its DID document over HTTPS. On top of the base DID, did:cde defines a DID URL convention in which the path designates a namespace and the id query parameter designates an object by the multihash of its content, optionally qualified by a version (the content hash of that version).

This specification conforms to the requirements for DID method specifications in Decentralized Identifiers (DIDs) v1.1 [DID-CORE] §7 (Methods), and uses the result and error vocabulary of DID Resolution [DID-RESOLUTION].

Status of This Document

This document is a draft of a potential specification. It has no official standing of any kind and does not represent the support or consensus of any standards organization.

This document is a release candidate intended for registration in the W3C DID Extensions registry [DID-EXTENSIONS]. It has no standing as a W3C standard.

1. Introduction

A did:cde identifier is structured in three parts, mapped onto the DID URL grammar of [DID-CORE] (did-url = did path-abempty [ "?" query ] [ "#" fragment ]):

  1. The domain manager — everything separated by : — is the DID proper. It identifies the authority operating a registry and resolves to that authority's DID document.
  2. The namespace(s) — the /-separated DID URL path. A single domain manager MAY operate several namespaces (and nested sub-namespaces).
  3. The object — the id DID URL query parameter. Its value (the fullid) is the multihash of the object's genesis content, optionally followed by : and the content multihash of one version. A fullid with a version designates one immutable version of the object; a fullid without a version designates the object's anchor — its stable, version-independent reference.

Example:

did:cde:registry.clouddataengine.io:region:eu/energy/meters?id=uEiAcNtnCW39SiJGB5asrBIUv_kXscLQOAKLQ5iDGSZfCCQ
└─┬─┘ └┬┘ └───────────┬────────────────────┘└──────┬─────┘    └───────────────────┬──────────────────────────┘
scheme method   domain manager (the DID)      namespaces                object id (multihash)

(a version is addressed by appending ":" and that version's content multihash)

2. Conformance

As well as sections marked as non-normative, all authoring guidelines, diagrams, examples, and notes in this specification are non-normative. Everything else in this specification is normative.

The key words MAY, MUST, MUST NOT, REQUIRED, SHOULD, and SHOULD NOT in this document are to be interpreted as described in BCP 14 [RFC2119] [RFC8174] when, and only when, they appear in all capitals, as shown here.

3. Terminology

Other terms (DID, DID document, DID controller, verification method, service) are used as defined in [DID-CORE].

4. Method Syntax

4.1 Method Name

The method name is cde. A DID that uses this method MUST begin with did:cde:. The remainder of the DID, after the second colon, is the method-specific identifier defined below.

4.2 Method-Specific Identifier

The grammar uses ABNF [RFC5234]. The method-specific identifier is a fully qualified domain name, optionally followed by a percent-encoded port and by colon-separated path segments locating the manager's DID document, as in did:web:

cde-did       = "did:cde:" domain-name [ pct-port ] *( ":" segment )
domain-name   = 1*( label "." ) tld / "localhost"
label         = alphanum [ *61( alphanum / "-" ) alphanum ]
tld           = 2*63ALPHA
pct-port      = "%3" ("a" / "A") 1*5DIGIT          ; port 1-65535
segment       = 1*idchar
idchar        = ALPHA / DIGIT / "." / "-" / "_" / pct-encoded
pct-encoded   = "%" HEXDIG HEXDIG
alphanum      = ALPHA / DIGIT

The domain name MUST be treated case-insensitively and normalized to lower case; segments are case-sensitive. localhost MUST NOT be used outside development environments. The method-specific identifier MUST NOT contain a raw : port (ports are percent-encoded as %3A, since : is the DID segment separator), and MUST NOT contain IP addresses. As in did:web, a segment made only of digits that follows the domain name is a path segment, never a port: did:cde:example.com:8080 locates https://example.com/8080/did.json, whereas did:cde:example.com%3A8080 locates https://example.com:8080/.well-known/did.json.

Every method-specific identifier is generated from a domain name the controller owns, optionally followed by path segments the same controller chooses. Uniqueness of did:cde DIDs follows from the global uniqueness of DNS names combined with path segments under the domain owner's control; see the unique assignment policy in §7.

4.3 DID URL Syntax

did:cde DID URLs extend the base DID with an optional namespace path and an optional object query:

cde-did-url     = cde-did [ namespace-path ] [ "?" object-query ]
namespace-path  = 1*( "/" segment )
object-query    = "id=" fullid
fullid          = object-id [ ":" version ]
object-id       = multihash-id
version         = multihash-id
multihash-id    = "u" 46base64url-char              ; see 4.4; 47 chars total
                                                    ; for sha2-256: "uEi" + 44 chars
base64url-char  = ALPHA / DIGIT / "-" / "_"

An object-query MUST NOT appear without a namespace-path: every object lives in a namespace. A namespace segment that is not made of idchar characters MUST be percent-encoded as UTF-8; the : and / characters are never part of a segment. For the genesis version, version equals object-id; the short form ?id=<object-id> is the anchor, not the genesis version, and a registry MUST NOT treat the two as interchangeable. A DID URL MAY additionally carry a fragment (# followed by a DID Core fragment, e.g. #key-1 to designate a verification method), which is interpreted as defined in [DID-CORE] and is not part of this grammar. The id parameter is a method-defined DID URL query parameter, as permitted by [DID-CORE]; its name does not collide with the DID URL parameters defined there (such as service, relativeRef, versionId, versionTime and hl).

Semantics:

4.4 Identifier Hash Format

Object identifiers and content-hash version designators are multibase-encoded multihashes:

  1. compute the SHA-256 digest of the object's canonical content (see §6);
  2. prepend the multihash header 0x12 0x20 (sha2-256, 32-byte length);
  3. encode the resulting 34 bytes with base64url without padding [RFC4648] §5;
  4. prepend the multibase prefix u (base64url).

The result is 47 characters, always beginning with uEi for sha2-256, and uses only DID idchar characters — no percent-encoding is ever required.

Implementations MUST validate identifiers by decoding: verify the multibase prefix, the multihash algorithm code, and the declared digest length. Implementations MUST reject identifiers whose multihash declares an algorithm the implementation does not support, rather than ignoring the header. This registration of the algorithm inside the identifier provides cryptographic agility: a future algorithm can be introduced without changing this syntax.

4.5 Examples

did:cde:registry.clouddataengine.io
did:cde:registry.clouddataengine.io:region:eu
did:cde:registry.clouddataengine.io/energy
did:cde:registry.clouddataengine.io/energy/meters?id=uEiAcNtnCW39SiJGB5asrBIUv_kXscLQOAKLQ5iDGSZfCCQ
did:cde:registry.clouddataengine.io/energy/meters?id=uEiAcNtnCW39SiJGB5asrBIUv_kXscLQOAKLQ5iDGSZfCCQ:uEiBDy6jM7j2Zamc6ZoqNrI5yNp8SpZLl2sYhzkWgI54L4Q

In the last example the object uEiAcNt… has content {"name":"Meter 42","type":"energy-meter"}; the version uEiBDy6… is the JCS-canonical content {"firmware":"1.1","name":"Meter 42","type":"energy-meter"} (see Appendix C).

5. Method Operations

5.1 Create

To create a did:cde DID, the controller:

  1. obtains control of a fully qualified domain name;
  2. generates the key pairs to be listed in the DID document;
  3. constructs a conformant DID document (see §5.5) whose id is the DID;
  4. publishes it over HTTPS at the location defined in §5.2.

No central registration is involved beyond DNS itself. Creating an object is a registry-level operation: the registry computes the object's multihash identifier from its canonical genesis content (§6) and stores it under a namespace; it does not create a new DID.

5.2 Read (Resolve)

Resolution of the DID (the domain-manager part) mirrors did:web:

  1. split the method-specific identifier on :; the first item is the domain (decode %3A<port> into a port if present); the remaining items are path segments;
  2. if there are no path segments, the DID document URL is https://<domain>[:port]/.well-known/did.json;
  3. otherwise it is https://<domain>[:port]/<seg1>/.../<segn>/did.json;
  4. perform an HTTPS GET on that URL. TLS certificate validation MUST be performed. The response media type SHOULD be application/did+json;
  5. verify that the id property of the retrieved DID document equals the DID being resolved; otherwise resolution MUST fail with notFound/invalidDid metadata as appropriate.

Authenticity of the response. A resolver authenticates the DID document by the TLS session to the origin of step 4 and by the id check of step 5; where the controller signs document updates (§5.3), it SHOULD also verify that signature against the previous document. Resolution results and errors follow [DID-RESOLUTION]. Objects are authenticated as specified below: versions by their hash, anchors and namespace descriptors by the manager's signature.

Dereferencing DID URLs (namespaces and objects) is delegated to the registry service declared in the DID document. The DID document MUST contain a service entry of type CdeRegistry whose serviceEndpoint is an HTTPS URL. A dereferencer:

  1. resolves the DID and selects the CdeRegistry service endpoint;
  2. appends the namespace path and id query to the endpoint (<endpoint>/<ns>...?id=<fullid>);
  3. performs an HTTPS GET.

Dereferencing semantics:

For versioned content, the client MUST recompute the multihash of the retrieved canonical content and compare it to the identifier (the content hash version designator, or the object id when dereferencing the genesis content). On mismatch the client MUST reject the response. This makes versioned dereferencing self-certifying: its integrity does not depend on the transport.

A dereferencer MUST map failures as follows: HTTP 404 for an unknown namespace, object or version → notFound; HTTP 410 for a withdrawn object → notFound with the registry-provided reason in metadata; a hash mismatch or an unsupported multihash algorithm → invalidDidUrl; a non-HTTPS endpoint or TLS validation failure → invalidDidUrl/internalError with no content returned. Redirects MUST stay on HTTPS.

5.3 Update

The DID document is updated by replacing the file served at the DID document URL. Control of the HTTPS origin (and thus of DNS) is the update authorization mechanism; registries SHOULD additionally sign DID document updates with a key listed in the previous version of the document, and SHOULD publish a versionId/versionTime in resolution metadata.

Objects are never updated in place: a new version is appended, identified by its content multihash. The registry MUST maintain, per object, the ordered chain of version content hashes as internal metadata — this ordering is never exposed as an addressable identifier — and MUST treat published versions as immutable.

To bind versions to their object and make the chain verifiable without counters, each version MUST be accompanied by a version descriptor signed with an assertionMethod key of the manager. It is a JSON object with the members id (the object id), version (the version multihash), previous (the multihash of the previous version, absent for the genesis version, whose version equals id), versionTime (an [RFC3339] UTC timestamp, non-decreasing along the chain), namespace (the namespace path, e.g. /energy/meters) and proof. The signature covers the JCS-canonical form of the descriptor without its proof member. A verifier checks the signature, then that previous matches the preceding descriptor, walking back to a descriptor whose version equals the object id. A registry MUST NOT accept a version whose previous is not the current latest (no forks). The descriptor is metadata about the content and is not part of the hashed content.

5.4 Deactivate

A did:cde DID is deactivated by serving a DID document containing "deactivated": true (preferred, so the state is explicit and cacheable) or by removing the DID document, in which case resolvers encountering HTTP 404/410 MUST report the DID as not found. Deactivating the manager DID deactivates dereferencing for all its namespaces and objects; the objects' content hashes remain verifiable offline.

An object is withdrawn by the registry when it stops serving its content, for instance to meet an erasure obligation. The registry MUST then answer HTTP 410 for the object's anchor and versions, and SHOULD publish a signed withdrawal descriptor (the version descriptor members id, namespace, versionTime and proof, plus withdrawn set to true). A withdrawal is not a deletion from history: the identifier remains valid, and previously verified content hashes remain correct. A withdrawal is final: the identifier of the same content is unchanged, so republishing it does not create a new object.

5.5 DID Documents

A did:cde DID document is a conformant [DID-CORE] document. It MUST include at least one verification method authorized for authentication and one for assertionMethod (used by the registry to sign object descriptors), and the CdeRegistry service entry (§5.2). Example:

{
  "@context": ["https://www.w3.org/ns/did/v1"],
  "id": "did:cde:registry.clouddataengine.io",
  "verificationMethod": [{
    "id": "did:cde:registry.clouddataengine.io#key-1",
    "type": "JsonWebKey2020",
    "controller": "did:cde:registry.clouddataengine.io",
    "publicKeyJwk": { "kty": "OKP", "crv": "Ed25519", "x": "..." }
  }],
  "authentication": ["did:cde:registry.clouddataengine.io#key-1"],
  "assertionMethod": ["did:cde:registry.clouddataengine.io#key-1"],
  "service": [{
    "id": "did:cde:registry.clouddataengine.io#registry",
    "type": "CdeRegistry",
    "serviceEndpoint": "https://registry.clouddataengine.io/cde"
  }]
}

5.6 Authorization Summary

Operation Who authorizes Mechanism
Create / update / deactivate the DID the controller of the domain origin control of the HTTPS origin and DNS; SHOULD sign updates with a key of the previous DID document (§5.3)
Create a namespace the manager registry policy; descriptor SHOULD be signed with an assertionMethod key
Create an object (genesis version) the manager, upon a request allowed by namespace policy signed genesis version descriptor (§5.3)
Append a version the manager, upon a request allowed by namespace policy signed version descriptor whose previous is the current latest (§5.3)
Withdraw an object the manager signed withdrawal descriptor (§5.4)
Resolve / dereference anyone none; integrity by TLS, hashes and signatures (§5.2)

Who may request an object operation (for instance which accounts may append versions to a namespace) is a policy of the namespace and out of scope of this method. What this method fixes is the evidence: no object operation takes effect without a signature by an assertionMethod key of the manager.

6. Content Addressing and Canonicalization

The multihash of an object MUST be computed over a canonical byte representation of its content:

The object identifier is the multihash of the object's canonical genesis content (its first version). It never changes. Each subsequent version is identified by the multihash of its own canonical content; the registry keeps the version ordering as internal metadata and proves it through signed, hash-chained version descriptors (§5.3). Two objects whose genesis content is identical within the same namespace are the same object. A namespace storing objects derived from personal data MUST therefore include a random salt in the genesis content (see §8); the salt makes otherwise identical genesis contents distinct objects, and this takes precedence over the identity rule above.

7. Security Considerations

This section addresses the requirements of [DID-CORE] §7.3 and the guidance of [RFC3552], threat by threat.

Trust model and its main risk. As in did:web, control of a did:cde DID is anchored in DNS and the Web PKI. An attacker who compromises the domain, its DNS records, or the web origin can substitute the DID document and its keys. Mitigations: registries SHOULD enable DNSSEC, enforce HSTS, restrict who can write to the DID document path, sign DID document updates with a previously published key (§5.3), and MAY anchor DID document hashes in an external transparency log so that substitutions are detectable.

Unique assignment policy. Global uniqueness of a DID rests on DNS: registrars assign domain names, and the domain owner alone assigns the path segments below it. Within a manager, the registry assigns namespaces. Object identifiers are not assigned by any policy: they are content hashes, and their uniqueness follows from collision resistance (below). The only squatting risk is therefore a manager reusing a namespace name for different purposes, which is the manager's own responsibility.

Eavesdropping. DID documents, namespaces and object content are public by design. TLS hides the requested identifiers from on-path observers, but not from the manager's origin. Confidential content MUST NOT be stored unencrypted in a namespace; any encryption scheme is defined by that namespace, never by this method. Private keys MUST NOT appear in a DID document or in object content. The salt of §8 need not be secret but MUST be unpredictable.

Modification and insertion (integrity of objects). Versioned object dereferencing is self-certifying: the identifier commits to the content, and clients MUST verify the recomputed multihash (§5.2). A network attacker can therefore deny service but cannot alter versioned content undetected. Inserting a forged version requires a valid signature by an assertionMethod key of the manager on its version descriptor (§5.3), and the previous link forbids forks. Anchors and namespace descriptors are not self-certifying; they rely on TLS and MUST be signed with an assertionMethod key of the manager.

Deletion and omission. A manager, a cache, or an attacker can hide a newer version or a withdrawn object by serving an older, validly signed descriptor. A single response cannot prove that nothing newer exists. Clients SHOULD keep the highest versionTime seen per anchor, SHOULD compare descriptors across independent vantage points, and registries MAY publish descriptors in a transparency log.

Replay and rollback. Serving a stale DID document or an out-of-date "latest version" pointer is possible for whoever controls the origin or a cache. Resolvers SHOULD honor HTTP caching directives conservatively, and registries SHOULD include monotonic versionId/versionTime metadata in DID documents and signed anchor descriptors so rollbacks are detectable. Clients that have seen a descriptor SHOULD refuse to accept an older versionTime for the same anchor.

Man-in-the-middle. TLS certificate validation is REQUIRED for every request (§5.2), and redirects MUST stay on HTTPS. An attacker who can obtain a certificate for the domain is equivalent to a compromise of the origin (see the trust model); versioned content remains protected by its hash, anchors by their signature once the DID document is trusted.

Denial of service and amplification. Resolving one did:cde DID URL makes the resolver issue requests to hosts chosen by the DID's author: the manager's origin and the registry endpoint. Resolvers MUST refuse to connect to loopback, private and link-local addresses (except localhost in development) to avoid server-side request forgery, SHOULD bound the size and number of responses, and SHOULD limit concurrent resolutions per origin. Verification cost grows linearly with the length of a version chain: clients SHOULD cap the chain length and content size they are willing to hash. Registries SHOULD paginate namespace and anchor listings and rate-limit requests; a request is small and the response is bounded, so the method offers no inherent amplification beyond the two origins involved.

Collision and second-preimage resistance. sha2-256 offers 128-bit collision resistance and 256-bit second-preimage resistance, adequate for a globally scoped, adversarial registry. Implementations MUST NOT truncate digests. The multihash header provides the migration path should sha2-256 be weakened (§4.4); registries SHOULD plan a dual-hash publication period for such a migration.

What the cryptographic mechanisms protect. TLS protects the confidentiality and integrity of a request in transit. The content multihash protects the integrity of a version's content, not its authorship or freshness. Signatures by an assertionMethod key protect the authenticity of descriptors (the binding of a version to its object, namespace, predecessor and time). The authentication key protects DID-controller operations. Algorithms are identified in the multihash header and in the key type, so any of them can be replaced.

Thin clients and shared resolvers. A client that trusts a given DID document and holds a versioned DID URL needs nothing else from the registry: it verifies the content by hash. A client that relies on anchors must additionally verify the signature against a key of the DID document. A client that obtains the DID document from a shared resolver trusts that resolver for the document; such clients SHOULD verify the document themselves or check the signature chain of DID document updates (§5.3).

Key management. Method-level authorization derives from the origin, so key rotation is performed by publishing an updated DID document; controllers SHOULD rotate keys by publishing the new key signed by the old one and SHOULD keep a revocation/rotation history available. Verifiers SHOULD check a descriptor's signature against the key that was valid at its versionTime. Loss of domain control is loss of the DID: controllers SHOULD register domains with registrar locks and long renewal periods.

Availability. Resolution and dereferencing require the manager's HTTPS endpoints to be reachable. Deployments with global availability requirements SHOULD serve DID documents and immutable versioned content through redundant infrastructure or content-addressed replication (a CDN or IPFS-style store does not weaken the model, since versioned content is self-certifying).

Residual risks. This method does not remove the following risks. (1) Loss of control of the domain, its registrar account or DNS is loss of the DID, and cannot be recovered cryptographically. (2) A compromised assertionMethod key can sign forged descriptors until the DID document is updated, and nothing revokes signatures already issued. (3) A malicious manager can show different histories to different clients (equivocation); only transparency logs or cross-checking detect it. (4) Hashes cannot be un-published, and content may persist in copies after withdrawal (§8). (5) Availability depends on the manager.

8. Privacy Considerations

This section addresses [DID-CORE] §7.4 and the topics of [RFC6973] §5, each in method-specific terms.

Surveillance. Resolution and dereferencing are HTTPS requests to the manager's origin, which therefore observes resolver IP addresses and the identifiers being looked up, and can follow a client's reading pattern across objects and versions. Clients MAY mitigate this through caching, shared resolvers, or fetching over privacy networks. Managers SHOULD limit logging of dereferencing requests to what operation requires and disclose their policy.

Stored data compromise. A registry stores object content, descriptors and request logs. A breach exposes all of it, and exposes the link between identifiers and requesters if logs are kept. Registries SHOULD encrypt stored data at rest, minimize and expire logs, and SHOULD NOT store personal data in a public namespace without a documented legal basis.

Unsolicited traffic. A DID document advertises a registry endpoint, and namespaces are enumerable if the registry lists them. Registries SHOULD NOT offer unauthenticated enumeration of objects, SHOULD NOT publish contact details in DID documents, and SHOULD rate-limit anonymous requests.

Misattribution. A descriptor signed by a manager asserts that the manager registered a version, not who authored the content, nor that the content is true. Verifiers MUST NOT treat a valid signature or hash as proof of authorship. A hash can also be wrongly read as proof that an individual produced or approved the data it pseudonymizes; namespaces SHOULD state what their identifiers do and do not attest.

Correlation. Object identifiers are pseudonymous content hashes, stable across all uses: the same identifier in different contexts allows those contexts to be linked. A single manager DID is likewise a correlation handle for everything it registers. Incremental version designators were removed from the DID URL syntax (v0.2) for this reason: a counter in a public identifier reveals how many times, and correlated over lookups, how often an object has been revised. Anchor descriptors SHOULD apply the same restraint when listing earlier versions.

Identification. Hashing does not anonymize. If an object's canonical content is or contains personal data, its hash is a stable pseudonym of that data, and anyone holding a candidate content can test it against the identifier (dictionary attack on low-entropy content). Namespaces that store objects derived from personal data MUST include sufficient entropy (a salt or nonce) in the genesis content (§6), and MUST document their approach with regard to applicable data-protection law (e.g. GDPR).

Secondary use. Request logs, descriptor timestamps and the set of identifiers a party looks up can be reused to profile that party or measure the activity of the object's owner. Managers MUST NOT use dereferencing logs for purposes other than operating and securing the registry unless the namespace policy discloses and justifies them.

Disclosure. Published content hashes cannot be unpublished. Erasure obligations are met by deleting the referenced content and withdrawing the object (the registry answers HTTP 410, §5.4); the hash then no longer dereferences, but copies made earlier and the hash itself persist. Anchor descriptors SHOULD expose version metadata only, not the content of other versions. DID documents SHOULD contain only the verification methods and the CdeRegistry service entry, with no personal attributes (data minimization).

Exclusion. Individuals whose data is registered by a manager depend on that manager to withdraw it and cannot control the DID document, the registry or the retention of logs. A manager SHOULD publish how a data subject can request withdrawal of an object, access the metadata held about it, and learn what has been retained. Participation in a namespace MUST NOT require disclosing more personal data than the namespace's purpose needs.

A. Complete ABNF

cde-did-url     = cde-did [ namespace-path ] [ "?" object-query ]
cde-did         = "did:cde:" domain-name [ pct-port ] *( ":" segment )
domain-name     = 1*( label "." ) tld / "localhost"
label           = alphanum [ *61( alphanum / "-" ) alphanum ]
tld             = 2*63ALPHA
pct-port        = "%3" ("a" / "A") 1*5DIGIT
namespace-path  = 1*( "/" segment )
object-query    = "id=" fullid
fullid          = object-id [ ":" version ]
object-id       = multihash-id
version         = multihash-id
multihash-id    = "u" 46base64url-char        ; sha2-256: chars 2-3 are "Ei"
segment         = 1*idchar
idchar          = ALPHA / DIGIT / "." / "-" / "_" / pct-encoded
pct-encoded     = "%" HEXDIG HEXDIG
base64url-char  = ALPHA / DIGIT / "-" / "_"
alphanum        = ALPHA / DIGIT

B. Reference Regular Expression

This section is non-normative.

Python-flavored, with named capture groups; port range (1–65535), multihash decoding and the "no object without namespace" rule are enforced in code, not in the pattern:

^did:(?P<method>cde):(?P<domain>(?:[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,63}|localhost)(?:%3[aA](?P<port>[0-9]{1,5}))?(?P<manager>(?::(?:[a-zA-Z0-9._-]|%[0-9a-fA-F]{2})+)*)(?P<namespace>(?:/(?:[a-zA-Z0-9._-]|%[0-9a-fA-F]{2})+)*)(?:\?id=(?P<objid>uEi[A-Za-z0-9_-]{44})(?::(?P<version>uEi[A-Za-z0-9_-]{44}))?)?$

A reference implementation (regex, multihash construction and decoding, validator, JCS, dereferencing and version-chain verification) and language-neutral conformance vectors are published at https://gitlab.com/cde-public/did-cde-spec (src/, vectors/, tests/).

C. Test Vectors

Input (UTF-8 bytes) Multihash identifier
Example object content uEiBY2MDv7qFBHx4zHft-6W96Va6cqTWy-XUAIgWflo9wPQ
Example object content, revision 2 uEiDKXL8L_QYAt4CwYTupON2G9KOczaTwo3qvKFGXq_MbMQ
{"name":"Meter 42","type":"energy-meter"} uEiAcNtnCW39SiJGB5asrBIUv_kXscLQOAKLQ5iDGSZfCCQ
{"firmware":"1.1","name":"Meter 42","type":"energy-meter"} uEiBDy6jM7j2Zamc6ZoqNrI5yNp8SpZLl2sYhzkWgI54L4Q

Each identifier is 47 characters: u + base64url(0x12 0x20 + SHA-256(content)), no padding.

D. DID Extensions Registry Entry

File to add as methods/cde.json in a pull request to w3c/did-extensions:

{
  "name": "cde",
  "status": "registered",
  "specification": "https://resources.clouddataengine.io/docs/did-cde-spec-v1.0.1.html",
  "contactName": "Olivier Tirat",
  "contactEmail": "olivier.tirat@clouddataengine.io",
  "contactWebsite": "https://clouddataengine.io",
  "verifiableDataRegistry": "Web (HTTPS/DNS)"
}

E. Changelog

This section is non-normative.

Changelog — v1.0.1 (2026-10-16): aligned with Decentralized Identifiers v1.1 (Candidate Recommendation, 5 March 2026), §7. Security (§7) now treats each threat of RFC 3552 and the residual risks; Privacy (§8) now covers each topic of RFC 6973 §5; authorization and authenticity are stated for every operation (§5.2, §5.6); object withdrawal is defined (§5.4); DID Resolution is referenced for resolution results. No change to the identifier syntax or to the test vectors.

v1.0.0 (2026-10-16): first release. Normative additions: signed, hash-chained version descriptors (§5.3, §6); error handling for dereferencing (§5.2); anchor descriptor format (§5.2); genesis salting rule (§6); percent-encoding of namespace segments (§4.3). Editorial fixes: ABNF length of multihash-id aligned between §4.3 and Appendix A; example in §4.5 corrected.

v0.2 (2026-08-21, requested by J.-A. Lauricella): incremental version designators (:vN) are removed from the DID URL syntax. Versions are designated by content multihash only: an incremental counter in a public identifier leaks the number and cadence of an object's revisions (see §8). Registries keep version ordering as internal, non-addressable metadata.

F. References

F.1 Normative references

[DID-CORE]
Decentralized Identifiers (DIDs) v1.1. W3C. 5 March 2026. Candidate Recommendation. URL: https://www.w3.org/TR/did-1.1/
[DID-RESOLUTION]
Decentralized Identifier Resolution (DID Resolution) v0.3. W3C. URL: https://www.w3.org/TR/did-resolution/
[MULTIBASE]
The Multibase Data Format. IETF. URL: https://www.ietf.org/archive/id/draft-multiformats-multibase-08.html
[MULTIHASH]
The Multihash Data Format. IETF. URL: https://www.ietf.org/archive/id/draft-multiformats-multihash-07.html
[RFC2119]
Key words for use in RFCs to Indicate Requirement Levels. S. Bradner. IETF. March 1997. Best Current Practice. URL: https://www.rfc-editor.org/rfc/rfc2119
[RFC3339]
Date and Time on the Internet: Timestamps. G. Klyne; C. Newman. IETF. July 2002. Proposed Standard. URL: https://www.rfc-editor.org/rfc/rfc3339
[RFC3552]
Guidelines for Writing RFC Text on Security Considerations. E. Rescorla; B. Korver. IETF. July 2003. Best Current Practice. URL: https://www.rfc-editor.org/rfc/rfc3552
[RFC4648]
The Base16, Base32, and Base64 Data Encodings. S. Josefsson. IETF. October 2006. Proposed Standard. URL: https://www.rfc-editor.org/rfc/rfc4648
[RFC5234]
Augmented BNF for Syntax Specifications: ABNF. D. Crocker; P. Overell. IETF. January 2008. Internet Standard. URL: https://www.rfc-editor.org/rfc/rfc5234
[RFC6973]
Privacy Considerations for Internet Protocols. A. Cooper; H. Tschofenig; B. Aboba; J. Peterson; J. Morris; M. Hansen; R. Smith. IETF. July 2013. Informational. URL: https://www.rfc-editor.org/rfc/rfc6973
[RFC8174]
Ambiguity of Uppercase vs Lowercase in RFC 2119 Key Words. B. Leiba. IETF. May 2017. Best Current Practice. URL: https://www.rfc-editor.org/rfc/rfc8174
[RFC8785]
JSON Canonicalization Scheme (JCS). A. Rundgren; B. Jordan; S. Erdtman. IETF. June 2020. Informational. URL: https://www.rfc-editor.org/rfc/rfc8785

F.2 Informative references

[DID-EXTENSIONS]
Decentralized Identifier Extensions. W3C. URL: https://www.w3.org/TR/did-extensions/
[DID-WEB]
did:web Method Specification. W3C Credentials Community Group. URL: https://w3c-ccg.github.io/did-method-web/