§ 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:

NOTE

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

  1. Decentralized creation — DIDs are derived from signed creation operations, enabling use by nodes with the required evidence before registry anchoring.
  2. 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.
  3. Temporal resolution — DIDs can be resolved at any historical point in time, enabling verification of credentials signed with keys that have since been rotated.
  4. 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

NOTE

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.

WARNING

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>.

NOTE

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
NOTE

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

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:

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:

  1. A confirmation on the predecessor’s expected chain registry outranks provisional hints.
  2. Competing confirmations on that chain compare complete ordinals lexicographically; equal ordinals for distinct operations compare canonical CID.
  3. 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:

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.

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:

  1. Generate a new private key

    • We recommend deriving a new private key from a Hierarchical Deterministic (HD) wallet (BIP-32).
  2. Generate a public key from the private key.

  3. Convert the public key to JWK format.

  4. Create an operation object with these fields in any order:

    Field Required Description
    type Yes Must be "create"
    registration.version Yes Must be 1
    registration.type Yes Must be "agent"
    registration.registry Yes A valid registry identifier, e.g. "BTC:mainnet", "hyperswarm"
    publicJwk Yes The public key in JWK format
    created Yes ISO 8601 timestamp
    blockid No Current block ID on registry (if registry is a blockchain)
  5. 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.verificationMethod must be set to #key-1 (a relative reference) since the DID does not yet exist.
  6. 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:

  1. Verify the proof.
  2. Apply JCS to the operation object.
  3. Retain the seed document and distribute it through Hyperswarm unless the DID uses the local registry. 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.

  1. Create an operation object with these fields in any order:

    Field Required Description
    type Yes Must be "create"
    registration.version Yes Must be 1
    registration.type Yes Must be "asset"
    registration.registry Yes A valid registry identifier
    controller Yes The DID of the owner/controller agent
    data Yes Any non-empty JSON data payload
    created Yes ISO 8601 timestamp
    blockid No Current block ID on registry (if blockchain)
  2. Sign the JSON with the private key of the controller.

    • The proof.verificationMethod must be the full DID reference of the controller (e.g., did:cid:abc123#key-1).
  3. 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:

  1. Verify the proof is valid for the specified controller.
  2. Apply JCS to the operation object.
  3. Retain the seed document and distribute it through Hyperswarm unless the DID uses the local registry, 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

  1. Create an update operation object with the fields above.
  2. Sign the JSON with the private key of the controller of the DID.
  3. Submit the signed operation to a node’s DID endpoint.
NOTE

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:

  1. Select the authorizing document under Operation Authorization and verify the proof.
  2. For direct submission, require the current accepted head as previd. Imported competing branches use their selected predecessor under Protocol Rules.
  3. 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.

sequenceDiagram participant Client participant Node participant Registry Client->>Node: POST update operation Node->>Node: Verify proof and previd Node->>Node: Queue non-local operation for Hyperswarm gossip Node->>Registry: Record update for registry confirmation Registry-->>Node: Confirmation Note right of Registry: Batch or immediate

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:

  1. Select the authorizing document under Operation Authorization and verify the proof.
  2. For direct submission require the current head as previd; import evaluates the selected live predecessor.
  3. 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.

WARNING

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.

§ 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:

  1. Uses the locally retained content-addressed creation operation, falling back to IPFS if unavailable locally, and validates it.
  2. Incorporates locally trusted registry evidence and unconfirmed hints, validating their targets and receipt shapes.
  3. 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.
  4. 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 created and local mutations use proof.created; chain receipts retain chain time and position.
  5. 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:

§ Resolution Result

A conformant resolution returns only the three members defined by the DID-CORE DID Resolution data model:

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:

{
  "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.

NOTE

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:

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:

  1. Records the signer’s claimed proof time, not an independently trusted signing time.
  2. 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.

NOTE

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:

The following sequence illustrates credential verification only.

sequenceDiagram participant Verifier participant Resolver participant IPFS participant Registry Verifier->>Verifier: Extract signer DID and proof.created Verifier->>Resolver: resolveDid(signerDid, versionTime) Resolver->>Resolver: Read locally retained seed and history from gossip opt Seed missing locally Resolver->>IPFS: Retrieve seed by CID (fallback) IPFS-->>Resolver: Seed document end Resolver->>Registry: Obtain registry evidence for history up to versionTime Registry-->>Resolver: Update history Resolver->>Resolver: Reconstruct document at versionTime Resolver-->>Verifier: DID document with active key Verifier->>Verifier: Verify signature with historical key

§ 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

graph LR A["Lost device"] --> B["Install wallet"] B --> C["Enter BIP-39 seed"] C --> D["Derive HD keys"] D --> E["Recover DID"] E --> F["Resolve DID doc"] F --> G["Key rotation update"] G --> H["DID recovered"]
WARNING

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

  1. 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.
  2. 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.
  3. 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.

NOTE

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:

asset are agent-controlled DIDs. An asset:

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.

NOTE

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 vault

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.

NOTE

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.

WARNING

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:

The method does not claim security against:


§ 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:

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.

NOTE

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:

  1. Verify the proof signature is cryptographically valid before accepting any create, update, or delete operation.
  2. Select the signing authority from the operation predecessor or asset controller cutoff under Operation Authorization.
  3. Reject operations with unknown or unsupported proof.type values.

§ Key Management

The did:cid method makes the following key management design decisions:

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:


§ 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:

Mitigations:


§ 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:


§ 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:

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:

WARNING

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:

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.

NOTE

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:

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:


§ 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:

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.

✕
Table of Contents ✕
,
,