{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "type": "object",
  "additionalProperties": false,
  "required": [
    "onion",
    "shared_secrets"
  ],
  "properties": {
    "onion": {
      "type": "hex",
      "description": "the onion packet (*onion_size* bytes)"
    },
    "shared_secrets": {
      "type": "array",
      "description": "one shared secret for each node in the *hops* parameter",
      "items": {
        "type": "secret",
        "description": "the shared secret with this hop",
        "maxLength": 64,
        "minLength": 64
      }
    }
  }
}
