For reading and verification only. You may not copy, use, modify or redistribute this code. Full notice on the main page.
contracts/schemas/node-keys.schema.json
| 1 | { |
| 2 | "$schema": "https://json-schema.org/draft/2020-12/schema", |
| 3 | "$id": "https://all-mcp.fyi/contracts/v2/node-keys.schema.json", |
| 4 | "title": "TUNNEL_NODE_KEYS of the control plane: the public Ed25519 key of each tunnel node. Revoking a node's key is removing its kid; the next request signed by it is refused.", |
| 5 | "type": "object", |
| 6 | "required": ["keys"], |
| 7 | "additionalProperties": false, |
| 8 | "properties": { |
| 9 | "keys": { |
| 10 | "type": "array", "minItems": 1, "maxItems": 16, |
| 11 | "items": { |
| 12 | "type": "object", |
| 13 | "required": ["kid", "node", "kty", "crv", "x"], |
| 14 | "additionalProperties": false, |
| 15 | "properties": { |
| 16 | "kid": {"$ref": "common.schema.json#/$defs/kid"}, |
| 17 | "node": {"$ref": "common.schema.json#/$defs/node_id"}, |
| 18 | "kty": {"const": "OKP"}, |
| 19 | "crv": {"const": "Ed25519"}, |
| 20 | "x": {"type": "string", "pattern": "^[A-Za-z0-9_-]{43}$"} |
| 21 | } |
| 22 | } |
| 23 | } |
| 24 | } |
| 25 | } |