# What is did:key?

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

Explainer by Boston Identity, 2026-11-20. 6 min read. https://insights.bostonidentity.com/glossary/did-key

- What it is: standard
- Defined by: W3C Credentials Community Group, v0.9 draft
- Who it's for: Teams giving agents and services keys

## 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 Key Rotation Not Supported].

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 Introduction]. The identifier is the key, written in an agreed encoding [S1 Identifier Syntax].

The text is still being worked on: it asks for feedback on whether one of its own checks can be implemented [S1 Signature Method Creation Algorithm]. 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 Introduction].

Think of it like this: Think of a wax seal whose pattern is also the owner's name. Anyone can match seal to name without asking a registrar, but if the ring is stolen the owner cannot keep the name and get a new ring. The comparison stops at forgery: a seal is judged by eye, a signature by mathematics.

Not the same as: Not the same as a certificate, where an authority vouches for who holds the key. did:key works without any certificate authority [S1 Introduction], 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" [BI-FIND-2026-1820](https://insights.bostonidentity.com/ref/BI-FIND-2026-1820).

## 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 [S1 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 Document Creation Algorithm].

[Figure: 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.]

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 [S1 Create]. No registration follows, since did:key values are not stored in any registry [S1 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 Identifier Syntax]. The spec's example for an Ed25519 key is did:key:z6MkhaXgBZDvotDkL5257faiztiGiC2QtKLGpbnnEGta2doK. The same key material always produces the same identifier [S1 Introduction].
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 Document Creation Algorithm].
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 Decode Public Key Algorithm]. 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 Signature Method Creation Algorithm].
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 Document Creation Algorithm]. Reading a did:key is a matter of repeating this expansion [S1 Read]. The method supports no update or deactivation of the document [S1 Update] [S1 Deactivate].

## 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 [BI-FIND-2026-2453](https://insights.bostonidentity.com/ref/BI-FIND-2026-2453). 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 [BI-FIND-2026-2453](https://insights.bostonidentity.com/ref/BI-FIND-2026-2453).

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 [BI-FIND-2026-0640](https://insights.bostonidentity.com/ref/BI-FIND-2026-0640). A DeepMind paper on agent markets sketches did:key for throwaway task agents and another method, did:ion, for persistent, high-value ones [BI-FIND-2025-0305](https://insights.bostonidentity.com/ref/BI-FIND-2025-0305). That split matches the spec's own advice to keep did:key for short-lived use [S1 Introduction].

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 [BI-FIND-2026-1820](https://insights.bostonidentity.com/ref/BI-FIND-2026-1820). 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.

## Where does it fit?

- Compared with did:web: did:web is the other DID method that the KYA-OS agent specification requires implementations to support [BI-FIND-2026-0640](https://insights.bostonidentity.com/ref/BI-FIND-2026-0640). did:key needs no network at all: its document is computed from the identifier, with no registry look-ups [S1 Introduction].
- Compared with DID / Verifiable Credentials: did: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 Deactivation Not Supported].

## 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 Key Rotation Not Supported].
- 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 Deactivation Not Supported].
- 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 Identifier Correlation Risks].
- 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 Key Derivation Lacks Proof].
- 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 Identifier Syntax] [S1 Document Creation Algorithm].

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 Key Rotation Not Supported]. Use lasting weeks to months is strongly discouraged without such a module [S1 Long Term Usage is Discouraged].

## What should a security leader ask?

1. Which of our agents, services or devices are identified by a did:key, and how long has each identifier been in use?
2. If the private key behind one of those identifiers is stolen tonight, how do we tell every party that trusts it to stop?
3. 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. When a vendor's product accepts a did:key signature, what else does it check to learn who the signer is?
5. Do we present the same did:key to several outside parties, letting them link our activity?

## Sources

- [S1] [The did:key Method v0.9](https://w3c-ccg.github.io/did-key-spec/) (W3C Credentials Community Group, v0.9, community group draft)

## Evidence

- [BI-FIND-2026-1820](https://insights.bostonidentity.com/ref/BI-FIND-2026-1820): Ardebili'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. (from "NovaFabric seals AI agent runs as signed evidence, and its author says a signature proves a key, not a person")
- [BI-FIND-2026-2453](https://insights.bostonidentity.com/ref/BI-FIND-2026-2453): Chapman'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. (from "Qwixl's agent-messaging draft makes data misuse attributable to a key, not preventable")
- [BI-FIND-2026-0640](https://insights.bostonidentity.com/ref/BI-FIND-2026-0640): KYA-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. (from "DIF's agent spec names every AI agent by a DID; the IETF's Agent Name Service switched to domain names")
- [BI-FIND-2025-0305](https://insights.bostonidentity.com/ref/BI-FIND-2025-0305): Tomaš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. (from "A DeepMind paper puts agent markets on DIDs and credentials but leaves delegation unspecified")

---

© 2026 Boston Identity LLC. All rights reserved. Published by Boston Identity LLC.
Quote up to 100 words with the credit "Boston Identity, IAM Insights" and a link to https://insights.bostonidentity.com/glossary/did-key as the source. Claim numbers may be cited freely. Training, fine-tuning and text-and-data-mining use of this page is permitted.
Terms: https://insights.bostonidentity.com/terms · How to cite: https://insights.bostonidentity.com/cite
