DID Guardian Method Specification, v1.0.0

The did:guardian Method, v1.0.0

Status: Stable, 2026-12-03.

1. Overview

This section is non-normative.

A did:guardian identity is a signed, hash-chained log of operations, hosted at a domain. The identity's keys control it. Guardians are other did:guardian identities that the identity names, and each guardian records the identities it guards in its log. Guardians can recover the identity and govern it, under a policy the identity sets. The registrar for a domain hosts the logs for that domain, decides the order of their operations, and attests each new identity.

Every proof on an operation verifies from the log that contains it. When an operation involves another identity, the registrar checks that identity's current log before it accepts the operation. Resolvers check attestations and the state of guardian relationships.

did:guardian combines the hosting model of did:web, the signed log of did:plc, and guardianship.

2. Conformance

The key words MUST, MUST NOT, SHOULD and MAY are to be interpreted as described in BCP 14 (RFC 2119, RFC 8174) when they appear in all capitals.

Sections 1, 12, 13 and Appendix A are non-normative. All other sections are normative.

This specification defines requirements for identities, registrars and resolvers.

3. Terminology

identity
A DID of this method, and the log that defines it.
operation
A JSON object that changes the state of an identity.
log
The ordered list of all operations of an identity.
state
The values that result from applying every operation of a log in order (Section 6).
key
A public key of a key type in Table 1.
guardian
An identity named in another identity's guardians.
ward
An identity that names a guardian or a successor.
successor
An identity named in another identity's successor. It becomes the guardian when the last guardian is removed (Section 6.2).
entry
The record of a guardian or a successor in a ward's state (REQ-6-2). Two entries are equal if their did, anchor and consent are equal and their keys are equal (REQ-5-5).
registrar
The service that hosts the logs for a domain.
verifier
A party that verifies a log (Section 8).
proof
An element of an operation's proof member. The attestation is not a proof.
root identity
The identity did:guardian:<domain>, which belongs to the registrar of that domain.
operation hash
The hash of a complete operation (Section 5.2).
version
The operation hash of an operation in a log. The version of a log is the operation hash of its last operation.
anchor
The hash of parts of the first operation of a log (REQ-5-7).

4. Identifier

REQ-4-1. A did:guardian DID MUST match one of these forms:

did:guardian:<domain>
did:guardian:<domain>:<name>

REQ-4-2. <domain> MUST be a DNS hostname of two or more labels, in lowercase, at most 253 characters long. Each label MUST be 1 to 63 characters from a–z, 0–9 and -, and MUST begin and end with a letter or a digit. Internationalized names MUST use their A-label form. The last label MUST NOT consist only of digits.

REQ-4-3. <name> MUST be 3 to 32 characters from a–z, 0–9 and -. It MUST begin and end with a letter or a digit.

REQ-4-4. The form without <name> identifies the root identity of the domain.

REQ-4-5. The path segment of an identity is its <name>, or _ for the root identity.

REQ-4-6. Two DIDs are equal if their strings are equal.

5. Encoding

5.1 Values

REQ-5-1. An operation MUST be an I-JSON message (RFC 7493).

REQ-5-2. Every number in an operation MUST have an integer value between 0 and 2^53 − 1.

REQ-5-3. An operation MUST contain exactly the members that Section 7 defines for its type, and MAY also contain the members extensions and critical (Section 7.11). Every object inside an operation MUST contain exactly the members that this specification defines for it. A policy object MAY also contain the member extensions.

REQ-5-4. The canonical form of a JSON value is its JSON Canonicalization Scheme serialization (RFC 8785).

REQ-5-5. Two lists of keys are equal if they contain the same keys, in any order.

5.2 Hashes

REQ-5-6. The hash of a JSON value is computed as follows:

  1. Serialize the value in canonical form.
  2. Compute the SHA-256 digest of the serialization.
  3. Prefix the digest with the multihash header bytes 0x12 0x20.
  4. Encode the result as base58btc with the multibase prefix z.

The operation hash of an operation is the hash of the complete operation.

REQ-5-7. The anchor of a log is the hash of its first operation with the proof, attestation, guardians and successor members removed.

5.3 Keys

Table 1. Key types

Key type Multibase prefix Multicodec Header bytes Key length Cryptosuite Signature length
ML-DSA-44 (FIPS 204) u (base64url without padding) 0x1210 0x90 0x24 1312 bytes mldsa44-jcs-2024 2420 bytes

REQ-5-8. A key MUST be a public key of a key type in Table 1, encoded as a Multikey: the header bytes (the unsigned-varint encoding of the multicodec code), followed by the public key, encoded with the multibase prefix. The encoding MUST be canonical: decoding the key and encoding the result again produces the same string. The key type of a key is given by its multibase prefix and its multicodec code.

REQ-5-9. The public key after the header bytes MUST have the key length in Table 1.

A later version of this specification can add key types to Table 1. A verifier reports an operation that contains a key of a type it does not implement as unsupported (REQ-8-1).

5.4 Proofs

REQ-5-10. An operation's proof member MUST be an array of Data Integrity proofs, sorted by verificationMethod in code-point order. Each proof secures the operation independently.

REQ-5-11. Each proof MUST contain exactly these members:

Member Value
type "DataIntegrityProof"
cryptosuite the cryptosuite of the key type of the signer's key in Table 1
verificationMethod did:key:<key>#<key>
proofPurpose "capabilityInvocation"
proofValue the signature

REQ-5-12. Proofs MUST be created and verified with the mldsa44-jcs-2024 cryptosuite (W3C Quantum-Resistant Cryptosuites v1.0), as follows:

  1. The secured document is the operation with the proof and attestation members removed.
  2. The proof configuration is the proof with the proofValue member removed.
  3. The signed data is the SHA-256 digest of the canonical proof configuration, followed by the SHA-256 digest of the canonical secured document.
  4. The signature is an ML-DSA-44 signature over the signed data, created with ML-DSA.Sign and verified with ML-DSA.Verify (FIPS 204), with an empty context string.
  5. proofValue is the signature, encoded as base64url without padding with the multibase prefix u.

REQ-5-13. The signature in proofValue MUST have the signature length in Table 1, and its encoding MUST be canonical: decoding it and encoding the result again produces the same string. A verifier MUST reject any other proofValue.

REQ-5-14. The signer of a proof is the key in its verificationMethod. A proof is valid if its signature verifies with that key.

REQ-5-15. An operation MUST NOT contain two proofs from the same key.

REQ-5-16. A key approves an operation if the operation contains a valid proof from that key. A guardian or successor approves an operation if at least one key in its entry approves it.

REQ-5-17. Before a party creates a proof for an operation other than create, it MUST verify the log of the DID that it presents to the key holder as the identity that the operation changes, and MUST NOT create the proof unless that log is valid and the operation's prev equals the operation hash of the last operation in that log.

6. State

REQ-6-1. The state of an identity consists of:

Field Value
keys a list of 1 to 8 distinct keys
guardians a list of 0 to 32 entries with distinct DIDs
successor an entry, or null
wards a list of ward records with distinct DIDs
policy a policy object (Section 6.3)
services a list of 0 to 32 services with distinct id values
alsoKnownAs a list of 0 to 32 distinct URIs (RFC 3986)
deactivated true or false
critical a list of distinct extension names (Section 7.11)

REQ-6-2. An entry MUST contain exactly the members did, anchor, keys and consent. did is a did:guardian DID. anchor and consent are hashes (REQ-5-6). keys is a list of 1 to 8 distinct keys. REQ-10-6 defines what anchor and consent name.

REQ-6-3. A key MUST NOT appear more than once across keys, the keys of every entry in guardians, and the keys of successor.

REQ-6-4. A ward record MUST contain exactly the members did and anchor. did is a did:guardian DID. anchor is a hash (REQ-5-6).

REQ-6-5. The DID of an identity MUST NOT appear in its guardians, its successor or its wards. The DID of successor MUST NOT appear in guardians.

REQ-6-6. A service MUST contain exactly the members id, type and serviceEndpoint. id MUST be # followed by a DID URL fragment, and MUST NOT begin with #key- after percent-decoding. type MUST be a string. serviceEndpoint MUST be a URI (RFC 3986).

REQ-6-7. After each operation, the state MUST conform to REQ-6-1 through REQ-6-6 and Section 6.3.

6.1 Required approvals

REQ-6-8. Let N be the number of guardians in the state before an operation. Let E be the number of guardians eligible to approve it. E equals N − 1 for removeGuardian, and N for every other operation. For a setting value v, the number of guardian approvals required is computed as follows:

  1. Start with a base value: 1 for "any", floor(E / 2) + 1 for "majority", E for "all", and the smaller of k and E for an integer k.
  2. If v is not "any" and N is at least 2, raise the value to at least 2.
  3. For membership and for the threshold of deactivation, raise the value to at least floor(N / 2) + 1.

REQ-6-9. A clause of REQ-7-6 that requires guardians per a setting cannot be met if E is 0 or if the required number is greater than E.

6.2 Orphaning

REQ-6-10. When a removeGuardian leaves guardians empty, the state changes according to policy.orphan:

orphan Change
"deactivate" deactivated becomes true
"independent" no change
"successor" the successor entry becomes the only entry in guardians, successor becomes null, and orphan becomes "deactivate"

6.3 Policy

REQ-6-11. A policy object MAY contain these members. A member that is absent takes its default value.

Member Governs Allowed values Default
recovery guardian approval of update, acceptWard and releaseWard "any", "majority", "all", integer k "majority"
membership guardian approval of addGuardian and setPolicy "majority", "all", integer k "majority"
removal guardian approval of removeGuardian "any", "majority", "all", integer k "majority"
deactivation approval of deactivate a deactivation object (REQ-6-12) {"by": "both", "threshold": "majority"}
orphan the change when the last guardian is removed (REQ-6-10) "deactivate", "independent", "successor" "deactivate"
maxWards the largest allowed size of wards integer k ≥ 1 no limit

REQ-6-12. A deactivation object MUST contain exactly the members by and threshold. by MUST be one of "self", "guardians", "either" or "both". threshold MUST be "majority", "all" or an integer k.

REQ-6-13. An integer k in recovery, membership, removal or threshold MUST be between 1 and 32.

REQ-6-14. orphan MUST be "successor" if successor is an entry, and MUST NOT be "successor" if successor is null.

REQ-6-15. If maxWards is present, wards MUST NOT contain more than maxWards records.

7. Operations

7.1 Common members

REQ-7-1. Every operation MUST contain the members type, prev and proof.

REQ-7-2. type MUST be one of create, update, addGuardian, updateGuardian, removeGuardian, setPolicy, acceptWard, releaseWard or deactivate.

REQ-7-3. The first operation of a log MUST be a create. A later operation MUST NOT be a create.

REQ-7-4. In a create, prev MUST be null. In every other operation, prev MUST be the operation hash of the preceding operation.

7.2 Approval rules

In the following rules:

  • "one current key" means approval by at least one key in keys in the state before the operation;
  • "guardians per s" means approvals from the number of current guardians that REQ-6-8 requires for setting s;
  • "every key in X" means approval by every key in the list X in the operation.

For a create, there is no current key, guardian or successor, and N is 0.

REQ-7-5. Every proof on an operation MUST come from one of these keys: a key in keys, in an entry in guardians, or in successor, in the state before the operation; or a key in a list of keys in the operation.

REQ-7-6. An operation MUST have the approvals that the following table requires.

Type Required approvals
create every key in keys; every key in each entry in guardians; every key in successor, if it is an entry
update every key in keys; and either one current key or guardians per recovery
addGuardian every key in entry; one current key; and guardians per membership, if N > 0
updateGuardian every key in keys; and either a key in the named entry, or one current key together with one guardian other than the named one
removeGuardian one of: the removed guardian, if N ≥ 2; guardians per removal, from the guardians other than the removed one; one current key, if evidence is present; or one current key together with the successor, if N = 1 and successor is an entry
setPolicy one current key; guardians per membership, if N > 0, unless the state before has a successor entry, the operation's successor is null, the operation has no critical, and its policy, with absent members taken at their defaults, equals the current one except that orphan is "deactivate"; and every key in successor, if it is an entry that differs from the current successor
acceptWard one current key, or guardians per recovery
releaseWard one current key, or guardians per recovery
deactivate if N = 0, one current key; otherwise, as policy.deactivation.by specifies: self, one current key; guardians, guardians per deactivation.threshold; either, one of the two; both, both

7.3 create

REQ-7-7. A create MUST contain the members type, did, keys, guardians, successor, policy, services, alsoKnownAs, prev and proof. The create of an identity other than a root identity MUST contain the member attestation. The create of a root identity MUST NOT contain it.

REQ-7-8. did is the DID of the identity. keys, guardians, successor, policy, services and alsoKnownAs set the initial state. wards is empty and deactivated is false.

REQ-7-9. attestation MUST be an object with the members and values of REQ-5-11, except that its cryptosuite can be any string and its verificationMethod is did:guardian:<domain>?versionId=<version>#key-<n>, where <domain> is the domain of did, <version> is a version of the root identity's log, and <n> is a decimal integer without leading zeros. It secures the same document as the proofs (REQ-5-12).

7.4 update

REQ-7-10. An update MUST contain the members type, keys, services, alsoKnownAs, prev and proof.

REQ-7-11. update replaces keys, services and alsoKnownAs in the state.

7.5 addGuardian

REQ-7-12. An addGuardian MUST contain the members type, entry, prev and proof. entry is an entry (REQ-6-2).

REQ-7-13. The DID of entry MUST NOT already be a guardian.

REQ-7-14. addGuardian appends entry to guardians.

7.6 updateGuardian

REQ-7-15. An updateGuardian MUST contain the members type, guardian, keys, prev and proof. guardian is the DID of a current guardian or of the successor.

REQ-7-16. updateGuardian replaces the keys of the entry for guardian.

7.7 removeGuardian

REQ-7-17. A removeGuardian MUST contain the members type, guardian, prev and proof. It MAY contain the member evidence. guardian is the DID of a current guardian.

REQ-7-18. If present, evidence is a hash (REQ-5-6). REQ-10-7 defines what it names.

REQ-7-19. removeGuardian removes the entry for guardian, and then applies REQ-6-10.

7.8 setPolicy

REQ-7-20. A setPolicy MUST contain the members type, policy, successor, prev and proof. successor is an entry or null.

REQ-7-21. setPolicy replaces policy and successor in the state.

7.9 acceptWard and releaseWard

REQ-7-22. An acceptWard MUST contain the members type, ward, prev and proof. ward is a ward record (REQ-6-4).

REQ-7-23. The DID of ward MUST NOT already be in wards.

REQ-7-24. acceptWard appends ward to wards. It records that the identity consents to be a guardian or successor of that ward.

REQ-7-25. A releaseWard MUST contain the members type, ward, prev and proof. ward is the DID of a record in wards.

REQ-7-26. releaseWard removes the record for ward from wards. It records that the identity withdraws its consent.

7.10 deactivate

REQ-7-27. A deactivate MUST contain the members type, prev and proof.

REQ-7-28. deactivate sets deactivated to true.

7.11 Extensions

REQ-7-29. extensions is an object. Each member name is an extension name, and each value is defined by that extension. An extension name MUST be an absolute URI.

REQ-7-30. critical is a non-empty list of distinct extension names. Only a create or a setPolicy MAY contain critical. Each name in critical MUST be a member of the extensions of the operation's policy. While a name is in the state's critical, policy.extensions MUST contain a member with that name. The configuration of a critical extension is held only in policy.extensions.

REQ-7-31. An extension affects whether an operation is valid only if its name is in the state's critical before the operation or in the operation's critical.

REQ-7-32. An operation adds each name in its critical to the state's critical, if it is not already there. A name in the state's critical remains there for every later operation of the log.

REQ-7-33. An extension MAY add requirements to operations. An extension MUST NOT remove or weaken a requirement of this specification.

REQ-7-34. A verifier MUST ignore every extension that REQ-7-31 does not apply to, whether or not it implements that extension. Ignored extensions remain part of the operation hash and the secured document. The contents of an extension value are defined by the extension, not by REQ-5-3.

REQ-7-35. An extension defines how its configuration changes. A change to an extension's configuration requires the approvals that this specification requires for the operation that makes it.

8. Verification

REQ-8-1. A verifier MUST verify the log of a DID by the following steps, and report one of three results. An operation is unsupported if the state's critical before it, or the operation's critical, names an extension that the verifier does not implement, or if its type, the cryptosuite of one of its proofs, or the key type of a key in it (REQ-5-8), has a value that the verifier does not implement. The verifier processes operations in order and stops at the first operation that is unsupported or that fails a step. Within one operation, the unsupported conditions are checked before the steps. It reports unsupported or invalid for that operation, or valid if no operation stops it. A verifier MUST NOT treat an unsupported log as valid.

  1. The log is a non-empty array of operations.
  2. The first operation is a create whose did equals the DID.
  3. Each later operation's prev equals the operation hash of the operation before it.
  4. No operation follows a state in which deactivated is true.
  5. For each operation in order:
    1. The operation conforms to Sections 5 and 7.
    2. Every proof is valid (REQ-5-14) and comes from a permitted key (REQ-7-5).
    3. The approvals meet the rule in REQ-7-6, evaluated against the state before the operation.
    4. Apply the operation to the state, and check that the result conforms to Section 6.

REQ-8-2. Verification of a log depends only on that log, and not on other logs or on the time of verification.

9. DID document

REQ-9-1. The DID document of an identity is derived from its state after the last operation of its log.

REQ-9-2. If the state is not deactivated, the DID document MUST contain exactly:

Member Value
@context ["https://www.w3.org/ns/did/v1", "https://w3id.org/security/multikey/v1"]
id the DID
verificationMethod for each key at index n of keys: {"id": "<did>#key-<n>", "type": "Multikey", "controller": "<did>", "publicKeyMultibase": "<key>"}
authentication, assertionMethod, capabilityInvocation the id of every verification method
service the services, each with its id prefixed by the DID; an empty list if there are none
alsoKnownAs the alsoKnownAs list, if it is not empty

REQ-9-3. If the state is deactivated, the DID document MUST contain exactly @context and id.

REQ-9-4. DID document metadata MUST include versionId, the version of the log, and anchor, the anchor of the log. If the state is deactivated, DID document metadata MUST include "deactivated": true.

REQ-9-5. Resolving a DID URL with the parameter versionId=<version> yields the DID document derived from the state after the operation whose operation hash is <version>.

10. Registrar

10.1 Resources

REQ-10-1. The registrar for a domain MUST serve these resources over HTTPS at https://<domain>/.well-known/guardian/<segment>, where <segment> is the path segment of the identity (REQ-4-5):

Method and path Response
GET .../<segment>/log the log, as a JSON array in log order
GET .../<segment> the DID document
POST .../<segment>/operations accepts one operation as the request body

REQ-10-2. A GET request MUST NOT change any state.

REQ-10-3. A registrar MUST serve the complete log of a DID, including every operation it has accepted for that DID.

REQ-10-4. A registrar MUST respond to a rejected operation with HTTP status 400 and a JSON object with an error member that describes the reason.

10.2 Accepting operations

REQ-10-5. A registrar MUST accept an operation only if all of these hold:

  1. Its prev equals the version of the log, or it is a create whose did has the path segment of the request and that path segment has no log.
  2. The log, with the operation appended, is valid (Section 8). An unsupported result is a rejection.
  3. Every check in REQ-10-7 that applies to the operation holds.

REQ-10-6. An entry has standing for an identity if the current log of the entry's did verifies and, in that log:

  1. the anchor equals the entry's anchor;
  2. the state is not deactivated;
  3. the state's keys equal the entry's keys;
  4. consent is an acceptWard whose ward names the identity's DID and anchor;
  5. the state's wards contains that record.

REQ-10-7. Before accepting an operation, a registrar MUST fetch the current log of each other identity that the operation involves, and check the rows below. The identities an operation involves are: the DIDs of its new entries; the guardians and successors whose keys approve it; the guardian of a removeGuardian with evidence; the successor in a promotion (REQ-6-10) or in the successor-to-null exception of REQ-7-6; and the ward of an acceptWard. A log that cannot be fetched counts as a log that does not verify. A DID has no log only if its registrar reports that it has none.

Case Check
a create that names entries, an addGuardian, an updateGuardian, or a setPolicy whose successor is an entry that differs from the current one each new entry has standing
any operation it meets REQ-7-6 when only approvals from guardians and successors whose entries have standing are counted; for an updateGuardian, item 3 is not required of the named guardian or successor
a removeGuardian with evidence the log of guardian verifies and its anchor equals the entry's anchor; evidence names an operation in that log that follows the entry's consent and is either a releaseWard whose ward is this identity or an operation after which the state of that log is deactivated; and item 2 or item 5 of REQ-10-6 does not hold
a removeGuardian that promotes the successor (REQ-6-10) the successor's entry has standing
a setPolicy that does not meet membership when only approvals with standing are counted, and relies on the successor-to-null exception of REQ-7-6 the log of the current successor verifies and its anchor equals the entry's anchor, and item 2 or item 5 of REQ-10-6 does not hold
an acceptWard if the ward's DID has a log, that log verifies and the ward record names its anchor

REQ-10-8. A registrar MUST accept at most one operation for each value of prev in a log.

REQ-10-9. For a create of an identity other than its root identity, the registrar MUST also require that the DID's domain is its domain and that the name is unused (REQ-10-12). It MUST add the attestation, using a key of its root identity and the current version of the root identity's log, before it applies REQ-10-5.

REQ-10-10. A registrar MUST create its root identity before it accepts any other create. It MUST NOT accept a create of its root identity through REQ-10-1.

REQ-10-11. A registrar MUST NOT remove or alter an accepted operation. A registrar MUST continue to serve the log of a deactivated identity.

REQ-10-12. A registrar MUST NOT accept a create for a name for which it has already accepted a create.

REQ-10-15. A registrar MUST record the anchor and the version of every log it fetches under REQ-10-7, including for operations it rejects. If a later fetch yields a different anchor, or a log that does not contain the recorded version, the registrar MUST treat that log as a log that cannot be fetched.

10.3 Held keys

REQ-10-13. A registrar that holds a private key for an identity MUST create a proof with that key only:

  1. for a secured document (REQ-5-12) that a request authenticated as that identity contains or names by its hash;
  2. for the create of that identity, in the request that creates it; or
  3. for an update of that identity that installs that key, when the current keys of that identity include a key the registrar holds, the registrar generated the new key for that update, and the request is authenticated as a guardian or successor of that identity whose entry has standing (REQ-10-6).

REQ-10-14. Apart from the attestation, one request MUST NOT cause a registrar to create proofs for more than one identity, except that a request authenticated as an identity MAY also cause the proofs on the create of an identity that the request creates, or the proof of REQ-10-13 item 3.

11. Resolution

REQ-11-1. To resolve a DID, a resolver MUST:

  1. fetch the log from the registrar of the DID's domain;
  2. verify the log (Section 8), or, for a DID URL with versionId, the log up to and including that operation;
  3. verify the attestation of its create, unless the DID is a root identity (REQ-11-2);
  4. derive the DID document (Section 9).

REQ-11-2. A resolver that does not implement the cryptosuite of an attestation MUST report the attestation as unsupported. Otherwise, an attestation is valid if the log of the root identity of the DID's domain contains the operation named by versionId, that log up to and including that operation verifies, the state after that operation is not deactivated and has a key at index <n>, and the signature verifies with that key.

REQ-11-3. A resolver SHOULD record the anchor and the version of each log it fetches.

REQ-11-4. If a later fetch of a log yields a different anchor, the resolver MUST report that the DID refers to a different identity. Otherwise, if the resolver has recorded a version for that log, it MUST verify the log from its first operation up to and including the recorded version or the operation named by versionId, whichever is later in the log. If the log does not contain the recorded version, or that verification does not report valid, the resolver MUST report that the log was rolled back or forked.

REQ-11-5. For each entry in guardians and successor, a resolver MAY fetch the log of the entry's did and report the first result in this table whose condition holds:

Result Condition
unavailable the log cannot be fetched or does not verify
different identity the log's anchor differs from the entry's anchor
deactivated the state is deactivated
withdrawn consent is not an acceptWard that names this identity's DID and anchor, or wards does not contain that record
keys out of date the state's keys differ from the entry's keys
mutual none of the above

REQ-11-6. For each record in wards, a resolver MAY fetch the log of the record's did and report the first result whose condition holds: unavailable, if the log cannot be fetched or does not verify; different identity, if its anchor differs from the record's anchor; guardian, if its guardians has an entry whose did and anchor are this identity's; successor, if its successor is such an entry; otherwise, not related.

REQ-11-7. A resolver MUST NOT present a guardianship as mutual unless REQ-11-5 reports mutual or keys out of date.

REQ-11-8. A resolver MAY verify a log that another party presents. A presented log is current only as of its version.

REQ-11-9. A resolver MUST NOT return a DID document if the log verified in step 2 of REQ-11-1 is invalid or unsupported, if the attestation is not valid, or if REQ-11-4 reports a different identity or a rolled-back or forked log.

12. Security considerations

This section is non-normative.

Order of operations. Every proof is verifiable from its log, but the registrar decides the order in which operations are accepted. A verifier relies on the registrar for that order, as with did:web and did:plc.

Checks at acceptance. The checks in REQ-10-7 compare an operation with other logs at the time of acceptance. A verifier does not repeat them. A resolver can compare current logs (REQ-11-5), but cannot tell what another log contained at the time of acceptance. Removal with evidence depends on these checks; it also requires one current key, so a registrar alone cannot use it.

Joining and leaving. A guardian records acceptWard before the ward adds it, because REQ-10-7 requires the consent to exist. A guardian that leaves SHOULD remove itself from the ward before it records releaseWard. A guardian that records releaseWard first, or that is deactivated, loses standing, so a registrar rejects its approvals for that ward (REQ-10-7), and the ward can remove it with evidence. Evidence counts only if it follows the guardian's current consent, so a releaseWard from an earlier period of guardianship cannot be reused.

Guardian keys. A ward's entry holds a copy of the guardian's keys. When a guardian replaces its keys, it updates each of its entries with updateGuardian; its wards lists them. Until then, a registrar rejects approvals made with the old keys (REQ-10-7). A successor's entry is updated with updateGuardian or setPolicy. A resolver reports entries whose keys are out of date (REQ-11-5).

Stolen guardian key. A party that holds a guardian's current key can act as that guardian in every ward until each ward removes the entry or the guardian replaces its keys.

Lost guardian key. A guardian that loses its key recovers its identity through its guardians. Each ward then updates the entry with one current key and one other guardian (REQ-7-6). A ward whose only guardian lost its key cannot update the entry; its successor, if any, can replace that guardian.

Sole guardian. A sole guardian that leaves SHOULD first approve the addition of a replacement, then remove itself. A sole guardian that dies or withdraws without a replacement cannot be replaced by the ward's keys alone, because the ward cannot add a guardian, name a successor or change orphan without its guardians. The ward can then only remove the guardian with evidence, which applies orphan. A successor refreshes its entry with updateGuardian.

Mutual guardians. If two identities are each other's only guardian, one stolen key gives control of both: the holder replaces the keys of one identity, then uses it as guardian to replace the keys of the other. Give each identity at least one guardian outside such a pair.

Stolen key. A party that holds a stolen key can act as the identity until the guardians replace the key. Those operations remain in the log. A registrar accepts only one operation for each prev (REQ-10-8). A party that holds a stolen key, or a guardian whose approval alone meets a rule, can therefore keep submitting operations so that operations prepared by other parties name an outdated prev. This delays recovery for as long as that party continues.

Unilateral settings. recovery: "any" lets one guardian replace the keys. removal: "any" lets one guardian remove another; with two guardians, either can remove the other. Guardians that can meet removal can remove the other guardians and then meet every other setting, so no setting is stricter in effect than removal. deactivation.by: "self" or "either" lets anyone who holds a key end the identity. Choose these settings deliberately.

Two guardians. With two guardians and removal other than "any", neither guardian can remove the other. Use three or more guardians, or set removal: "any", which lets either guardian remove the other and then act alone.

Orphaning. Every way to remove the last guardian requires one current key. Under the default orphan: "deactivate", the identity is then deactivated, and deactivation is permanent. To lower the risk, use guardians on more than one domain, or name a successor.

Unavailable guardians. A registrar cannot check the standing of a guardian whose log cannot be fetched, so it cannot accept that guardian's approvals or changes to its entry, or a removal with evidence. If no guardian can approve, operations that need guardians cannot be accepted. A guardian whose domain lapses, or whose registrar rolls back or forks its log, cannot be removed with evidence, and such a successor cannot be promoted or removed; with one guardian, or two under the default policy, the ward then permanently loses recovery by guardians. A registrar keeps the version it recorded (REQ-10-15), so a guardian's registrar that serves a forked log once makes that guardian unavailable to the ward's registrar until its operator intervenes. Use guardians on more than one domain. A successor can replace a guardian only when there is one guardian.

Successor. A successor and one current key can replace a sole guardian, and the successor then becomes the guardian. Name only a successor you trust with that power.

One-sided records. Any identity can record acceptWard for any ward. A guardianship is mutual only when REQ-11-5 reports it.

Unsupported operations. A registrar, or a party that presents a log, can append an operation with an unknown type, cryptosuite or key type. A verifier then reports the log as unsupported. This has the same effect as withholding the log.

Quantum computers. Every signature in a log is an ML-DSA-44 signature (FIPS 204), and every hash is SHA-256. Both are designed to resist attacks by quantum computers; ML-DSA-44 targets NIST security category 2. Logs are public and contain no secrets, so recording them today gives an attacker nothing to decrypt later. A party that could forge ML-DSA-44 signatures could forge any operation for any published key, including an operation that replaces keys, so replacing keys after such a break would not help. A later version of this specification would then add a key type to Table 1, and identities would replace their keys with keys of that type before the break became practical. The hash chain, anchors and recorded versions depend on SHA-256 whatever the key type. The mldsa44-jcs-2024 cryptosuite is defined in a W3C Working Draft, which can change; REQ-5-12 defines the steps this method uses, so a change to that draft does not change this method.

Forks. Any party that holds the keys can sign two different operations with the same prev. Any party can also remove an unneeded proof from an operation, which produces a different operation hash. A registrar accepts only one operation for each prev (REQ-10-8). Resolvers detect a fork by the recorded version (REQ-11-4).

Anchor. The anchor does not cover the initial guardians and successor. Two create operations that differ only in those members have the same anchor; a registrar accepts one of them.

Extensions. A verifier that does not implement a critical extension reports the log as unsupported, never valid. An extension that is not listed in critical has no effect on validity for any verifier, so an extension that changes who may approve an operation must be made critical. Only create and setPolicy can make an extension critical, so adding one requires the same approvals as a policy change. A critical extension cannot be removed from a log, so every later verifier must implement it.

Hostile registrar. A registrar cannot forge proofs. It can refuse operations, serve an outdated or forged log to a resolver that has not seen the identity before, or skip the checks in REQ-10-7. Resolvers detect a replaced, rolled-back or forked log by its anchor and recorded version (REQ-11-4). A registrar that serves a forged log for a guardian on its domain can mislead a ward that adds that guardian; the ward detects this if it knows the guardian's anchor. A registrar that skips the checks in REQ-10-7 lets a party with one current key remove guardians with false evidence, lets one current key and one guardian replace the keys of other guardians, lets one current key remove the successor, and lets retired or withdrawn guardian keys approve operations. A ward also trusts the registrar of each of its guardians to serve that guardian's complete log (REQ-10-3).

Root identity. The root identity's key attests every create on its domain. A party with that key, or with an old root key, can attest a forged create for an unused name. Recorded anchors protect identities that a resolver has seen before.

Domain transfer. A new owner of a domain controls its registrar. The new owner cannot produce logs that match recorded anchors.

Registrar-held keys. A registrar that holds an identity's key can create proofs as that identity. REQ-10-13 and REQ-10-14 limit when it may do so, but no other party can check that limit. Under REQ-10-13 item 3, a guardian or successor can cause a registrar to generate a new held key for a ward. The update that installs it still requires the approvals of REQ-7-6. The registrar issues the ward's new login secret to the request that completes the update, so the party that sends that request controls the ward's account until it passes the secret to the ward.

Checking a registrar. Registrar requirements fall into three groups:

Group Who can check Requirements
Provable from logs anyone, by fetching and verifying logs REQ-10-5 (items 1 and 2), REQ-10-11, REQ-10-12
Testable an operator, against a test deployment REQ-10-1, REQ-10-2, REQ-10-4, REQ-10-8, REQ-10-9, REQ-10-10
Trusted no other party REQ-10-3, REQ-10-7, REQ-10-13, REQ-10-14, REQ-10-15

13. Privacy considerations

This section is non-normative.

Logs are public and permanent. Every key, guardian relationship, ward, policy, service and alias that an identity has ever had is visible to anyone. A guardian's wards lists every identity it guards. Do not put personal data in names, services or alsoKnownAs.

Appendix A. Examples

This appendix is non-normative. Hashes, keys and signatures are shortened with …, and proofs are abbreviated to their verificationMethod.

Bob agrees to guard Alice. Alice's client computes the anchor of her create, which does not depend on her guardians (REQ-5-7). Bob records acceptWard in his log:

{
  "type": "acceptWard",
  "ward": {"did": "did:guardian:acme.com:alice", "anchor": "zQmAliceAnchor…"},
  "prev": "zQmBob1…",
  "proof": [{"verificationMethod": "did:key:ukCQBob…#ukCQBob…", "…": "…"}]
}

Bob's acceptWard has operation hash zQmBobAccept…. Alice's create names Bob as a guardian:

{
  "type": "create",
  "did": "did:guardian:acme.com:alice",
  "keys": ["ukCQAlice…"],
  "guardians": [
    {
      "did": "did:guardian:acme.com:bob",
      "anchor": "zQmBobAnchor…",
      "keys": ["ukCQBob…"],
      "consent": "zQmBobAccept…"
    }
  ],
  "successor": null,
  "policy": {},
  "services": [],
  "alsoKnownAs": [],
  "prev": null,
  "proof": [
    {"verificationMethod": "did:key:ukCQAlice…#ukCQAlice…", "…": "…"},
    {"verificationMethod": "did:key:ukCQBob…#ukCQBob…", "…": "…"}
  ],
  "attestation": {"verificationMethod": "did:guardian:acme.com?versionId=zQmRoot…#key-0", "…": "…"}
}

Bob replaces the key in his log, then updates his entry in Alice's log. In this example, ukCQBob… sorts before ukCQBobNew…; real keys sort by their full encoded values (REQ-5-10):

{
  "type": "updateGuardian",
  "guardian": "did:guardian:acme.com:bob",
  "keys": ["ukCQBobNew…"],
  "prev": "zQmAliceCreate…",
  "proof": [
    {"verificationMethod": "did:key:ukCQBob…#ukCQBob…", "…": "…"},
    {"verificationMethod": "did:key:ukCQBobNew…#ukCQBobNew…", "…": "…"}
  ]
}

Required guardian approvals under the default policy:

Guardians (N) recovery membership removal deactivation (guardian part)
1 1 1 not possible 1
2 2 2 not possible 2
3 2 2 2 2
5 3 3 3 3

A sole guardian is removed with evidence and one current key, or by the successor and one current key. orphan then applies.

Changelog

  • v1.0.0 (2026-11-24): first stable release. It replaces every earlier draft; earlier drafts are in the repository history.