| Field | Value |
| Identifier | urn:obsp:schema:v3.1:proofreceipt |
|---|
| Dialect | https://json-schema.org/draft/2020-12/schema |
|---|
| Used by functions | Prove |
Properties
| Property | Required | Type | Description |
schemaVersion | yes | reference | |
proofId | yes | string | |
proofType | yes | enumeration | |
subjectUni | yes | reference | |
challenge | yes | object | |
result | yes | enumeration | |
recordedAt | yes | reference | |
validUntil | no | reference | |
verifier | yes | string | |
antiReplayNonce | no | string | |
privacyProfile | no | string | |
evidenceRefs | yes | array | |
extensions | no | reference | |
Positive fixtures
Negative fixtures
proof-receipt.missing-evidence.json: minItems at /evidenceRefs: [] should be non-empty
Mappings to open standards
A mapping to a standard, never a conformance statement.
- maps to NS-2 Citation and attribution (relation REL-NS-2)
- maps to NS-11 Verification and monitoring (relation REL-NS-11)
- maps to RFC 8785 (JSON canonicalization) (relation EXT-RFC8785)
Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "urn:obsp:schema:v3.1:proofreceipt",
"title": "ProofReceipt",
"type": "object",
"required": [
"proofId",
"proofType",
"subjectUni",
"challenge",
"result",
"recordedAt",
"verifier",
"evidenceRefs",
"schemaVersion"
],
"properties": {
"schemaVersion": {
"$ref": "#/$defs/SchemaVersion"
},
"proofId": {
"type": "string",
"minLength": 1
},
"proofType": {
"enum": [
"IDENTITY",
"LOCATION_PNT",
"COVERAGE",
"CONNECTIVITY",
"THROUGHPUT_QOS",
"RELAY",
"UPTIME",
"STORAGE",
"COMPUTE",
"INFERENCE",
"MODEL_EXECUTION",
"SENSING",
"EO_CUSTODY",
"TIME_INTEGRITY",
"ENERGY_RESOURCE"
]
},
"subjectUni": {
"$ref": "#/$defs/Uni"
},
"challenge": {
"type": "object",
"required": [
"nonce"
],
"properties": {
"nonce": {
"type": "string",
"minLength": 8
},
"issuedAt": {
"$ref": "#/$defs/IsoDateTime"
},
"parameters": {
"type": "object",
"additionalProperties": {
"type": [
"string",
"number",
"boolean",
"integer"
]
}
}
},
"additionalProperties": false
},
"result": {
"enum": [
"PASS",
"FAIL",
"INCONCLUSIVE",
"EXPIRED"
]
},
"recordedAt": {
"$ref": "#/$defs/IsoDateTime"
},
"validUntil": {
"$ref": "#/$defs/IsoDateTime"
},
"verifier": {
"type": "string",
"minLength": 1
},
"antiReplayNonce": {
"type": "string",
"minLength": 8
},
"privacyProfile": {
"type": "string",
"minLength": 1
},
"evidenceRefs": {
"type": "array",
"minItems": 1,
"items": {
"$ref": "#/$defs/EvidenceRef"
}
},
"extensions": {
"$ref": "#/$defs/Extensions"
}
},
"$defs": {
"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-Fa-f0-9]{32,128}$",
"description": "alg:hex digest"
},
"IsoDateTime": {
"type": "string",
"format": "date-time"
},
"NonEmptyString": {
"type": "string",
"minLength": 1,
"maxLength": 2048
},
"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/IsoDateTime"
}
},
"additionalProperties": false
},
"StateVector": {
"type": "object",
"required": [
"implementationState",
"verificationState",
"operationalState",
"claimState",
"correctionState"
],
"properties": {
"implementationState": {
"enum": [
"NOT_STARTED",
"DECLARED",
"SCAFFOLDED",
"IMPLEMENTED",
"INTEGRATED"
]
},
"serviceState": {
"enum": [
"NOT_DEPLOYED",
"STARTING",
"AVAILABLE",
"DEGRADED",
"UNAVAILABLE"
]
},
"verificationState": {
"enum": [
"NOT_TESTED",
"TESTED",
"INTEGRATION_VERIFIED",
"INDEPENDENTLY_ASSESSED"
]
},
"operationalState": {
"enum": [
"NOT_OBSERVED",
"LAB_OBSERVED",
"PILOT_OBSERVED",
"PRODUCTION_OBSERVED"
]
},
"releaseState": {
"enum": [
"INTERNAL",
"LAB",
"PILOT",
"CONTROLLED_RELEASE",
"CONTROLLED_GA",
"RETIRED"
]
},
"claimState": {
"enum": [
"NOT_PERMITTED",
"QUALIFIED",
"PERMITTED_FOR_SCOPE"
]
},
"correctionState": {
"enum": [
"CURRENT",
"DISPUTED",
"SUPERSEDED",
"WITHDRAWN",
"RECALLED"
]
}
},
"additionalProperties": false
},
"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
},
"SchemaVersion": {
"type": "string",
"const": "3.1.0"
}
},
"additionalProperties": false
}