snapkitty
developer-tools
java
File size: 1,214 Bytes
1eff9b2
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://ortho32.dev/schemas/attestation.schema.json",
  "title": "Attestation",
  "description": "Device attestation binding device, sequence, architectural cycles and proof to a signature.",
  "type": "object",
  "properties": {
    "deviceId": {
      "type": "string",
      "description": "Stable device identifier"
    },
    "sequence": {
      "type": "integer",
      "minimum": 0,
      "description": "Sequence number attested"
    },
    "cycles": {
      "type": "integer",
      "minimum": 0,
      "description": "Architectural cycles for attested execution, integer logical time"
    },
    "proofId": {
      "type": "string",
      "description": "Identifier of proof / theorem attested"
    },
    "signature": {
      "type": "string",
      "pattern": "^[0-9a-fA-F]+$",
      "description": "Hex-encoded signature over deviceId+sequence+cycles+proofId"
    },
    "timestamp": {
      "type": "string",
      "format": "date-time",
      "description": "ISO-8601 timestamp of attestation"
    }
  },
  "required": ["deviceId", "sequence", "cycles", "proofId", "signature", "timestamp"],
  "additionalProperties": false
}