Skip to content

Validation Result: typed results (integrity/signature) and failure details for 424 #39

Closed

Description

@Jenziner

Summary

Validation results (7.5.2) currently express only hash checks. Signature verification is
mentioned in 7.5.1 but has no result representation. Code 424 does not say which
dependency was unavailable. This issue extends the Validation Result so that a consumer
can state what was checked and, where a check could not be completed, what was missing.

Motivation

  • A "200" does not say whether an integrity or a signature check was performed.
  • 424 collapses all unavailable dependencies (unresolvable key, missing schema,
    unreachable resolver). A relying party cannot tell which part is unknown and whether
    it can proceed.
  • The existing principle that 403/404/406/424 are never evidence of invalidity (7.5.3)
    should also cover signature checks.

Proposal

1. validationType (7.5.2)

Add a required field validationType to the Validation Result:

  • integrity: recalculation of the applicable hash (current behaviour).
  • signature: verification of the signature over versionHash (19.4).

signature applies only to a Version identifier. Each result concerns exactly one
validation object and one validation type, as in 7.5.1. A signature result MUST NOT be
represented as an integrity validation, and vice versa.

For signature, the verification method is taken from the DID Document of the record
owner as resolved at validationTimestamp. Key state at the time of signing is not
evaluated (out of scope, see below).

2. Generalise response codes (7.5.3)

  • 200: the check was performed and passed.
  • 422: the check was performed and failed (hash differs / signature does not verify).
  • 424: the check could not be completed because a required dependency was unavailable,
    incomplete or could not be validated.
  • 400, 403, 404, 406 keep their current meaning. 406 also covers an unsupported
    signature algorithm (19.4 permits Ed25519 and P-256).
  • Requesting signature for a Version without signature (e.g. signaturePolicy none
    or draft state) is a 400.

3. Failure details (7.5.2)

For results other than 200, add two optional fields:

  • dependency: DID or absolute IRI of the resource that was unavailable (424), e.g. the
    verification method or the SchemaRecord.
  • reason: short machine-readable text describing the cause, e.g. resolver-unreachable,
    key-not-resolvable, schema-not-found. Free text, no fixed list in this version.

4. Protection rule (7.5.3)

A consumer MUST NOT represent 403, 404, 406 or 424 as evidence that an object or
signature is invalid or has been altered. Only 422 indicates a failed check. This applies
to both validation types.

Examples

{
  "validationObject": "did:rwp:<ns>:<record-id>:<versionHash>",
  "validationType": "signature",
  "validationTimestamp": "2026-10-07T10:00:00Z",
  "validationResponse": 200
}
{
  "validationObject": "did:rwp:<ns>:<record-id>:<versionHash>",
  "validationType": "signature",
  "validationTimestamp": "2026-10-07T10:00:00Z",
  "validationResponse": 424,
  "dependency": "did:rwp:<ns>:<owner-id>#key-1",
  "reason": "key-not-resolvable"
}

Spec impact

7.5.1 (signature validation sentence), 7.5.2 (fields), 7.5.3 (code table and protection
rule), CHANGELOG.

Out of scope

  • asOfTime and evaluation of key state at a given time (separate, deferred; depends on
    DID Document history and status assertions).
  • A ValidationRecord (retained result as a Record).
  • Status checks via referrers.

Open questions

  1. Free-text reason: observe usage first, define a vocabulary later if needed.
  2. Should validationType be extensible by profiles (e.g. anchor, status)?

Related

  • RecordReferrers service
  • DID Document history
  • Status assertions

Activity

  1. added a commit that references this issue on Oct 30, 2026
    735ec62
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions