Choose what this site may use

This site uses strictly necessary cookies to work and to remember your privacy choices. With your permission it would also load content hosted by other services, such as videos, maps and fonts, which then receive your network address and device data. We do not sell or share your personal information and we run no advertising. Choose Accept all, Reject all or Customise. You can change your mind at any time through Privacy choices at the foot of every page.

  • Always on

    Needed for the site to work and to remember your privacy choices. Always on.

  • Remembers settings you choose, such as the light or dark display, in your browser.

  • Loads videos, maps and other content hosted by other services. Those services receive your address and device data.

Menu Close
In this section: Specification
Specification
Functions
Schemas
Registers

AttestationEvidence

Source schemas/json/attestation-evidence.schema.json

On this page
  1. Properties
  2. Positive fixtures
  3. Negative fixtures
  4. Mappings to open standards
  5. Schema

RATS (RFC 9334) evidence a node presents to a verifier during Join (OBSP 0.1 section 5.1): fresh verifier nonce, claims, measurement digests, root-of-trust class with its quote or certificate digests, and the time quality in force. Evidence is not an attestation result and grants nothing by itself.

FieldValue
Identifierurn:obsp:schema:v3.1:attestationevidence
Dialecthttps://json-schema.org/draft/2020-12/schema
Used by functionsJoin

Properties

PropertyRequiredTypeDescription
schemaVersionyesreference
apiVersionyesconstant
kindyesconstant
protocolVersionyesconstant
evidenceUniyesreference
conceptualMessageyesconstantRFC 9334 conceptual message
ratsModelyesenumeration
attesteryesobject
verifierNonceyesobject
rootOfTrustyesreference
claimsyesarray
measurementsyesarray
evidenceFormatyesenumeration
evidenceDigestyesreferenceDigest of the evidence bytes as conveyed to the verifier
timeQualityRefyesreferenceTimeQuality record in force when the evidence was collected
collectedAtyesreference
evidenceRefsnoarray
recordedAtyesreference
extensionsnoreference

Positive fixtures

  • attestation-evidence.software-root.valid.json
  • attestation-evidence.valid.json

Negative fixtures

  • attestation-evidence.missing-time-quality.json: evidence names the time quality in force
  • attestation-evidence.root-of-trust-class-missing.json: root-of-trust class is always explicit, never defaulted
  • attestation-evidence.short-nonce.json: verifier nonce carries at least 128 bits
  • attestation-evidence.software-root-implicit.json: SOFTWARE_ROOT must carry the explicit software-root declaration
  • attestation-evidence.software-root-with-tpm-quote.json: a software root cannot present a TPM quote block
  • attestation-evidence.tpm-without-quote.json: TPM2 evidence carries its quote and AK digests
  • attestation-evidence.unknown-root-class.json: root-of-trust class from TPM2|DICE|SECURE_ELEMENT|SOFTWARE_ROOT only

Mappings to open standards

A mapping to a standard, never a conformance statement.

  • maps to NS-11 Verification and monitoring (relation REL-NS-11)
  • maps to RFC 9334 (remote attestation procedures architecture) (relation EXT-RFC9334)

Schema

{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "urn:obsp:schema:v3.1:attestationevidence",
  "title": "AttestationEvidence",
  "description": "RATS (RFC 9334) evidence a node presents to a verifier during Join (OBSP 0.1 section 5.1): fresh verifier nonce, claims, measurement digests, root-of-trust class with its quote or certificate digests, and the time quality in force. Evidence is not an attestation result and grants nothing by itself.",
  "type": "object",
  "required": [
    "schemaVersion",
    "apiVersion",
    "kind",
    "protocolVersion",
    "evidenceUni",
    "conceptualMessage",
    "ratsModel",
    "attester",
    "verifierNonce",
    "rootOfTrust",
    "claims",
    "measurements",
    "evidenceFormat",
    "evidenceDigest",
    "timeQualityRef",
    "collectedAt",
    "recordedAt"
  ],
  "properties": {
    "schemaVersion": {
      "$ref": "#/$defs/SchemaVersion"
    },
    "apiVersion": {
      "const": "obsp/attestation-evidence/v3.1"
    },
    "kind": {
      "const": "AttestationEvidence"
    },
    "protocolVersion": {
      "const": "obsp/0.1"
    },
    "evidenceUni": {
      "$ref": "#/$defs/Uni"
    },
    "conceptualMessage": {
      "const": "EVIDENCE",
      "description": "RFC 9334 conceptual message"
    },
    "ratsModel": {
      "enum": [
        "PASSPORT",
        "BACKGROUND_CHECK"
      ]
    },
    "attester": {
      "type": "object",
      "required": [
        "role",
        "nodeUni",
        "deviceClass"
      ],
      "properties": {
        "role": {
          "const": "NODE"
        },
        "nodeUni": {
          "$ref": "#/$defs/Uni"
        },
        "deviceClass": {
          "$ref": "#/$defs/DeviceClass"
        },
        "siteUni": {
          "$ref": "#/$defs/Uni"
        }
      },
      "additionalProperties": false
    },
    "verifierNonce": {
      "type": "object",
      "required": [
        "nonce",
        "issuedBy",
        "issuedAt"
      ],
      "properties": {
        "nonce": {
          "$ref": "#/$defs/Nonce"
        },
        "issuedBy": {
          "type": "object",
          "required": [
            "role",
            "verifierUni"
          ],
          "properties": {
            "role": {
              "const": "VERIFIER"
            },
            "verifierUni": {
              "$ref": "#/$defs/Uni"
            }
          },
          "additionalProperties": false
        },
        "issuedAt": {
          "$ref": "#/$defs/Timestamp"
        }
      },
      "additionalProperties": false
    },
    "rootOfTrust": {
      "$ref": "#/$defs/RootOfTrust"
    },
    "claims": {
      "type": "array",
      "minItems": 1,
      "items": {
        "type": "object",
        "required": [
          "name",
          "value"
        ],
        "properties": {
          "name": {
            "type": "string",
            "pattern": "^[a-z][a-z0-9_]*(\\.[a-z0-9_]+)*$"
          },
          "value": {
            "type": [
              "string",
              "number",
              "boolean"
            ]
          }
        },
        "additionalProperties": false
      }
    },
    "measurements": {
      "type": "array",
      "minItems": 1,
      "items": {
        "type": "object",
        "required": [
          "component",
          "digest"
        ],
        "properties": {
          "component": {
            "$ref": "#/$defs/NonEmptyString"
          },
          "digest": {
            "$ref": "#/$defs/Digest"
          },
          "register": {
            "type": "string",
            "minLength": 1,
            "maxLength": 64
          },
          "version": {
            "type": "string",
            "minLength": 1,
            "maxLength": 128
          }
        },
        "additionalProperties": false
      }
    },
    "evidenceFormat": {
      "enum": [
        "EAT_CWT",
        "EAT_JWT",
        "TPM2_QUOTE",
        "DICE_TCB_INFO",
        "CMW",
        "OBSP_SOFTWARE_ROOT_STATEMENT"
      ]
    },
    "evidenceDigest": {
      "$ref": "#/$defs/Digest",
      "description": "Digest of the evidence bytes as conveyed to the verifier"
    },
    "timeQualityRef": {
      "$ref": "#/$defs/RecordRef",
      "description": "TimeQuality record in force when the evidence was collected"
    },
    "collectedAt": {
      "$ref": "#/$defs/Timestamp"
    },
    "evidenceRefs": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/EvidenceRef"
      }
    },
    "recordedAt": {
      "$ref": "#/$defs/Timestamp"
    },
    "extensions": {
      "$ref": "#/$defs/Extensions"
    }
  },
  "$defs": {
    "SchemaVersion": {
      "type": "string",
      "const": "3.1.0"
    },
    "Uni": {
      "type": "string",
      "minLength": 8,
      "maxLength": 256,
      "pattern": "^[A-Za-z0-9][A-Za-z0-9:._/@-]{7,255}$",
      "description": "Durable UNI or typed unresolved identifier according to authority rules"
    },
    "Digest": {
      "type": "string",
      "pattern": "^[a-z0-9][a-z0-9._-]{1,31}:[A-Fa-f0-9]{32,128}$",
      "description": "Algorithm-prefixed hexadecimal digest"
    },
    "NonEmptyString": {
      "type": "string",
      "minLength": 1,
      "maxLength": 2048
    },
    "Timestamp": {
      "type": "string",
      "format": "date-time"
    },
    "RecordVersion": {
      "type": "string",
      "pattern": "^[0-9]+(\\.[0-9]+){0,2}$"
    },
    "Extensions": {
      "type": "object",
      "description": "Namespaced extension bag; unknown top-level fields remain forbidden.",
      "propertyNames": {
        "pattern": "^[a-z][a-z0-9]*(\\.[a-z][a-z0-9]*)+$"
      },
      "additionalProperties": true
    },
    "EvidenceRef": {
      "type": "object",
      "required": [
        "uri",
        "digest"
      ],
      "properties": {
        "uri": {
          "type": "string",
          "minLength": 1,
          "maxLength": 4096
        },
        "digest": {
          "$ref": "#/$defs/Digest"
        },
        "kind": {
          "type": "string",
          "minLength": 1,
          "maxLength": 128
        },
        "recordedAt": {
          "$ref": "#/$defs/Timestamp"
        }
      },
      "additionalProperties": false
    },
    "ProtocolRole": {
      "enum": [
        "NODE",
        "SITE_CELL",
        "CLUSTER",
        "FED_PEER",
        "GRID_OPERATOR",
        "PROVIDER",
        "VERIFIER",
        "CONSUMER",
        "STEWARD"
      ],
      "description": "OBSP 0.1 participant role (specification section 3). Roles, never company names."
    },
    "RecordRef": {
      "type": "object",
      "required": [
        "uni",
        "digest"
      ],
      "properties": {
        "uni": {
          "$ref": "#/$defs/Uni"
        },
        "version": {
          "$ref": "#/$defs/RecordVersion"
        },
        "digest": {
          "$ref": "#/$defs/Digest"
        }
      },
      "additionalProperties": false
    },
    "VersionedRecordRef": {
      "type": "object",
      "required": [
        "uni",
        "version",
        "digest"
      ],
      "properties": {
        "uni": {
          "$ref": "#/$defs/Uni"
        },
        "version": {
          "$ref": "#/$defs/RecordVersion"
        },
        "digest": {
          "$ref": "#/$defs/Digest"
        }
      },
      "additionalProperties": false
    },
    "CorrectionState": {
      "enum": [
        "CURRENT",
        "DISPUTED",
        "SUPERSEDED",
        "WITHDRAWN",
        "RECALLED"
      ]
    },
    "DeviceClass": {
      "type": "string",
      "pattern": "^ndc\\.[a-z0-9-]+\\.[a-z0-9-]+$",
      "description": "Device class id (ndc.<family>.<class>)"
    },
    "Nonce": {
      "type": "string",
      "pattern": "^[A-Za-z0-9_-]{22,512}$",
      "description": "Fresh verifier-issued nonce, base64url without padding, at least 128 bits (22 characters)"
    },
    "RootOfTrustClass": {
      "enum": [
        "TPM2",
        "DICE",
        "SECURE_ELEMENT",
        "SOFTWARE_ROOT"
      ],
      "description": "Root-of-trust class. Always stated; SOFTWARE_ROOT is an explicit declaration and is never a default."
    },
    "RootOfTrust": {
      "type": "object",
      "required": [
        "class"
      ],
      "properties": {
        "class": {
          "$ref": "#/$defs/RootOfTrustClass"
        },
        "tpm": {
          "type": "object",
          "required": [
            "quoteDigest",
            "pcrBank",
            "pcrSelection",
            "akPublicKeyDigest"
          ],
          "properties": {
            "quoteDigest": {
              "$ref": "#/$defs/Digest"
            },
            "pcrBank": {
              "enum": [
                "SHA256",
                "SHA384",
                "SHA512"
              ]
            },
            "pcrSelection": {
              "type": "array",
              "minItems": 1,
              "uniqueItems": true,
              "items": {
                "type": "integer",
                "minimum": 0,
                "maximum": 23
              }
            },
            "akPublicKeyDigest": {
              "$ref": "#/$defs/Digest"
            },
            "ekCertificateDigest": {
              "$ref": "#/$defs/Digest"
            }
          },
          "additionalProperties": false
        },
        "dice": {
          "type": "object",
          "required": [
            "certificateChainDigest",
            "layerCount"
          ],
          "properties": {
            "certificateChainDigest": {
              "$ref": "#/$defs/Digest"
            },
            "layerCount": {
              "type": "integer",
              "minimum": 1
            },
            "tcbInfoDigest": {
              "$ref": "#/$defs/Digest"
            }
          },
          "additionalProperties": false
        },
        "secureElement": {
          "type": "object",
          "required": [
            "attestationCertificateDigest",
            "attestationSignatureDigest"
          ],
          "properties": {
            "attestationCertificateDigest": {
              "$ref": "#/$defs/Digest"
            },
            "attestationSignatureDigest": {
              "$ref": "#/$defs/Digest"
            }
          },
          "additionalProperties": false
        },
        "softwareRoot": {
          "type": "object",
          "required": [
            "reason",
            "keyProtection",
            "statement"
          ],
          "properties": {
            "reason": {
              "enum": [
                "NO_HARDWARE_ROOT_IN_DEVICE_CLASS",
                "HARDWARE_ROOT_UNAVAILABLE",
                "LAB_OR_REFERENCE_ONLY"
              ]
            },
            "keyProtection": {
              "enum": [
                "OS_KEYSTORE",
                "FILE_SYSTEM_PERMISSIONS",
                "NONE"
              ]
            },
            "statement": {
              "const": "SOFTWARE_ROOT_WITHOUT_HARDWARE_ASSURANCE"
            }
          },
          "additionalProperties": false,
          "description": "Explicit software-root declaration. Required whenever the class is SOFTWARE_ROOT so the weaker root is never implied."
        }
      },
      "additionalProperties": false,
      "oneOf": [
        {
          "properties": {
            "class": {
              "const": "TPM2"
            }
          },
          "required": [
            "class",
            "tpm"
          ],
          "not": {
            "anyOf": [
              {
                "required": [
                  "dice"
                ]
              },
              {
                "required": [
                  "secureElement"
                ]
              },
              {
                "required": [
                  "softwareRoot"
                ]
              }
            ]
          }
        },
        {
          "properties": {
            "class": {
              "const": "DICE"
            }
          },
          "required": [
            "class",
            "dice"
          ],
          "not": {
            "anyOf": [
              {
                "required": [
                  "tpm"
                ]
              },
              {
                "required": [
                  "secureElement"
                ]
              },
              {
                "required": [
                  "softwareRoot"
                ]
              }
            ]
          }
        },
        {
          "properties": {
            "class": {
              "const": "SECURE_ELEMENT"
            }
          },
          "required": [
            "class",
            "secureElement"
          ],
          "not": {
            "anyOf": [
              {
                "required": [
                  "tpm"
                ]
              },
              {
                "required": [
                  "dice"
                ]
              },
              {
                "required": [
                  "softwareRoot"
                ]
              }
            ]
          }
        },
        {
          "properties": {
            "class": {
              "const": "SOFTWARE_ROOT"
            }
          },
          "required": [
            "class",
            "softwareRoot"
          ],
          "not": {
            "anyOf": [
              {
                "required": [
                  "tpm"
                ]
              },
              {
                "required": [
                  "dice"
                ]
              },
              {
                "required": [
                  "secureElement"
                ]
              }
            ]
          }
        }
      ],
      "description": "Exactly one root-of-trust class with its own evidence block; the blocks of other classes are forbidden."
    }
  },
  "additionalProperties": false
}