Skip to content
IAM Insights

Explainers · Glossary

did:key

did key method

By Boston Identity · Explained · 6 min read

The short answer

did:key names its holder by the holder's own public key. The identifier contains the key, so signatures can be checked without any registry. It cannot be rotated or revoked: a new key means a new identifier.

What it is
A standard
Defined by
W3C Credentials Community Group, v0.9 draft
Who it's for
Teams giving agents and services keys
In our briefings
11By month of the source: 2025-12: 0, 2026-01: 0, 2026-02: 0, 2026-03: 0, 2026-04: 1, 2026-05: 0, 2026-06: 0, 2026-07: 1, 2026-08: 0, 2026-09: 1, 2026-10: 3, 2026-11: 11by month, last 12
01

What is did:key?

Suppose your team learns that a signing key belonging to one of your artificial intelligence (AI) agents was copied last night. The usual response is to rotate the key and revoke the old one. If the agent is named by a did:key, neither step exists. The specification says an attacker who gets the private key "gains permanent control over that identity", and the rightful owner cannot win it back by rotating to new key material.S1

That is the price of a very simple design. A Decentralized Identifier (DID) is an identifier whose controller, the party that holds its key, can prove control without a central registry, identity provider or certificate authority. DID methods often keep a heavy registry to create, read, update and deactivate identifiers. did:key keeps none. It expands a public key into a DID document, the record that lists the keys that speak for the identifier.S1 The identifier is the key, written in an agreed encoding.S1

The text is still being worked on: it asks for feedback on whether one of its own checks can be implemented.S1 It is plain about fit. did:key suits short-lived sessions where the identifier will be used for days to weeks, and long-lived use is only recommended with high confidence in hardware isolation.S1

Not the same as a certificate, where an authority vouches for who holds the key. did:key works without any certificate authority,S1 so a valid signature shows only that someone holds the private key. In Ardebili's words, from his NovaFabric report: "A signature alone proves possession of a key".1

02

How does did:key work?

Two parties take part: the controller, who holds the private key, and any system that receives the identifier. No registry sits between them, because the method is purely generative and needs no look-ups.Operations The receiving side's steps follow an algorithm the specification says can be used; any other that gives an equivalent result is allowed.S1

Figure steps
  1. The controller creates a key pair
  2. The controller encodes the public key as the identifier
  3. The receiving system splits and checks the identifier
  4. The receiving system decodes the public key
  5. The receiving system expands the key into a DID document
Fig. 1

The controller turns a public key into the identifier; any system that receives it rebuilds the DID document by itself, with no registry to ask.

Drawn from the did:key spec's Create and Read operations

Swipe for the full figure →

  1. The controller creates a key pair

    Creating a did:key starts with a cryptographic key pair: a private key the controller keeps and a public key it can share.Create No registration follows, since did:key values are not stored in any registry.Operations

  2. The controller encodes the public key as the identifier

    The identifier is the prefix did:key followed by one encoded value. That value joins a short code for the type of public key to the raw bytes of the key, then writes the result in base58-btc or base64-url, two ways of writing bytes as text.S1 The spec's example for an Ed25519 key is did:key:z6MkhaXgBZDvotDkL5257faiztiGiC2QtKLGpbnnEGta2doK. The same key material always produces the same identifier.S1

  3. The receiving system splits and checks the identifier

    It splits the identifier at each colon into a scheme, a method, a version and the encoded value. With only three parts, the version is taken to be 1. The scheme must be did, the method must be key, the version must convert to a positive integer, and the encoded value must begin with the letter z. If any of these fails, the system must raise an invalidDid error.S1

  4. The receiving system decodes the public key

    It decodes the value from base58-btc and reads the leading code, which names the key type. The remaining bytes are the public key.S1 The length is then checked against a table: 32 bytes for an Ed25519 key, 33 for a compressed P-256 key. A mismatch must raise an invalidPublicKeyLength error, and a value that is not a proper key of its type must raise invalidPublicKey.S1

  5. The receiving system expands the key into a DID document

    It builds one verification method, an entry that holds the public key, with the identifier as its controller. The same entry is then listed under four uses: authentication, assertion, capability invocation and capability delegation. If the caller turns on encryption key derivation, a second entry for encryption is added under key agreement.S1 Reading a did:key is a matter of repeating this expansion.Read The method supports no update or deactivation of the document.Update,Deactivate

03

Why does did:key matter now?

Qwixl's agent-messaging draft, dated 16 November 2026, identifies each agent by an Ed25519 did:key. It says conforming implementations must not require network resolution of the identifier to verify a signature.2 The draft ties group membership and signing to that one key and names the cost as a deliberate trade: a compromise of the private key compromises both.2

The Decentralized Identity Foundation's agent specification, KYA-OS, names AI agents by decentralized identifiers and nothing else. Implementations must support did:key and did:web, the agent generates its own key, and the first conformance level begins by deriving a did:key.3 A DeepMind paper on agent markets sketches did:key for throwaway task agents and another method, did:ion, for persistent, high-value ones.4 That split matches the spec's own advice to keep did:key for short-lived use.S1

In NovaFabric, a recorder that seals AI agent runs as signed evidence, did:key identifiers with Verifiable Credentials are among the trust features its author labels experimental.1 We read the pattern this way: did:key is becoming the first identifier an agent gets, since it needs no infrastructure to create, and the spec's limits on rotation and revocation arrive with it.

04

Where does it fit?

Compared withHow did:key differs
did:webdid:web is the other DID method that the KYA-OS agent specification requires implementations to support.3 did:key needs no network at all: its document is computed from the identifier, with no registry look-ups.S1
DID / Verifiable Credentialsdid:key is one DID method. Its spec names revoking an associated verifiable credential as a high-level mechanism for signalling that a did:key is not to be trusted.S1
05

What goes wrong?

  • A stolen key cannot be replaced. With no update operation there is no way to rotate keys after a compromise, and the spec notes that modern security frameworks often require rotation on regular schedules.S1
  • There is no off switch. Nothing tells verifiers that a did:key should no longer be trusted, other than a higher-level step such as revoking a verifiable credential associated with it. Incident response is otherwise limited to out-of-band communication. The spec calls did:key "not ideal" for high-value transactions and legally binding agreements.S1
  • The identifier links its holder's activity. Any two systems that receive the same did:key can recognise the same subject, and parties that see it reused could build a profile of that subject's activities.S1
  • One key may do two jobs. Deriving the encryption key from an Ed25519 signing key goes against the principle of key separation, and the spec says there is no complete mathematical proof that the derivation preserves the key's full security in all contexts. Organisations with strict requirements might prefer separate key pairs.S1
  • The text has loose ends. Its syntax section allows a base64-url value starting with u, yet its document algorithm requires the value to begin with z.S1,S1

The spec's answer for long-term use is narrow. It expects the private key to sit in a hardware security module, and the process that uses the did:key to replace the identifier itself on an acceptable cadence.S1 Use lasting weeks to months is strongly discouraged without such a module.S1

06

What should a security leader ask?

  1. 01

    Which of our agents, services or devices are identified by a did:key, and how long has each identifier been in use?

  2. 02

    If the private key behind one of those identifiers is stolen tonight, how do we tell every party that trusts it to stop?

  3. 03

    Is every did:key private key that lives longer than a few weeks held in a hardware security module, and who replaces the identifier on what schedule?

  4. 04

    When a vendor's product accepts a did:key signature, what else does it check to learn who the signer is?

  5. 05

    Do we present the same did:key to several outside parties, letting them link our activity?

07

Sources

›Evidence: 4 claims from 4 briefings
  1. 1BI-FIND-2026-1820 · NovaFabric seals AI agent runs as signed evidence, and its author says a signature proves a key, not a personArdebili's report keeps a valid signature apart from a known signer. In his words, "A signature alone proves possession of a key." Since v0.105, verification also reports an identity_trust level: self-asserted, local-ca-pinned, ca-anchored or none. An Evidence Bundle carries its own signing key, so a pass on its own proves internal consistency, not identity, unless the auditor pins the expected signer with --public-key. For two-person approval, each signer is bound to an identity the operator vouches for, through a trust list or a pinned CA, a binding he calls "exactly as strong as the operator’s trust list or pinned CA". The check does not yet include the signer's login (OIDC in server mode, or Sigstore). Binding signers to those identities is on his roadmap. Identity elsewhere is early too. Today's trust primitives include did:key identifiers with Verifiable Credentials and delegation ("acted-as") chains, all labelled experimental; workload identity through SPIFFE/SPIRE, and DID/VC identity beyond that did:key slice, sit on the longer horizon. For people, the server mode's OIDC, RBAC, SAML and SCIM support is labelled experimental, and nova login is demo-only.
  2. 2BI-FIND-2026-2453 · Qwixl's agent-messaging draft makes data misuse attributable to a key, not preventableChapman's draft treats who signed a message and who sent it as two questions. An agent is identified by an Ed25519 did:key, and conforming implementations MUST NOT require network resolution of it to verify a signature; the agent's MLS credential carries that DID, and the signature key in its LeafNode MUST be the same key (a ciphersuite that does not sign with Ed25519 needs a proof of possession instead, whose encoding the draft has not yet defined). Inside an MLS session the receiver's third check then confirms that the object's issuerDid equals the identity in the credential of the member that sent it. The draft calls that check essential and "easily omitted": without it any group member can emit an object bearing another member's issuerDid, and the signature check alone does not catch it, because the signature is valid. "Implementations MUST NOT treat a valid signature as evidence of who transmitted the message." Tying membership and signing to one key has a cost the draft names as a deliberate trade: a compromise of that private key compromises both membership and signing.
  3. 3BI-FIND-2026-0640 · DIF's agent spec names every AI agent by a DID; the IETF's Agent Name Service switched to domain namesKYA-OS names AI agents by decentralized identifiers and nothing else. Implementations must support did:key and did:web; no DNS name, OAuth client id or other identifier counts as an agent's identity, and the agent generates its own key, which no registry or verifier may ever hold. That is narrower than DIF described it in April 2026, when the first conformance level was to use existing OIDC and JWT identifiers; the v1.0 conformance document's Level 1 begins by deriving a did:key. It puts the Decentralized Identity Foundation's agent spec on the opposite side from the IETF's Agent Name Service, which moved from DIDs to domain names in its April 2026 revision.
  4. 4BI-FIND-2025-0305 · A DeepMind paper puts agent markets on DIDs and credentials but leaves delegation unspecifiedTomašev and his co-authors write that agent communication protocols such as A2A and MCP are necessary "but otherwise not sufficient" for agent markets, which also need authentication, billing and an identity layer underneath. In their sketch each agent is anchored to a decentralized identifier (DID), for instance did:key for throwaway task agents and did:ion for persistent, high-value ones. Reputation travels as verifiable credentials that an issuer such as a marketplace signs and a buyer agent checks, and an agent's controller could be required to show a proof-of-personhood credential to receive certain allocations, as a defence against Sybil attacks. What an agent may do for its user is left open: agents bid "presuming explicit permission has been granted", and the paper specifies no delegation or authorization mechanism.

›In our briefings

What our briefings say about did:key itself, with the most direct claims first.

  1. KYA-OS names AI agents by decentralized identifiers and nothing else. Implementations must support did:key and did:web, and no DNS name, OAuth client id or other identifier counts as an agent's identity. The key pair is generated by the agent or a custodian inside the agent's own trust boundary, and no registration, DID, directory or reputation service may generate or hold the secret key. Our briefing on the Agent Name Service, an individual Internet-Draft the IETF has not adopted or endorsed, found it moved from DIDs to domain names in its April 2026 revision, the opposite choice.

    DIF's KYA-OS names every AI agent by a DID and makes the verifier check every delegation hopBI-FIND-2026-0640

›Cited in 11 briefings

Every briefing that discusses this term, newest first.

  1. Qwixl's agent-messaging draft makes data misuse attributable to a key, not preventable

    Draft · · IETF Datatracker · Luke Daniel Chapman, Qwixl · Nov 16, 2026

  2. Sweeney's delegation draft concedes its server is trusted with users' credentials, and drops an interop claim

    Draft · · IETF Datatracker · Kieran Sweeney · Oct 13, 2026

  3. NovaFabric seals AI agent runs as signed evidence, and its author says a signature proves a key, not a person

    Paper · · arXiv · Mohsen Seyedkazemi Ardebili · Oct 25, 2026

  4. UCAN 1.0 drops the authorization server, and its editors admit a delegator cannot see later hand-offs

    Article · · GitHub (ucan-wg) · Brooklyn Zelenka et al. · Oct 2, 2026

  5. DIF's KYA-OS names every AI agent by a DID and makes the verifier check every delegation hop

    Article · · Decentralized Identity Foundation (KYA-OS) · Dylan Hobbs et al. · Jul 29, 2026

  6. In Accenture's agent-delegation design, the user is the trust anchor and revocation is left open

    Paper · · arXiv · Srikumar K. Subramanian et al. · Sep 25, 2026

  7. A 'decentralized' agent identity draft blocks risky calls when its Registry is down, and did:aip is taken

    Draft · · IETF Datatracker · Paras Singla · Apr 17, 2026

  8. Credential wallet draft makes holder binding a MUST; its own SD-JWT profile names no way to provide it

    Draft · · IETF Datatracker · Leif Johansson et al. · Nov 4, 2025

  9. A DeepMind paper puts agent markets on DIDs and credentials but leaves delegation unspecified

    Paper · · arXiv · Nenad Tomašev et al. · Sep 12, 2025

  10. A 'provable' bound on agent-memory injection assumes independent layers and fills in none of its detection rates

    Paper · · arXiv · Ken Huang et al. · Aug 17, 2025

  11. W3C Data Integrity proofs name their purpose, so a verifier can refuse a credential signature offered as a login

    Article · · W3C · Manu Sporny et al. · May 15, 2025

Related terms

What appears alongside did:key in the same briefings.

DID / Verifiable Credentialsdid:webzCAP-LD (Authorization Capabilities for Linked Data)UCANToken Status List

Was this explainer useful?

Share this explainer

Every finding, forecast and open question on this site has a permanent ID. If we reword one, its ID stays the same, so a citation keeps pointing to the same claim.

Follow us on LinkedInRSS feed

Working on an identity problem that involves did:key? Talk to Boston Identity