{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://starkscan.co/schemas/starkscan-verification-receipt-trust-root-v1.schema.json",
  "title": "Starkscan portable verification receipt trust root",
  "type": "object",
  "additionalProperties": false,
  "required": ["schemaVersion", "algorithm", "keyId", "publicKey"],
  "properties": {
    "schemaVersion": {"const": "starkscan-verification-receipt-trust-root-v1"},
    "algorithm": {"const": "Ed25519"},
    "keyId": {"type": "string", "pattern": "^[A-Za-z0-9._:-]{1,128}$"},
    "publicKey": {
      "type": "string",
      "description": "Unpadded base64url encoding of the 32-byte Ed25519 public key.",
      "pattern": "^[A-Za-z0-9_-]{43}$"
    }
  }
}
