{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/aspern-org/json-schema/aspern-org-reveal-request-schema.json",
  "title": "RevealRequest",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/aspern-org-attestation-api-openapi.yml#/components/schemas/RevealRequest",
  "type": "object",
  "required": [
    "digest",
    "seq",
    "nonce",
    "intent"
  ],
  "properties": {
    "digest": {
      "type": "string",
      "pattern": "^0x[0-9a-f]{64}$"
    },
    "seq": {
      "type": "integer",
      "minimum": 0,
      "x-unit": "count"
    },
    "nonce": {
      "type": "string",
      "description": "The nonce used when the leaf was built. Without it the reveal cannot be matched to the commitment."
    },
    "intent": {
      "$ref": "#/$defs/RevealIntent"
    }
  },
  "$defs": {
    "RevealIntent": {
      "type": "object",
      "required": [
        "instrument"
      ],
      "properties": {
        "instrument": {
          "type": "string",
          "description": "Uppercased on arrival, so \"btc\" and \"BTC\" are the same intent."
        },
        "side": {
          "type": "string"
        },
        "size": {
          "type": "number"
        },
        "price": {
          "type": "number",
          "x-unit": "usd"
        }
      }
    }
  }
}