This specification describes a data model with which one or more recognized entities, such as one or more persons and/or organizations, can be described as known to perform specific actions, such as issuing or verifying a [=verifiable credential=]. The data model enables the publication or direct sharing of such information, providing a cryptographically-verifiable and privacy-preserving mechanism through which a [=holder=] can demonstrate that an entity whose credential they are using is recognized within a particular ecosystem. The specification is designed to interoperate with existing "trust infrastructures", such as X.509 certificate authority lists and ETSI Trust Service Lists, while enabling new decentralized ecosystems to be built using [=verifiable credentials=].

This is an experimental specification and is undergoing regular revisions. It is not fit for production deployment.

Introduction

The [=verifiable credential=] ecosystem relies on the ability of [=verifiers=] to determine whether a particular [=issuer=] is recognized to perform a particular action, such as [=issuer|issuing=] a certain type of [=verifiable credential=]. Historically, this determination has often been made through out-of-band processes, bilateral agreements, or proprietary registries that are difficult to discover, query, or reason about in an automated way. As [=verifiable credentials=] are increasingly deployed across sectors such as education, healthcare, financial services, and government, the need for a standardized, interoperable mechanism to express and communicate recognition of entities that perform known actions has become critical. Without such a mechanism, ecosystem participants are forced to build bespoke "trust infrastructure", leading to fragmentation, increased integration costs, and barriers to cross-border and cross-sector interoperability.

This specification addresses the challenge of expressing recognized entities, such as people and organizations, and the actions they perform, such as issuing and verifying, in a decentralized manner by defining a data model that any entity can use to publish or share recognition information as a [=verifiable credential=]. Rather than mandating a single central registry, the model allows any entity — a government body, an industry consortium, a standards organization, or even a single individual — to issue a `RecognizedEntityCredential` asserting that they know of one or more entities that are recognized to perform specific actions. This design enables a web of overlapping, competing, and complementary "trust registries" to coexist, allowing ecosystem participants to choose the entities they trust and to reason across multiple registries. The specification also supports interoperability with existing "trust infrastructure", such as X.509 certificate authority lists and ETSI Trust Service Lists, allowing existing recognized entity information to be referenced and composed into new decentralized ecosystems.

This document builds on the [=verifiable credential=] data model to define a specific application rather than modifying the [[[VC-DATA-MODEL]]] itself. It uses the linked-data foundation of JSON-LD to add a small number of new types and properties alongside existing terms. A `RecognizedEntityCredential` is thus an ordinary [=verifiable credential=] — issued, presented, and verified using the same mechanisms as any other.

Readers who are interested in the variety of use cases supported by this specification are urged to read Section [[[#use-cases]]]. The remainder of this document is organized into the following sections:

A conforming document is any concrete expression of the data model that complies with the normative statements in this specification. Specifically, all relevant normative statements in Section of this document MUST be enforced.

A conforming processor is any algorithm realized as software and/or hardware that generates or consumes a conforming document. Conforming processors MUST produce errors when non-conforming documents are consumed.

This document also contains examples that contain JSON and JSON-LD content. Some of these examples contain characters that are invalid JSON, such as inline comments (`//`) and the use of ellipsis (`...`) to denote information that adds little value to the example. Implementers are cautioned to remove this content if they desire to use the information as valid JSON or JSON-LD.

Use Cases

This section describes a set of use cases that motivate the design of this specification.

Education

A national education authority wants to publish the set of universities and colleges that it recognizes as legitimate institutions within its jurisdiction. The authority issues a single [=recognized entity credential=] that lists each recognized institution along with descriptive information such as its common name, legal name, logo, and website. This enables software to display trusted information — such as the university's name, logo, and website — about a recognized institution to an interested party, having confirmed in an automated and cryptographically-verifiable way that the institution is recognized by the national authority, without contacting the authority directly.

Vital Records

A national association of vital records agencies wants to publish not just which entities it recognizes — such as a city, regional, or provincial agency — but which specific [=verifiable credentials=] each entity is recognized to issue. For example, a particular regional office is recognized to issue birth certificates, marriage certificates, and death certificates for its jurisdiction. The association issues a [=recognized entity credential=] in which each [=recognized entity=] is associated with a [=recognized action=] describing the type of vital record it might issue and the schema that record conforms to. A [=verifier=] receiving a birth certificate can then confirm both that its [=issuer=] is a recognized jurisdiction and that the jurisdiction was recognized to issue that particular type of vital record.

Cross-border Trade

Roughly five billion commercial invoices are exchanged annually among approximately 50 million trading entities worldwide. An exporter issues a commercial invoice as a [=verifiable credential=] and sends it to the importer. The importer, in turn, presents that invoice to the importing customs authority for border clearance and to a trade finance lender for documentary letter of credit settlement. Neither the customs authority nor the lender has a direct relationship with the exporter — they receive the invoice indirectly, through the importer, yet must determine whether the exporter is a legitimate registered entity.

Verification relies on two independent but linked credentials, issued at different times and with different lifecycles:

Upon receiving the invoice, the [=verifier=] resolves the exporter's DID, discovers the linked `RecognizedEntityCredential` issued by the national business register, and confirms that the DID in the invoice matches the subject of that credential. This gives the customs authority or the lender both document integrity — the invoice has not been tampered with — and identity integrity — the [=issuer=] is a registered entity in the exporting economy — enabling automated border clearance and automated trade finance due diligence without any prior knowledge of the exporter.

Product Conformity

A conformity assessment body (CAB) issues a certificate of conformity (CoC) as a [=verifiable credential=] attesting to the safety or quality performance of a specific product. The CoC accompanies the product through the supply chain to an importing market. However, the market surveillance authority in the importing country typically has no direct relationship with the CAB and cannot independently determine whether the certificate was issued by a genuinely accredited test laboratory.

When the national accreditation authority in the exporting country issues a `RecognizedEntityCredential` to the CAB — attesting to the CAB's accreditation scope — a linked verification chain becomes possible, analogous to the cross-border trade case above:

Upon receiving the CoC, the market surveillance authority resolves the CAB's DID, discovers the linked `RecognizedEntityCredential` issued by the national accreditation authority, and confirms that the DID in the certificate matches the subject of that credential. This gives the authority both document integrity — the CoC has not been tampered with — and identity integrity — the [=issuer=] is a genuinely accredited CAB — enabling pre-clearance of goods at the border without manual verification of the CAB's accreditation status.

Federated Identifiers

There are multiple examples of federated identifiers in common usage. International Standard Book Numbers (ISBNs), Legal Entity identifiers (LEIs), BIC numbers for shipping containers, and the Internet's domain name system. In each case, a central authority assigns a prefix to a registrar who then assigns a range of identifiers that extend that original prefix to a third party. The third party can then extend the character string further to create the complete identifier.

Presented with such an identifier in a credential, a relying party might want to verify that it has been constructed by a party known to the federated identifier scheme owner, in full conformance with its operating procedures.

An example of such a scheme is GS1, the organization behind many of the world's barcodes. A detailed description of its use case is presented in the Verifiable Credentials Use Cases document [[vc-use-cases]].

Data Model

The following sections define the data model that this specification uses to express [=recognized entities=] and the [=recognized actions=] they are recognized to perform.

The data model described in this section has been built using input from a variety of prior art, including the EBSI Trusted Issuer Registry, ETSI TS 119 612, eSSIF-Lab TRAIN, the Trust over IP Foundation Trust Registry Protocol, and Rebooting the Web of Trust input documents. The data model described in this section is capable of expressing many, but not all, of the concepts described in those other specifications.

A [=recognized entity credential=] is issued by a `RecognizedIssuer` and contains one or more [=recognized entities=], such as organizations that issue or verify [=verifiable credentials=]. Each [=recognized entity=] can be associated with the [=recognized actions=] it is recognized to perform.

General Properties

The properties in this section can be added to objects found in a `RecognizedEntityCredential` as defined in Section [[[#recognizedentitycredential]]]. Each general property listed in this section is OPTIONAL; none of the values are required to be provided by an [=issuer=].

Property Description
id A URL that identifies the entity in a globally unambiguous way. The value for this property is defined in Section 4.4: Identifiers of the [[[VC-DATA-MODEL]]] specification.
type The type of the entity. The value for this property is defined in Section 4.5: Types of the [[[VC-DATA-MODEL]]] specification. The `type` property MUST be `RecognizedIssuer` if the entity is an [=issuer=] of [=verifiable credentials=].
name A human-readable name for the entity. The value for this property is defined in Section 4.6: Names and Descriptions of the [[[VC-DATA-MODEL]]] specification.
legalName The official legal name of an organization or entity, as registered with legal authorities, which can differ from the commonly used name. The value MUST be one or more [=string=]s or [=language value object=]s, as described in Section 11.1: Language and Base Direction of the [[[VC-DATA-MODEL]]] specification. An entity that has an official legal name in more than one language can express each of them by providing an array of [=language value objects=].
image A link to a visual representation of the entity, such as a logo, photograph, or icon. The value MUST be a [=URL=], which includes values using the `data:` URL scheme as described in [[?RFC2397]].
url A URL pointing to the primary website or web resource associated with the entity. The value MUST be a [=URL=].
sameAs One or more URLs that refer to the same entity in other contexts or systems, enabling cross-reference and verification across different platforms. Each value MUST be a [=URL=].
description A human-readable description providing details about the entity. The value for this property is defined in Section 4.6: Names and Descriptions of the [[[VC-DATA-MODEL]]] specification.

Any object in a `RecognizedEntityCredential` that has an `id` property can also be associated with a cryptographic hash of the resource that the `id` identifies, enabling a [=verifier=] to detect whether that resource has changed since the [=recognized entity credential=] was issued. The properties used to express such a hash are defined in Section 5.3: Integrity of Related Resources of the [[[VC-DATA-MODEL]]] specification.

RecognizedEntity

A recognized entity is any entity that is recognized by an [=issuer=] of a `RecognizedEntityCredential` to perform a specific action.

Property Description
id A URL that identifies the entity in a globally unambiguous way. The value for this property is defined in Section 4.4: Identifiers of the [[[VC-DATA-MODEL]]] specification.
type The `type` property MUST be `RecognizedEntity`. The value for this property is defined in Section 4.5: Types of the [[[VC-DATA-MODEL]]] specification.
recognizedTo A specific action that the [=recognized entity=] is expected to perform as defined in Section [[[#recognizedaction]]]. This property may occur more than once if the [=recognized entity=] is expected to perform more than one action.
recognizedIn An object that contains a reference to a document of recognized entities that contains this particular [=recognized entity=] as well as the actions it is known to perform. The `id` value of the object MUST be a [=URL=]. The `type` value of the object MUST conform to the type value space defined in the [[[VC-DATA-MODEL]]] specification and SHOULD be `ExternalEntityList` or `RecognizedEntityCredential`.
registration One or more objects, each of which describes how the [=recognized entity=] is recorded in a register maintained by the [=issuer=], such as a national business register, an accreditation register, or the allocation records of a federated identifier scheme. Each object is expected to carry properties, such as the identifier the register assigned to the [=recognized entity=] and the scope of the `registration`, drawn from vocabularies defined by the ecosystem in which the register operates. Section [[[#un-grid-cross-border-trade-example]]] demonstrates a `registration` expressed using properties defined by the UNTP Digital Identity Anchor [[?UNTP-DIA]]. This property might occur more than once if the [=recognized entity=] holds more than one `registration` with the [=issuer=].

Properties from Section [[[#general-properties]]] can be included in addition to the properties above.

A `recognizedIn` entry with a `type` property value of `ExternalEntityList` SHOULD conform to a valid entity list specification. The origin of the list URL referenced by the `id` property in this case establishes the root of trust for the list. Examples of this are the X.509 Certificate Authority List, as specified in [[[RFC5280]]] and the European Union ETSI Trust Service List, as specified in [[[ETSI-TRUST-LISTS]]]. For the `ExternalEntityList` type, [=verifiers=] and [=credential=] consumers need to fetch the entity list resource referenced by the `id` property in order to determine the entity list specification that the resource complies with, determine if it supports that specification, and process/terminate accordingly. A list with a `type` property value of `RecognizedEntityCredential` MUST conform to [[[VC-RECOGNIZED-ENTITIES]]].

The `registration` and `recognizedTo` properties are independent of one another; either, both, or neither can be expressed for a given [=recognized entity=]. A `registration` describes the standing of the [=recognized entity=] in a register that the [=issuer=] maintains, such as its business registration number and legal form, the scope of its accreditation, or the identifier range it has been allocated. The `recognizedTo` property describes an action whose outputs the [=issuer=] recognizes, such as [=verifiable credentials=] that conform to a particular schema.

RecognizedAction

A recognized action is an action that a [=recognized entity=] is expected to perform.

Property Description
type The `type` property MUST be `RecognizedAction`.
action The `action` property is REQUIRED. Its value MUST be a [=string=] that specifies the name of the action to be performed, such as `issue` or `verify`.
recognizedBy The `recognizedBy` property is OPTIONAL. Its value is a [=URL=], or object containing properties from Section [[[#general-properties]]], of the entity that performed the task of recognizing.
credentialValidator The `credentialValidator` property is OPTIONAL. Its value MUST be one or more [=credential validators=], as defined in Section [[[#credential-validators]]], that provide [=verifiers=] with enough information to determine whether a [=verifiable credential=] produced by the [=recognized entity=] meets the constraints of the recognizing authority. If more than one [=credential validator=] is present, the [=verifiable credential=] MUST satisfy every one of them.
validFrom The earliest point in time at which the [=recognized action=] is valid, that is, the date and time from which the [=recognized entity=] is recognized to perform the action. The value MUST be an XML Schema dateTime value expressed in UTC with no sub-second precision, for example `2025-01-01T00:00:00Z`. This property is OPTIONAL; if absent, the validity period of the enclosing [=recognized entity credential=] applies. This point in time is inclusive. A [=verifier=] checks it against the evaluation time, as described in Section [[[#recognition-validation]]].
validUntil The latest point in time at which the [=recognized action=] is valid, that is, the date and time after which the [=recognized entity=] is no longer recognized to perform the action. The value MUST be an XML Schema dateTime value expressed in UTC with no sub-second precision, for example `2030-01-01T00:00:00Z`. This property is OPTIONAL; if absent, the validity period of the enclosing [=recognized entity credential=] applies. This point in time is inclusive. A [=verifier=] checks it against the evaluation time, as described in Section [[[#recognition-validation]]].

RecognizedEntityCredential

When a recognized entity credential is published, it MUST be a conforming [=verifiable credential=], as defined in [[[VC-DATA-MODEL-2.0]]], that expresses the data model specified in the section that follows. It describes the format of a [=verifiable credential=] that encapsulates the recognized entities.

A recognized entity is expressed inside a [=verifiable credential=], enabling a [=holder=] to provide it directly to a [=verifier=]. This mechanism, sometimes called "certificate stapling", increases privacy for the [=holder=] by ensuring that the [=verifier=] does not need to contact the [=issuer=] to retrieve the recognized entity credential. Still, a [=verifier=] might choose to ignore the [=holder=]-provided [=recognized entity credential=], even when its authenticity is verifiable, if, for instance, it desires a more recent version of the [=recognized entity credential=].

Property Description
id A [=verifiable credential=] that contains a set of recognized entities MAY express an `id` property to make its retrieval easier for other systems.
type A [=verifiable credential=] that contains a set of recognized entities MUST express a `type` property that includes the `RecognizedEntityCredential` value.
issuer The [=issuer=] of the [=verifiable credential=] as defined in the Verifiable Credentials Data Model specification in Section 4.7: Issuer. This object, whose type is `RecognizedIssuer`, MAY also include other properties listed in Section [[[#general-properties]]]. This object MAY include a `recognizedIn` property, as defined in Section [[[#recognizedentity]]], that references a document of recognized entities in which the [=issuer=] itself appears; this enables the [=credential-based discovery=] process described in Section [[[#credential-based-discovery]]], allowing a [=verifier=] to traverse the recognition hierarchy until it reaches the top of that hierarchy.
validFrom The earliest point in time at which the credential is valid. This property is defined in the Verifiable Credentials Data Model specification in Section 4.6: Validity Period.
validUntil The latest point in time at which the credential is valid. This property is defined in the Verifiable Credentials Data Model specification in Section 4.6: Validity Period.
credentialSubject A set of one or more `RecognizedEntity` objects as defined in Section [[[#recognizedentity]]].

The following examples demonstrate how recognized entity credentials can be employed in a variety of use cases. The first example below is used to publish information about a set of known universities in a particular nation.

{
  "@context": [
    "https://www.w3.org/ns/credentials/v2",
    "https://www.w3.org/ns/credentials/examples/v2"
  ],
  "type": [
    "VerifiableCredential",
    "RecognizedEntityCredential"
  ],
  "issuer": {
    "id": "did:web:learning-commission.example",
    "type": "RecognizedIssuer"
  },
  "validFrom": "2025-01-01T00:00:00Z",
  "validUntil": "2030-01-01T00:00:00Z",
  "credentialSubject": [{
    "id": "did:web:university.example",
    "type": "RecognizedEntity",
    "name": "Example Tech",
    "legalName": "Example Polytechnic University",
    "image": "https://university.example/logo.png",
    "url": "https://www.university.example/",
    "description": "A university providing a great education in Utopia Valley."
  }, {
    "id": "did:web:college.example",
    "type": "RecognizedEntity",
    "name": "Exemplar Community College",
    "legalName": "Community College of Examples and ",
    "image": "https://college.example/graphics/ecc.png",
    "url": "https://college.example/",
    "description": "The backbone of learning in the Utopia community."
  }],
  "proof": {
    "type": "DataIntegrityProof",
    "created": "2026-04-10T20:08:22Z",
    "verificationMethod": "did:web:accreditor.example#issuance-key-1",
    "cryptosuite": "ecdsa-rdfc-2019",
    "proofPurpose": "assertionMethod",
    "proofValue": "z36XPGByaH3rvtKfwoEQXsnUXUAjwd2Ceiqke1GPfjAPAFYoXKo5ftPdwE7QZ8Mw22SC5LSRQg1d8bhe3252hYJoH"
  }
}
    

The following example demonstrates how different languages can be supported within a [=recognized entity credential=]:

{
  "@context": [
    "https://www.w3.org/ns/credentials/v2",
    "https://www.w3.org/ns/credentials/examples/v2"
  ],
  "type": [
    "VerifiableCredential",
    "RecognizedEntityCredential"
  ],
  "issuer": {
    "id": "did:web:learning-commission.example",
    "type": "RecognizedIssuer"
  },
  "validFrom": "2025-01-01T00:00:00Z",
  "validUntil": "2030-01-01T00:00:00Z",
  "credentialSubject": {
    "id": "did:web:university.example",
    "type": "RecognizedEntity",
    "name": [
      {"@value": "Example Tech", "@language": "en"},
      {"@value": "Exemple Tech", "@language": "fr"},
      {"@value": "エグザンプル工科大学", "@language": "ja"},
      {"@value": "示例理工大学", "@language": "zh-Hans"},
      {"@value": "مثال للتقنية", "@language": "ar", "@direction": "rtl"},
      {"@value": "उदाहरण टेक", "@language": "hi"}
    ],
    "legalName": [
      {"@value": "Example Polytechnic University", "@language": "en"},
      {"@value": "Université Polytechnique Exemple", "@language": "fr"},
      {"@value": "例示理工科大学", "@language": "ja"},
      {"@value": "レイジリコウカダイガク", "@language": "ja-Kana"},
      {"@value": "示例理工科大学", "@language": "zh-Hans"},
      {"@value": "جامعة مثال للعلوم التطبيقية", "@language": "ar", "@direction": "rtl"},
      {"@value": "उदाहरण प्रौद्योगिकी विश्वविद्यालय", "@language": "hi"}
    ],
    "image": "https://university.example/logo.png",
    "url": "https://www.university.example/",
    "description": [
      {"@value": "A university providing a great education in Utopia Valley.",
        "@language": "en"},
      {"@value": "Une université offrant une excellente éducation dans la vallée d'Utopie.",
        "@language": "fr"},
      {"@value": "ユートピア渓谷で優れた教育を提供する大学です。",
        "@language": "ja"},
      {"@value": "一所在乌托邦谷提供优质教育的大学。",
        "@language": "zh-Hans"},
      {"@value": "جامعة تقدم تعليماً متميزاً في وادي يوتوبيا.",
        "@language": "ar", "@direction": "rtl"},
      {"@value": "यूटोपिया घाटी में उत्कृष्ट शिक्षा प्रदान करने वाला एक विश्वविद्यालय।",
        "@language": "hi"}
    ]
  },
  "proof": {
    "type": "DataIntegrityProof",
    "created": "2026-04-10T20:08:22Z",
    "verificationMethod": "did:web:accreditor.example#issuance-key-1",
    "cryptosuite": "ecdsa-rdfc-2019",
    "proofPurpose": "assertionMethod",
    "proofValue": "zE7QZ8Mw22SC5LSRQg1d8bhe3252hYJoH36XPGByaH3rvtKfwoEQXsnUXUAjwd2Ceiqke1GPfjAPAFYoXKo5ftPdw"
  }
}
    

The next example is used to publish information about a set of known issuers for a particular type of [=verifiable credential=].

{
  "@context": [
    "https://www.w3.org/ns/credentials/v2",
    "https://www.w3.org/ns/credentials/examples/v2"
  ],
  "type": [
    "VerifiableCredential",
    "RecognizedEntityCredential"
  ],
  "issuer": {
    "id": "did:web:learning-commission.example",
    "type": "RecognizedIssuer"
  },
  "validFrom": "2025-01-01T00:00:00Z",
  "validUntil": "2030-01-01T00:00:00Z",
  "credentialSubject": [{
    "id": "did:web:university.example",
    "type": "RecognizedEntity",
    "name": "Example Tech",
    "legalName": "Example Polytechnic University",
    "image": "https://university.example/logo.png",
    "url": "https://www.university.example/",
    "description": "A university providing a great education in Utopia Valley.",
    "recognizedTo": {
      "type": "RecognizedAction",
      "action": "issue",
      "recognizedBy": "did:web:learning-commission.example",
      "credentialValidator": {
        "id": "https://learning-commission.example/credentials/bachelors.json",
        "type": "CredentialValidator",
        "mediaType": "application/schema+json",
        "digestMultibase": "uEiBZl963sknNAHgPyslVv6VztZpfWQoRvW1htfx-UwirFo"
      }
    }
  }, {
    "id": "did:web:college.example",
    "type": "RecognizedEntity",
    "name": "Exemplar Community College",
    "legalName": "Community College of Examples and ",
    "image": "https://college.example/graphics/ecc.png",
    "url": "https://college.example/",
    "description": "The backbone of learning in the Utopia community.",
    "recognizedTo": {
      "type": "RecognizedAction",
      "action": "issue",
      "recognizedBy": "did:web:learning-commission.example",
      "credentialValidator": {
        "id": "https://learning-commission.example/credentials/associates.json",
        "type": "CredentialValidator",
        "mediaType": "application/schema+json",
        "digestMultibase": "uEiWQoRvpfWW1htfsknNAHgPyslVv6VztZpfwirFoBZl963"
      }
    }
  }],
  "proof": {
    "type": "DataIntegrityProof",
    "created": "2026-04-10T20:08:22Z",
    "verificationMethod": "did:web:accreditor.example#issuance-key-1",
    "cryptosuite": "ecdsa-rdfc-2019",
    "proofPurpose": "assertionMethod",
    "proofValue": "z36XPGByaH3rvtKfwoEQXsnUXUAjwd2Ceiqke1GPfjAPAFYoXKo5ftPdwE7QZ8Mw22SC5LSRQg1d8bhe3252hYJoH"
  }
}
      

The final example below is used to publish information about an entity that publishes a European Union ETSI Trust Service List [[ETSI-TRUST-LISTS]] using the generic `ExternalEntityList` type.

{
  "@context": [
    "https://www.w3.org/ns/credentials/v2",
    "https://www.w3.org/ns/credentials/examples/v2"
  ],
  "type": [
    "VerifiableCredential",
    "RecognizedEntityCredential"
  ],
  "issuer": "did:web:ec.europa.example",
  "validFrom": "2025-01-01T00:00:00Z",
  "validUntil": "2030-01-01T00:00:00Z",
  "credentialSubject": [{
    "id": "did:web:ec.europa.example",
    "type": "RecognizedEntity",
    "name": "Utopian Commission",
    "legalName": "The Utopian Commission",
    "image": "https://ec.europa.example/logo.png",
    "url": "https://ec.europa.example/",
    "recognizedIn": {
      "id": "https://ec.europa.example/tsl/lotl.xml",
      "type": "ExternalEntityList"
    }
  }],
  "proof": {
    "type": "DataIntegrityProof",
    "created": "2026-04-10T20:08:22Z",
    "verificationMethod": "did:web:ec.europa.example#issuance-key-1",
    "cryptosuite": "ecdsa-rdfc-2019",
    "proofPurpose": "assertionMethod",
    "proofValue": "z36XPGByaH3rvtKfwoEQXsnUXUAjwd2Ceiqke1GPfjAPAFYoXKo5ftPdwE7QZ8Mw22SC5LSRQg1d8bhe3252hYJoH"
  }
}
      

Credential Validators

A credential validator is a value of the `credentialValidator` property of a [=recognized action=]. It links to a file that a [=verifier=] uses to determine whether a [=verifiable credential=] produced by a [=recognized entity=] meets the constraints of the recognizing authority. The media type of that file determines what kind of [=credential validator=] it is, and therefore how a [=verifier=] evaluates it, as described in Section [[[#credential-validation]]].

Property Description
id The `id` property is REQUIRED. Its value MUST be a [=URL=] that links to the file used to validate the [=verifiable credential=]. The value MAY be a `data:` URL, as described in [[?RFC2397]], that embeds the file.
type The `type` property MUST be `CredentialValidator`.
mediaType The `mediaType` property is REQUIRED. Its value is the media type of the file identified by `id`, as defined in Section 5.3: Integrity of Related Resources of the [[[VC-DATA-MODEL]]] specification, and identifies the kind of [=credential validator=]. This specification defines the `application/schema+json`, `text/javascript`, and `application/jsonata` media types for [=credential validators=] in the sections below.

A [=credential validator=] SHOULD provide a cryptographic hash of the file identified by `id`, using one of the mechanisms described in Section 5.3: Integrity of Related Resources of the [[[VC-DATA-MODEL]]] specification. A hash binds the [=credential validator=] to one exact version of the file. Any change to the file, including a change to whitespace or comments, produces a different hash.

JSON Schema

A JSON Schema credential validator is a [=credential validator=] whose `mediaType` is `application/schema+json`. Its `id` links to a JSON Schema [[JSON-SCHEMA]]. A [=verifier=] evaluates it by validating the [=verifiable credential=] against that schema. A [=JSON Schema credential validator=] examines only the [=verifiable credential=] being validated.

"recognizedTo": {
  "type": "RecognizedAction",
  "action": "issue",
  "recognizedBy": "did:web:learning-commission.example",
  "credentialValidator": {
    "id": "https://learning-commission.example/credentials/bachelors.json",
    "type": "CredentialValidator",
    "mediaType": "application/schema+json",
    "digestMultibase": "uEiBZl963sknNAHgPyslVv6VztZpfWQoRvW1htfx-UwirFo"
  }
}
          

JavaScript

[=JavaScript credential validators=] are at risk and might be removed from this specification before it becomes a W3C Recommendation if there are not at least two independent implementations of them.

A JavaScript credential validator is a [=credential validator=] whose `mediaType` is `text/javascript`. Its `id` links to JavaScript code that a [=verifier=] runs to determine whether a [=verifiable credential=] meets the constraints of the recognizing authority. The code receives the [=verifiable credential=] being validated and, in its options, the recognition chain, so it can compare values across [=verifiable credentials=] in that chain. For example, it can confirm that an identifier in one [=verifiable credential=] begins with a prefix that a [=recognized entity credential=] higher in the chain licensed to its [=issuer=]. A [=verifier=] runs that code as described in Section [[[#javascript-validator-processing]]].

The example below shows a [=recognized action=] from a GS1 Member Organization that declares two [=credential validators=]. The [=JSON Schema credential validator=] checks the structure of a key credential issued by Healthy Tots. The [=JavaScript credential validator=] checks that the GTIN in that key credential begins with the GS1 Company Prefix licensed to Healthy Tots, and that the GS1 Company Prefix begins with the GS1 Prefix licensed to the Member Organization. The code reads both prefixes from the recognition chain. This approach has at least two benefits: 1) GS1 publishes one script that can be applied to every licensee, and 2) fetching that script is privacy-preserving as GS1 does not learn which licensee is being verified.

"recognizedTo": {
  "type": "RecognizedAction",
  "action": "issue",
  "recognizedBy": "did:web:id.gs1utopia.example",
  "credentialValidator": [{
    "id": "https://id.gs1utopia.example/schemas/key-credential.json",
    "type": "CredentialValidator",
    "mediaType": "application/schema+json",
    "digestMultibase": "uEiWQoRvpfWW1htfsknNAHgPyslVv6VztZpfwirFoBZl963"
  }, {
    "id": "https://id.gs1.org/validators/gs1-prefix-chain.js",
    "type": "CredentialValidator",
    "mediaType": "text/javascript",
    "digestMultibase": "uEiDqN3Xo7mVq4cJ2r-5bKfXh9TzW0sLpYdE8gAuRnHc1Mw"
  }]
}
          

JSONata

[=JSONata credential validators=] are at risk and are likely to be removed from this specification before it becomes a W3C Recommendation. We would appreciate feedback from implementers that find this feature useful. If there isn't enough support for this feature, it is likely to be removed from the specification.

A JSONata credential validator is a [=credential validator=] whose `mediaType` is `application/jsonata`. Its `id` links to a JSONata expression [[JSONATA]] that produces a JSON Schema [[JSON-SCHEMA]]. A [=verifier=] evaluates the expression and then validates the [=verifiable credential=] against the schema that the expression produced. The expression receives the [=verifiable credential=] being validated as its input and the options as the `$options` variable. Because the options include the recognition chain, the generated schema can depend on values found elsewhere in that chain. A [=verifier=] evaluates the expression as described in Section [[[#jsonata-validator-processing]]].

The example below shows a [=recognized action=] from GS1 Utopia that declares a [=JSONata credential validator=]. The expression reads the GS1 Company Prefix that GS1 Utopia licensed to Healthy Tots from the recognition chain. It then produces a JSON Schema that accepts a key credential only if its GTIN begins with that prefix.

"recognizedTo": {
  "type": "RecognizedAction",
  "action": "issue",
  "recognizedBy": "did:web:id.gs1utopia.example",
  "credentialValidator": {
    "id": "https://id.gs1.org/validators/gs1-company-prefix.jsonata",
    "type": "CredentialValidator",
    "mediaType": "application/jsonata",
    "digestMultibase": "uEiCk7pYw2Hn5vT0rXq3LmZs9dJ4fB8aG1oKcU6eRiNyVhA"
  }
}
          

Algorithms

This section describes algorithms that a [=verifier=] can use when processing [=verifiable credentials=] and [=recognized entity credentials=] defined by this specification. These algorithms separate discovery from validation.

Discovery locates the [=recognized entity credentials=] that might establish the recognition of an [=issuer=]. Section [[[#credential-based-discovery]]] and Section [[[#identifier-based-discovery]]] describe two mechanisms for doing so. A [=verifier=] MAY use any other mechanism, including receiving the [=recognized entity credentials=] directly from a [=holder=] as described in Section [[[#holder-based-delivery]]].

Locating a [=recognized entity credential=] does not establish that an [=issuer=] is recognized. A [=verifier=] that skips the checks in Section [[[#recognition-validation]]] might accept a [=verifiable credential=] that is unrelated to the [=issuer=] in question, or one whose recognition chain never reaches an anchor that the [=verifier=] accepts.

Recognition validation, described in Section [[[#recognition-validation]]], determines whether the discovered [=verifiable credentials=] establish recognition. It applies the same way regardless of how they were discovered.

When identifiers for [=subjects=], such as [=issuers=], are compared for set membership or equivalence, simple string comparison is used. While it is possible to calculate the canonical form of an identifier in a scheme before performing a comparison, the canonicalization rules can vary between identifier schemes, leading to high levels of implementation complexity. To reduce the implementation burden, a choice was made to use simple string comparison instead. Simple string comparison can sometimes lead to non-equivalence between identifiers that are canonically the same, such as two HTTPS URLs that differ in a query parameter that results in the same document. This downside is the trade-off made to keep implementation burden low for identifier comparison.

Both processes assume that each [=verifiable credential=] has already been validated individually. That is: its proof verifies; it is within its validity period at the evaluation time described in Section [[[#recognition-validation]]]; and its status, if any, has been checked, according to Section 7.1: Verification and Appendix A: Validation of the [[[VC-DATA-MODEL]]] specification. Those processes apply to any [=verifiable credential=] and are not restated here.

These algorithms fetch things from the web at several points. The [=URLs=] they fetch come from [=verifiable credentials=] and identifier documents that have not been checked yet. A retrieval policy sets limits on what a [=verifier=] will fetch. The [=verifier=]'s HTTP client and identifier resolver apply those limits.

A [=retrieval policy=] expresses which [=URL=] schemes and addresses are allowed. It blocks private addresses such as loopback and link-local addresses or addresses inside a local network. Because a name is looked up before a request is sent, the policy checks the address that the name points to and checks each redirect the same way. The policy also limits how many redirects are followed and how large a response can be. When a response grows too large, the [=verifier=] stops reading it and the retrieval is halted.

These algorithms check a resource after fetching it. By then the request has already arrived, and whatever it did there is done. A proof check tells the [=verifier=] whether to trust the answer. It cannot take the request back. Only a [=retrieval policy=] acts before the request goes out.

The discovery and recognition validation algorithms each run within a time budget, maxDuration. The budget limits the total time of one run and covers all work from the moment the algorithm starts. While maxDepth limits the length of one chain, maxDuration limits the whole operation. An algorithm that performs another algorithm passes along the time that remains of its own budget. If the budget is exhausted, the [=verifier=] stops any unfinished retrieval or validator and raises a `LIMIT_EXCEEDED_ERROR`.

The discovery algorithms also run within a retrieval limit, maxRetrievals. The limit caps how many requests one run of discovery sends, however many chains it explores. Every request counts. This includes resolving an identifier, retrieving a [=recognized entity credential=] or a [=verifiable presentation=], and following a redirect. A [=verifiable credential=] taken from providedDocuments and a document the [=verifier=] has cached do not count. A discovery algorithm that performs another discovery algorithm passes along the retrievals that remain of its own limit. If a request would exceed maxRetrievals, the [=verifier=] does not make the attempt and raises a `LIMIT_EXCEEDED_ERROR` identifying maxRetrievals.

A [=verifiable presentation=] at a `WhoisService` endpoint can contain any number of [=recognized entity credentials=]. Each one can lead to another [=issuer=] whose presentation contains many more. Without a retrieval limit, one [=verifiable credential=] can cause thousands of requests before the time budget runs out. Each request goes to a host that a potential attacker has chosen.

Credential-based Discovery

Credential-based discovery is the process by which a [=verifier=] that receives a [=verifiable credential=] locates a [=recognized entity credential=] that recognizes its [=issuer=], and then traverses a hierarchy of [=recognized entity credentials=] until it reaches the top of that hierarchy.

The mechanism relies on the `recognizedIn` property. When present on the `issuer` object of a [=verifiable credential=], including on the `issuer` object of a [=recognized entity credential=], the `recognizedIn` property references a [=verifiable credential=] of recognized entities that lists that [=issuer=] as a [=recognized entity=]. A [=verifier=] fetches the referenced [=verifiable credential=]. It then follows the `recognizedIn` property on the fetched [=verifiable credential=]'s `issuer` object to move one level up the hierarchy. It repeats this until it reaches an `issuer` object that has no `recognizedIn` property, or until a configured limit is reached. The [=verifier=] does not stop at an [=issuer=] it recognizes. A recognizer higher in the hierarchy can set limits on the entities below it, and the [=verifier=] needs the whole chain to check those limits.

A [=holder=] MAY pre-fetch the [=recognized entity credentials=] along this hierarchy and provide them to the [=verifier=] alongside the [=verifiable credential=], using the "certificate stapling" mechanism described in Section [[[#recognizedentitycredential]]]. When the [=holder=] provides these [=verifiable credentials=], the [=verifier=] does not need to fetch them itself, provided that the [=verifier=] is satisfied with the freshness of the provided [=verifiable credentials=]. A [=verifier=] that requires more recent information MAY reject the [=holder=]-provided [=verifiable credentials=] or ignore them and fetch the [=recognized entity credentials=] directly.

To perform [=credential-based discovery=] on a [=verifiable credential=] (credential), within a time budget (maxDuration) and a retrieval limit (maxRetrievals), with an optional set of [=holder=]-provided [=verifiable credentials=] (providedDocuments) and an optional maximum chain depth (maxDepth), a [=verifier=] runs the following algorithm. The algorithm returns a chain, which is a list of [=verifiable credentials=] beginning with credential, followed by each [=recognized entity credential=] found by following `recognizedIn` references. The [=verifier=] then runs the algorithm in Section [[[#recognition-validation]]] on the returned chain.

This algorithm does not stop when it reaches an [=issuer=] that the [=verifier=] recognizes. Stopping there would skip any limits that a recognizer above that [=issuer=] set. The algorithm returns the whole chain, up to the top of the recognition hierarchy. Section [[[#recognition-validation]]] then confirms that the [=issuer=] at the top is one that the [=verifier=] recognizes, and runs every [=credential validator=] in the chain.

This algorithm follows `recognizedIn` references. It does not read `recognizedTo`. A recognizer can attach [=credential validators=] to each entity it recognizes. Section [[[#recognition-validation]]] runs those validators on every credential in the returned chain. It starts next to the anchor and works down the chain.

This algorithm runs within the time budget and the retrieval limit described in Section [[[#algorithms]]]. When [=identifier-based discovery=] performs this algorithm, it passes along the time that remains of its own maxDuration and the retrievals that remain of its own maxRetrievals. It also passes a maxDepth that subtracts the levels it has already traversed, so the whole chain stays within the depth the [=verifier=] is configured to traverse.

  1. Let current be credential and let chain be a list containing credential.
  2. If maxDepth was not provided, let maxDepth be the maximum recognition chain depth the [=verifier=] is configured to traverse. If the length of chain exceeds maxDepth, raise a `LIMIT_EXCEEDED_ERROR`.
  3. Let issuer be the value of the `issuer` property of current, and let issuerId be its identifier.
  4. If issuer does not contain a `recognizedIn` property, the top of the recognition hierarchy has been reached, so return chain.
  5. Let listReference be the value of the `recognizedIn` property and let listId be its `id`.
  6. Let list be the [=recognized entity credential=] identified by listId, obtained from providedDocuments if present and sufficiently fresh, or otherwise retrieved from listId. Apply the [=retrieval policy=] to that retrieval, and count it toward maxRetrievals. If list cannot be obtained, or the [=retrieval policy=] blocks the retrieval, raise a `RETRIEVAL_ERROR` identifying listId. If maxDuration is exceeded before list is obtained, raise a `LIMIT_EXCEEDED_ERROR` identifying maxDuration and listId.
  7. Append list to chain. If the identifier of the [=issuer=] of list is equal to the identifier of the [=issuer=] of an earlier [=verifiable credential=] in chain, the `recognizedIn` references form a cycle, so return chain. Section [[[#recognition-validation]]] rejects a chain that contains a cycle.
  8. Set current to list, and return to step 2 to evaluate the [=issuer=] of the list.

The example below shows a diploma [=verifiable credential=] issued by a state university whose own `issuer` object carries a `recognizedIn` property. A [=verifier=] follows that `recognizedIn` reference to the state's list of recognized universities, issued by the state department of education, to determine whether the state university is itself a [=recognized entity=].

{
  "@context": [
    "https://www.w3.org/ns/credentials/v2",
    "https://www.w3.org/ns/credentials/examples/v2"
  ],
  "type": [
    "VerifiableCredential",
    "ExampleDegreeCredential"
  ],
  "issuer": {
    "id": "did:web:university.example",
    "name": "Example State University",
    "recognizedIn": {
      "id": "https://education.state.example/lists/recognized-universities.json",
      "type": "RecognizedEntityCredential",
      "name": "State List of Recognized Universities"
    }
  },
  "validFrom": "2025-06-01T00:00:00Z",
  "credentialSubject": {
    "id": "did:example:student-123",
    "name": "Alex Example",
    "degree": {
      "type": "ExampleBachelorDegree",
      "name": "Bachelor of Science in Computer Science"
    }
  },
  "proof": {
    "type": "DataIntegrityProof",
    "created": "2025-06-01T20:08:22Z",
    "verificationMethod": "did:web:university.example#issuance-key-1",
    "cryptosuite": "ecdsa-rdfc-2019",
    "proofPurpose": "assertionMethod",
    "proofValue": "z36XPGByaH3rvtKfwoEQXsnUXUAjwd2Ceiqke1GPfjAPAFYoXKo5ftPdwE7QZ8Mw22SC5LSRQg1d8bhe3252hYJoH"
  }
}
        

In this example, a [=verifier=] evaluating the diploma issued by `did:web:university.example` follows the `recognizedIn` reference on the credential's `issuer` object to `https://education.state.example/lists/recognized-universities.json`. It then follows the `recognizedIn` reference on that list's own `issuer` object, if there is one, and repeats until it reaches the top of the recognition hierarchy. It does this even if it already recognizes the university or the state department of education. [=Recognition validation=] then confirms that each list names the [=issuer=] below it as a [=recognized entity=], and that the [=issuer=] at the top of the chain is one the [=verifier=] recognizes.

Identifier-based Discovery

Identifier-based discovery is the process by which a [=verifier=] that receives a [=verifiable credential=] starts from the [=issuer=]'s identifier, resolves that identifier to a [=controlled identifier document=], and uses a service declared in that document to retrieve a [=verifiable presentation=] that might contain a [=recognized entity credential=] recognizing the [=issuer=]. Whereas [=credential-based discovery=] relies on a `recognizedIn` reference being present on the `issuer` object, identifier-based discovery makes no such assumption; it instead obtains recognition information by dereferencing the [=issuer=]'s identifier itself.

The mechanism relies on the [=issuer=] publishing recognition information at a service endpoint that is discoverable from its identifier. The [=issuer=]'s identifier, typically expressed as the `id` of the `issuer` object (for example, `issuer.id`), is a [=URL=] that can be resolved or dereferenced to a [=controlled identifier document=], such as a [=DID document=]. That document MAY declare a service whose `type` array includes both `WhoisService` and `PathService`; the service's `serviceEndpoint` identifies the location at which the [=issuer=] publishes a [=verifiable presentation=] describing itself. The published [=verifiable presentation=] is signed by the [=issuer=] and contains [=verifiable credentials=] for which the [=issuer=]'s identifier is the `credentialSubject`. Among these MAY be a [=recognized entity credential=] in which the [=issuer=] appears as a [=recognized entity=].

A [=verifier=] that obtains a [=recognized entity credential=] this way continues up the recognition hierarchy from that credential. If the [=recognized entity credential=] carries a `recognizedIn` property on its own `issuer` object, the [=verifier=] continues with [=credential-based discovery=]. Otherwise, it performs [=identifier-based discovery=] on the identifier of that credential's [=issuer=]. When neither finds a [=recognized entity credential=] one level up, the top of the hierarchy has been reached. The [=verifier=] does not stop at an [=issuer=] it recognizes.

The diagram below shows the [=identifier-based discovery=] process from the [=verifier=]'s perspective. The same steps repeat at each level of the hierarchy until no [=recognized entity credential=] is found one level up. [=Recognition validation=] then checks the resulting chain.

%%{init: {"flowchart": {"wrappingWidth": 500}}}%%
flowchart TD
    VC["Verifiable Credential\n(any type)"]
    DID["Issuer DID Document"]
    WS{{"WhoisService\nendpoint found?"}}
    VP["Verifiable Presentation\nat WhoisService endpoint"]
    Q1{{"RecognizedEntityCredential\nfor the issuer found?"}}
    RecognizedEntityCredential["RecognizedEntityCredential\nfor the issuer"]
    TOP(["Top of hierarchy reached"])
    VALIDATE(["Recognition validation\non the whole chain"])

    VC --> DID
    DID --> WS
    WS -->|"no"| TOP
    WS -->|"yes"| VP
    VP --> Q1
    Q1 -->|"no"| TOP
    Q1 -->|"yes"| RecognizedEntityCredential
    RecognizedEntityCredential -->|"repeat for its issuer"| DID
    TOP --> VALIDATE

    style VC fill:#b6d9b0,color:#000
    style RecognizedEntityCredential fill:#b6d9b0,color:#000
    style DID fill:#fef3a0,color:#000
    style VP fill:#fef3a0,color:#000
    style WS fill:#eee,color:#000
    style Q1 fill:#eee,color:#000
    style TOP fill:#eee,color:#000
    style VALIDATE fill:#005a9c,color:#fff
          
Identifier-based discovery from the verifier's perspective

To perform [=identifier-based discovery=] on a [=verifiable credential=] (credential), within a time budget (maxDuration) and a retrieval limit (maxRetrievals), and with an optional set of [=issuer=] identifiers already visited (visited), a [=verifier=] runs the following algorithm. The algorithm returns a list of candidate chains, where each chain is a list of [=verifiable credentials=] beginning with credential. The [=verifier=] then runs the algorithm in Section [[[#recognition-validation]]] on the returned chains, which describes how to select among their results. The algorithm is executed one level up the hierarchy, so visited is empty when a [=verifier=] first runs the algorithm.

This algorithm runs within the time budget and the retrieval limit described in Section [[[#algorithms]]]. Both include any nested [=credential-based discovery=] and any nested [=identifier-based discovery=].

This algorithm resolves the identifier of every [=issuer=] it reaches, including the [=issuer=] at the top of the chain, to learn whether a `WhoisService` leads further up. If the identifier of a recognition anchor cannot be resolved, the algorithm raises a `RETRIEVAL_ERROR`, even though the [=verifier=] recognizes that anchor. A [=verifier=] can avoid this by caching the [=controlled identifier documents=] of its recognition anchors in advance, as described in Section [[[#holder-based-delivery]]].

Whether the budget is exhausted depends on network conditions and on traversal order, so the same [=verifiable presentation=] can succeed for one [=verifier=] and fail for another. A [=verifier=] whose budget runs out has established nothing about the [=issuer=]. The error says the budget was exceeded, not that recognition failed, so a [=verifier=] can retry with a larger maxDuration.

This algorithm builds candidate chains. It does not read `recognizedTo`. A recognizer can attach [=credential validators=] to each entity it recognizes. Section [[[#recognition-validation]]] runs those validators on every credential in each returned chain. It starts next to the anchor and works down the chain. A chain whose validators fail still shows that the [=issuer=] is recognized. It does not show that the [=issuer=] is recognized to perform the requested action. Section [[[#recognition-validation]]] explains how a [=verifier=] chooses among the results of several chains.

  1. Let chains be an empty list.
  2. Let issuer be the value of the `issuer` property of credential, and let issuerId be its identifier.
  3. If issuerId is a member of visited, the [=issuers=] form a cycle. Append a chain consisting of credential alone to chains and return chains. Section [[[#recognition-validation]]] rejects the resulting chain, because the same [=issuer=] appears in it twice.
  4. Add issuerId to visited. Let maxDepth be the maximum recognition chain depth the [=verifier=] is configured to traverse. If the size of visited exceeds maxDepth, raise a `LIMIT_EXCEEDED_ERROR`.
  5. Obtain a controlled identifier document, idDocument, for issuerId. If issuerId identifies a recognition anchor whose [=controlled identifier document=] the [=verifier=] has cached, the [=verifier=] MAY use the cached document. Otherwise, resolve or dereference issuerId. Apply the [=retrieval policy=] to any retrieval that resolution performs, and count each retrieval toward maxRetrievals. If issuerId cannot be resolved, or the [=retrieval policy=] blocks the retrieval, raise a `RETRIEVAL_ERROR` identifying issuerId.
  6. Let service be a service in the `service` array of idDocument whose `type` includes both `WhoisService` and `PathService`. If no such service is present, return chains; identifier-based discovery is not supported for this [=issuer=].
  7. Let endpoint be the `serviceEndpoint` of service and retrieve the [=verifiable presentation=], presentation, published at endpoint. The [=issuer=] controls endpoint, and nothing has been verified at this point, so apply the [=retrieval policy=] to this retrieval and count it toward maxRetrievals. If retrieval fails, or the [=retrieval policy=] blocks it, raise a `RETRIEVAL_ERROR` identifying endpoint. A failed retrieval does not show that the top of the hierarchy has been reached.
  8. Verify the proof on presentation and confirm that it is bound to issuerId. If verification fails, raise a `CRYPTOGRAPHIC_SECURITY_ERROR`.
  9. Let candidates be the [=recognized entity credentials=] contained in presentation in which issuerId appears as the `id` of a [=recognized entity=] in the `credentialSubject`. If candidates is empty, return chains.
  10. For each list in candidates, do the following.
    1. If the `issuer` object of list contains a `recognizedIn` property, perform [=credential-based discovery=] on list within the time that remains of maxDuration and the retrievals that remain of maxRetrievals. Pass a maxDepth equal to maxDepth minus the size of visited, because the chain already holds that many [=verifiable credentials=] below list. Let upper be a list containing the returned chain.
    2. Otherwise, perform [=identifier-based discovery=] on list within the time that remains of maxDuration and the retrievals that remain of maxRetrievals, passing a copy of visited, and let upper be the returned chains. If upper is empty, no [=recognized entity credential=] was found one level up, so the [=issuer=] of list is the top of the hierarchy. Let upper be a list containing one chain, which consists of list alone.
    3. For each chain in upper, append the chain consisting of credential followed by the elements of that chain to chains.
    4. If the elapsed time since this algorithm started exceeds maxDuration, raise a `LIMIT_EXCEEDED_ERROR` identifying maxDuration and the [=URL=] being retrieved, if any.
  11. Return chains.

The example below shows a controlled identifier document for the [=issuer=] `did:web:university.example` that declares a `WhoisService`. A [=verifier=] resolves this document, retrieves the [=verifiable presentation=] published at the service endpoint, and inspects the [=recognized entity credentials=] it contains to determine whether the university is recognized.

{
  "@context": [
    "https://www.w3.org/ns/cid/v1"
  ],
  "id": "did:web:university.example",
  "assertionMethod": [{
    "id": "#issuance-key-1",
    "type": "Multikey",
    "controller": "did:web:university.example",
    "publicKeyMultibase": "z6MkhaXgBZDvotDkL5257faiztiGiC2QtKLGpbnnEGta2doK"
  }],
  "service": [{
    "id": "#whois",
    "type": ["WhoisService", "PathService"],
    "serviceEndpoint": "https://university.example/whois.vp"
  }]
}
        

The [=verifiable presentation=] retrieved from the `serviceEndpoint` is signed by `did:web:university.example` and contains a [=recognized entity credential=], as shown below, issued by the state department of education that lists the university as a [=recognized entity=] recognized to `issue` credentials conforming to a computer science bachelor's degree schema. The [=verifier=] then continues up the hierarchy from that credential. Its `issuer` object carries no `recognizedIn` property, so the [=verifier=] performs [=identifier-based discovery=] on `did:web:education.state.example`. If that finds no [=recognized entity credential=], the state department of education is the top of the chain. [=Recognition validation=] then confirms that `did:web:education.state.example` is an [=issuer=] the [=verifier=] recognizes. It also determines whether the university is recognized to perform the intended `issue` action and whether the diploma conforms to the schema named by that [=recognized action=]'s `credentialValidator`.

{
  "@context": [
    "https://www.w3.org/ns/credentials/v2",
    "https://www.w3.org/ns/credentials/examples/v2"
  ],
  "type": "VerifiablePresentation",
  "holder": "did:web:university.example",
  "verifiableCredential": [{
    "@context": [
      "https://www.w3.org/ns/credentials/v2",
      "https://www.w3.org/ns/credentials/examples/v2"
    ],
    "type": [
      "VerifiableCredential",
      "RecognizedEntityCredential"
    ],
    "issuer": {
      "id": "did:web:education.state.example",
      "type": "RecognizedIssuer",
      "name": "State Department of Education"
    },
    "validFrom": "2025-01-01T00:00:00Z",
    "validUntil": "2030-01-01T00:00:00Z",
    "credentialSubject": [{
      "id": "did:web:university.example",
      "type": "RecognizedEntity",
      "name": "Example State University",
      "url": "https://www.university.example/",
      "recognizedTo": {
        "type": "RecognizedAction",
        "action": "issue",
        "recognizedBy": "did:web:education.state.example",
        "credentialValidator": {
          "id": "https://education.state.example/credentials/cs-bachelors.json",
          "type": "CredentialValidator",
          "mediaType": "application/schema+json",
          "digestMultibase": "uEiBZl963sknNAHgPyslVv6VztZpfWQoRvW1htfx-UwirFo"
        }
      }
    }],
    "proof": {
      "type": "DataIntegrityProof",
      "created": "2026-04-10T20:08:22Z",
      "verificationMethod": "did:web:education.state.example#issuance-key-1",
      "cryptosuite": "ecdsa-rdfc-2019",
      "proofPurpose": "assertionMethod",
      "proofValue": "z36XPGByaH3rvtKfwoEQXsnUXUAjwd2Ceiqke1GPfjAPAFYoXKo5ftPdwE7QZ8Mw22SC5LSRQg1d8bhe3252hYJoH"
    }
  }],
  "proof": {
    "type": "DataIntegrityProof",
    "created": "2026-04-10T20:10:00Z",
    "verificationMethod": "did:web:university.example#issuance-key-1",
    "cryptosuite": "ecdsa-rdfc-2019",
    "proofPurpose": "authentication",
    "proofValue": "z3FXQjBHwoEQXsnUXUAjwd2Ceiqke1GPfjAPAFYoXKo5ftPdwE7QZ8Mw22SC5LSRQg1d8bhe3252hYJoHPGByaH"
  }
}
        

Recognition Validation

Recognition validation is the process by which a [=verifier=] determines whether a chain of [=verifiable credentials=] establishes that the [=issuer=] of a [=verifiable credential=] is recognized, and whether it is recognized to perform a particular action. The process does not depend on how the chain was obtained. A chain returned by [=credential-based discovery=], a chain returned by [=identifier-based discovery=], and a chain delivered by a [=holder=] as described in Section [[[#holder-based-delivery]]] are all validated the same way.

This algorithm checks the relationships between the [=verifiable credentials=] in the chain. It does not check the internal validity of any individual [=verifiable credential=], which Section [[[#algorithms]]] assumes has already been established.

To perform [=recognition validation=] on a chain (chain) produced by any discovery mechanism, for a specific action (action, for example `issue`), against a configured set of recognized [=issuers=] (recognizedIssuers), at an evaluation time (evaluationDateTime), within a time budget (maxDuration), a [=verifier=] runs the following algorithm. The algorithm returns a result with two boolean outcomes: recognized, indicating whether the [=issuer=] of the first [=verifiable credential=] in chain is ultimately recognized by a member of recognizedIssuers, and actionRecognized, indicating whether that [=issuer=] is recognized to perform action and, where a [=recognized action=] declares a `credentialValidator`, whether the [=verifiable credential=] conforms to it. actionRecognized also requires that each [=recognized entity credential=] in the chain meets the constraints that its own recognizer declared. The result also contains the errors and warnings that [=credential validation=] reported.

This algorithm runs within the time budget described in Section [[[#algorithms]]]. The budget covers every [=credential validation=] the algorithm performs. It applies whether the chain came from discovery or from a [=holder=]. A [=verifier=] that ran discovery first passes the time that remains of the discovery budget.

Each time this algorithm performs [=credential validation=], it appends the errors and warnings in that result to result.errors and result.warnings. If those errors include a `LIMIT_EXCEEDED_ERROR`, or the elapsed time exceeds maxDuration, the algorithm raises a `LIMIT_EXCEEDED_ERROR` identifying the limit instead of returning result. A caller can therefore tell a budget that ran out from a constraint that failed, and can retry with a larger maxDuration.

evaluationDateTime is the point in time at which recognition is evaluated. A [=verifier=] normally sets it to the current date and time. A [=verifier=] that asks whether recognition held at some past date sets it to that date instead. Every date comparison in this algorithm uses evaluationDateTime. Validity period endpoints are inclusive. An instant equal to a `validFrom` or a `validUntil` value is within the period that value bounds.

  1. Let result be a structure with recognized set to `false`, actionRecognized set to `false`, and errors and warnings each set to an empty list.
  2. If chain contains fewer than two [=verifiable credentials=], return result. A recognition chain consists of at least a [=verifiable credential=] and a [=recognized entity credential=] that recognizes its [=issuer=].
  3. Let maxDepth be the maximum recognition chain depth the [=verifier=] is configured to accept. If the length of chain exceeds maxDepth, return result.
  4. Let seen be an empty set. For each [=verifiable credential=] in chain, let id be the identifier of its [=issuer=]. If id is already a member of seen, the chain contains a cycle, so return result. Otherwise, add id to seen.
  5. Let window be the period during which every [=verifiable credential=] in chain was valid at the same time. To determine it, let window start at the latest `validFrom` property in chain and end at the earliest `validUntil` property in chain. A [=verifiable credential=] that expresses no `validFrom` property does not constrain the start, and one that expresses no `validUntil` property does not constrain the end. If window ends before it starts, no such period exists, so return result. If evaluationDateTime falls outside window, at least one [=verifiable credential=] in chain is not valid at the evaluation time, so return result.
  6. For each adjacent pair of [=verifiable credentials=] in chain, where subject is the earlier [=verifiable credential=] and list is the later one, confirm that list is a [=recognized entity credential=] and that the `credentialSubject` of list contains a [=recognized entity=] whose `id` is equal, using simple string comparison, to the identifier of the [=issuer=] of subject. If it does not, the two [=verifiable credentials=] are unrelated, so return result.
  7. If the `issuer` object of the final [=verifiable credential=] in chain contains a `recognizedIn` property, the chain stops short of the top of the recognition hierarchy, so return result. A chain that stops short might skip limits set by a recognizer above its final [=issuer=].
  8. Confirm that the [=issuer=] of the final [=verifiable credential=] in chain is a member of recognizedIssuers. If it is not, the chain does not terminate at an anchor that the [=verifier=] recognizes, so return result. Otherwise, set result.recognized to `true`.
  9. Check each intermediate [=recognized entity credential=] in chain, starting next to the anchor and moving toward the first [=verifiable credential=]. That is, for each [=verifiable credential=] from the next-to-last one in chain back to the second one, in that order, let intermediate be that [=verifiable credential=], let list be the [=verifiable credential=] that follows it in chain, and let entity be the [=recognized entity=] in the `credentialSubject` of list whose `id` is the identifier of the [=issuer=] of intermediate. If entity has no `recognizedTo` property, its recognizer placed no constraint on it, so continue with the next [=verifiable credential=]. Otherwise, do the following.
    1. Let actions be the [=recognized actions=] declared by the `recognizedTo` property of entity whose validity period includes evaluationDateTime. If a [=recognized action=] expresses neither a `validFrom` nor a `validUntil` property, the validity period of the enclosing [=recognized entity credential=] applies. If it expresses one but not the other, the enclosing credential's corresponding property applies to the unexpressed value. If actions is empty, return result.
    2. For each [=recognized action=] in actions that declares a `credentialValidator`, perform [=credential validation=], as described in Section [[[#credential-validation]]], on intermediate with the [=credential validators=] declared by its `credentialValidator` property, and with options whose `chain` value is every item of chain after intermediate, whose `action` value is action, and whose `evaluationDateTime` value is evaluationDateTime. If the result's valid value is not `true`, return result.
  10. Let credential be the first [=verifiable credential=] in chain, let list be the second, and let entity be the [=recognized entity=] in the `credentialSubject` of list whose `id` is the identifier of the [=issuer=] of credential. Set result.actionRecognized to `true` if any [=recognized action=] declared by the `recognizedTo` property of entity meets all of the following conditions.
    1. Its `action` value is equal to action.
    2. Its validity period includes evaluationDateTime, determined as in the previous step.
    3. It declares no `credentialValidator`, or performing [=credential validation=], as described in Section [[[#credential-validation]]], on credential with the [=credential validators=] declared by its `credentialValidator` property, and with options whose `chain` value is every item of chain after the first, whose `action` value is action, and whose `evaluationDateTime` value is evaluationDateTime, returns a result whose valid value is `true`.
  11. Return result.

All proofs are verified, and the chain is confirmed to end at an anchor, before any [=credential validator=] runs. The validators then run in order, starting next to the anchor and ending at the first [=verifiable credential=]. A validator declared by an entity runs only after that entity has passed the checks set by its own recognizer. A recognizing authority can use this to limit who the entities it recognizes can go on to recognize. The GS1 Prefixes in Section [[[#gs1-federated-identifier-example]]] are an example. The checks on intermediate credentials do not compare `action` values. Each ecosystem uses [=credential validators=] to say what an intermediate can recognize. At an intermediate credential, every [=recognized action=] that is valid at the evaluation time has to pass, so adding another action cannot bypass a limit. A validator meant for one kind of credential therefore needs to accept the kinds of credential it does not limit. A [=recognized action=] with no `credentialValidator` sets no limit of its own. The chain always reaches the top of the recognition hierarchy, so every limit set along it is checked. A [=verifier=] that also recognizes an [=issuer=] in the middle of the chain still checks the limits set above that [=issuer=].

A result in which recognized is `true` and actionRecognized is `false` means that the [=issuer=] is recognized by an anchor that the [=verifier=] recognizes, but was not recognized to perform the action in question, or produced a [=verifiable credential=] that does not conform to the schema that the [=recognized action=] requires. A [=verifier=] is expected to treat that outcome as a failure whenever the action matters to the transaction.

A [=recognized entity credential=] that lacks a `recognizedTo` property for a given [=recognized entity=] asserts that the entity is recognized, without constraining the actions it performs. A [=verifier=] that requires an explicit action to be recognized treats such a [=recognized entity credential=] as producing an actionRecognized value of `false`.

A discovery mechanism can produce more than one candidate chain, as [=identifier-based discovery=] does when an [=issuer=] publishes [=recognized entity credentials=] from more than one recognizing authority. A [=verifier=] chooses among them as follows. The order of the chains does not change the outcome.

  1. Run this algorithm on each candidate chain. All of the runs share one time budget, and each run receives the time that remains. The [=verifier=] can stop as soon as a result has both recognized and actionRecognized set to `true`.
  2. If any result has both recognized and actionRecognized set to `true`, the [=issuer=] is recognized to perform the action. Use that result.
  3. Otherwise, if any run raised an error, such as a `LIMIT_EXCEEDED_ERROR`, raise that error. That chain might have succeeded, so the [=verifier=] cannot conclude that the [=issuer=] is not recognized.
  4. Otherwise, if any result has recognized set to `true`, the [=issuer=] is recognized, but not to perform the action. Use that result.
  5. Otherwise, the [=issuer=] is not recognized. Use any of the results.

If more than one result qualifies at a step, any of them can be used. They establish the same thing, although their errors and warnings can differ. Whether the shared budget runs out can depend on network conditions and on the order in which the chains are run, as described in Section [[[#identifier-based-discovery]]].

Credential Validation

Credential validation is the process by which a [=verifier=] determines whether a [=verifiable credential=] meets the constraints declared by the `credentialValidator` property of a [=recognized action=]. Section [[[#recognition-validation]]] runs it on each intermediate [=recognized entity credential=], starting next to the anchor, and then on the first [=verifiable credential=] in the chain. It does so only after it has walked the chain, confirmed that each adjacent pair of [=verifiable credentials=] in the chain is related, and confirmed that the chain ends at an anchor that the [=verifier=] recognizes. The proof on every [=verifiable credential=] in the chain has already been verified, as described in Section [[[#algorithms]]].

Credential validation does not change how a chain is discovered, walked, or verified, and the kind of [=credential validator=] in use does not change it either. Each [=credential validator=] is evaluated against the already verified chain using the processing defined for its `mediaType`. Credential validation always fails when a [=verifier=] does not support the `mediaType` of a [=credential validator=].

The inputs to every [=credential validator=] are the [=verifiable credential=] being validated and a [=map=] of options. The options carry all of the other information used in the evaluation. They contain the following properties.

Property Description
chain Present if the [=verifiable credential=] is validated as part of a recognition chain. An array containing the rest of that chain, which is every [=verifiable credential=] in it except the one being validated, each expressed as the JSON object the [=verifier=] received, in the order defined in Section [[[#recognition-validation]]]. The [=verifiable credential=] being validated is passed separately, so the array starts at the second item of the chain. Its first item, `chain[0]`, is the [=recognized entity credential=] that declares the [=credential validator=], and its last item is the [=recognized entity credential=] issued by the anchor that the [=verifier=] recognizes. The [=verifier=] has verified the proof on every item.
action The action, such as `issue`, that the [=verifier=] is checking for the first [=verifiable credential=] in the chain, as described in Section [[[#recognition-validation]]]. Every [=credential validator=] in the chain receives the same value, including those that validate an intermediate [=recognized entity credential=].
evaluationDateTime The point in time at which recognition is evaluated, as described in Section [[[#recognition-validation]]], expressed as an XML Schema dateTime value in UTC, for example `2026-11-04T00:00:00Z`.

Other specifications MAY define additional options. A [=credential validator=] MUST throw an `UNRECOGNIZED_OPTION_ERROR` if it does not recognize an option.

To perform [=credential validation=] on a [=verifiable credential=] (credential) with a list of [=credential validators=] (validators) and a [=map=] of options (options), a [=verifier=] runs the following algorithm. The algorithm returns a result containing a boolean valid, a list of errors, and a list of warnings.

  1. Let result be a structure with valid set to `true`, and errors and warnings each set to an empty list.
  2. If validators is a single object, treat it as a list containing that object.
  3. For each validator in validators, evaluate it using the processing defined for the value of its `mediaType` property:
    1. If the `type` of validator is not `CredentialValidator`, append an `CREDENTIAL_VALIDATION_ERROR` identifying the `type` to result.errors, set result.valid to `false`, and continue with the next validator.
    2. If the `mediaType` is `application/schema+json`, set result.valid to `false` if credential does not conform to the JSON Schema [[JSON-SCHEMA]] identified by the `id` property of validator.
    3. Otherwise, if the `mediaType` is `text/javascript`, let validatorResult be the result of running the algorithm in Section [[[#javascript-validator-processing]]] on validator, credential, and options. Append the items of validatorResult.errors to result.errors and the items of validatorResult.warnings to result.warnings. If validatorResult.valid is not `true`, set result.valid to `false`.
    4. Otherwise, if the `mediaType` is `application/jsonata`, let validatorResult be the result of running the algorithm in Section [[[#jsonata-validator-processing]]] on validator, credential, and options. Append the items of validatorResult.errors to result.errors and the items of validatorResult.warnings to result.warnings. If validatorResult.valid is not `true`, set result.valid to `false`.
    5. Otherwise, the [=verifier=] does not support the `mediaType`. Append an `CREDENTIAL_VALIDATION_ERROR` identifying the `mediaType` to result.errors, and set result.valid to `false`.
  4. Return result.

Section [[[#recognition-validation]]] performs [=credential validation=] only after it has confirmed that the chain ends at an anchor that the [=verifier=] recognizes and that every adjacent pair in the chain is related. A [=verifier=] therefore retrieves and evaluates a [=credential validator=], including running any code it identifies, only when it was declared by an [=issuer=] whose recognition traces back to a recognition root known to the [=verifier=]. Validators run from the anchor down the chain, so a validator runs only after the entity that declared it has passed the validators set by its own recognizer.

JavaScript Validator Processing

This section defines how [=credential validation=] evaluates a [=JavaScript credential validator=] against an already verified chain. The code is written by a third party and is downloaded via a [=recognized entity credential=]. Since the [=verifier=] does not always know the third party, it treats the downloaded code as untrusted and runs it in a sandbox that cannot reach the network, read the [=verifier=]'s own state, or learn anything else outside the sandbox. A [=verifier=] MAY use an algorithm other than the one below if its security and privacy outcomes, and its result, are the same.

The following terminology is used to describe the sandbox:

validation host
The [=verifier=] software that retrieves the [=validator code=], creates the sandbox, sends the inputs into the sandbox, and receives the result.
validator code
The JavaScript code identified by the `id` property of a [=JavaScript credential validator=].
wrapper code
Code that the [=validation host=] places in the sandbox alongside the [=validator code=]. It loads the [=validator code=], receives the inputs from the [=validation host=], invokes the [=validator code=], and returns its result to the [=validation host=].

The [=validator code=] MUST be an ECMAScript module, as defined in [[ECMASCRIPT]], whose default export is a function.

A sandbox that runs [=validator code=] SHOULD meet the following security requirements.

  • It prevents the [=validator code=] from making network requests of any kind, including importing other modules from a [=URL=] that is not a `data:` URL.
  • It prevents the [=validator code=] from reading or modifying any state of the [=validation host=], including its memory, storage, cookies, documents, and key material. The [=validator code=] receives copies of its inputs, not references to the [=validation host=]'s objects.
  • It provides no storage that persists after the sandbox is destroyed, and it is never reused. Each invocation of [=validator code=] starts in a new sandbox, so that one evaluation cannot influence another, and so that [=validator code=] cannot track which recognition chains a [=verifier=] evaluates.
  • It lets the [=validation host=] terminate the [=validator code=] at any time, without the cooperation of the [=validator code=], so that the [=validation host=] can enforce limits on running time and memory.

A JavaScript environment that shares a heap or an event loop with the [=validation host=], such as the `vm` module of Node.js, does not meet the requirements above. Environments that can meet them include a separate operating system process, an isolate provided by a library such as `isolated-vm`, and a JavaScript engine compiled to WebAssembly.

sequenceDiagram
    participant H as Validation Host (Verifier)
    participant W as Sandbox (Wrapper Code)
    participant C as Validator Code
    H->>H: Retrieve validator code and check its cryptographic hash
    H->>W: Create a new sandbox containing the wrapper code
    H->>W: Send credential and options as JSON
    W->>C: Load module and call its default export
    C-->>W: Result
    W-->>H: Result as JSON
    H->>H: Destroy the sandbox and check the result
          
Communication between the validation host and the sandbox

To run a [=JavaScript credential validator=] (validator) on a [=verifiable credential=] (credential) with a [=map=] of options (options), as described in Section [[[#credential-validation]]], a [=verifier=] runs the following algorithm. The algorithm returns a result containing a boolean valid, a list of errors, and a list of warnings. Each error and warning is a ProblemDetails object.

  1. Let result be a structure with valid set to `false`, and errors and warnings each set to an empty list.
  2. If the [=verifier=] cannot provide a sandbox that meets the requirements in this section, append an `CREDENTIAL_VALIDATION_ERROR` to result.errors and return result.
  3. Let codeUrl be the value of the `id` property of validator. If codeUrl is a `data:` URL, let code be the bytes it encodes. Otherwise, let code be a copy of the [=validator code=] that the [=verifier=] has cached, or, if it has none, the bytes retrieved from codeUrl. Apply the [=retrieval policy=] to that retrieval. If code cannot be obtained, or the [=retrieval policy=] blocks the retrieval, append a `RETRIEVAL_ERROR` identifying codeUrl to result.errors and return result.
  4. If validator provides a cryptographic hash of the [=validator code=], ensure that the cryptographic hash of code matches the one provided by the [=issuer=], as described in Section 5.3: Integrity of Related Resources of the [[[VC-DATA-MODEL]]] specification. If they do not match, append a `CRYPTOGRAPHIC_SECURITY_ERROR` identifying codeUrl to result.errors and return result. No part of code is parsed or run before this check succeeds.
  5. Let maxRunTime be the lesser of the running time that the [=verifier=] is configured to allow [=validator code=] and the time that remains of the [=recognition validation=] budget, and let maxMemory be the limit on memory that the [=verifier=] is configured to allow [=validator code=]. Create a new sandbox, place the [=wrapper code=] and code in it, and start measuring elapsed time and memory use. If either limit is exceeded at any point before the sandbox is destroyed, destroy the sandbox, append a `LIMIT_EXCEEDED_ERROR` identifying the limit that was exceeded to result.errors, and return result.
  6. Serialize credential and options to JSON [[RFC8259]] and send them into the sandbox. The [=wrapper code=] parses them, loads code as an ECMAScript module, and calls the module's default export, the [=validation function=], with the parsed credential as its first argument and the parsed options as its second. If the function returns a promise, the [=wrapper code=] waits for it to settle.
  7. If code fails to parse as an ECMAScript module, or its default export is not a function, destroy the sandbox, append an `CREDENTIAL_VALIDATION_ERROR` to result.errors, and return result.
  8. If the function throws an exception or returns a promise that rejects, destroy the sandbox. If the exception has a `type` property whose value is a [=URL=], such as an `UNRECOGNIZED_OPTION_ERROR`, append a ProblemDetails object with that `type` and with the exception's message as its `detail` to result.errors. Otherwise, append an `CREDENTIAL_VALIDATION_ERROR` to result.errors. Return result.
  9. The [=wrapper code=] serializes the value the function returned to JSON and sends it to the [=validation host=]. Destroy the sandbox. Let output be the result of parsing that JSON.
  10. If output does not have the form of a [=validation result=], as described in Section [[[#javascript-credential-validation-function]]], append an `CREDENTIAL_VALIDATION_ERROR` to result.errors and return result.
  11. Set result.valid to the `valid` value of output. Append the items of the `errors` value of output, if any, to result.errors, and the items of its `warnings` value, if any, to result.warnings.
  12. If result.errors is not empty, set result.valid to `false`.
  13. Return result.
JavaScript Credential Validation Function

The validation function is the default export of the [=validator code=]. The [=wrapper code=] calls it as follows:

validate(credential, options) → result
        

The function MAY be asynchronous, in which case it returns a promise that resolves to result. Its arguments and its return value are described below.

credential
The [=verifiable credential=] being validated, expressed as the JSON object the [=verifier=] received. The [=verifier=] has verified its proof before the function is called, so the function does not verify proofs.
options
The [=map=] of options defined in Section [[[#credential-validation]]], such as `chain`, `action`, and `evaluationDateTime`, expressed as JSON.
result
A validation result, which is a [=map=] containing the following properties.
Property Description
valid REQUIRED. A [=boolean=] that is `true` if credential meets the constraints that the [=validator code=] checks, and `false` otherwise.
errors OPTIONAL. An array of ProblemDetails objects, each describing a constraint that credential does not meet. If `valid` is `true`, this array MUST be empty or absent.
warnings OPTIONAL. An array of ProblemDetails objects, each describing a condition that a [=verifier=] might want to know about but that does not cause validation to fail.

Each item in `errors` and `warnings` MUST conform to Section 7.1.4: Problem Details of the [[[VC-DATA-MODEL]]] specification. An item that does not conform causes the algorithm in Section [[[#javascript-validator-processing]]] to fail.

The [=validation function=] MUST NOT depend on any input other than credential and options. In particular, it uses `options.evaluationDateTime` rather than the current time, and does not use random numbers, so that every [=verifier=] that evaluates the same credential and options obtains the same result.

The ProblemDetails objects in a [=validation result=] are written by the author of the [=validator code=]. A [=verifier=] that shows their contents to a person displays them as plain text, and does not interpret them as markup or as instructions.

The example below shows the [=validator code=] referenced by the [=JavaScript credential validator=] in Section [[[#javascript-credential-validators]]]. For a chain consisting of a key credential issued by Healthy Tots, the [=recognized entity credential=] issued by GS1 Utopia, and the [=recognized entity credential=] issued by the GS1 Global Office, it reads the GS1 Company Prefix `9506000` licensed to Healthy Tots and the GS1 Prefix `950` licensed to GS1 Utopia. It then confirms that the GTIN `09506000134352` begins with `9506000` after its leading indicator digit, and that `9506000` begins with `950`. If the chain ends at an anchor other than the GS1 Global Office, the function reports a warning, because the GS1 Prefix in the chain was then not checked against the GS1 Global Office's own allocation.

/**
 * Checks that the GTIN in a key credential begins with the GS1 Company
 * Prefix licensed to its issuer, and that each prefix licensed in the
 * recognition chain begins with the prefix licensed one level above it.
 *
 * @param {object} credential - The key credential being validated.
 * @param {object} options - The validation options.
 * @param {Array<object>} options.chain - The rest of the recognition
 *   chain; `chain[0]` recognizes the issuer of `credential`.
 * @param {string} options.action - The action being evaluated.
 * @param {string} options.evaluationDateTime - The evaluation time.
 *
 * @returns {{valid: boolean, errors: Array<object>,
 *   warnings: Array<object>}} The validation result.
 */
export default function validate(credential, options) {
  const errors = [];
  const warnings = [];
  const getId = value => typeof value === 'string' ? value : value?.id;

  // throw on any option this validator does not recognize
  const knownOptions = new Set(['chain', 'action', 'evaluationDateTime']);
  for(const name of Object.keys(options)) {
    if(!knownOptions.has(name)) {
      const error = new Error(`Unrecognized option "${name}".`);
      error.type =
        'https://www.w3.org/TR/vc-data-model#UNRECOGNIZED_OPTION_ERROR';
      throw error;
    }
  }

  // the prefixes are read from the recognition chain, so it is required
  const {chain} = options;
  if(!Array.isArray(chain)) {
    errors.push({
      type: 'https://id.gs1.org/validators#MISSING_CHAIN',
      title: 'Missing recognition chain',
      detail: 'This validator requires the recognition chain.'
    });
    return {valid: false, errors, warnings};
  }

  // `prefixes[i]` is the prefix that `chain[i]` licenses to the issuer of the
  // credential one level below it, which is `credential` when `i` is 0
  const prefixes = [];
  for(let i = 0; i < chain.length; ++i) {
    const issuerId = getId((i === 0 ? credential : chain[i - 1]).issuer);
    const entity = [].concat(chain[i].credentialSubject)
      .find(subject => subject.id === issuerId);
    if(typeof entity?.licenceValue !== 'string') {
      errors.push({
        type: 'https://id.gs1.org/validators#MISSING_LICENCE',
        title: 'Missing licence value',
        detail: `No licensed prefix found for ${issuerId}.`
      });
      return {valid: false, errors, warnings};
    }
    prefixes.push(entity.licenceValue);
  }

  // a GTIN-14 in a GS1 Digital Link URI: https://id.gs1.org/01/{gtin}
  const gtin = new URL(credential.credentialSubject.id).pathname.split('/')[2];
  if(!gtin?.slice(1).startsWith(prefixes[0])) {
    errors.push({
      type: 'https://id.gs1.org/validators#PREFIX_MISMATCH',
      title: 'Prefix mismatch',
      detail: `GTIN ${gtin} does not begin with prefix ${prefixes[0]}.`
    });
  }
  for(let i = 1; i < prefixes.length; ++i) {
    if(!prefixes[i - 1].startsWith(prefixes[i])) {
      errors.push({
        type: 'https://id.gs1.org/validators#PREFIX_MISMATCH',
        title: 'Prefix mismatch',
        detail: `Prefix ${prefixes[i - 1]} does not begin with prefix ${prefixes[i]}.`
      });
    }
  }

  const anchorId = getId(chain.at(-1).issuer);
  if(anchorId !== 'did:web:id.gs1.org') {
    warnings.push({
      type: 'https://id.gs1.org/validators#NOT_GS1_ANCHORED',
      title: 'Chain not anchored at GS1 Global Office',
      detail: `Chain ends at ${anchorId}, not at the GS1 Global Office.`
    });
  }

  return {valid: errors.length === 0, errors, warnings};
}
        

If Healthy Tots had issued a key credential for the GTIN `09507000134352`, and the chain ended at the GS1 Global Office, the [=validation function=] would return the following [=validation result=].

{
  "valid": false,
  "errors": [{
    "type": "https://id.gs1.org/validators#PREFIX_MISMATCH",
    "title": "Prefix mismatch",
    "detail": "GTIN 09507000134352 does not begin with prefix 9506000."
  }],
  "warnings": []
}
        

JSONata Validator Processing

This section defines how [=credential validation=] evaluates a [=JSONata credential validator=] against an already verified chain. A third party writes the expression, and the [=verifier=] downloads it via a [=recognized entity credential=], so the [=verifier=] treats it as untrusted. JSONata has no built-in function that reaches the network or reads the [=verifier=]'s state. A [=verifier=] keeps it that way by registering no extension functions and by binding no variable other than `$options`.

To run a [=JSONata credential validator=] (validator) on a [=verifiable credential=] (credential) with a [=map=] of options (options), as described in Section [[[#credential-validation]]], a [=verifier=] runs the following algorithm. The algorithm returns a result containing a boolean valid, a list of errors, and a list of warnings.

  1. Let result be a structure with valid set to `false`, and errors and warnings each set to an empty list.
  2. Let expressionUrl be the value of the `id` property of validator. If expressionUrl is a `data:` URL, let expression be the text it encodes. Otherwise, let expression be a copy of the expression that the [=verifier=] has cached, or, if it has none, the text retrieved from expressionUrl. Apply the [=retrieval policy=] to that retrieval. If expression cannot be obtained, or the [=retrieval policy=] blocks the retrieval, append a `RETRIEVAL_ERROR` identifying expressionUrl to result.errors and return result.
  3. If validator provides a cryptographic hash of the expression, ensure that the cryptographic hash of expression matches the one provided by the [=issuer=], as described in Section 5.3: Integrity of Related Resources of the [[[VC-DATA-MODEL]]] specification. If they do not match, append a `CRYPTOGRAPHIC_SECURITY_ERROR` identifying expressionUrl to result.errors and return result. No part of expression is parsed or evaluated before this check succeeds.
  4. Let maxRunTime be the lesser of the running time that the [=verifier=] is configured to allow a JSONata expression and the time that remains of the [=recognition validation=] budget. Let maxMemory be the limit on memory that the [=verifier=] is configured to allow it. If either limit is exceeded at any point during the steps below, stop the evaluation, append a `LIMIT_EXCEEDED_ERROR` identifying the limit that was exceeded to result.errors, and return result.
  5. Evaluate expression as defined in [[JSONATA]], with credential as the input and options bound to the `$options` variable. Register no extension functions and bind no other variables.
  6. If expression fails to parse, or its evaluation raises an error, append a `CREDENTIAL_VALIDATION_ERROR` to result.errors and return result.
  7. Let schema be the result of the evaluation. If schema is not an object or a boolean, which are the forms a JSON Schema [[JSON-SCHEMA]] can take, append a `CREDENTIAL_VALIDATION_ERROR` to result.errors and return result.
  8. Validate credential against schema as defined in [[JSON-SCHEMA]]. Apply the [=retrieval policy=] to any retrieval that this validation performs. Set result.valid to `true` if credential conforms to schema.
  9. Return result.

A JSONata expression MUST NOT depend on any input other than credential and `$options`. It uses `$options.evaluationDateTime` rather than the `$now()` or `$millis()` functions, and it does not use the `$random()` function. This ensures that every [=verifier=] that evaluates the same credential and options obtains the same result.

The example below shows the expression referenced by the [=JSONata credential validator=] in Section [[[#jsonata-credential-validators]]]. For a key credential issued by Healthy Tots, it finds the [=recognized entity=] in `$options.chain[0]` whose `id` is the [=issuer=] of the credential. It reads the `licenceValue` of that entity, which is `9506000`. It then produces a JSON Schema whose `pattern` accepts a GTIN only if the digits after its indicator digit begin with that prefix. If no prefix is found, the expression produces the schema `false`, which no credential satisfies.

(
  $issuerId := $type($.issuer) = "string" ? $.issuer : $.issuer.id;
  $prefix := $options.chain[0].credentialSubject[id = $issuerId].licenceValue;
  $prefix ? {
    "type": "object",
    "required": ["credentialSubject"],
    "properties": {
      "credentialSubject": {
        "type": "object",
        "required": ["id"],
        "properties": {
          "id": {
            "type": "string",
            "pattern": "^https://id\\.gs1\\.org/01/[0-9]" & $prefix & "[0-9]+$"
          }
        }
      }
    }
  } : false
)
          

For the chain in Section [[[#gs1-federated-identifier-example]]], the expression produces the JSON Schema below. The key credential for the GTIN `09506000134352` conforms to it.

{
  "type": "object",
  "required": ["credentialSubject"],
  "properties": {
    "credentialSubject": {
      "type": "object",
      "required": ["id"],
      "properties": {
        "id": {
          "type": "string",
          "pattern": "^https://id\\.gs1\\.org/01/[0-9]9506000[0-9]+$"
        }
      }
    }
  }
}
          

Errors

When an algorithm in this section fails, a [=verifier=] raises an error and describes it with a ProblemDetails object, as defined in the [[[VC-DATA-MODEL]]] specification. The `type` property identifies what went wrong. The types below are used by the algorithms in this section.

The first four types below are not yet defined in the [[[VC-DATA-MODEL]]] specification. This specification proposes that they be added to it, so that other specifications can use them as well.

https://www.w3.org/TR/vc-data-model#RETRIEVAL_ERROR
A resource could not be retrieved. This covers an identifier that does not resolve, a [=recognized entity credential=] that cannot be obtained, and a [=verifiable presentation=] that cannot be fetched from a service endpoint. It also covers a retrieval that the [=retrieval policy=] blocks. A response that is too large is one example. The [=URL=] that was being retrieved SHOULD be provided in the `ProblemDetails` object.
https://www.w3.org/TR/vc-data-model#LIMIT_EXCEEDED_ERROR
A configured limit was exceeded. This covers the time a [=verifier=] allots to an operation, the maximum recognition chain depth it traverses, and the number of retrievals one run of discovery can perform. The limit that was exceeded SHOULD be identified in the `ProblemDetails` object. When a time limit runs out during a retrieval, the [=URL=] being retrieved SHOULD be provided as well.
https://www.w3.org/TR/vc-data-model#CREDENTIAL_VALIDATION_ERROR
A [=credential validator=] could not be evaluated. This covers a [=credential validator=] whose `type` or `mediaType` the [=verifier=] does not support, a [=verifier=] that cannot provide a sandbox for [=validator code=], [=validator code=] that fails to load, or that throws an exception or rejects without identifying a more specific error type, and a result that is not in the expected form. It also covers a JSONata expression that fails to parse or evaluate or that does not produce a JSON Schema.
https://www.w3.org/TR/vc-data-model#UNRECOGNIZED_OPTION_ERROR
A [=credential validator=] was given an option that it does not recognize. The name of the option SHOULD be provided in the `ProblemDetails` object.
https://www.w3.org/TR/vc-data-model#CRYPTOGRAPHIC_SECURITY_ERROR
A proof, or the digest of a resource, failed to verify. This type is already defined in the [[[VC-DATA-MODEL]]] specification.

Security Considerations

This section details the general security considerations of deploying the Recognized Entities data model into production environments. Each consideration below summarizes a security threat identified for this specification. The full analysis of each threat, together with the responses to it, is provided in the [[[VC-RECOGNIZED-ENTITIES-THREAT-MODEL]]].

Readers are urged to familiarize themselves with the general security and privacy advice provided in the Security Considerations and Privacy Considerations sections of the [[[VC-DATA-MODEL]]] specification before reading this section. Implementers are expected to apply the general warnings provided in that specification to each specific feature provided by this specification.

Privacy Considerations

This section details the general privacy considerations and specific privacy implications of deploying the Recognized Entities data model into production environments. Each threat summarized below is analyzed in full, together with the responses to it, in the [[[VC-RECOGNIZED-ENTITIES-THREAT-MODEL]]].

Market Competition Considerations

This section details the market competition considerations of deploying the Recognized Entities data model into production environments. Each threat summarized below is analyzed in full, together with the responses to it, in the [[[VC-RECOGNIZED-ENTITIES-THREAT-MODEL]]].

Ecosystem Examples

This section demonstrates how the data model defined by this specification can be applied in existing credential ecosystems.

GS1 Federated Identifier Example

This entire example is currently under review by GS1 and might be changed based on input from that organization and others.

GS1 operates one of the world's largest federated identifier schemes, in which a Global Trade Item Number (GTIN) is composed of a GS1 Company Prefix, an item reference, and a check digit. The GS1 Global Office allocates GS1 Prefixes to GS1 Member Organizations; each Member Organization licenses GS1 Company Prefixes, which extend its GS1 Prefix, to its member companies; and each member company assigns item references to create GTINs for its trade items. A detailed description of this use case is available in the Chain of GS1 Credentials to Identify a Trade Item section of the [[?VC-USE-CASES]] document. An example diagram of this scenario is shown below:

flowchart TD
    GS1["GS1 Global Office\n(recognition anchor)"]
    MO["GS1 Utopia\nMember Organization"]
    HT["Healthy Tots\nmember company"]

    REC1["RecognizedEntityCredential\nsubject: GS1 Utopia"]
    REC2["RecognizedEntityCredential\nsubject: Healthy Tots"]
    KEY["KeyCredential\nsubject: GTIN as GS1 Digital Link"]

    GS1 -->|issues| REC1
    REC1 -->|recognizes| MO
    MO -->|issues| REC2
    REC2 -->|recognizes| HT
    HT -->|issues| KEY

    KEY -.->|"issuer.recognizedIn"| REC2
    REC2 -.->|"issuer.recognizedIn"| REC1

    style GS1 fill:#005a9c,color:#fff
    style REC1 fill:darkgray, color:white
    style REC2 fill:darkgray, color:white
    style KEY fill:teal
  
Relationship of organizations and credentials in the GS1 ecosystem

This appendix demonstrates how that delegation chain can be expressed using the data model defined by this specification. Each level of the hierarchy publishes a [=recognized entity credential=] describing the entities one level below it, and each credential's `issuer` object carries a `recognizedIn` property referencing the [=recognized entity credential=] one level above it. The `recognizedIn` property plays a role analogous to the `extendsCredential` property used in GS1's own credential chain: it allows a [=verifier=] to traverse the hierarchy upward, using the [=credential-based discovery=] algorithm described in Section [[[#credential-based-discovery]]], until it reaches an [=issuer=] it recognizes. The examples below are illustrative; GS1's production systems use their own credential types and schemas.

In the first example below, the GS1 Global Office publishes a [=recognized entity credential=] recognizing a Member Organization, GS1 Utopia, as the licensee of GS1 Prefix `950`. The `credentialValidator` property constrains GS1 Utopia to issuing credentials that conform to a GS1 Company Prefix Licence credential schema specific to GS1 Prefix `950`, which accepts only GS1 Company Prefixes that begin with `950`.

{
  "@context": [
    "https://www.w3.org/ns/credentials/v2",
    "https://www.w3.org/ns/credentials/examples/v2",
    "https://ref.gs1.org/gs1/vc/licence-context"
  ],
  "type": [
    "VerifiableCredential",
    "RecognizedEntityCredential"
  ],
  "issuer": {
    "id": "did:web:id.gs1.org",
    "type": "RecognizedIssuer",
    "name": "GS1 Global Office",
    "url": "https://www.gs1.org/"
  },
  "validFrom": "2025-01-01T00:00:00Z",
  "validUntil": "2030-01-01T00:00:00Z",
  "credentialSubject": [{
    "id": "did:web:id.gs1utopia.example",
    "type": "RecognizedEntity",
    "name": "GS1 Utopia",
    "legalName": "GS1 Utopia Member Organization",
    "url": "https://gs1utopia.example/",
    "description": "The GS1 Member Organization for Utopia, licensee of GS1 Prefix 950.",
    "licenceValue": "950",
    "recognizedTo": {
      "type": "RecognizedAction",
      "action": "issue",
      "recognizedBy": "did:web:id.gs1.org",
      "credentialValidator": {
        "id": "https://id.gs1.org/schemas/prefix-license/950.json",
        "type": "CredentialValidator",
        "mediaType": "application/schema+json",
        "digestMultibase": "uEiBZl963sknNAHgPyslVv6VztZpfWQoRvW1htfx-UwirFo"
      }
    }
  }],
  "proof": {
    "type": "DataIntegrityProof",
    "created": "2026-04-10T20:08:22Z",
    "verificationMethod": "did:web:id.gs1.org#issuance-key-1",
    "cryptosuite": "ecdsa-rdfc-2019",
    "proofPurpose": "assertionMethod",
    "proofValue": "z36XPGByaH3rvtKfwoEQXsnUXUAjwd2Ceiqke1GPfjAPAFYoXKo5ftPdwE7QZ8Mw22SC5LSRQg1d8bhe3252hYJoH"
  }
}
      

In the next example, GS1 Utopia publishes a [=recognized entity credential=] recognizing one of its member companies, Healthy Tots, as the licensee of GS1 Company Prefix `9506000`. Healthy Tots is recognized to issue key credentials that conform to a schema specific to that company prefix. The `issuer` object carries a `recognizedIn` property referencing the GS1 Global Office credential from the previous example, allowing a [=verifier=] that does not directly recognize GS1 Utopia to continue up the hierarchy.

{
  "@context": [
    "https://www.w3.org/ns/credentials/v2",
    "https://www.w3.org/ns/credentials/examples/v2",
    "https://ref.gs1.org/gs1/vc/licence-context"
  ],
  "type": [
    "VerifiableCredential",
    "RecognizedEntityCredential"
  ],
  "issuer": {
    "id": "did:web:id.gs1utopia.example",
    "type": "RecognizedIssuer",
    "name": "GS1 Utopia",
    "recognizedIn": {
      "id": "https://id.gs1.org/lists/recognized-member-organizations.vc",
      "type": "RecognizedEntityCredential",
      "name": "GS1 Register of Member Organizations"
    }
  },
  "validFrom": "2025-01-01T00:00:00Z",
  "validUntil": "2030-01-01T00:00:00Z",
  "credentialSubject": [{
    "id": "did:web:healthytots.example",
    "type": "RecognizedEntity",
    "name": "Healthy Tots",
    "legalName": "Healthy Tots Baby Food, Inc.",
    "url": "https://healthytots.example/",
    "description": "A manufacturer of baby food, licensee of GS1 Company Prefix 9506000.",
    "licenceValue": "9506000",
    "recognizedTo": {
      "type": "RecognizedAction",
      "action": "issue",
      "recognizedBy": "did:web:id.gs1utopia.example",
      "credentialValidator": {
        "id": "https://id.gs1utopia.example/schemas/key-credential/9506000.json",
        "type": "CredentialValidator",
        "mediaType": "application/schema+json",
        "digestMultibase": "uEiWQoRvpfWW1htfsknNAHgPyslVv6VztZpfwirFoBZl963"
      }
    }
  }],
  "proof": {
    "type": "DataIntegrityProof",
    "created": "2026-04-10T20:08:22Z",
    "verificationMethod": "did:web:id.gs1utopia.example#issuance-key-1",
    "cryptosuite": "ecdsa-rdfc-2019",
    "proofPurpose": "assertionMethod",
    "proofValue": "z36XPGByaH3rvtKfwoEQXsnUXUAjwd2Ceiqke1GPfjAPAFYoXKo5ftPdwE7QZ8Mw22SC5LSRQg1d8bhe3252hYJoH"
  }
}
      

In the final example, Healthy Tots issues a key credential whose subject is a GTIN expressed as a GS1 Digital Link URI. The GTIN `09506000134352` is constructed from the GS1 Company Prefix `9506000` licensed in the previous example. As in the diploma example in Section [[[#credential-based-discovery]]], the `issuer` object carries a `recognizedIn` property referencing the GS1 Utopia credential from the previous example.

{
  "@context": [
    "https://www.w3.org/ns/credentials/v2",
    "https://www.w3.org/ns/credentials/examples/v2",
    "https://ref.gs1.org/gs1/vc/declaration-context"
  ],
  "type": [
    "VerifiableCredential",
    "KeyCredential"
  ],
  "issuer": {
    "id": "did:web:healthytots.example",
    "name": "Healthy Tots",
    "recognizedIn": {
      "id": "https://id.gs1utopia.example/lists/recognized-companies.vc",
      "type": "RecognizedEntityCredential",
      "name": "GS1 Utopia Register of Licensed Companies"
    }
  },
  "validFrom": "2026-01-15T00:00:00Z",
  "credentialSubject": {
    "id": "https://id.gs1.org/01/09506000134352",
    "name": "Healthy Tots Apple & Carrot Puree"
  },
  "proof": {
    "type": "DataIntegrityProof",
    "created": "2026-01-15T09:30:00Z",
    "verificationMethod": "did:web:healthytots.example#issuance-key-1",
    "cryptosuite": "ecdsa-rdfc-2019",
    "proofPurpose": "assertionMethod",
    "proofValue": "z36XPGByaH3rvtKfwoEQXsnUXUAjwd2Ceiqke1GPfjAPAFYoXKo5ftPdwE7QZ8Mw22SC5LSRQg1d8bhe3252hYJoH"
  }
}
      

A [=verifier=] receiving the key credential — for example, an online marketplace evaluating a product listing — processes the chain bottom-up using [=credential-based discovery=]. It follows the `recognizedIn` reference on the key credential's `issuer` object, verifies the proof on the GS1 Utopia credential, and confirms that Healthy Tots appears there as a [=recognized entity=]. It also confirms, via the `recognizedTo` property, that Healthy Tots is recognized to `issue` and that the key credential conforms to the schema referenced by `credentialValidator` — the schema-level counterpart of GS1's rule that an identification key be properly based on the licensed GS1 Company Prefix. It then repeats the process one level up, following the `recognizedIn` reference on the GS1 Utopia credential's `issuer` object to the GS1 Global Office credential. The `issuer` object of that credential carries no `recognizedIn` property, so discovery ends there, completing a recognition chain from a single trade item to the root of the GS1 federation. The [=verifier=] follows the chain to the GS1 Global Office even if it recognizes Healthy Tots or GS1 Utopia directly. A [=holder=], such as the product's distributor, might staple all three credentials into a single presentation so that the [=verifier=] does not need to fetch any of them.

[=Recognition validation=] then checks every link of the assembled chain, starting at the anchor, as described in Section [[[#recognition-validation]]]. First, the GS1 Utopia credential that recognizes Healthy Tots is checked against the [=credential validator=] that the GS1 Global Office declared for GS1 Utopia, which accepts only GS1 Company Prefixes that begin with `950`. GS1 Utopia licensed `9506000` to Healthy Tots, so that check passes. Next, the key credential is checked against the [=credential validator=] that GS1 Utopia declared for Healthy Tots. Had GS1 Utopia recognized a company as the licensee of `9616000`, the chain would be rejected at the first check, before any validator declared by GS1 Utopia runs, even though every proof verifies and every `recognizedIn` reference resolves. A [=verifier=] that also recognizes GS1 Utopia directly still follows the chain to the GS1 Global Office, so this check still runs. The chain is accepted only if the GS1 Global Office is one of the [=issuers=] that the [=verifier=] recognizes.

UN GRID Cross-Border Trade Example

This entire example is currently under review by UNTP and might be changed based on input from that group and others.

The United Nations Global Registrar Information Directory (GRID) is a publicly accessible digital directory, hosted by the United Nations under the auspices of UN/CEFACT, that lists authoritative registrars, including national business registers, land registers, and trademark registers, from participating UN Member States. GRID addresses a critical verification gap in global trade and public administration: when supply chain participants, customs authorities, or trade finance lenders receive trade-relevant [=verifiable credentials=] from a foreign entity, they typically have no direct relationship with that entity and cannot independently verify its legitimate registration. Because billions of trade documents are exchanged globally every year, manual verification is not feasible. GRID solves this by providing a trustworthy, scalable map of the world's authoritative registrars, enabling automated verification and mitigating the risks of impersonation and fraud.

The resulting verification chain involves three tiers of credential, each issued at a different time, with a different lifecycle, and by a different issuer:

The discovery process runs from the trade document toward the recognition anchor using [=identifier-based discovery=] at each step, because publishing a single credential that lists all registered entities in a national register, with potentially two million entities updated hundreds of times per day, and tens of millions of verifiers retrieving the list multiple times per day, might be a scale that is impractical for the national register to achieve. Instead, each registered entity holds its own individual `RecognizedEntityCredential` and publishes it at a `WhoisService` endpoint in its DID document. The national registrar likewise publishes the `RecognizedEntityCredential` that GRID issued to it at its own `WhoisService` endpoint. This approach decentralizes the publication of the list such that each recognized entity in the ecosystem shares the burden of distributing the information. The diagram below illustrates the relationships:

%%{init: {"flowchart": {"wrappingWidth": 500}, "securityLevel": "loose"}}%%
flowchart TD
    GRID["UN GRID\n[Recognition Anchor]"]
    NAT["Utopian Business Register\n[National Registrar]"]
    ACME["ACME Exports Ltd.\n[Registered Exporter]"]

    GRID_REC["RecognizedEntityCredential\nsubject: Utopian Business Register"]
    NAT_REC["RecognizedEntityCredential\nsubject: ACME Exports Ltd."]
    INV["CommercialInvoiceCredential\nissued by ACME Exports' DID"]

    GRID -->|issues| GRID_REC
    GRID_REC -->|recognizes| NAT
    NAT -->|issues| NAT_REC
    NAT_REC -->|recognizes| ACME
    ACME -->|issues| INV

    INV -.->|"identifier-based discovery"| NAT_REC
    NAT_REC -.->|"identifier-based discovery"| GRID_REC

    style GRID fill:#005a9c,color:#fff
    style NAT fill:#aec6e8,color:#000
    style ACME fill:#aec6e8,color:#000
    style GRID_REC fill:#b6d9b0,color:#000,min-width:500px
    style NAT_REC fill:#b6d9b0,color:#000,min-width:500px
    style INV fill:#b6d9b0,color:#000,min-width:500px
  
Relationship of organizations and credentials in the UN GRID ecosystem

This appendix demonstrates how that three-tier chain can be expressed using the data model defined by this specification. The GRID credential at the top of the hierarchy is a `RecognizedEntityCredential` that recognizes national registrars as [=recognized entities=]. Each national registrar then issues an individual `RecognizedEntityCredential` to each of its registered members. Each member exporter, and the national registrar itself, publishes its credential at a `WhoisService` endpoint in its DID document, enabling [=identifier-based discovery=] as described in Section [[[#identifier-based-discovery]]]. The examples below are illustrative; UNTP's production systems use vocabulary defined by the United Nations Transparency Protocol [[?UNTP-DIA]].

In the first example below, GRID publishes a `RecognizedEntityCredential` recognizing the Utopian Business Register as an authoritative national registrar. GRID's `issuer` DID is the recognition anchor that verifiers configure explicitly. The `credentialValidator` property constrains the Utopian Business Register to issuing credentials that conform to the UNTP-defined schema for registrar-issued entity recognition credentials.

{
  "@context": [
    "https://www.w3.org/ns/credentials/v2",
    "https://www.w3.org/ns/credentials/recognized-entities/v1",
    // highlighted text is from the UNTP vocabulary
    "https://vocabulary.uncefact.org/untp/v2"
  ],
  "type": [
    "VerifiableCredential",
    "RecognizedEntityCredential"
  ],
  "issuer": {
    "id": "did:web:grid.un.org",
    "type": "RecognizedIssuer",
    "name": "United Nations Global Registrar Information Directory",
    "url": "https://grid.un.org/"
  },
  "validFrom": "2025-01-01T00:00:00Z",
  "validUntil": "2035-01-01T00:00:00Z",
  "credentialSubject": [{
    "id": "did:web:register.business.utopia.example",
    "type": "RecognizedEntity",
    "name": "Utopian Business Register",
    "legalName": "Utopian Ministry of Commerce, Business Registry",
    "url": "https://register.business.utopia.example/",
    "description": "The national authoritative business register for Utopia, operated by the Ministry of Commerce.",
    "recognizedTo": {
      "type": "RecognizedAction",
      "action": "issue",
      "recognizedBy": "did:web:grid.un.org",
      "credentialValidator": {
        "id": "https://grid.un.org/schemas/erc-utopia.json",
        "type": "CredentialValidator",
        "mediaType": "application/schema+json",
        "digestMultibase": "uEiBZl963sknNAHgPyslVv6VztZpfWQoRvW1htfx-UwirFo"
      }
    }
  }],
  "proof": {
    "type": "DataIntegrityProof",
    "created": "2026-04-10T20:08:22Z",
    "verificationMethod": "did:web:grid.un.org#issuance-key-1",
    "cryptosuite": "ecdsa-rdfc-2019",
    "proofPurpose": "assertionMethod",
    "proofValue": "z36XPGByaH3rvtKfwoEQXsnUXUAjwd2Ceiqke1GPfjAPAFYoXKo5ftPdwE7QZ8Mw22SC5LSRQg1d8bhe3252hYJoH"
  }
}
      

The Utopian Business Register publishes that credential at its own `WhoisService` endpoint, as shown in the DID document below. A verifier performing [=identifier-based discovery=] on the Utopian Business Register's DID resolves this document and retrieves the verifiable presentation at the service endpoint, which contains the GRID-issued credential recognizing the Utopian Business Register.

{
  "@context": "https://www.w3.org/ns/did/v1.1",
  "id": "did:web:register.business.utopia.example",
  "assertionMethod": [{
    "id": "#issuance-key-1",
    "type": "Multikey",
    "controller": "did:web:register.business.utopia.example",
    "publicKeyMultibase": "z6Mkf5rGMoatrSj1f4CyvuHBeXJELe9RPdzo2PKGNCKVtZxP"
  }],
  "service": [{
    "id": "#whois",
    "type": ["WhoisService", "PathService"],
    "serviceEndpoint": "https://register.business.utopia.example/whois.vp"
  }]
}
      

In the next example, the Utopian Business Register issues a `RecognizedEntityCredential` to one of its registered entities, ACME Exports Ltd. The credential asserts that the company's corporate registration number, `UTB-2019-041872`, is bound to the DID `did:web:acme-exports.utopia.example`. Before issuing this credential, the Utopian Business Register verified that ACME Exports controls that DID. The `registration` property describes the company's entry in the register using the properties of a `RegisteredIdentity` from the UNTP Digital Identity Anchor [[?UNTP-DIA]]: `registeredId` holds the `registration` number, `idScheme` identifies the register that assigned it, `registerType` states that the register is a business register, and `registrationScopeList` identifies the company's legal form as published by the register.

{
  "@context": [
    "https://www.w3.org/ns/credentials/v2",
    "https://www.w3.org/ns/credentials/recognized-entities/v1",
    // highlighted text is from the UNTP vocabulary
    "https://vocabulary.uncefact.org/untp/v2"
  ],
  "type": [
    "VerifiableCredential",
    "RecognizedEntityCredential"
  ],
  "issuer": {
    "id": "did:web:register.business.utopia.example",
    "type": "RecognizedIssuer",
    "name": "Utopian Business Register"
  },
  "validFrom": "2025-03-15T00:00:00Z",
  "validUntil": "2030-03-15T00:00:00Z",
  "credentialSubject": [{
    "id": "did:web:acme-exports.utopia.example",
    "type": ["RecognizedEntity", "Party"],
    "name": "ACME Exports",
    "legalName": "ACME Exports Ltd.",
    "url": "https://acme-exports.utopia.example/",
    "description": "A registered exporter in Utopia, corporate registration number UTB-2019-041872.",
    "registration": {
      "id": "https://register.business.utopia.example/entities/UTB-2019-041872",
      "type": "RegisteredIdentity",
      "registeredId": "UTB-2019-041872",
      "registrationCountry": "UTO",
      "idScheme": {
        "id": "https://register.business.utopia.example",
        "type": "IdentifierScheme",
        "name": "Utopian Business Register"
      },
      "registerType": "Business",
      "registrationScopeList": [
        "https://register.business.utopia.example/entity-types/private-company"
      ]
    }
  }],
  "proof": {
    "type": "DataIntegrityProof",
    "created": "2026-04-10T20:08:22Z",
    "verificationMethod": "did:web:register.business.utopia.example#issuance-key-1",
    "cryptosuite": "ecdsa-rdfc-2019",
    "proofPurpose": "assertionMethod",
    "proofValue": "z36XPGByaH3rvtKfwoEQXsnUXUAjwd2Ceiqke1GPfjAPAFYoXKo
      5ftPdwE7QZ8Mw22SC5LSRQg1d8bhe3252hYJoH"
  }
}
      

ACME Exports publishes that credential at a `WhoisService` endpoint in its own DID document, as shown below.

{
  "@context": "https://www.w3.org/ns/did/v1.1",
  "id": "did:web:acme-exports.utopia.example",
  "assertionMethod": [{
    "id": "#issuance-key-1",
    "type": "Multikey",
    "controller": "did:web:acme-exports.utopia.example",
    "publicKeyMultibase": "z6MkrJVnaZkeFzdQyMZu1cgjg7k1pZZ6x5GGnsfSbwqbUXwo"
  }],
  "service": [{
    "id": "#whois",
    "type": ["WhoisService", "PathService"],
    "serviceEndpoint": "https://acme-exports.utopia.example/whois.vp"
  }]
}
      

In the final example, ACME Exports issues a commercial invoice as a [=verifiable credential=] using its registered DID as the issuer.

{
  "@context": [
    "https://www.w3.org/ns/credentials/v2",
    "https://www.w3.org/ns/credentials/recognized-entities/v1",
    // highlighted text is from the UNTP vocabulary
    "https://vocabulary.uncefact.org/untp/v2"
  ],
  "type": [
    "VerifiableCredential",
    "CommercialInvoiceCredential"
  ],
  "issuer": {
    "id": "did:web:acme-exports.utopia.example",
    "name": "ACME Exports"
  },
  "validFrom": "2026-05-01T00:00:00Z",
  "validUntil": "2026-07-31T00:00:00Z",
  "credentialSubject": {
    "id": "https://acme-exports.utopia.example/invoices/INV-2026-00431",
    "invoiceNumber": "INV-2026-00431",
    "invoiceDate": "2026-05-01",
    "seller": {
      "id": "did:web:acme-exports.utopia.example",
      "name": "ACME Exports Ltd.",
      "registeredId": "UTB-2019-041872"
    },
    "buyer": {
      "name": "Acme Importer GmbH",
      "registeredId": "DE-HRB-123456"
    },
    "totalAmount": {
      "value": "45200.00",
      "currency": "USD"
    }
  },
  "proof": {
    "type": "DataIntegrityProof",
    "created": "2026-05-01T10:15:00Z",
    "verificationMethod": "did:web:acme-exports.utopia.example#issuance-key-1",
    "cryptosuite": "ecdsa-rdfc-2019",
    "proofPurpose": "assertionMethod",
    "proofValue": "z36XPGByaH3rvtKfwoEQXsnUXUAjwd2Ceiqke1GPfjAPAFYoXKo5ftPdwE7QZ8Mw22SC5LSRQg1d8bhe3252hYJoH"
  }
}
      

A [=verifier=] receiving the commercial invoice, such as an importing customs authority or a trade finance lender, performs [=identifier-based discovery=] to validate the invoice issuer. The [=verifier=] resolves `did:web:acme-exports.utopia.example` to ACME's DID document, locates the `WhoisService` endpoint, and retrieves the verifiable presentation published there. That presentation, signed by ACME's DID, contains the `RecognizedEntityCredential` issued by the Utopian Business Register in which ACME appears as a [=recognized entity=]. The [=verifier=] confirms that the invoice's `issuer.id` matches the `credentialSubject.id` in that credential. That credential has no `recognizedTo` property. It records that ACME is a registered entity, but it does not recognize ACME to perform any particular action. [=Recognition validation=] therefore returns a recognized value of `true` and an actionRecognized value of `false`. In this ecosystem the [=verifier=] relies on the registration check and not solely on an action.

The [=verifier=] also confirms that the exporter named in the invoice is the registered entity. It compares the `seller.registeredId` value in the invoice, `UTB-2019-041872`, with the `registration.registeredId` value in the `RecognizedEntityCredential`, and confirms that `registration.idScheme` identifies the Utopian Business Register. This rule belongs to the UNTP ecosystem; the algorithm in Section [[[#recognition-validation]]] does not evaluate the `registration` property.

The `issuer` object of the Utopian Business Register's credential carries no `recognizedIn` property, so the [=verifier=] performs [=identifier-based discovery=] on the Utopian Business Register's DID in turn. It does this even if it recognizes the Utopian Business Register directly. The [=verifier=] resolves `did:web:register.business.utopia.example`, locates its `WhoisService` endpoint, and retrieves the verifiable presentation published there. That presentation, signed by the Utopian Business Register's DID, contains the `RecognizedEntityCredential` issued by GRID in which the Utopian Business Register appears as a [=recognized entity=]. GRID's own DID document declares no `WhoisService`, so discovery ends there, completing a recognition chain from the commercial invoice to the root of the global trade identity infrastructure. GRID is a well-known recognition anchor operated by the United Nations, so [=recognition validation=] accepts the chain when the [=verifier=] recognizes GRID's DID.

The `RegisteredIdentity` type and the `registeredId`, `idScheme`, `registerType`, `registrationScopeList`, and `registrationCountry` properties used in the examples above are ecosystem-specific extensions defined by UNTP vocabulary [[?UNTP-DIA]]. They carry the registrar-assigned corporate registration number, the register that assigned it, the kind of register, the legal form of the registered entity, and the country of registration. Those properties are not defined by this specification; they appear in the examples only to illustrate the kind of information a registrar-issued `RecognizedEntityCredential` might carry in practice. This specification defines only the `registration` property that contains them.

CE Product Conformity Example

This example has not yet been reviewed by the Working Group, nor by the European bodies whose processes it models.

This example applies the data model to the European CE marking regime, expanding the use case in [[[#product-conformity]]]. Unlike the preceding examples, two independent recognition chains converge on a single entity: a conformity assessment body is recognized by a notifying authority under the regulation it assesses against, and separately by a national accreditation body under the regulation governing accreditation. A [=verifier=] might need both. Three entities are roots: the European Commission, the International Accreditation Forum, and the national business register.

Issuance. Each circle is one verifiable credential moving from its issuer to its subject.

The national business register recognizes the manufacturer. The register is the root of this chain: a [=verifier=] trusts its DID directly. The subject's `registration` is a UNTP `RegisteredIdentity`, so the credential doubles as a Digital Identity Anchor [[?UNTP-DIA]] binding the manufacturer's DID to its commercial register number. Its `id` is the URL of the register entry, `registrationScopeList` names the company's legal form, and, because a German register number is unique only within one register court, the `idScheme` is scoped to the court. `relatedResource` fixes the version of the entry the register attested to.

{
  "@context": [
    "https://www.w3.org/ns/credentials/v2",
    "https://www.w3.org/ns/credentials/recognized-entities/v1",
    // highlighted text is from the UNTP vocabulary
    "https://vocabulary.uncefact.org/untp/v2"
  ],
  "id": "https://handelsregister.example/credentials/registration/b47c1e90",
  "type": [
    "VerifiableCredential",
    "RecognizedEntityCredential",
    "DigitalIdentityAnchor"
  ],
  "issuer": {
    "id": "did:web:handelsregister.example",
    "type": "RecognizedIssuer",
    "name": "Handelsregister",
    "legalName": "Handelsregister — Amtsgericht Düsseldorf"
  },
  "validFrom": "2026-04-10T00:00:00Z",
  "relatedResource": [{
    "id": "https://handelsregister.example/entry/r3101/hrb/123456/history/7",
    "mediaType": "application/ld+json",
    "digestMultibase": "uEiBq7XnR2tKpLmVwYs4dCfHj8gNzE3aQoUbT6rWkM5xP1A"
  }],
  "credentialSubject": [{
    "id": "did:web:alphacell.example",
    "type": ["RecognizedEntity", "Party"],
    "name": "AlphaCell Batteries GmbH",
    "registration": {
      "id": "https://handelsregister.example/entry/r3101/hrb/123456",
      "type": "RegisteredIdentity",
      "registeredId": "HRB 123456",
      "idScheme": {
        "id": "https://handelsregister.example/entry/r3101/",
        "type": "IdentifierScheme",
        "name": "Handelsregister — Amtsgericht Düsseldorf"
      },
      "registerType": "Business",
      "registrationScopeList": [
        "https://handelsregister.example/legal-forms/gmbh"
      ]
    },
    "recognizedTo": {
      "type": "RecognizedAction",
      "action": "issue",
      "recognizedBy": "did:web:handelsregister.example",
      "credentialValidator": {
        "id": "https://vocabulary.uncefact.org/untp/dpp/schema.json",
        "type": "CredentialValidator",
        "mediaType": "application/schema+json",
        "digestMultibase": "uEiDf3PnKmWq5XtRcYbVeAg7Hj2LkNp4MqSsTuVwXyZaBcF"
      }
    }
  }],
  "proof": {
    "type": "DataIntegrityProof",
    "created": "2026-04-10T06:00:59Z",
    "verificationMethod": "did:web:handelsregister.example#issuance-key-1",
    "cryptosuite": "ecdsa-rdfc-2019",
    "proofPurpose": "assertionMethod",
    "proofValue": "z36XPGByaH3rvtKfwoEQXsnUXUAjwd2Ceiqke1GPfjAPAFYoXKo5ftPdwE7QZ8Mw22SC5LSRQg1d8bhe3252hYJoH"
  }
}
      

The national accreditation body accredits the conformity assessment body. Every entity in the chain is identified by a `did:web` DID, and `recognizedBy` names the entity that did the recognizing. The accreditation body is itself the subject of a credential issued by the European co-operation for Accreditation, which in turn is the subject of one issued by the International Accreditation Forum, where the chain terminates. The credentials carry no `recognizedIn`; a [=verifier=] links them by matching each `issuer` to a `credentialSubject`.

{
  "@context": [
    "https://www.w3.org/ns/credentials/v2",
    "https://www.w3.org/ns/credentials/recognized-entities/v1",
    // highlighted text is from the UNTP vocabulary
    "https://vocabulary.uncefact.org/untp/v2",
    // purple text is from the CE marking ecosystem vocabulary
    "https://ce-marking.example/vocabulary/v1"
  ],
  "id": "https://dakks.example/credentials/accreditation/91b6f2d4",
  "type": [
    "VerifiableCredential",
    "RecognizedEntityCredential",
    "DigitalIdentityAnchor"
  ],
  "issuer": {
    "id": "did:web:dakks.example",
    "type": "RecognizedIssuer",
    "name": "German Accreditation Body"
  },
  "validFrom": "2026-02-20T00:00:00Z",
  "validUntil": "2031-02-20T00:00:00Z",
  "credentialSubject": [{
    "id": "did:web:cab.example",
    "type": ["RecognizedEntity", "Party"],
    "name": "Example Conformity Assessment GmbH",
    "registration": {
      "id": "https://dakks.example/accredited-bodies/D-ZE-12345-01-00",
      "type": "RegisteredIdentity",
      "registeredId": "D-ZE-12345-01-00",
      "registerType": "Accreditation",
      "registrationScopeList": [
        "https://dakks.example/accredited-bodies/D-ZE-12345-01-00/scope"
      ]
    },
    "recognizedTo": {
      "type": ["RecognizedAction", "ScopedRecognizedAction"],
      "action": "issue",
      "recognizedBy": "did:web:dakks.example",
      "credentialValidator": {
        "id": "https://vocabulary.uncefact.org/untp/dcc/schema.json",
        "type": "CredentialValidator",
        "mediaType": "application/schema+json",
        "digestMultibase": "uEiC4a1mXqFv7Jb2sTnRwYxPkLd8oZv3NmQrEsTuVwXyZaA"
      },
      "jurisdictionCountry": "DE",
      "referenceStandard": [{
        "id": "https://iso.example/standard/46568",
        "type": "Standard",
        "name": "EN ISO/IEC 17065:2012"
      }],
      "referenceRegulation": [{
        "id": "http://data.europa.eu/eli/reg/2023/1542/oj",
        "type": "Regulation",
        "name": "Regulation (EU) 2023/1542"
      }],
      "assessmentCriteria": [{
        "id": "http://data.europa.eu/eli/reg/2023/1542/oj#annex-VIII-D1",
        "type": "Criterion",
        "name": "Module D1 — quality assurance of the production process"
      }],
      "validFrom": "2026-02-20T00:00:00Z",
      "validUntil": "2031-02-20T00:00:00Z"
    }
  }],
  "proof": {
    "type": "DataIntegrityProof",
    "created": "2026-02-20T10:05:27Z",
    "verificationMethod": "did:web:dakks.example#issuance-key-2",
    "cryptosuite": "ecdsa-rdfc-2019",
    "proofPurpose": "assertionMethod",
    "proofValue": "z61tPmWxKdQvSb4yZcNhRa8LgUjE2fXoTn7MpYvBk5rWsDzHqA3iCuJe9NfVtGmXbLpRy6dSaKcZw4TnUeQxViHro"
  }
}
      

`ScopedRecognizedAction` is a type defined by the CE marking ecosystem vocabulary, declared as a subclass of this specification's `RecognizedAction`. The scope properties it carries reuse UNTP's IRIs; the vocabulary does not define new ones. It also does not give them an `rdfs:domain`: a domain is a global inference rule, and would make every resource that uses, for example, `referenceRegulation` — including UNTP's own conformity credentials — a `ScopedRecognizedAction`. Instead, a SHACL [[?SHACL]] shape states which properties a `ScopedRecognizedAction` is expected to carry, without changing what they mean elsewhere. The UNTP IRIs are from UNTP's working-draft namespace.

@prefix ce:   <https://ce-marking.example/vocabulary/v1#> .
@prefix re:   <https://www.w3.org/ns/credentials/recognized-entities#> .
@prefix untp: <https://test.uncefact.org/vocabulary/untp/core/working/> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix sh:   <http://www.w3.org/ns/shacl#> .

ce:ScopedRecognizedAction
    a rdfs:Class ;
    rdfs:subClassOf re:RecognizedAction ;
    rdfs:label "Scoped Recognized Action" ;
    rdfs:comment "A RecognizedAction whose authorization is bounded by jurisdiction, standard, regulation, assessment criteria, or product category — properties reused from the UNTP vocabulary." .

ce:ScopedRecognizedActionShape
    a sh:NodeShape ;
    sh:targetClass ce:ScopedRecognizedAction ;
    sh:property [ sh:path untp:jurisdictionCountry ; sh:maxCount 1 ] ;
    sh:property [ sh:path untp:referenceStandard ] ;
    sh:property [ sh:path untp:referenceRegulation ; sh:minCount 1 ] ;
    sh:property [ sh:path untp:assessmentCriteria ] ;
    sh:property [ sh:path untp:productCategory ] .
            

JSON-LD does not follow `rdfs:subClassOf`. The terms of `RecognizedAction`, such as `action` and `recognizedBy`, are scoped to that type, so the examples list both types. UNTP, in turn, defines `referenceRegulation` and the other scope properties only inside its own types, such as `ConformityAssessment`. The CE marking context therefore maps them to UNTP's IRIs inside `ScopedRecognizedAction`:

{
  "@context": {
    "@version": 1.1,
    "@protected": true,
    "untp": "https://test.uncefact.org/vocabulary/untp/core/working/",
    "ScopedRecognizedAction": {
      "@id": "https://ce-marking.example/vocabulary/v1#ScopedRecognizedAction",
      "@context": {
        "jurisdictionCountry": "untp:jurisdictionCountry",
        "referenceStandard": { "@id": "untp:referenceStandard", "@container": "@set" },
        "referenceRegulation": { "@id": "untp:referenceRegulation", "@container": "@set" },
        "assessmentCriteria": { "@id": "untp:assessmentCriteria", "@container": "@set" },
        "productCategory": { "@id": "untp:productCategory", "@container": "@set" }
      }
    }
  }
}
            

The notifying authority notifies the same body under the Battery Regulation. Notification presumes accreditation, so the accreditation credential above is cited as `evidence`. The credential carries no `registration`: the notified body number, 0123, is assigned by the European Commission and recorded in its register of notified bodies, not in a register the notifying authority maintains. That number would appear as a `registration` in a credential issued by the Commission.

{
  "@context": [
    "https://www.w3.org/ns/credentials/v2",
    "https://www.w3.org/ns/credentials/recognized-entities/v1",
    // highlighted text is from the UNTP vocabulary
    "https://vocabulary.uncefact.org/untp/v2",
    // purple text is from the CE marking ecosystem vocabulary
    "https://ce-marking.example/vocabulary/v1"
  ],
  "id": "https://notifying-authority.example/credentials/notification/7c0a52ab",
  "type": ["VerifiableCredential", "RecognizedEntityCredential"],
  "issuer": {
    "id": "did:web:notifying-authority.example",
    "type": "RecognizedIssuer",
    "name": "National Notifying Authority"
  },
  "validFrom": "2026-03-01T00:00:00Z",
  "validUntil": "2031-03-01T00:00:00Z",
  "credentialSubject": [{
    "id": "did:web:cab.example",
    "type": ["RecognizedEntity", "Party"],
    "name": "Example Conformity Assessment GmbH",
    "recognizedTo": {
      "type": ["RecognizedAction", "ScopedRecognizedAction"],
      "action": "issue",
      "recognizedBy": "did:web:notifying-authority.example",
      "credentialValidator": {
        "id": "https://vocabulary.uncefact.org/untp/dcc/schema.json",
        "type": "CredentialValidator",
        "mediaType": "application/schema+json",
        "digestMultibase": "uEiC4a1mXqFv7Jb2sTnRwYxPkLd8oZv3NmQrEsTuVwXyZaA"
      },
      "jurisdictionCountry": "EU",
      "referenceRegulation": [{
        "id": "http://data.europa.eu/eli/reg/2023/1542/oj",
        "type": "Regulation",
        "name": "Regulation (EU) 2023/1542"
      }],
      "assessmentCriteria": [{
        "id": "http://data.europa.eu/eli/reg/2023/1542/oj#annex-VIII-D1",
        "type": "Criterion",
        "name": "Module D1 — quality assurance of the production process"
      }],
      "productCategory": [{
        "type": "Classification",
        "code": "8507.60",
        "schemeID": "https://wcoomd.example/hs",
        "schemeName": "Harmonized System",
        "name": "Lithium-ion accumulators"
      }],
      "validFrom": "2026-03-01T00:00:00Z",
      "validUntil": "2031-03-01T00:00:00Z"
    }
  }],
  "evidence": [{
    "id": "https://dakks.example/credentials/accreditation/91b6f2d4",
    "type": "RecognizedEntityCredential",
    "name": "Accreditation relied upon for this notification"
  }],
  "proof": {
    "type": "DataIntegrityProof",
    "created": "2026-03-01T07:45:11Z",
    "verificationMethod": "did:web:notifying-authority.example#issuance-key-1",
    "cryptosuite": "ecdsa-rdfc-2019",
    "proofPurpose": "assertionMethod",
    "proofValue": "z5CFbWkPT4nRq9dHcV2sAe8mYtJp6xLgZu3vB7QnE1kXfRm2yDwS9aUoJ4hNcVb8tKpLrZ6eXqMdWnT3gYhAu1C7b"
  }
}
      

The conformity certificate the body then issues identifies its issuer only by DID. Its `evidence` cites the accreditation the body relied on.

{
  "@context": [
    "https://www.w3.org/ns/credentials/v2",
    "https://www.w3.org/ns/credentials/recognized-entities/v1",
    // highlighted text is from the UNTP vocabulary
    "https://vocabulary.uncefact.org/untp/v2"
  ],
  "id": "https://cab.example/credentials/certificate/5b1e7740",
  "type": ["VerifiableCredential", "DigitalConformityCredential"],
  "issuer": {
    "id": "did:web:cab.example",
    "type": "RecognizedIssuer",
    "name": "Example Conformity Assessment GmbH"
  },
  "validFrom": "2026-05-04T00:00:00Z",
  "credentialSubject": {
    "id": "https://alphacell.example/products/battery-123",
    "type": "ConformityAttestation",
    "assessment": [{
      "type": "ConformityAssessment",
      "assessedProduct": {
        "id": "https://alphacell.example/products/battery-123",
        "type": "Product",
        "name": "Battery #123"
      }
    }]
  },
  "evidence": [{
    "id": "https://dakks.example/credentials/accreditation/91b6f2d4",
    "type": "RecognizedEntityCredential",
    "name": "Accreditation of the issuing body"
  }],
  "proof": {
    "type": "DataIntegrityProof",
    "created": "2026-05-04T09:00:00Z",
    "verificationMethod": "did:web:cab.example#issuance-key-1",
    "cryptosuite": "ecdsa-rdfc-2019",
    "proofPurpose": "assertionMethod",
    "proofValue": "z4oey7Zq2vLp9XsRdTbWcAe8FhJk1NmQrSuVwXyZaBcDeFgHiJkLmNpQrStUvWxYz1A2b3C4d5E6f7G8h9J0kL1m"
  }
}
      

A market surveillance authority that inspects the battery might have no network access. The manufacturer therefore hands over the product passport together with every credential needed to verify it, stapled into one [=verifiable presentation=], as described in [[[#holder-based-delivery]]]. Besides the four credentials above, the presentation contains the passport and the three credentials in which the roots recognize the intermediate authorities. The authority's presentation request asks for credentials from its three root DIDs; because the credentials carry no `recognizedIn`, the request cannot use a `recognizedIn` object in `acceptedIssuers` and names the roots instead. The manufacturer signs the presentation, echoing the request's `challenge` and `domain`.

{
  "@context": ["https://www.w3.org/ns/credentials/v2"],
  "type": "VerifiablePresentation",
  "holder": "did:web:alphacell.example",
  "verifiableCredential": [
    // each entry is a complete credential with its proof; only the
    // properties used to assemble the chain are shown
    {
      "@context": ["https://www.w3.org/ns/credentials/v2", "https://vocabulary.uncefact.org/untp/v2"],
      "id": "https://alphacell.example/credentials/passport/battery-123",
      "type": ["VerifiableCredential", "DigitalProductPassport"],
      "issuer": "did:web:alphacell.example"
    },
    {
      "@context": ["https://www.w3.org/ns/credentials/v2", "https://vocabulary.uncefact.org/untp/v2"],
      "id": "https://cab.example/credentials/certificate/5b1e7740",
      "type": ["VerifiableCredential", "DigitalConformityCredential"],
      "issuer": "did:web:cab.example"
    },
    {
      "@context": ["https://www.w3.org/ns/credentials/v2", "https://www.w3.org/ns/credentials/recognized-entities/v1"],
      "id": "https://handelsregister.example/credentials/registration/b47c1e90",
      "type": ["VerifiableCredential", "RecognizedEntityCredential"],
      "issuer": "did:web:handelsregister.example",
      "credentialSubject": [{
        "id": "did:web:alphacell.example",
        "type": "RecognizedEntity",
        "recognizedTo": {
          "type": "RecognizedAction", "action": "issue",
          "recognizedBy": "did:web:handelsregister.example"
        }
      }]
    },
    {
      "@context": ["https://www.w3.org/ns/credentials/v2", "https://www.w3.org/ns/credentials/recognized-entities/v1"],
      "id": "https://notifying-authority.example/credentials/notification/7c0a52ab",
      "type": ["VerifiableCredential", "RecognizedEntityCredential"],
      "issuer": "did:web:notifying-authority.example",
      "credentialSubject": [{
        "id": "did:web:cab.example",
        "type": "RecognizedEntity",
        "recognizedTo": {
          "type": "RecognizedAction", "action": "issue",
          "recognizedBy": "did:web:notifying-authority.example"
        }
      }]
    },
    {
      "@context": ["https://www.w3.org/ns/credentials/v2", "https://www.w3.org/ns/credentials/recognized-entities/v1"],
      "id": "https://dakks.example/credentials/accreditation/91b6f2d4",
      "type": ["VerifiableCredential", "RecognizedEntityCredential"],
      "issuer": "did:web:dakks.example",
      "credentialSubject": [{
        "id": "did:web:cab.example",
        "type": "RecognizedEntity",
        "recognizedTo": {
          "type": "RecognizedAction", "action": "issue",
          "recognizedBy": "did:web:dakks.example"
        }
      }]
    },
    {
      "@context": ["https://www.w3.org/ns/credentials/v2", "https://www.w3.org/ns/credentials/recognized-entities/v1"],
      "id": "https://ec.europa.example/credentials/recognition/0f2f1a2c",
      "type": ["VerifiableCredential", "RecognizedEntityCredential"],
      "issuer": "did:web:ec.europa.example",
      "credentialSubject": [{
        "id": "did:web:notifying-authority.example",
        "type": "RecognizedEntity",
        "recognizedTo": {
          "type": "RecognizedAction", "action": "issue",
          "recognizedBy": "did:web:ec.europa.example"
        }
      }]
    },
    {
      "@context": ["https://www.w3.org/ns/credentials/v2", "https://www.w3.org/ns/credentials/recognized-entities/v1"],
      "id": "https://european-accreditation.example/credentials/recognition/3d9f8c14",
      "type": ["VerifiableCredential", "RecognizedEntityCredential"],
      "issuer": "did:web:european-accreditation.example",
      "credentialSubject": [{
        "id": "did:web:dakks.example",
        "type": "RecognizedEntity",
        "recognizedTo": {
          "type": "RecognizedAction", "action": "issue",
          "recognizedBy": "did:web:european-accreditation.example"
        }
      }]
    },
    {
      "@context": ["https://www.w3.org/ns/credentials/v2", "https://www.w3.org/ns/credentials/recognized-entities/v1"],
      "id": "https://iaf.example/credentials/recognition/5e7a21c9",
      "type": ["VerifiableCredential", "RecognizedEntityCredential"],
      "issuer": "did:web:iaf.example",
      "credentialSubject": [{
        "id": "did:web:european-accreditation.example",
        "type": "RecognizedEntity",
        "recognizedTo": {
          "type": "RecognizedAction", "action": "issue",
          "recognizedBy": "did:web:iaf.example"
        }
      }]
    }
  ],
  "proof": {
    "type": "DataIntegrityProof",
    "created": "2026-06-02T08:15:00Z",
    "verificationMethod": "did:web:alphacell.example#authentication-key-1",
    "cryptosuite": "ecdsa-rdfc-2019",
    "proofPurpose": "authentication",
    // echoes the challenge and domain from the authority's request
    "challenge": "8e2b7d14-3f6a-11f2-9c1d-5b7e2a90c4f3",
    "domain": "inspector.market-surveillance.example",
    "proofValue": "z3hYJoHqF7aDn2KcVb8tKpLrZ6eXqMdWnT3gYhAu1C7bPmWxKdQvSb4yZcNhRa8LgUjE2fXoTn7MpYvBk5r"
  }
}
            

The authority has configured three root DIDs: `did:web:ec.europa.example`, `did:web:iaf.example`, and `did:web:handelsregister.example`. It verifies the presentation's proof, its `challenge` and `domain`, and the proof of every contained credential, using key material obtained as described in [[[#ce-offline-keys]]]. It then builds candidate chains for the passport and for the conformity certificate the passport cites: each next credential in a chain is a stapled [=recognized entity credential=] whose `credentialSubject` `id` equals the `issuer` of the previous one, until a credential issued by a root. The conformity assessment body is the subject of two credentials, so its certificate yields two chains, one ending at the European Commission and one at the IAF. The authority runs [=recognition validation=], as described in [[[#recognition-validation]]], on each chain. That algorithm also requires a period during which every credential in a chain is valid at the same time.

The CE marking ecosystem adds rules that the algorithm does not express:

Offline verification. Inside the stapled presentation, the verifier matches each issuer's DID to a credential subject and follows `recognizedBy` until it reaches one of its configured root DIDs.

`action` and `credentialValidator` constrain what kind of credential the conformity assessment body can issue, but not the regulation, conformity assessment module, or product category it was notified for — the limits that decide whether a given certificate is valid. This example carries them as direct properties of `recognizedTo`, typed `ScopedRecognizedAction` — a specialization of `RecognizedAction` defined by the CE marking ecosystem — reusing UNTP terms for the values. A body notified only for toys would present a structurally identical recognition chain.

The accreditation credential states a scope twice, for different purposes. The `registrationScopeList` of its `registration` points to the scope document in the accreditation body's register — the body's standing in that register. The `ScopedRecognizedAction` states the same limits as machine-checkable constraints on the certificates whose issuance is recognized. A [=verifier=] checks the latter; the former lets it, or a person, consult the authoritative record. Neither is evaluated by the algorithm in [[[#recognition-validation]]]; both checks belong to the CE marking ecosystem.

The credentials in this example carry no `recognizedIn`. The [=holder=] delivers them as described in [[[#holder-based-delivery]]], and [=recognition validation=] applies to the resulting chains however they were obtained. What this specification does not define is how a [=verifier=] builds the ordered candidate chains from an unordered set of stapled credentials; the matching by DID described above is one way to do it. A [=verifier=] that is online and finds the presentation incomplete can fall back to [=identifier-based discovery=].

Verifying Issuer Keys Offline

Stapling removes the need to fetch recognition credentials, but checking a proof still needs the [=issuer=]'s public key. In [[[#holder-based-delivery]]], the [=verifier=] caches the key material of its recognition anchors in advance. Here, most proofs come from intermediate issuers and from the [=holder=], whose keys the [=verifier=] cannot know in advance. A `did:web` DID document is fetched over HTTPS, and a stapled copy proves nothing, because a `did:web` document is not self-certifying. Two approaches close this gap; they are compared here.

Key bound by the parent credential. Each recognized entity credential also states the key its subject signs with. The parent's proof then vouches for the child's key, as in an X.509 certificate chain, and the [=verifier=] only needs the root keys installed in advance. The identifiers stay `did:web`. The `verificationMethod` property on the subject is not defined by this specification; it comes from [[?CID]].

{
  "@context": [
    "https://www.w3.org/ns/credentials/v2",
    "https://www.w3.org/ns/credentials/recognized-entities/v1",
    // purple text is from the Controlled Identifiers vocabulary
    "https://www.w3.org/ns/cid/v1"
  ],
  "id": "https://dakks.example/credentials/accreditation/91b6f2d4",
  "type": ["VerifiableCredential", "RecognizedEntityCredential"],
  "issuer": "did:web:dakks.example",
  "credentialSubject": [{
    "id": "did:web:cab.example",
    "type": "RecognizedEntity",
    "verificationMethod": [{
      "id": "did:web:cab.example#issuance-key-1",
      "type": "Multikey",
      "controller": "did:web:cab.example",
      "publicKeyMultibase": "zDnaerDaTF5BXEavCrfRZEk316dpbLsfPDZ3WJ5hRTPFU2169"
    }],
    "recognizedTo": {
      "type": "RecognizedAction",
      "action": "issue",
      "recognizedBy": "did:web:dakks.example"
    }
  }]
}
                

Self-certifying DIDs. Each entity uses `did:webvh` instead of `did:web`. A `did:webvh` DID embeds a hash of its first log entry, and its DID log is a hash-linked, signed history of every DID document version. The [=holder=] staples each [=issuer=]'s DID log, and the [=verifier=] checks it against the DID itself, without network access. A `did:webvh` controller can also publish a `did:web` document for resolvers that only support `did:web`.

did:web:cab.example
did:webvh:QmfGEUAcMpzo25kF2Rhn8L5FAXysfGnkzjwdKoNPi615XQ:cab.example
                
Key bound by parentSelf-certifying DIDs
Identifier `did:web`, unchanged `did:webvh`; `did:web` only as a parallel alias
Preinstalled at the verifier Root DIDs and root keys Root DIDs only
Stapled in addition Nothing One DID log per issuer
Key rotation The parent reissues the credential The entity appends a log entry; no reissue
Main risk Credential and DID document can name different keys A stapled log can omit a later rotation or deactivation
Defined by this specification No; needs a subject `verificationMethod` No; relies on the `did:webvh` method

Neither approach checks revocation offline; none of the credentials in this example carries a `credentialStatus`, and [[[#stale-credentials]]] describes the limits of status information cached in advance. As in [[[#holder-based-delivery]]], schemas referenced by `credentialValidator` have to be cached in advance, and so does the register entry referenced by `relatedResource`; their digests let the [=verifier=] check the cached copies.

Holder-Based Delivery

The [=credential-based discovery=] and [=identifier-based discovery=] processes described in Section [[[#algorithms]]] both require a [=verifier=] to retrieve information from the network. Credential-based discovery fetches the [=recognized entity credential=] named by a `recognizedIn` property, and identifier-based discovery resolves the [=issuer=]'s identifier and fetches a [=verifiable presentation=] from a service endpoint. A [=verifier=] that is offline, or that is unwilling to contact a third party during a transaction, cannot perform either process.

In holder-based delivery, the [=holder=] supplies the [=recognized entity credential=] to the [=verifier=] alongside the [=verifiable credential=] it supports, using the "certificate stapling" mechanism described in Section [[[#recognizedentitycredential]]]. The [=holder=] provides every [=verifiable credential=] needed to establish the recognition chain, so the [=verifier=] evaluates the chain locally. Privacy for the [=holder=] improves as well, because no list publisher learns which [=issuer=] is being verified.

Holder-based delivery depends on each [=recognized entity=] holding a [=recognized entity credential=] of its own, rather than on a single [=verifiable credential=] that enumerates every entity in an ecosystem. A registration authority that issues one credential per registered entity, as in Section [[[#un-grid-cross-border-trade-example]]] above, lets that entity present its own recognition information without contacting the authority.

The three ways of delivering a [=recognized entity credential=] to a [=verifier=] disclose different amounts of information about the verification itself. Holder-based delivery discloses the least, because the [=verifier=] contacts no third party and no other party learns that the verification occurred. Retrieval from a list publisher discloses more, because that publisher learns that a verification is taking place or might soon, although a [=verifier=] that retrieves an entire [=recognized entity credential=] rather than a per-entity resource does not reveal which [=issuer=] it is checking. Retrieval from a `WhoisService` endpoint, by a [=verifier=], as described in Section [[[#identifier-based-discovery]]], discloses the most, because the endpoint belongs to the [=issuer=] being verified and that [=issuer=] therefore learns of every verification of its own [=verifiable credentials=]. Threat Privacy Leakage via List Fetch describes this exposure and the measures that reduce it.

In the scenario below, a mobile inspector verifies a food safety certificate at a remote processing facility where neither party has network connectivity. The diagram shows the whole flow, including the steps each party performs while still online.

sequenceDiagram
    participant A as Food Safety Authority
    participant H as Processing Facility (Holder)
    participant V as Inspector (Verifier)
    autonumber
    rect rgb(235, 244, 235)
    Note over A,V: While online, before the exchange
    A->>H: RecognizedEntityCredential recognizing the facility
    Note right of A: Issued once, valid for a year
    H->>H: Cache credential and its recognized entity credential
    A->>V: Recognition anchor configuration
    Note left of V: Verifier caches the authority DID document,<br/>verification keys, and schemas
    end
    rect rgb(252, 244, 235)
    Note over H,V: Offline exchange at the facility
    V->>H: Verifiable Presentation Request
    Note left of V: acceptedIssuers uses recognizedIn to ask for<br/>the supporting recognized entity credential
    H->>V: Verifiable Presentation
    Note right of H: Contains the certificate and the stapled<br/>recognized entity credential
    V->>V: Verify proofs and evaluate recognition chain locally
    end
          
Holder-based delivery of a recognized entity credential to an offline verifier

Because neither party can retrieve anything during the exchange, both cache what they need in advance. The [=holder=] caches:

The [=verifier=] caches:

The [=verifier=] asks for both [=verifiable credentials=] using a verifiable presentation request, as defined in the [[[VCALM]]] specification. The `acceptedIssuers` property of a `credentialQuery` accepts an object containing a `recognizedIn` property, which lets the [=verifier=] state that it will accept any [=issuer=] recognized in a given [=recognized entity credential=], rather than having to enumerate individual [=issuers=] it already knows:

{
  "query": [{
    "type": "QueryByExample",
    "credentialQuery": {
      // shown to the facility operator by their wallet
      "reason": "Please present a food safety certificate for this lot.",
      "example": {
        "@context": [
          "https://www.w3.org/ns/credentials/v2",
          "https://www.w3.org/ns/credentials/examples/v2"
        ],
        "type": "ExampleFoodSafetyCertificate"
      },
      // the verifier accepts any issuer recognized in the authority's
      // recognized entity credential, and expects the holder to staple it
      "acceptedIssuers": [{
        "recognizedIn": {
          "id": "https://food-safety.utopia.example/lists/processors.vc",
          "type": "RecognizedEntityCredential"
        }
      }]
    }
  }],
  // bind the response to this verifier and this exchange
  "domain": "inspector.food-safety.utopia.example",
  "challenge": "c31f9a84-8d20-11f1-b4e7-3f21c7d90e12"
}
        

The [=holder=] responds with the [=verifiable presentation=] shown below. It contains two [=verifiable credentials=]: the food safety certificate issued by the processing facility, and the [=recognized entity credential=], issued by the national food safety authority, that recognizes the facility as an [=issuer=] of such certificates.

{
  "@context": [
    "https://www.w3.org/ns/credentials/v2",
    "https://www.w3.org/ns/credentials/examples/v2"
  ],
  "type": "VerifiablePresentation",
  "holder": "did:web:processor.utopia.example",
  "verifiableCredential": [{
    // the credential that the verifier asked to see
    "@context": [
      "https://www.w3.org/ns/credentials/v2",
      "https://www.w3.org/ns/credentials/examples/v2"
    ],
    "type": [
      "VerifiableCredential",
      "ExampleFoodSafetyCertificate"
    ],
    "issuer": {
      "id": "did:web:processor.utopia.example",
      "name": "Utopia Valley Food Processing",
      "recognizedIn": {
        "id": "https://food-safety.utopia.example/lists/processors.vc",
        "type": "RecognizedEntityCredential"
      }
    },
    "validFrom": "2026-08-01T00:00:00Z",
    "validUntil": "2027-08-01T00:00:00Z",
    "credentialSubject": {
      "id": "https://processor.utopia.example/lots/2026-08-14-A",
      "name": "Apple and Carrot Puree, Lot 2026-08-14-A"
    },
    "proof": {
      "type": "DataIntegrityProof",
      "created": "2026-08-14T09:12:00Z",
      "verificationMethod": "did:web:processor.utopia.example#issuance-key-1",
      "cryptosuite": "ecdsa-rdfc-2019",
      "proofPurpose": "assertionMethod",
      "proofValue": "z36XPGByaH3rvtKfwoEQXsnUXUAjwd2Ceiqke1GPfjAPAFYoXKo5ftPdwE7QZ8Mw22SC5LSRQg1d8bhe3252hYJoH"
    }
  }, {
    // the stapled recognized entity credential, delivered by the
    // holder so that the offline verifier does not need to fetch it
    "@context": [
      "https://www.w3.org/ns/credentials/v2",
      "https://www.w3.org/ns/credentials/examples/v2"
    ],
    "id": "https://food-safety.utopia.example/lists/processors.vc",
    "type": [
      "VerifiableCredential",
      "RecognizedEntityCredential"
    ],
    "issuer": {
      "id": "did:web:food-safety.utopia.example",
      "type": "RecognizedIssuer",
      "name": "Utopian Food Safety Authority"
    },
    "validFrom": "2026-01-01T00:00:00Z",
    "validUntil": "2027-01-01T00:00:00Z",
    "credentialSubject": [{
      "id": "did:web:processor.utopia.example",
      "type": "RecognizedEntity",
      "name": "Utopia Valley Food Processing",
      "legalName": "Utopia Valley Food Processing Cooperative",
      "recognizedTo": {
        "type": "RecognizedAction",
        "action": "issue",
        "recognizedBy": "did:web:food-safety.utopia.example",
        "credentialValidator": {
          "id": "https://food-safety.utopia.example/schemas/certificate.json",
          "type": "CredentialValidator",
          "mediaType": "application/schema+json",
          "digestMultibase": "uEiBZl963sknNAHgPyslVv6VztZpfWQoRvW1htfx-UwirFo"
        }
      }
    }],
    "proof": {
      "type": "DataIntegrityProof",
      "created": "2026-01-02T14:30:00Z",
      "verificationMethod": "did:web:food-safety.utopia.example#issuance-key-1",
      "cryptosuite": "ecdsa-rdfc-2019",
      "proofPurpose": "assertionMethod",
      "proofValue": "z3FXQjBHwoEQXsnUXUAjwd2Ceiqke1GPfjAPAFYoXKo5ftPdwE7QZ8Mw22SC5LSRQg1d8bhe3252hYJoH"
    }
  }],
  "proof": {
    "type": "DataIntegrityProof",
    "created": "2026-08-20T11:05:00Z",
    "verificationMethod": "did:web:processor.utopia.example#authentication-key-1",
    "cryptosuite": "ecdsa-rdfc-2019",
    "proofPurpose": "authentication",
    // echoes the challenge and domain from the request above
    "challenge": "c31f9a84-8d20-11f1-b4e7-3f21c7d90e12",
    "domain": "inspector.food-safety.utopia.example",
    "proofValue": "z58dRtaBHwoEQXsnUXUAjwd2Ceiqke1GPfjAPAFYoXKo5ftPdwE7QZ8Mw22SC5LSRQg1d8bhe3252hYJ"
  }
}
        

The [=verifier=] evaluates the presentation without any network access. It verifies the proof on the [=verifiable presentation=], confirms that the `challenge` and `domain` match the ones it issued, and verifies the proof on each contained [=verifiable credential=] using its cached key material. It then performs [=credential-based discovery=] on the certificate, passing the stapled [=recognized entity credential=] as providedDocuments. The `recognizedIn` property on the certificate's `issuer` object names that credential, so discovery uses the value from the presentation instead of retrieving it. The stapled credential's own `issuer` object has no `recognizedIn` property, so discovery ends there. The [=verifier=] then performs [=recognition validation=], as described in Section [[[#recognition-validation]]], on the chain consisting of the food safety certificate followed by the [=recognized entity credential=]. That process confirms that the `issuer` of the certificate, `did:web:processor.utopia.example`, appears as the `id` of a [=recognized entity=] in the `credentialSubject` of the [=recognized entity credential=], that the facility is recognized to `issue` credentials conforming to the schema named by that [=recognized action=]'s `credentialValidator`, and that the chain terminates at `did:web:food-safety.utopia.example`, an [=issuer=] that the [=verifier=] has configured as an anchor.

Because [=recognition validation=] is independent of how the [=verifiable credentials=] were obtained, the [=verifier=] applies exactly the same process here as it would to a chain it had discovered for itself. Holder-based delivery changes only the discovery step.

Stale Credentials

A [=verifier=] is not obliged to accept a [=holder=]-provided [=recognized entity credential=]. As noted in Section [[[#recognizedentitycredential]]], a [=verifier=] that requires more recent information might ignore the provided [=verifiable credential=] and retrieve the [=recognized entity credential=] itself once it regains connectivity. An offline [=verifier=] cannot do so during the exchange, and therefore accepts a bounded staleness risk. Recognition might have been revoked after the [=holder=] cached its [=recognized entity credential=], or after the [=verifier=] last refreshed its own cached data.

Deployments reduce that risk by configuring a maximum acceptable age for stapled [=recognized entity credentials=], by issuing [=recognized entity credentials=] with validity periods appropriate to the expected offline interval, and by refreshing cached recognition anchor and status information whenever connectivity is available. Related guidance is provided by threat Stale Recognition Acceptance.

Every check the [=verifier=] performs in this example is cryptographic and local. Holder-based delivery changes how the [=recognized entity credential=] reaches the [=verifier=], not the checks that the [=verifier=] performs on it. A [=holder=] cannot alter a [=recognized entity credential=] without invalidating its proof, although a [=holder=] does choose which [=verifiable credentials=] to present; see threat Unvetted Recognized Entity Credential Propagation.

Relationship to Other Technologies

This specification was designed with awareness of existing "trust infrastructure" technologies, three of which are described below. The data model defined in this specification is capable of expressing many of the concepts found in these technologies and is designed to interoperate with them via the `recognizedIn` property.

ETSI Trust Service Lists

The European Telecommunications Standards Institute (ETSI) defines a format for Trust Service Lists (TSLs) in [[?ETSI-TRUST-LISTS]], which is used across the European Union to publish lists of trusted service providers — entities authorized to issue electronic signatures, seals, timestamps, and other trust services under the eIDAS regulation. Each EU member state publishes a national TSL, and the European Commission publishes a List of the Lists (LoTL) that references each national TSL, forming a well-defined, hierarchical trust federation.

ETSI Trust Service Lists share several conceptual goals with this specification: both describe entities that are recognized to perform specific actions, associate those entities with identifying metadata, and are intended to be consumed by relying parties during validation. However, this specification differs from ETSI Trust Service Lists in several key ways:

X.509 Certificate Authority Lists

X.509 [[RFC5280]] is a standard for public key infrastructure (PKI) that defines the format for certificates and certificate chains. Certificate Authorities (CAs) are entities trusted to issue X.509 certificates that bind a public key to an identity. Trust in a CA is typically established through inclusion in a browser or operating system trust store — a curated list of root CAs — or through a certificate chain that traces back to such a root.

X.509 CA infrastructure and this specification both address the problem of establishing whether a given entity can be relied upon to perform a specific action within a given context. However, this specification differs from X.509 CA lists in several key ways:

ISO/IEC 18013-5 mDL VICAL

ISO/IEC 18013-5 defines the mobile Driving License (mDL), a standard for expressing driver's licenses as mobile documents (mDocs). As part of that ecosystem, the standard defines a Verified Issuer Certificate Authority List (VICAL), which is a signed data structure containing a list of entities that are recognized as certificate authorities empowered to issue mDLs. A relying party uses the VICAL to determine whether the issuer of a presented mDL is trusted within its jurisdiction.

The VICAL concept and this specification share the goal of enabling relying parties to determine whether a credential issuer is recognized within a particular ecosystem. However, this specification differs from the mDL VICAL in several key ways:

Acknowledgements

The Working Group thanks the following individuals for significant contributions to the community: TBD

The use cases in Section [[[#use-cases]]] are derived from an earlier Recognized Actions Use Cases document, developed over the course of several years, that has since been retired and replaced by that section. The Working Group thanks the authors of that document for establishing the foundation on which the use cases in this specification are built (in alphabetical order): David Chadwick (Truetrust Ltd), Oskar van Deventer (TNO), Isaac Henderson Johnson Jeyakumar (Fraunhofer IAO, Germany), Rieks Joosten (TNO), Line Kofoed (Bloqzone), Manu Sporny (Digital Bazaar), Shigeya Suzuki (Keio University), and Konstantin Tsabolov (Spherity).

Work on this specification has been supported by the Rebooting the Web of Trust community facilitated by Christopher Allen, Joe Andrieu, and Erica Connell. The participants in the Internet Identity Workshop, facilitated by Phil Windley, Kaliya Young, Doc Searls, and Heidi Nobantu Saul, also supported the refinement of this work through numerous working sessions designed to educate about, debate on, and improve this specification.

The Working Group would like to thank the following individuals for reviewing and providing feedback on the specification (in alphabetical order):