§ did:cid Method Specification
Specification Status: Draft
Latest Draft: https://archetech.com/didcid-specs/
Governance: Normative under rule 42 of the Archonomicon. Protocol changes are made here first.
- Editors:
- did:cid specification contributors
- Participate:
- GitHub repo
- File a bug
- Commit history
- Implementation:
- Archon, whose description of the method is informative
§ Abstract
The did:cid method specification conforms to the requirements specified in DID-CORE, a W3C Recommendation. For more information about DIDs and DID method specifications, please see the DID Primer.
§ Introduction
The did:cid method is designed to support a P2P identity layer with secure decentralized verifiable credential. DIDs created using this method are used for two categories of DID Subject:
- agent
The did:cid method is optimized for fast, virtually costless identity creation. A signer creates a DID by deriving its identifier from the signed creation operation, without a central registrar or an on-chain transaction. Archon distributes creation, update, and deletion operations through Hyperswarm gossip, except for DIDs using the local registry, with IPFS providing fallback retrieval. Registry anchoring supplies confirmation and ordering separately from content distribution.
§ Design Goals
- Decentralized creation — DIDs are derived from signed creation operations, enabling use by nodes with the required evidence before registry anchoring.
- Decentralized updates — DID mutations are registered on a pluggable registry initially specified at creation and changeable by an authorized registry migration, preserving the decentralization requirement across the entire lifecycle.
- Temporal resolution — DIDs can be resolved at any historical point in time, enabling verification of credentials signed with keys that have since been rotated.
- Agent/Asset duality — The method explicitly distinguishes between key-bearing agents and agent-controlled assets, reflecting the natural authority hierarchy in credential ecosystems.
§ DID Format
did:cid
The did:cid method conforms to the DID-CORE generic DID syntax. A did:cid DID has the following ABNF:
did-cid = "did:cid:" cid-identifier
cid-identifier = CIDv1-base32
; CIDv1-base32: a CID v1 encoded in standard base32
; Example: bafkreiawdmk6fmqc5p237vffyctazpzdgvgqfdj2i3hx2idtodxkwhyj5m
The cid-identifier is the content identifier generated by applying JCS to the initial seed document and computing its CID v1 in standard base32 encoding.
§ Example
did:cid:bafkreiawdmk6fmqc5p237vffyctazpzdgvgqfdj2i3hx2idtodxkwhyj5m
§ DID URL Syntax
A did:cid DID URL extends the DID with the standard URI components defined by the DID-CORE DID URL grammar:
did-url = did-cid path-abempty [ "?" query ] [ "#" fragment ]
| Component | Purpose in did:cid |
|---|---|
path (/…) |
Selects a method-specific dereferenceable resource of the DID. This method defines /data and /registration (see DID URL Dereferencing). |
query (?…) |
Selects a version to resolve or dereference. This method honors versionTime and versionSequence. |
fragment (#…) |
Identifies a node within the DID document (e.g. #key-1), resolved client-side against the resolved document. |
The fragment component is the most commonly used, for referencing a verification method within a DID document:
did:cid:bafkreiawdmk6fmqc5p237vffyctazpzdgvgqfdj2i3hx2idtodxkwhyj5m#key-1
Earlier drafts of the DID specification allowed a ;-delimited service matrix parameter (did:cid:<cid>;service=…). DID-CORE 1.0 removed this form; service selection, where supported, uses the registered service and relativeRef query parameters. The did:cid method does not use the ;service matrix-parameter form.
§ Method-Specific Identifier
The method-specific identifier is a CID v1 in base32 encoding. This identifier is deterministic — the same seed document always produces the same CID — which enables content-addressed identity.
Because the DID suffix is derived from the content hash of the seed document, any change to the seed document produces a different DID. There is no mechanism to alter a seed document after creation — mutations are expressed through successive update operations recorded on the registry.
§ DID Document
A did:cid resolution returns the three members defined by the DID-CORE DID Resolution data model — the resolution result:
{
"didDocument": { ... },
"didResolutionMetadata": {
"contentType": "application/did+ld+json"
},
"didDocumentMetadata": { ... }
}
didDocument and didDocumentMetadata conform to DID-CORE; didResolutionMetadata conforms to the DID Resolution specification and carries the contentType of the returned representation (see the Representations subsection under DID Resolution).
The method-specific didDocumentData and didDocumentRegistration objects are not part of the resolution result. They are Archon extensions (described in the Archon Extensions to DID Core section), retrieved separately as dereferenceable resources at the /data and /registration DID URLs (see DID URL Dereferencing). The examples in the subsections below show the resolution result for each DID type, as returned by GET /1.0/identifiers/<did>.
The operation chain is the authoritative source of truth for a did:cid DID. The Gatekeeper stores individual operations (create, update, delete) and reconstructs the DID document by selecting and replaying predecessor-linked histories under Protocol Rules, including ordinal key and canonical-CID sibling preference. Implementations MAY cache resolved documents for performance, but any cached result MUST remain consistent with a fresh replay of the canonical operation chain.
§ Agent DID Document
A resolved agent DID document includes a verification method and the standard DID Core verification relationships:
{
"didDocument": {
"@context": [
"https://www.w3.org/ns/did/v1"
],
"id": "did:cid:bagaaiera7apdjgpe7jleguoioddew7oqqxn2iqlsowktnbnqksf7bpzuntka",
"verificationMethod": [
{
"id": "#key-1",
"controller": "did:cid:bagaaiera7apdjgpe7jleguoioddew7oqqxn2iqlsowktnbnqksf7bpzuntka",
"type": "EcdsaSecp256k1VerificationKey2019",
"publicKeyJwk": {
"kty": "EC",
"crv": "secp256k1",
"x": "OSd_CMNPrDPDsV5YoWajZol2ZUGeXD8hR3XubkcWcX4",
"y": "yBLNwQllxyR5Omgo9b7LmJEfd1pGNiZZqzgqafZ4Qcs"
}
}
],
"authentication": [
"#key-1"
],
"assertionMethod": [
"#key-1"
],
"capabilityInvocation": [
"#key-1"
]
},
"didResolutionMetadata": {
"contentType": "application/did+ld+json"
},
"didDocumentMetadata": {
"created": "2026-09-22T00:00:00Z",
"versionId": "bagaaiera7apdjgpe7jleguoioddew7oqqxn2iqlsowktnbnqksf7bpzuntka",
"versionSequence": "1"
}
}
§ Verification Relationships
did:cid agent DIDs support the following DID-CORE verification relationships:
| Relationship | Purpose |
|---|---|
capabilityInvocation |
Expresses permission to sign DID operations; current version-1 verification still checks named-method membership only |
authentication |
Proves control of the DID — used when the agent must authenticate itself to a verifier |
assertionMethod |
Signs verifiable credentials and other assertions |
The initial verification method is referenced as #key-1. After key rotation via an update operation, the new method identifier increments (#key-2, #key-3, etc.) and the client updates relationships that refer to the rotated key, including capabilityInvocation. This incrementing name is a client convention, not a protocol requirement; a method name may be retained while its key changes. Historical keys remain resolvable via temporal resolution.
§ Authentication
An agent authenticates by signing a challenge with the private key corresponding to the method in its authentication verification relationship. A verifier resolves the agent’s DID (at the time of the challenge) to obtain the then-active public key, then verifies the signature.
This enables DID-native, decentralized authentication: any party that can resolve a did:cid DID can authenticate a did:cid agent without relying on a centralized identity provider or certificate authority.
§ Service Endpoints
Agent DIDs may include service endpoint entries per DID-CORE Section 5.4. Services are declared in the service array and updated via standard DID update operations:
{
"service": [
{
"id": "#lightning",
"type": "lightning",
"serviceEndpoint": "https://drawbridge.example.com/lightning"
}
]
}
Service endpoints are optional. Any DID Core-conformant service type may be used; did:cid imposes no constraints on service endpoint structure beyond those defined in DID-CORE.
§ Asset DID Document
A resolved asset DID document identifies its controlling agent. That agent authorizes its updates, transfers, and deletion. Its application data is not part of the resolution result — it is dereferenced separately at /data (shown below):
{
"didDocument": {
"@context": ["https://www.w3.org/ns/did/v1"],
"id": "did:cid:bagaaiera...asset",
"controller": "did:cid:bagaaieradidcs4hohalzexldr5mdmbmt553tqq3ifqd56mvhifppvyfdc32q"
},
"didResolutionMetadata": {
"contentType": "application/did+ld+json"
},
"didDocumentMetadata": {
"created": "2026-01-14T19:32:24Z",
"versionId": "bagaaiera...asset",
"versionSequence": "1"
}
}
The asset’s application data is retrieved by dereferencing did:cid:<cid>/data (see DID URL Dereferencing):
{
"group": {
"name": "testgroup",
"members": []
}
}
Asset DIDs support transfer of control: a controller may update the controller field to a new agent DID via a valid update operation. Only one controller is valid at any given time.
§ Metadata Objects
§ didResolutionMetadata
The didResolutionMetadata object is added by the resolver at resolution time and conforms to the DID Resolution specification:
| Field | Description |
|---|---|
contentType |
Media type of the returned representation (application/did+ld+json or application/did+json — see the Representations subsection under DID Resolution) |
§ didDocumentMetadata
The didDocumentMetadata object conforms to DID-CORE and includes Archon-specific extensions:
| Field | Source | Description |
|---|---|---|
created |
DID Core | ISO 8601 timestamp of initial DID creation |
updated |
DID Core | ISO 8601 timestamp of most recent update |
deactivated |
DID Core | true if the DID has been revoked via a delete operation |
versionId |
DID Core | CID of the most recent operation in the operation chain |
versionSequence |
Archon | Sequence number of the most recent operation, returned as a string |
The method-specific anchoring-provenance fields confirmed and timestamp are not DID-CORE document metadata and are therefore not carried in didDocumentMetadata. They are returned with the /registration resource instead — see DID URL Dereferencing.
§ DID Lifecycle
DIDs are created without a central registrar or registry transaction. Each DID identifies its signed creation operation by content hash. A node can resolve it when it has the creation operation and the evidence needed for authorization.
Archon distributes creation, update, and deletion operations, including batch asset operations, through Hyperswarm gossip, except for DIDs using the local registry. Nodes retain that evidence locally; IPFS provides fallback retrieval for missing content. This gossip transport is used even when a DID selects a blockchain registry.
The chosen registry supplies confirmation and ordering under Protocol Rules. Creation does not need to wait for a chain anchor, although creation operations can also be included in anchored batches. Creation selects the initial registry. The predecessor registry confirms a migration, and the new registry governs its successors; the content-addressed identity does not change.
§ Lifecycle States
| State | deactivated |
Document | Description |
|---|---|---|---|
| Created | false |
Seed document | Content-derived identity, resolvable when required evidence is available |
| Active | false |
Latest version | One or more valid updates applied |
| Revoked | true |
id only |
Terminal on the accepted branch; later evidence may replace that branch |
§ Protocol Rules
This section specifies version-1 operation acceptance and evidence selection, as deployed with Archon v0.13. It is normative: implementations MUST conform to it, and a difference between an implementation and this section, or between two implementations, is a defect. The conformant DID Core result remains the separate presentation defined in DID Resolution and DID URL Dereferencing.
§ Distribution and retrieval
A DID is derived by signing and hashing its creation operation, without a registrar or registry transaction. Archon distributes creation, update, and deletion operations—including batch asset operations—through Hyperswarm gossip. Operations for DIDs using the local registry are excluded from gossip. Gossip receipt alone does not confer chain confirmation. Nodes use retained operation/history data first, with IPFS as fallback retrieval for missing content. IPFS storage and optional auxiliary pinning support availability; they do not create identity or grant authorization.
§ Identity and admission
The operation ID is the CIDv1 lowercase-base32 identifier of the complete signed operation, including its proof, serialized with JCS (RFC 8785). Archon uses the JSON multicodec (0x0200) and SHA-256 multihash. A creation’s DID is derived from that operation and its method prefix. Updates and deletions target their signed did. An envelope did, when supplied, MUST match this target; a creation’s extraneous did cannot override content-derived identity. Signature equality alone is not operation identity.
A retrieval CID may refer to noncanonical JSON encoding of the same operation. Implementations derive the canonical operation ID from fetched content and retain the reference as a content-backed alias. A known alias may satisfy an existing signed previd; neither the signed predecessor bytes nor the operation may be rewritten. Peer-claimed IDs alone MUST NOT establish aliases. The historical TypeScript numeric-key serialization reference is also derived from known content for predecessor compatibility; this does not change new canonical IDs. Unknown references remain unresolved.
This specification defines registration version 1. Operations governed by this version MUST use registration.version: 1. Registration requires type equal to agent or asset, and a registry name of 1–128 characters matching [A-Za-z0-9][A-Za-z0-9:_-]*. Registry validation is name-shape validation, not a closed list of supported chains. Local submission/queue support is a separate node capability.
Version 1 retains the maximum operation size of 65,536 UTF-16 code units in compact JSON serialization; it is not a 65,536 UTF-8 byte limit. Optional undefined object members in SDK inputs serialize as omitted JSON members; this does not make explicit null a valid registration or document replacement.
§ State transitions
- An agent creation is self-signed by
publicJwk, names#key-1, and MUST NOT supply an explicit controller. Agents remain self-controlled: an updated document may omit its controller or name only its own DID. - An asset creation or resulting ownership transfer requires one active, self-controlled agent owner. Assets cannot own assets. A local-only controller cannot create a non-local asset. A transfer is signed by the previous owner; no new-owner countersignature is required.
- Supplied
didDocument,didDocumentData, anddidDocumentRegistrationcomponents replace the whole component. Omitted components retain their previous values. No field-level merge occurs. Resolver metadata is not writable operation state. - An update supplies at least one of those three components, and no supplied component is
null. AdidDocumentordidDocumentRegistrationreplacement is an object. AdidDocumentDatareplacement is any other JSON value:"",0,false, an array and an empty object are all valid. The same rule applies wherever an operation arrives: direct submission, import and replay. - The resulting document retains its DID. A registration replacement retains genesis version, subject type, and prefix presence/value. A supplied replacement must contain all required registration fields; null, scalar, array, or partial registration replacements are invalid.
- The predecessor registration determines which registry confirms a successor. A registry migration is confirmed on the old registry; its successors use the new one.
- A deletion requires a live predecessor and the same authority selection as an update. It clears the DID document to its
id, clears data, retains registration, marks deactivation, and omitsupdated. No successor may extend a deletion; later evidence can replace the branch containing it.
Verification-method IDs MUST be unique after resolving relative fragments against the document DID: #key-1 and <did>#key-1 cannot both occur, even with identical keys. Distinct method names may share key material, and a later version may replace the key under an existing method name. The IDs compared are those of the entries of verificationMethod. A method embedded in a relationship array, such as authentication, is not compared, and cannot sign an operation: verification looks for the named method in verificationMethod only.
Current version-1 operation verification selects the named method from verificationMethod; it does not enforce membership in capabilityInvocation. Stricter relationship enforcement is deferred for compatibility. Credential proof-purpose policy is separate.
Optional validUntil uses the accepted RFC 3339 string grammar and may change or be omitted in a complete replacement. A replacement MUST NOT add validUntil when the predecessor registration has none, so a permanent DID stays permanent. Expiry drives local garbage collection, not a new per-operation authorization deadline or a signed deletion. Convergence claims require the same retained evidence, not identical local GC timing.
§ Operation Authorization
Direct update/delete submission requires the current accepted head as previd before storage or queue writes. Import may select an earlier live predecessor when evaluating a competing branch; missing predecessors remain deferred. The predecessor reference identifies the complete previous operation, not a resolved-document hash.
Agent updates and deletions use the named key in their selected predecessor document. Asset operations use the predecessor owner (or creation’s proposed owner), with the controller document selected as follows:
- Without qualifying chain evidence, select controller history at the operation’s
proof.created. - With a chain receipt and a controller whose confirmed prefix is chain-anchored, controller events on that same registry must be strictly before the operation’s ordinal. Controller events on other registries are bounded by the operation’s block time; ordinals do not compare across registries.
- Chain-position selection also requires the controller version selected at that position to be registered on a chain. A controller that had moved to Hyperswarm, local or pin by then is selected at the operation’s
proof.created, although its confirmed prefix is anchored. - Determine the controller’s confirmed prefix using each version’s predecessor registry. Wrong-registry receipts and unconfirmed suffixes cannot establish chain anchoring. Pin has no chain clock and cannot itself establish anchoring.
- Local, Hyperswarm, and pin receipts always use proof-time authorization, even if their envelopes contain registration metadata or ordinals.
Hyperswarm and pin envelope times are normalized to the operation’s proof.created; local creation uses operation created, and local updates/deletions use proof.created. The same normalization applies to recovered candidates. Historical bounds select a predecessor-linked prefix: stop at an excluded predecessor rather than skipping it to admit a later successor with an earlier claimed time. Chain receipts retain authoritative block time and ordinal.
A key retired by the selected chain position cannot authorize an asset operation there, even if the operation claims it was signed earlier. Verification checks the signature against the selected document; it MUST NOT also require a second proof-time document after choosing chain-position authority.
§ Chain receipts and anchored batches
A chain event MUST contain a valid registry name, an RFC 3339 authoritative block time, and complete registration metadata: height, index, txid, batch, opidx. Position fields are nonnegative safe integers; txid and batch are nonempty strings. batch identifies the anchored batch DID.
The ordinal is [height, index, ...registryPosition, opidx], with first, second, and last components matching registration. Bundled BTC, ZEC, ETH, and SOL mediators use [height, index, opidx]. Additional registry position components participate in lexicographic comparison. Incomplete chain receipts are invalid; there is no metadata-free chain-receipt category. Unanchored ordinals are optional; when present, they are arrays of nonnegative safe integers (possibly empty).
The anchored batch DID commits to its signed create operation and original ordered batch CID list. Mediators MUST retrieve its genesis DID document and use didDocumentData.batch.ops, never the mutable current batch asset. Archon’s getGenesis(did) (GET /api/v1/did/:did/genesis) checks content identity and creation structure without resolving publisher authority or changing accepted history. It returns the genesis document set, not the raw operation and not a DID Core resolution result. Genesis retrieval checks the local operation cache first and falls back to IPFS when it lacks valid content. The original signed operation remains retrievable by CID for provenance; genesis retrieval does not assert signature authorization.
CID batch ingress requires the chain position prefix and complete height, index, txid, batch metadata. It derives opidx from each CID’s original list index, including gaps for unavailable entries. Later batch updates cannot change an existing anchor’s operation order. Each contained operation undergoes normal authorization.
Only locally trusted registry mediators supply confirmation on that registry. Peer-relayed chain claims become unconfirmed Hyperswarm hints. Mediators skip unavailable batches/operations, persist failures for retry across restart, and continue with later entries; unavailable and nonexistent content cannot be distinguished. Recovery retains original chain positions and times.
A reorganization withdraws orphaned receipts and block metadata before committing a new scan position and removes orphaned discovered batches. Signed operations remain as unconfirmed hints; dependent histories are replayed. Bundled Ethereum and Solana imports use finalized RPC data with no confirmed/latest fallback. Bitcoin and Zcash retain confirmation-depth scanning and reorg recovery. Storage pinning supplies no chain ordering priority. When enabled as a DID registry, a pin receipt can confirm a pin-registered DID without establishing chain anchoring.
§ Deterministic selection and replay
Among valid competing successors of one predecessor:
- A confirmation on the predecessor’s expected chain registry outranks provisional hints.
- Competing confirmations on that chain compare complete ordinals lexicographically; equal ordinals for distinct operations compare canonical CID.
- If neither confirms on the expected chain, the lexicographically smallest canonical CID wins, using ASCII order of lowercase base32 strings. This includes local, Hyperswarm, pin, and wrong-registry anchors. Receipt/proof timestamps and delivery order do not choose these siblings.
This is sibling preference, not a global CID sort; predecessors still precede successors. Repeated anchors of the same operation remain distinct evidence. An earlier valid expected-chain anchor replaces a later accepted anchor only after reauthorization at the earlier position. Local and Hyperswarm candidate deduplication retains the first observation of an operation per registry after intrinsic-time normalization. Pin uses the same intrinsic clock and authorization rule, but its candidate retention also distinguishes ordinal representations; those ordinals never choose competing unanchored siblings.
Imported candidates, including currently rejected and displaced branches, are retained separately from accepted histories. Changes to controller history or anchor evidence MUST reconsider dependent histories and deferred predecessors. Removing controller evidence also revalidates dependents. Startup reconstructs accepted state before serving history reads. Accepted-history exports alone do not preserve every candidate or retrieval alias required for reconstruction.
confirmed records expected-registry anchoring; it does not prove all controller history is available or authorization is irrevocable. Nodes compute their best state from available evidence. Agreement requires the same retained evidence, protocol rules, and interpretation of trusted registry data.
§ Formally Proved Properties
Archon’s Lean proofs establish these major behaviors of the protocol model:
- Convergence: The same retained operations and chain evidence produce the same accepted histories and semantic DID states, regardless of arrival order or duplicates.
- Termination: Modeled reconciliation finishes at a stable result, including reconstruction from stale published histories.
- Deterministic fork selection: Competing operations and repeated anchors follow the canonical-CID and chain-position rules, including authorization at the selected anchor.
- Agent authorization: Updates follow predecessor keys and named verification methods, including key rotation and deletion.
- Asset authorization: Ownership, transfers, and updates use the appropriate historical controller state.
- Registry migration: The old registry confirms a migration; the new registry governs its successors.
- Document transitions: Whole-component replacement, omitted-component preservation, and deletion produce consistent final state.
These results apply to the protocol model under its documented assumptions: finite retained evidence, the same complete canonical operations and normalized predecessor references, the same protocol configuration, and an authoritative chain snapshot satisfying the receipt contracts. Semantic equality includes accepted operation paths, document/data/registration values, deactivation, and the receipt facts used for historical authorization; it is not byte-for-byte equality of every API response.
Signed TypeScript/Rust correspondence tests connect the model to Archon’s implementations. They do not constitute a universal proof of the executable code, cryptographic primitives, storage/concurrency behavior, or network delivery. The result does not promise agreement between nodes retaining different evidence; if evidence eventually settles to the same set, modeled reconciliation reaches the same result.
The top-level theorem is protocol_convergence in Archon’s proofs/agent-convergence/ProtocolConvergence.lean, with the settled-evidence corollary protocol_eventual_convergence. It is checked in Archon’s CI with only the propext and Quot.sound axioms and no admitted proofs. A protocol change that affects the rules these properties depend on is not Proposed until the proofs are updated and still check with no admitted steps and no axioms or assumptions beyond those above, unless this section records that the change gives up or narrows the property.
See the exact theorem claim and assumptions and the completed proof roadmap.
§ Change Status
A change to the protocol is made by changing this specification. Each change is recorded here with its status and the evidence that it is backwards compatible.
- Proposed: this specification describes the change, and every implementation that accepts operations or resolves DIDs passes signed test vectors for it, published in Archon and referenced here. No implementation releases a change before it is Proposed.
- Deployed: every such implementation has released the change and run it on the live network without diverging.
- Compatibility: the change does not alter the result of any accepted history (its accepted operations, DID document, data, registration, deactivation, and the receipt facts used to authorize them). The evidence is either that this holds by construction, or an audit of retained histories stating which histories it covered. A change for which neither can be given requires an adopted Archonomicon proposal.
- Corrections: correcting an implementation to conform to this specification, or correcting this specification where it misdescribes behaviour that every implementation shares, is not a protocol change and is not recorded here. The exception is a correction that changes the result of an accepted history: it is subject to the compatibility requirement above.
| Change | Status | Compatibility evidence | Test vectors |
|---|---|---|---|
A registration replacement cannot add validUntil when the predecessor registration has none (archon#1466) |
Proposed | Audit on 2026-10-28 of the production database shared by all production nodes: 33,314 accepted DIDs and 65,234 accepted events, including 292 registration replacements, and the candidate journal. No accepted or candidate operation adds validUntil to a DID without one. Histories already removed by garbage collection are not retained and were not covered. |
registration-transition-v1-vectors.json: add_expiry_to_permanent, replace_permanent, readd_expiry_after_removal |
An update supplies at least one of didDocument, didDocumentData and didDocumentRegistration, and no supplied component is null; didDocumentData may be any other JSON value (archon#1661, archon#1662) |
Proposed | Audit on 2026-11-18 of the production database: 33,328 accepted DIDs and 65,311 accepted operations, read through the Gatekeeper’s export, and the candidate journal’s 38,572 entries and 65,711 events, read from the database. No accepted or candidate update lacks a component or supplies a null one, so the rule rejects nothing retained. No candidate update supplies "", 0 or false as data, so the rule admits nothing an implementation had refused. Histories already removed by garbage collection are not retained and were not covered. |
update-component-v1-vectors.json: all cases |
versionId is a resolution option, selecting one operation of the accepted history by its canonical CID (archon#1463, #11) |
Deployed | By construction: resolution reads the accepted history and does not change it. The reference implementations released this in @didcid/gatekeeper 0.8.0, before this specification described it; it is recorded here after the fact. |
resolution-option-v1-vectors.json: version_id_of_creation, version_id_of_update, version_id_unknown, version_id_with_sequence |
A versionTime that is not a date-time, or a versionSequence that is not a positive integer, is invalidOptions and is not answered with a document (archon#1664, #16) |
Proposed | By construction: only the response to a request with an unusable option changes. No accepted history is read or written differently. | resolution-option-v1-vectors.json: the time_* and sequence_* cases |
A versionSequence that names a version the resolution does not reach is notFound and is not answered with an earlier version (archon#1664, #16) |
Proposed | By construction: only the response to such a request changes. No accepted history is read or written differently. | resolution-option-v1-vectors.json: sequence_past_the_end, sequence_far_past_the_end, sequence_not_reached_within_time, sequence_reached_within_time, sequence_one_within_time |
The version-1 rules deployed on 2026-10-05 are the baseline; the table lists changes made since.
§ DID Creation
create operation
A DID is derived from its signed creation operation without a registrar or registry transaction. Archon distributes creation, update, and deletion operations through Hyperswarm gossip, except for DIDs using the local registry; IPFS provides fallback retrieval. Registry confirmation is separate from creation and distribution.
The did:cid method supports two main types of DID Subject: agent and asset. Agents have keys and control assets. Assets are controlled by a single agent (the owner of the asset), which authorizes their updates, transfers, and deletion. Agents cannot delegate control to another DID. The two types have slightly different creation methods.
§ Create an Agent DID
To create an agent DID, the client must sign and submit a create operation to a node:
-
Generate a new private key
- We recommend deriving a new private key from a Hierarchical Deterministic (HD) wallet (BIP-32).
-
Generate a public key from the private key.
-
Convert the public key to JWK format.
-
Create an operation object with these fields in any order:
Field Required Description typeYes Must be "create"registration.versionYes Must be 1registration.typeYes Must be "agent"registration.registryYes A valid registry identifier, e.g. "BTC:mainnet","hyperswarm"publicJwkYes The public key in JWK format createdYes ISO 8601 timestamp blockidNo Current block ID on registry (if registry is a blockchain) -
Sign the JSON with the private key corresponding to the public key (this enables the node to verify that the operation is coming from the owner of the public key).
- The
proof.verificationMethodmust be set to#key-1(a relative reference) since the DID does not yet exist.
- The
-
Submit the signed operation to a node’s DID endpoint.
§ Agent Create Example
{
"type": "create",
"created": "2026-09-22T00:00:00.000Z",
"registration": {
"version": 1,
"type": "agent",
"registry": "hyperswarm"
},
"publicJwk": {
"kty": "EC",
"crv": "secp256k1",
"x": "OSd_CMNPrDPDsV5YoWajZol2ZUGeXD8hR3XubkcWcX4",
"y": "yBLNwQllxyR5Omgo9b7LmJEfd1pGNiZZqzgqafZ4Qcs"
},
"proof": {
"type": "DataIntegrityProof",
"cryptosuite": "archon-ecdsa-secp256k1-jcs-2026",
"created": "2026-09-22T00:00:00.001Z",
"verificationMethod": "#key-1",
"proofPurpose": "capabilityInvocation",
"proofValue": "esafZoTsLCbrza6GTFuca4sFFHT4S4FJFT9KwBqNhMQXneC5gPgjdNraDML2UXZ0xHf4XScAFm-MZjV_jFsUFw"
}
}
Upon receiving the operation, the node must:
- Verify the proof.
- Apply JCS to the operation object.
- Retain the seed document and distribute it through Hyperswarm unless the DID uses the
localregistry. Archon also stores content in IPFS for fallback retrieval; storage does not grant the identifier or authorize the operation.
The complete signed agent operation above has canonical CID bagaaiera7apdjgpe7jleguoioddew7oqqxn2iqlsowktnbnqksf7bpzuntka, yielding DID did:cid:bagaaiera7apdjgpe7jleguoioddew7oqqxn2iqlsowktnbnqksf7bpzuntka.
These examples use public synthetic private keys (32 bytes of 0x4a for the initial agent key and 0x4b for its later rotation). Never use these keys for an identity.
§ Create an Asset DID
To create an asset DID, the client must sign and submit a create operation to a node. The asset is controlled by an existing agent, which signs its creation.
-
Create an operation object with these fields in any order:
Field Required Description typeYes Must be "create"registration.versionYes Must be 1registration.typeYes Must be "asset"registration.registryYes A valid registry identifier controllerYes The DID of the owner/controller agent dataYes Any non-empty JSON data payload createdYes ISO 8601 timestamp blockidNo Current block ID on registry (if blockchain) -
Sign the JSON with the private key of the controller.
- The
proof.verificationMethodmust be the full DID reference of the controller (e.g.,did:cid:abc123#key-1).
- The
-
Submit the signed operation to a node’s DID endpoint.
§ Asset Create Example
{
"type": "create",
"created": "2026-09-22T00:00:01.000Z",
"registration": {
"version": 1,
"type": "asset",
"registry": "hyperswarm"
},
"controller": "did:cid:bagaaiera7apdjgpe7jleguoioddew7oqqxn2iqlsowktnbnqksf7bpzuntka",
"data": {},
"proof": {
"type": "DataIntegrityProof",
"cryptosuite": "archon-ecdsa-secp256k1-jcs-2026",
"created": "2026-09-22T00:00:01.001Z",
"verificationMethod": "did:cid:bagaaiera7apdjgpe7jleguoioddew7oqqxn2iqlsowktnbnqksf7bpzuntka#key-1",
"proofPurpose": "capabilityInvocation",
"proofValue": "9IBMDVoad50nqfV4N-RMHCb4kY-6Y5pg1to7hJc8DFlGGKg53_ikOzGq5wrvfC68oj4QI5dVdQHLajz7S99J_Q"
}
}
Upon receiving the operation, the node must:
- Verify the proof is valid for the specified controller.
- Apply JCS to the operation object.
- Retain the seed document and distribute it through Hyperswarm unless the DID uses the
localregistry, with IPFS available for fallback retrieval.
The asset example has DID did:cid:bagaaierancfl35mj7m4gejwewe2no335bkl527gjlz22dwba5sgybdvevt4q. Its controller is the agent above. Both creation forms MUST satisfy the Protocol Rules, including identity, registration, size, and authorization checks.
§ DID Update
update operation
A DID Update is a change to any of the documents associated with the DID. To initiate an update, the client must sign an operation that includes the following fields:
| Field | Required | Description |
|---|---|---|
type |
Yes | Must be "update" |
did |
Yes | The DID being updated |
doc |
Yes | The new version of the document set (may include any of didDocument, didDocumentData, didDocumentRegistration) |
previd |
Yes | The CID of the previous operation (collision-prevention hash link) |
blockid |
No | Current block ID on registry (if blockchain) |
§ Update Flow
- Create an update operation object with the fields above.
- Sign the JSON with the private key of the controller of the DID.
- Submit the signed operation to a node’s DID endpoint.
It is recommended that the client fetches the current version of the document and metadata, makes changes to it, then submits the new version in an update operation in order to preserve fields that should not change.
§ Key Rotation Example
{
"type": "update",
"did": "did:cid:bagaaiera7apdjgpe7jleguoioddew7oqqxn2iqlsowktnbnqksf7bpzuntka",
"previd": "bagaaiera7apdjgpe7jleguoioddew7oqqxn2iqlsowktnbnqksf7bpzuntka",
"doc": {
"didDocument": {
"@context": [
"https://www.w3.org/ns/did/v1"
],
"id": "did:cid:bagaaiera7apdjgpe7jleguoioddew7oqqxn2iqlsowktnbnqksf7bpzuntka",
"verificationMethod": [
{
"id": "#key-2",
"controller": "did:cid:bagaaiera7apdjgpe7jleguoioddew7oqqxn2iqlsowktnbnqksf7bpzuntka",
"type": "EcdsaSecp256k1VerificationKey2019",
"publicKeyJwk": {
"kty": "EC",
"crv": "secp256k1",
"x": "0yuKivfjdnOfFnVwfItXxq2fAQxbqCxg2XO_ekK-V3w",
"y": "IeSj9ICGo6vRMWffZBI0u0faTH9GX0tq7ipG3guSQC0"
}
}
],
"authentication": [
"#key-2"
],
"assertionMethod": [
"#key-2"
],
"capabilityInvocation": [
"#key-2"
]
}
},
"proof": {
"type": "DataIntegrityProof",
"cryptosuite": "archon-ecdsa-secp256k1-jcs-2026",
"created": "2026-09-22T00:00:02.000Z",
"verificationMethod": "did:cid:bagaaiera7apdjgpe7jleguoioddew7oqqxn2iqlsowktnbnqksf7bpzuntka#key-1",
"proofPurpose": "capabilityInvocation",
"proofValue": "vaIoFAAKhfzYRY3hrJNZ4QepScthCTOEREgDN-J1yhBtFoYA5GxkkUXWVSMPQaVFZ4AKY4UMgYFxgEHGM5jH2g"
}
}
Upon receiving the operation, the node must:
- Select the authorizing document under Operation Authorization and verify the proof.
- For direct submission, require the current accepted head as
previd. Imported competing branches use their selected predecessor under Protocol Rules. - Record the operation on the registry selected by the predecessor’s registration (or forward the request to a trusted node that supports the specified registry).
§ Batch vs. Immediate Registration
For registries such as BTC with non-trivial transaction costs, update operations will be placed in a queue and registered periodically in a batch in order to balance costs and latency. If the registry has trivial transaction costs, the update operation may be distributed individually and immediately. This method defers this tradeoff between cost, speed, and security to the node operators.
Supplied document components replace the entire component; omitted components remain unchanged. See Protocol Rules for immutable fields, registry migration, and competing updates. The rotation above is signed by the predecessor key #key-1 and installs #key-2.
§ DID Revocation
delete operation
A deletion is terminal on the accepted branch: no update may extend that deletion. Resolution returns deactivated: true, an id-only DID document, empty data, and retained registration; updated is omitted. Later controller or anchor evidence can replace the accepted branch, including its deletion. This is evidence revalidation, not an operation that revives a validly deleted branch.
§ Revocation Flow
To revoke a DID, the client must sign and submit a delete operation to a node:
| Field | Required | Description |
|---|---|---|
type |
Yes | Must be "delete" |
did |
Yes | The DID to be deleted |
previd |
Yes | The CID of the previous operation |
blockid |
No | Current block ID on registry (if blockchain) |
§ Delete Operation Example
{
"type": "delete",
"did": "did:cid:bagaaierancfl35mj7m4gejwewe2no335bkl527gjlz22dwba5sgybdvevt4q",
"previd": "bagaaierancfl35mj7m4gejwewe2no335bkl527gjlz22dwba5sgybdvevt4q",
"proof": {
"type": "DataIntegrityProof",
"cryptosuite": "archon-ecdsa-secp256k1-jcs-2026",
"created": "2026-09-22T00:00:03.000Z",
"verificationMethod": "did:cid:bagaaiera7apdjgpe7jleguoioddew7oqqxn2iqlsowktnbnqksf7bpzuntka#key-2",
"proofPurpose": "capabilityInvocation",
"proofValue": "dZGXrKfuK7exvAVncxlzblvjsuph0bi1o8gn9cQKsh9kS9p08D4X3Huweu-b6cKbdF8c9P1-Hwx35Iysx0No2w"
}
}
Upon receiving the operation, the node must:
- Select the authorizing document under Operation Authorization and verify the proof.
- For direct submission require the current head as
previd; import evaluates the selected live predecessor. - Record the operation on the predecessor’s registry (or forward the request to a trusted node that supports the specified registry).
§ Post-Revocation Resolution
After revocation is confirmed on the DID’s registry, resolving the DID returns the following result:
{
"didDocument": {
"id": "did:cid:bagaaierancfl35mj7m4gejwewe2no335bkl527gjlz22dwba5sgybdvevt4q"
},
"didResolutionMetadata": {
"contentType": "application/did+ld+json"
},
"didDocumentMetadata": {
"created": "2026-09-22T00:00:01Z",
"deleted": "2026-09-22T00:00:03Z",
"deactivated": true,
"versionSequence": "2",
"versionId": "bagaaierafiknyfexk6badnlvglrmkr57lbijuippd3vp6kql5qtj3i6t267q"
}
}
The metadata deactivated field is set to true to conform to the DID-CORE specification for DID Document Metadata. Resolution of a revoked DID does not error: the revoked DID’s data resource, dereferenced at /data, returns an empty object ({}) with HTTP 200.
No recovery operation can extend a valid deletion. Preserve credentials and references before deleting a DID; later evidence revalidation is not a user recovery mechanism.
§ DID Resolution
resolution
Resolution is the operation of returning a DID Document and its metadata for a given DID. It is distinct from dereferencing, which returns a resource identified by a DID URL (see DID URL Dereferencing).
Given a DID and an optional resolution time, the resolver uses its locally retained operation history and seed document, ordinarily received through Hyperswarm gossip. When creation content is missing locally, it retrieves that content from IPFS using the DID suffix as the CID. Retrieved content is parsed and validated before use; the retrieval channel does not establish authorization.
§ Resolution Options
The did:cid method supports the following resolution options per DID-CORE:
| Option | Type | Description |
|---|---|---|
versionTime |
RFC 3339 date-time | Resolve the DID document as it existed at or before this point in time |
versionSequence |
positive integer | Resolve at a specific operation sequence number (1-indexed from creation) |
versionId |
operation CID | Resolve at one operation, named by its canonical CID |
If no option is specified, the resolver returns the most recent confirmed version.
versionTimeis a date-time with a zone designator,Zor a numeric offset, such as2026-11-18T11:30:00Z. Fractional seconds are accepted, sincedid:cidtimestamps carry them.versionSequenceis a positive integer in decimal digits, no greater than 9007199254740991 (2^53 − 1), the largest integer RFC 7493 treats as exactly representable in JSON. It names one version.versionTimeandversionSequencemay be given together, and the version named must then fall within the time bound.versionIdselects the document as of one operation in the accepted history. The value is the operation’s canonical CID, the value returned asversionIdin document metadata; a retrieval alias the resolver retains for that operation selects the same version.versionIdis not combined with either other option.
§ Resolution Errors
An option that cannot be used is an error. A resolver MUST NOT answer it with the latest version.
didResolutionMetadata.error |
When | HTTP status on /1.0/identifiers |
|---|---|---|
invalidDid |
The DID is not a valid did:cid identifier. Reported before any error in the options |
400 |
invalidOptions |
versionTime is not a date-time in the form above; versionSequence is not a positive integer in the range above; versionId is empty; or versionId is given with versionTime or versionSequence |
400 |
notFound |
The DID is not known to the resolver; the DID’s history does not verify; versionSequence names a version the history the resolution walks does not reach, because it is past the end, past the confirmed prefix, or outside a versionTime given with it; or versionId names no operation in the accepted history the resolution walks, because it is unknown, was displaced by a preferred sibling, or is not yet confirmed |
404 |
A versionId that is displaced or unconfirmed is notFound and not an earlier or later version: the option names one operation, and a resolver that cannot return that operation’s version returns none. A versionSequence is treated the same way: a resolver that does not reach the version it names returns notFound, never an earlier version.
A history that exists and does not verify is notFound, as a DID the resolver does not know is. A resolver returns a document only from a history it has verified, and the error does not tell the two cases apart.
A versionTime earlier than the DID’s creation is not an error. A time bound never excludes a creation (see Protocol Rules), so the result is at least the creation version, and created in the document metadata shows that the document is later than the time asked for. Successors remain subject to the bound: one is included only if its own time is at or before versionTime.
§ Resolution Algorithm
Resolution computes a predecessor-linked accepted history from available evidence under Protocol Rules. It MUST NOT select branches by receipt arrival order or merely sort all operations by time. Missing controller history can change authorization when it arrives.
Conceptually, a resolver:
- Uses the locally retained content-addressed creation operation, falling back to IPFS if unavailable locally, and validates it.
- Incorporates locally trusted registry evidence and unconfirmed hints, validating their targets and receipt shapes.
- Reconstructs self-controlled agent histories, selecting valid competing successors; then revalidates asset histories against their agents. Deferred predecessors and changed authority are reconsidered until the accepted state settles.
- Applies the requested version/time bound to the predecessor-linked history without skipping excluded predecessors. Hyperswarm and pin use intrinsic proof time; local creation uses operation
createdand local mutations useproof.created; chain receipts retain chain time and position. - For this specification’s conformant HTTP surface, returns the confirmed, verified projection as the DID Core result, exposing data and registration separately by dereferencing.
A cached projection MUST be consistent with replay of the same retained evidence. Local registry support controls submission and queueing, not whether retained evidence can be resolved. The conformant HTTP surface does not delegate resolution to peers.
§ Resolving from a Gatekeeper’s Export
An implementation can resolve a DID without being a node, by reading one Gatekeeper’s export of the DID’s events (Archon’s POST /api/v1/dids/export, which is outside this specification’s conformant surface) and verifying the signed operations itself. Three things about an export follow from the rules above:
- An export is an accepted history. The exporting Gatekeeper has already selected among competing successors; the candidates it did not accept are retained separately and are not exported. A reader verifies the operations and their predecessor order and does not select again. An export that contains a sibling, an operation that does not verify, or operations out of predecessor order is not an accepted history, and the reader fails.
- Its receipts are the exporting Gatekeeper’s own record. A chain receipt in an export is what that Gatekeeper’s registry mediator reported. It is not signed and cannot be checked from the export. A reader that counts it as confirmation relies on that Gatekeeper, both for confirmation and for the chain positions that select controller history. A reader that cannot rely on it obtains chain evidence itself.
- Batch membership is part of what a receipt asserts. The mediator checks an anchored operation against the batch DID’s genesis document before a receipt is recorded. A reader that relies on the exporting Gatekeeper’s receipts relies on that check too and does not repeat it. A reader that obtains chain evidence itself has to make it: an anchor shows that a batch was committed at a position, not that an operation is in the batch. That reader retrieves the batch DID’s genesis document and verifies that the operation’s canonical CID is in
didDocumentData.batch.opsat the index the receipt gives asopidx, as Protocol Rules requires of a mediator under Chain receipts and anchored batches.
§ Resolution Result
A conformant resolution returns only the three members defined by the DID-CORE DID Resolution data model:
didDocumentdidResolutionMetadatadidDocumentMetadata
The method-specific didDocumentData and didDocumentRegistration objects are not part of the resolution result; they are exposed as dereferenceable resources (see DID URL Dereferencing). Standard document metadata — created, updated, deleted, deactivated, versionId, versionSequence, canonicalId — is carried in didDocumentMetadata.
The method-specific confirmed and timestamp fields are not DID-CORE document metadata, so they are not carried in didDocumentMetadata; they are anchoring provenance, returned with the registration resource at /registration.
didResolutionMetadata carries contentType — the media type of the returned representation.
{
"didDocument": { "id": "did:cid:<cid>", "...": "..." },
"didResolutionMetadata": {
"contentType": "application/did+ld+json"
},
"didDocumentMetadata": {
"created": "2026-01-14T19:32:24Z",
"versionId": "bagaaiera...",
"versionSequence": "1"
}
}
§ Representations
The resolver negotiates the DID document representation from the Accept request header, and echoes the selected media type in both the Content-Type response header and didResolutionMetadata.contentType:
Accept |
Representation |
|---|---|
application/did+ld+json (or absent) |
JSON-LD — the default |
application/did+json |
Plain JSON |
Responses set Vary: Accept. This applies to the resolution result only; the /data and /registration resources are plain application/json.
§ Endpoints
The resolution and dereferencing surface follows the Universal Resolver driver convention:
| DID URL | HTTP | Returns |
|---|---|---|
did:cid:<cid> |
GET /1.0/identifiers/<did> |
DID Resolution result (the triple) |
did:cid:<cid>/data |
GET /1.0/identifiers/<did>/data |
The data resource |
did:cid:<cid>/registration |
GET /1.0/identifiers/<did>/registration |
The registration resource |
This surface always returns confirmed, cryptographically verified state.
§ Fallback and Forwarding
The conformant /1.0/identifiers surface resolves from the node’s available state and content retrieval; it MUST NOT delegate resolution to a universal-resolver fallback or a confirmed-Gatekeeper peer. If it cannot resolve the DID, it returns the appropriate resolution error. An unsupported local registry alone does not require delegation or prevent resolution of retained evidence.
Archon’s separate /api/v1/did/:did endpoint has configurable HTTP fallback behavior. Confirmed-peer fallback applies when confirmed resolution is requested and local history is missing, or the unconfirmed view extends beyond the confirmed prefix under the same bounds. Eligible peer results must match the DID, respect those bounds, and advance existing confirmed state. This proxy behavior does not import events or change core resolution semantics. It is not a required forwarding chain for the DID method.
§ Ordinal Key Ordering
ordinal key
Ordinals order valid confirmations on the predecessor’s expected chain registry. Equal positions of distinct competing operations use canonical CID as a tie-breaker. Unanchored siblings use canonical CID alone. These rules and the required receipt fields are specified in Protocol Rules; ordinals alone do not establish convergence or compare positions across registries.
§ DID URL Dereferencing
dereferencing
Dereferencing a did:cid DID URL returns a resource associated with the DID, as distinct from resolution (which returns the DID document and its metadata). Because did:cid is content-addressed identity, these resources are retrieved by content rather than from an external location.
§ Path Resources
This method defines two dereferenceable resources, selected by the DID URL path:
/data—did:cid:<cid>/datadereferences to the DID’s data resource: the bare didDocumentData value. An agent DID’s data resource holds its agent-leveldidDocumentData(e.g.manifest,backupStore— see Known Uses under Archon Extensions), or{}if none has been set; asset DIDs return their attached data. A revoked DID’s data resource is empty./registration—did:cid:<cid>/registrationdereferences to the DID’s registration/anchoring provenance: the didDocumentRegistration object (registry, type, validity, version), plus the anchoring stateconfirmedand, where the registry anchors to a blockchain,timestamp. This is method-specific provenance, not DID-CORE DID document metadata, which is whyconfirmedandtimestampare surfaced here rather than embedded indidDocumentMetadata.
{
"registry": "BTC:mainnet",
"type": "agent",
"version": 1,
"confirmed": true,
"timestamp": {
"chain": "BTC:mainnet",
"opid": "bagaaiera...",
"lowerBound": { "time": 1768424000, "timeISO": "2026-01-14T19:33:20Z", "blockid": "0000...", "height": 878123 },
"upperBound": { "time": 1768425200, "timeISO": "2026-01-14T19:53:20Z", "blockid": "0000...", "height": 878125, "txid": "…", "txidx": 3 }
}
}
timestamp is present only when the DID’s registry anchors to a blockchain and the anchoring block is known; registries such as hyperswarm return the registration fields and confirmed alone.
Neither resource is part of the DID resolution result. Both honor the versionTime and versionSequence version selectors, and both are returned as plain application/json.
These resources always reflect confirmed, cryptographically verified state.
§ Blockchain Timestamp Bounds
When the DID’s registry anchors to a blockchain (Bitcoin, Ethereum, Zcash, Solana, Filecoin), the timestamp object in the /registration resource (shown above) provides cryptographic upper and lower bounds on when the most recent operation was submitted, derived directly from block data:
- Lower bound (
lowerBound): Present when the operation included ablockidfield at submission time, referencing a recent block. This proves the operation was created after that block was mined — establishing a cryptographic “not before” constraint. - Upper bound (
upperBound): Always present for confirmed blockchain operations. Identifies the block in which the operation batch was anchored, proving the operation existed before the subsequent block — establishing a “not after” constraint.
Together, the bounds define an independently verifiable time window without relying on self-asserted client timestamps. They can be verified by any party with access to the relevant blockchain, providing legal-grade timestamping for DID operations.
§ Fragments
A fragment identifies a node within the DID document — for example did:cid:<cid>#key-1 dereferences to the verification method whose id matches. Per the DID-CORE processing model, the fragment is applied client-side to the resolved DID document (it is not transmitted to the resolver over HTTP); the node whose fully-qualified id matches the DID URL is returned.
§ Service Dereferencing (Future)
The registered service and relativeRef query parameters — used to construct external service-endpoint URLs — are not currently implemented. If added they would be additive, and would change neither the resolution result nor the path resources above.
§ Proof Verification
§ Credential and application proofs
temporal resolution
When verifying a proof on a credential or other signed application object (not a DID operation), the verifier must resolve the signer’s DID at the proof’s claimed creation time. This is essential for supporting key rotation — credentials signed with an old key must remain verifiable even after the signer rotates to a new key.
The proof.created timestamp serves two purposes:
- Records the signer’s claimed proof time, not an independently trusted signing time.
- Anchors verification to the correct historical key state.
§ Verification Algorithm
function verifyProof(object):
proofs = normalize object.proof to an array (absent means empty)
unsecured = copy of object with proof removed
for proof in proofs:
if proof has no verificationMethod or its suite is unsupported:
continue
extract signerDid from proof.verificationMethod
try:
doc = resolve signerDid at versionTime = proof.created
on resolution failure:
continue
if the supported suite verifies unsecured and proof against doc,
including its named method and applicable proof-purpose checks:
return valid
return invalid
This temporal resolution ensures that a credential issued in 2020 can still be verified in 2030, even if the issuer has rotated keys multiple times since issuance.
While the W3C Data Integrity specification makes proof.created optional, did:cid requires it to support proper verification after key rotation.
Legacy EcdsaSecp256k1Signature2019 credential proofs remain accepted for compatibility. Their proof configuration, including created, is not signed. Modern proofs bind that configuration, preventing timestamp alteration without the signing key; they do not prevent a signing-key holder from issuing a newly backdated proof. Rotation therefore does not by itself retire all credentials apparently signed before rotation.
Current Archon credentials use Data Integrity proofs, including the method-specific secp256k1 suite and eddsa-jcs-2022. A proof set succeeds when at least one supported proof verifies; unsupported suites do not make a valid supported proof fail. Proofs are independently removable, so adding a stronger proof does not disable acceptance under another supported proof.
A Data Integrity proof’s configuration carries the secured document’s @context when the document has one, so the context is signed with it. A Data Integrity proof whose @context differs from the document’s is invalid; so is one that has a context where the document has none, or lacks one where the document has one. A legacy EcdsaSecp256k1Signature2019 proof signs the document alone and carries no context, and this rule does not apply to it. DID operation proofs follow their own rules, below.
§ DID operation proofs
DID operations follow Operation Authorization, rather than the generic credential algorithm above. Accepted operation formats are:
| Format | Signing payload |
|---|---|
EcdsaSecp256k1Signature2019 |
Legacy secp256k1 signature over the operation with proof removed; proof configuration is unsigned. |
DataIntegrityProof, cryptosuite: archon-ecdsa-secp256k1-jcs-2026 |
secp256k1 signature binding both the proof configuration and unsecured operation. |
For the current suite, remove proofValue from the proof configuration; what remains is signed as given. Canonicalize configuration and unsecured document separately with RFC 8785, SHA-256 hash each, concatenate the two 32-byte hashes (configuration first), and SHA-256 hash the concatenation. Sign that digest with secp256k1 ECDSA, encoding compact r || s as unpadded base64url proofValue. Legacy signing hashes the canonical unsecured operation instead. Signatures use the verifier’s low-S requirement.
Operation proofs require created, a named verificationMethod, a supported proofPurpose, and a signature. New operations emit capabilityInvocation; version 1 also accepts historical authentication and assertionMethod purposes. These purpose labels do not introduce relationship-membership enforcement. The Archon suite is method-specific, not a claim to a registered W3C cryptosuite name. Ed25519 credential support does not imply Ed25519 DID operation acceptance.
§ Verification Method Format
The proof.verificationMethod field identifies which key was used to create the proof. For DID operations, the reference a signer emits depends on the operation type:
| Operation | verificationMethod Format |
Example |
|---|---|---|
| Agent create | Relative reference #key-1 (DID doesn’t exist yet, proof is self-referential) |
#key-1 |
| Asset create | Full DID reference of the controller | did:cid:abc123#key-1 |
| Update / Delete | Full DID reference of the signer: the DID itself for an agent, the owner for an asset | did:cid:abc123#key-N |
A verifier is stricter about one of these than the others:
- Asset create requires the full form. The DID before the fragment must equal the operation’s
controller; a relative reference is refused. - Update and delete accept the full form or a relative reference such as
#key-1. A relative reference resolves against the DID of the document that authorizes the operation: the DID itself for an agent, the owner’s for an asset. A reference that names the asset’s own DID is refused, since an asset has no keys.
The following sequence illustrates credential verification only.
§ DID Recovery
For security reasons, this method provides no support for storing private keys. We recommend that clients use BIP-39 to generate a master seed phrase consisting of at least 12 words, and that users safely store the recovery phrase.
If a user loses a device that contains their wallet, they should be able to install the wallet software on a new device, initialize it with their seed phrase, and recover their DID along with all their credentials. This requires an identity backup — an encrypted backup asset linked from didDocumentData — that stores the agent’s credentials and relationships encrypted with the DID’s current private key.
§ Recovery Process
The backup/restore pattern requires the user to retain access to their seed phrase. If both the device and the seed phrase are lost simultaneously, DID recovery is not possible — this is an intentional security property, not a bug.
§ Security Considerations for Recovery
- Seed phrase secrecy — The BIP-39 seed phrase is the single point of failure for key recovery. It must never be stored digitally in plaintext.
- Backup encryption — The identity backup is encrypted with the DID’s current key. After key rotation, the backup must be re-encrypted with the new key.
- No controller delegation — Because an asset DID is controlled by exactly one agent, there is no multi-sig recovery path. The agent’s seed phrase is the sole recovery mechanism.
§ Archon Extensions to DID Core
The did:cid method defines three structural elements that extend the DID-CORE data model: didDocumentRegistration, the agent/asset subject type distinction, and didDocumentData. Together they enable the method’s key design goals — pluggable registry anchoring, a verifiable ownership graph, and an open application data layer.
These extensions are normative for did:cid: conforming implementations MUST produce and interpret them as specified in this section. They are not, however, part of the DID-CORE data model, and this method therefore does not place them in the DID document. Each is exposed instead as a resource dereferenced from a DID URL — did:cid:<cid>/registration and did:cid:<cid>/data (see DID URL Dereferencing). That separation is deliberate: it is what allows a did:cid resolution result to remain conformant with DID-CORE while these elements stay binding on implementations.
Because they are dereferenced resources, didDocumentRegistration and didDocumentData are not members of the DID resolution result (the didDocument / didResolutionMetadata / didDocumentMetadata triple), and MUST NOT be returned inline within it.
§ didDocumentRegistration
didDocumentRegistration
DID-CORE defines no mechanism for a DID method to attach method-specific configuration to a DID. The did:cid method defines a didDocumentRegistration object for this purpose. Every did:cid DID MUST have one; it is populated at creation time and cannot be absent:
{
"didDocumentRegistration": {
"version": 1,
"type": "agent",
"registry": "hyperswarm"
}
}
| Field | Description |
|---|---|
version |
Protocol version number. Enables forward-compatible evolution of the method. |
type |
DID subject type: "agent" or "asset". Determines the resolution and update rules that apply. |
registry |
The registry used to record update operations. Only one registry is active at a given time. |
The registry field is the binding between a DID and its update ledger. Resolvers use it to determine where to look for update operations. The registry may be changed by the controller via a valid signed update operation — the accepted predecessor registration selects the registry for each successor; the old registry confirms a migration, and the new registry confirms its successors. A change of registry does not invalidate operations previously recorded on the prior registry; those remain part of the verifiable operation chain.
§ DID Subject Types: Agent and Asset
Most DID methods treat all DIDs identically — every DID is a self-controlled, key-bearing entity. The did:cid method introduces a formal distinction between two subject types, reflecting the natural hierarchy found in credential ecosystems.
agent are key-bearing DIDs. An agent:
- Possesses a cryptographic key pair
- Controls its own DID document via signed update operations
- Can act as the controller of one or more asset DIDs
- Represents entities that take action: users, issuers, verifiers, nodes, and AI agents
asset are agent-controlled DIDs. An asset:
- Is controlled by exactly one agent DID at any given time (specified in the
controllerfield), which authorizes its updates, transfers, and deletion - Can be transferred to a new controller via a valid update operation signed by the current controller
- Holds application data in
didDocumentData - Represents entities that are acted upon: verifiable credentials, schemas, presentations, challenges, and responses
This distinction enables a verifiable ownership graph: any observer can resolve an asset DID and determine its current controller, then resolve the controller to verify the controlling agent’s current key state. Transfers are recorded in the operation chain and resolvable at any historical point in time.
The agent/asset distinction is expressed in didDocumentRegistration.type. Resolvers MUST use this field to apply the correct creation, update, and resolution rules for the DID.
§ didDocumentData
didDocumentData
DID-CORE defines a service property for attaching typed service endpoint references to a DID document — external URIs pointing to services associated with the DID subject. didDocumentData serves a distinct purpose: it is a structured data store for arbitrary JSON state that must be cryptographically bound to the DID itself, versioned alongside it, and resolvable at any point in its history. The did:cid method defines didDocumentData as an open extension point, dereferenced at /data. Its content is not constrained by the method specification — any Keymaster feature or application layer can read and write properties within it using standard DID update operations.
didDocumentData may be any JSON value other than null. Keymaster features use an object, so that each can reserve a named property within it. An asset’s data need not be an object: an array or a string is valid, as are "", 0 and false.
The general pattern is that each higher-level feature reserves a named property within didDocumentData:
{
"didDocumentData": {
"<feature-key>": { ... }
}
}
Because didDocumentData is updated via the same signed update operations as the rest of the DID document, all changes are anchored to the registry, versioned via the operation chain, and resolvable at any historical point in time via temporal resolution.
§ Known Uses
The following didDocumentData properties are used by the Archon platform as of this writing. This list is illustrative, not exhaustive — new Keymaster features will continue to add properties over time:
| Property | Feature | Description |
|---|---|---|
backupStore |
Identity backup | On an agent DID: a DID reference to an encrypted backup asset (which holds the agent’s credentials and relationships under a backup property); enables full identity recovery from the seed phrase alone |
manifest |
DID Manifest | On an agent DID: selectively disclosed public credentials (described below) |
vault |
Encrypted group storage | On a vault asset DID: a |
Application developers building on did:cid are encouraged to use didDocumentData for any state that must be cryptographically bound to a DID, publicly resolvable, and part of the verifiable update history.
§ DID Manifest
DID Manifest
The DID Manifest illustrates the didDocumentData pattern well because it has a clearly defined structure and a two-mode API. It is one specific feature built on didDocumentData — not an architectural primitive in its own right.
The manifest is an object within didDocumentData.manifest where each key is the DID of a held verifiable credential and each value is the manifest entry for that credential. It supports two disclosure levels:
| Mode | reveal |
Content | Description |
|---|---|---|---|
| Publish | false |
Credential DID reference | Announces credential ownership without exposing content |
| Reveal | true |
Full Verifiable Credential | Makes the complete credential publicly verifiable by any resolver |
Manifest entries are managed via the Archon Keymaster. Each valid operation generates a DID update that modifies didDocumentData.manifest and is anchored to the registry.
A partial example of a resolved DID with a revealed credential in the manifest:
{
"didDocumentData": {
"manifest": {
"did:cid:bagaaiera...cred1": {
"@context": ["https://www.w3.org/2018/credentials/v1"],
"type": ["VerifiableCredential", "ArchonSocialNameCredential"],
"id": "did:cid:bagaaiera...cred1",
"issuer": "did:cid:bagaaiera...issuer",
"issuanceDate": "2026-02-03T00:12:20.000Z",
"credentialSubject": {
"id": "did:cid:bagaaiera...agent",
"name": "@flaxscrip",
"platform": "archon.social"
},
"proof": {
"type": "EcdsaSecp256k1Signature2019",
"created": "2026-02-03T00:12:20.000Z",
"verificationMethod": "did:cid:bagaaiera...issuer#key-1",
"proofPurpose": "assertionMethod",
"proofValue": "..."
}
}
}
}
}
Revealed credentials are independently verifiable by any resolver using the standard temporal resolution algorithm — no interaction with the issuer is required.
The manifest pattern is particularly relevant for AI agents operating in multi-agent systems. An agent that reveals a role credential and a principal relationship credential enables any peer agent or service to verify its authorization by resolving its DID — without out-of-band communication or centralized lookup.
Revealing a credential in the manifest is permanent at the registry history level. Removing it via unpublish removes it from the current DID document, but it remains visible in any historical version resolvable via temporal resolution.
§ Security Considerations
This section describes the security properties of the did:cid method and addresses the security requirements of DID-CORE Section 10.
§ Threat Model
The did:cid method is designed to resist the following classes of adversary:
- Passive observers — parties who can read all IPFS data, registry contents, and network traffic but cannot forge cryptographic signatures
- Active network adversaries — parties who can intercept and modify messages between a client and a node
- Malicious or compromised nodes — nodes that may serve stale, incorrect, or selectively withheld DID data
- Minority registry attackers — a minority coalition of registry validators acting in bad faith
The method does not claim security against:
- An adversary who obtains the controller’s private key
- An adversary who controls a majority of the DID’s specified registry (e.g., a blockchain majority attack)
- Loss or unavailability of required operation content from all retained peer copies and fallback retrieval sources
§ Self-Certifying Identifiers
self-certifying identifier
The DID suffix of a did:cid DID is the CID (Content Identifier) of the JSON-canonicalized creation operation. This makes every did:cid DID a self-certifying identifier: a resolver can independently verify that a given creation operation corresponds to a claimed DID by computing its CID and comparing it to the DID suffix. No trusted third party is required to validate the binding between the DID and its initial public key.
Any modification to the creation operation — including the public key, timestamp, or registration metadata — produces a different CID, and therefore a different DID. This property prevents silent substitution of the creation operation.
§ Operation Chain Integrity
operation chain
All update and delete operations include a previd field containing the CID of the previous operation in the sequence. This forms an operation chain — a tamper-evident hash chain anchored at the self-certifying identifier. An adversary who does not control the signing key cannot:
- Reorder operations without invalidating the
previdchain - Insert a forged operation without producing a valid signature and a known
previd - Replay a prior update operation, as the current
previdwill have advanced beyond the replayed operation’s target
Direct submissions MUST reference the current accepted head before storage or queue writes. Imports may reference an earlier live predecessor to compete with an existing branch; missing predecessors remain deferred. See Protocol Rules.
§ Registry Security and Finality
The integrity of DID update history depends on the registry selected by each accepted predecessor. Different registries provide different finality and Byzantine fault-tolerance guarantees:
| Registry | Finality Model | Considerations |
|---|---|---|
| Bitcoin mainnet | Probabilistic; ~6 confirmations (~60 min) | Highest economic security; reorganization risk decreases exponentially with block depth |
| Bitcoin Signet / Testnet | Same model; lower economic stake | Suitable for development and testing; not appropriate for production identity |
| Hyperswarm | Unanchored gossip; canonical-CID sibling preference | No chain consensus clock; history follows available signed evidence |
| Ethereum | Finalized-block imports (PoS) | High economic security; large validator set; EVM-compatible smart contract anchoring |
| Zcash | PoW probabilistic finality | Bundled mediator uses transparent transactions |
| Solana | Finalized-block imports (Tower BFT) | Very high throughput; low transaction costs; suitable for high-frequency update patterns |
The registry field may be changed by the controller via a valid signed update operation — the predecessor registry confirms the migration and the resulting registry confirms successors. A registry change does not invalidate operations previously recorded on the prior registry; those remain part of the verifiable operation chain and are still consulted during historical resolution. Resolvers MUST follow the current registry for new operations and MUST consult prior registries when replaying the operation history up to any point before the registry change.
Node operators SHOULD document the registries they support and their trusted peer node policies. An unsupported local registry does not itself require forwarding. The conformant resolution surface does not delegate to peers; optional fallback on Archon’s separate API is described in Fallback and Forwarding.
§ Cryptographic Operations
All operations MUST apply the JSON Canonicalization Scheme (JCS) to the operation object before computing its CID and before signing. Failure to apply canonicalization consistently may cause the same logical operation to produce different CIDs depending on JSON serialization order, leading to resolution failures or operation rejection.
Operations accept the current DataIntegrityProof suite archon-ecdsa-secp256k1-jcs-2026 and the legacy EcdsaSecp256k1Signature2019 format. See Proof Verification for the distinct signing payloads. Implementing nodes MUST:
- Verify the proof signature is cryptographically valid before accepting any create, update, or delete operation.
- Select the signing authority from the operation predecessor or asset controller cutoff under Operation Authorization.
- Reject operations with unknown or unsupported
proof.typevalues.
§ Key Management
The did:cid method makes the following key management design decisions:
- Client-side signing only — Private keys are never transmitted to nodes. Clients sign operations locally and submit only the signed operation and the corresponding public key.
- HD key derivation — Clients SHOULD derive keys using BIP-32 hierarchical deterministic derivation from a BIP-39 seed phrase. Implementations SHOULD use hardened derivation paths to prevent child key exposure from compromising the parent key.
- No server-side key custody — Nodes have no access to private keys and cannot sign on behalf of DID controllers.
After a key rotation (via an update operation), credentials signed with the previous key remain verifiable through temporal resolution — the historical key state is preserved and resolvable at any prior version time.
Clients SHOULD:
- Encrypt private key material at rest using a passphrase-derived key.
- Implement key rotation promptly when a key may have been exposed.
- Store the BIP-39 seed phrase in a physically secure, offline location.
§ Proof Verification Requirements
Credential proofs require proof.created to select historical signer state and preserve verification across key rotation. Credential verifiers use that claimed time, not the current time; it is not an independently trusted signing-time attestation.
DID operation proofs also require created, but authorization follows Operation Authorization: agent mutations use predecessor keys; asset operations use proof-time or chain-position controller selection as applicable. The timestamp also supplies intrinsic unanchored receipt clocks. Its presence MUST NOT introduce an additional generic credential-time lookup after predecessor or chain-position authority has been selected.
§ Revocation Finality
Deletion is terminal on its accepted branch. It does not make that branch immune to later evidence revalidation: a preferred sibling or changed controller history can displace a deletion. No operation can extend the deletion itself. Chain confirmation records anchoring, not complete or irrevocable authorization history.
§ Node Trust Model
Archon’s separate API may proxy eligible resolution requests to configured peers; the conformant /1.0/identifiers surface does not. The following risks apply to this trust model:
- Stale data: A peer node that lags behind the registry may return outdated DID documents, causing verifiers to use superseded keys.
- Malicious forwarding: A compromised node may return incorrect or fabricated DID data to the requesting client.
- Availability dependency: If no reachable node supports a given registry, resolution fails for DIDs using that registry.
Mitigations:
- Resolvers in high-security contexts SHOULD run their own node directly connected to the DID’s specified registry.
- Clients SHOULD validate that the returned document’s
versionIdis consistent with the expected operation chain. - Node operators SHOULD monitor registry sync status and alert on significant lag.
§ Keymaster and Gatekeeper Trust Model
The did:cid method separates key custody from network operations into two distinct components with a well-defined trust boundary.
The Keymaster holds private keys exclusively on the client and signs all operations locally before submission. The Gatekeeper is the network-facing node that retains signed operations, queues their gossip distribution and registry submission, uses IPFS for fallback content retrieval, and serves DID resolution responses.
Key trust properties of this separation:
- Keymaster users must trust their Gatekeeper — The Gatekeeper is responsible for faithfully retaining and distributing operations and submitting them to their registries and for returning accurate resolution results. A compromised Gatekeeper could delay or drop operations, or return stale DID documents. It cannot, however, forge operations, alter signed content, or access private keys.
- Gatekeepers are interchangeable — Because the Keymaster signs all operations locally with keys that never leave the client, a controller can switch to a different Gatekeeper at any time — for better availability, geographic proximity, or greater institutional trust — without any change to their DID or credentials.
- Self-sovereign deployment — Controllers who require maximum trust and control can operate their own Gatekeeper node. This eliminates reliance on any third party while maintaining full compatibility with the network.
- SaaS node assurance — Controllers using a third-party hosted Gatekeeper can do so with the assurance that the node operator cannot access their private keys, cannot sign operations on their behalf, and cannot update or revoke their DID without a valid signature from the controller’s Keymaster.
§ Availability and Denial of Service
Content availability: Resolution requires the creation operation and relevant history, normally retained locally after Hyperswarm distribution. An IPFS outage does not prevent resolution from retained evidence. Operators SHOULD maintain gossip connectivity and durable operation storage; IPFS and optional redundant pinning provide fallback availability when local content is missing. Neither a CID nor a chain anchor guarantees content availability.
Registry unavailability: Temporary registry unavailability causes resolution to return the most recently known state rather than failing. This is a graceful degradation, not a hard failure, and is consistent with the method’s design.
Creation spam: DID creation requires signing and content hashing; there is no on-chain transaction required at creation time. Node operators SHOULD implement rate limiting on creation endpoints to prevent resource exhaustion from spam creation.
Update queue costs: For registries with non-trivial transaction costs (e.g., Bitcoin mainnet), nodes may batch update operations. Operators SHOULD implement queue management policies that prevent unbounded accumulation of pending updates.
§ Cryptographic Algorithm Agility
The proof.type and, for Data Integrity proofs, cryptosuite fields select the proof algorithm. The current operation formats are defined in Proof Verification; legacy acceptance is retained alongside the current Data Integrity suite. Future versions of the method specification may introduce additional proof types (e.g., Ed25519Signature2020, BLS12-381 for threshold schemes).
Existing DIDs using EcdsaSecp256k1Signature2019 are unaffected by the introduction of new proof types. Nodes MUST continue to support all historically accepted proof types to preserve backward compatibility of temporal resolution for existing DIDs.
§ Residual Risks
The following risks remain after the mitigations described in this section:
| Risk | Likelihood | Impact | Mitigation |
|---|---|---|---|
| Private key compromise | Low (with secure local storage) | High — attacker can update or revoke the DID | Key rotation; monitor for unauthorized update operations |
| BIP-39 seed phrase exposure | Low (with physical security) | Critical — unrecoverable if device is also lost | Hardware wallet; physically separate offline backup |
| Blockchain reorganization | Very low (mainnet, ≥6 confirmations) | Medium — brief resolution inconsistency | Await sufficient confirmations before relying on an update |
| Required content unavailable locally, from peers, and through fallback retrieval | Depends on retention and connectivity | Resolution or authorization may remain incomplete | Durable node storage; gossip connectivity; fallback content retention |
| Trusted node compromise | Low | Medium — stale or incorrect DID data returned | Multi-node resolution; independent registry verification |
§ Privacy Considerations
This section addresses the privacy implications of the did:cid method in accordance with DID-CORE Section 10 and applicable W3C privacy guidelines.
§ Distribution and Retention
Non-local creation operations and subsequent changes are distributed through Hyperswarm gossip. Peers retain copies; IPFS provides an additional retrieval path. This has fundamental privacy implications:
- Potentially lasting disclosure: Once distributed, an operation may be retained indefinitely by peers or other recipients. Neither gossip nor IPFS guarantees permanent availability.
- No guaranteed erasure: Removing a local record or unpinning IPFS content cannot remove copies held by other parties. Content addressing detects changed content; it does not itself prevent every copy from being deleted.
- Public distribution: Treat non-local operations as public once shared. Local-only DIDs are not queued for gossip, but local handling is not an encryption mechanism or a guarantee against disclosure through other storage or service access.
Implementations MUST NOT include sensitive personal data in the creation operation beyond what is required for DID function (the public key and registration metadata).
§ Public DID Resolution
All did:cid DID documents are publicly resolvable by any party with access to a node. The full contents of didDocument, didDocumentData, and didDocumentRegistration are visible to any resolver without authentication.
Implementations MUST NOT store unencrypted sensitive personal information in didDocumentData. Data that must be associated with a DID but kept private SHOULD be stored in an encrypted form — either as an identity backup asset or within a vault — so that it is visible as ciphertext to resolvers but inaccessible without the appropriate key.
§ DID Manifest and Selective Disclosure
The DID Manifest provides a mechanism for agents to voluntarily publish verifiable credential publicly. Manifest usage is entirely opt-in — no credentials appear in the manifest unless the controller explicitly adds them.
Agents have two disclosure modes available:
- Publish (existence-only): Announces that the agent holds a credential without revealing its content. This supports selective disclosure at the presentation layer — a verifier can request presentation of the credential without being able to read it from the DID document.
- Reveal (full data): Makes the complete credential, including all claims and the cryptographic proof, publicly readable by any resolver.
Once a credential is revealed in the manifest and the corresponding update operation is confirmed on the registry, the credential becomes part of the permanent update history. Removing the credential from the manifest via unpublish removes it from the current DID document but does not affect historical versions, which remain resolvable via temporal resolution. Agents MUST carefully consider the permanent nature of credential revelation before using the reveal mode.
§ Vaults
A vault is a shared encrypted file store associated with a group DID. Vault items are accessible to group members via individually derived keys. The did:cid method supports two membership configurations with distinct privacy properties:
Standard membership — the member list is stored in plaintext within didDocumentData.group.members. Membership is publicly visible to any resolver.
Secret membership — the member list is encrypted and stored in didDocumentData.group.encryptedMembers. Each member receives their own individually derived access key. The following privacy properties hold:
- Resolvers cannot determine who the members are
- Members cannot prove or disprove the membership of other participants
- Items added to the vault do not reveal the identity of the contributor
Secret membership vaults are well suited to use cases that require both shared access and anonymity among participants — such as whistleblower submission systems, blind peer review, and anonymous committees.
Identity backup is a separate mechanism from the Vault. An identity backup is an encrypted asset DID referenced from didDocumentData.vault, containing the agent’s credentials and relationships encrypted with the agent’s own private key. It is a single-controller backup/restore mechanism, not a shared store. See DID Recovery for details.
Both the vault and the identity backup store encrypted data that is publicly visible as ciphertext to any resolver. Neither exposes plaintext content without the appropriate key.
§ Pseudonymity
did:cid DIDs are pseudonymous by default. The DID suffix — a CID derived from the creation operation — contains no information about the controller’s real-world identity. A freshly resolved DID reveals only:
- That the controller possesses the private key corresponding to the embedded public key
- The controller’s chosen registry
Real-world identity is associated with a DID only when the controller explicitly discloses identifying information — for example, by revealing a name credential in the DID Manifest, or by including identifying data in unencrypted didDocumentData. This disclosure is voluntary and controlled entirely by the DID subject.
§ Correlation Risks
DID-level correlation: All activity signed with the same DID is attributable to the same controller by any observer who knows the DID. Controllers who wish to limit correlation across contexts SHOULD use separate DIDs for separate relationships or roles.
Public key correlation: The public key embedded in a did:cid creation operation is visible to recipients when the operation is distributed, including gossip peers and parties retrieving it through IPFS. Reuse of the same cryptographic key material across multiple DIDs — which is not recommended — would enable correlation across those DIDs even if they are otherwise unrelated.
Registry transaction patterns: Update operations recorded on public blockchains are permanently and publicly associated with the DID. The timing, frequency, and size of updates may reveal behavioral patterns even when the content of operations is not sensitive.
Asset DID linkage: Every asset DID contains a controller field referencing its controlling agent DID. This creates a publicly visible, permanent ownership relationship. Applications that create many asset DIDs for a single agent should be aware that the full set of assets controlled by that agent is publicly enumerable by traversing the controller references.
§ Data Minimization
Implementations SHOULD apply the principle of data minimization throughout the DID lifecycle:
- Include only the minimum necessary data in DID creation operations (public key and registry selection).
- Prefer encrypted storage (identity backup or vault) over plaintext
didDocumentDatafor non-public information. - Use DID Manifest reveal mode only for credentials explicitly intended for permanent public disclosure.
- Use DID Manifest publish mode (existence-only) as a privacy-preserving alternative when full credential data need not be public.
- Consider using separate DIDs for contexts where cross-context correlation is undesirable.
§ Third-Party Privacy
When a did:cid node forwards a resolution request to a trusted peer node, the peer node learns the DID being resolved and the network address of the requesting node. This creates a metadata record of resolution activity at the peer node.
Node operators SHOULD:
- Minimize logging of resolution requests and retain logs only for the minimum period required for operational purposes.
- Disclose their data retention and forwarding policies to users.
- Consider supporting transport-layer anonymization (e.g., Tor hidden services) for resolution endpoints used in privacy-sensitive contexts.
Controllers who are concerned about resolution metadata leakage SHOULD run their own node directly connected to the relevant registry, eliminating the need for request forwarding.