{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "entry": {
      "properties": {
        "anchored": {
          "description": "The answer came from an anchor, which counts on its own; the entry then adds no read. Default false.",
          "type": "boolean"
        },
        "index": {
          "description": "The leaf's position in the committed tree.",
          "minimum": 0,
          "type": "integer"
        },
        "path": {
          "description": "The RFC 6962 audit path from the leaf to the root, nearest sibling first.",
          "items": {
            "ref": "org.cairnsproto.draft.defs#hash",
            "type": "ref"
          },
          "maxLength": 64,
          "type": "array"
        },
        "payload": {
          "description": "The canonical value itself, whose digest is `value`, so a reading can count a value no stone reads.",
          "type": "unknown"
        },
        "salt": {
          "maxLength": 128,
          "minLength": 16,
          "type": "string"
        },
        "site": {
          "description": "The gold site's key.",
          "ref": "org.cairnsproto.draft.defs#hash",
          "type": "ref"
        },
        "value": {
          "description": "The digest of the site's canonical value.",
          "ref": "org.cairnsproto.draft.defs#hash",
          "type": "ref"
        }
      },
      "required": [
        "site",
        "value",
        "salt",
        "index",
        "path"
      ],
      "type": "object"
    },
    "main": {
      "description": "Gold entries revealed after the committed epoch's retrace window, each with its inclusion proof. An entry whose proof doesn't reach the committed root is void.",
      "key": "tid",
      "record": {
        "properties": {
          "createdAt": {
            "format": "datetime",
            "type": "string"
          },
          "entries": {
            "items": {
              "ref": "#entry",
              "type": "ref"
            },
            "maxLength": 10000,
            "minLength": 1,
            "type": "array"
          },
          "gold": {
            "ref": "com.atproto.repo.strongRef",
            "type": "ref"
          }
        },
        "required": [
          "gold",
          "entries",
          "createdAt"
        ],
        "type": "object"
      },
      "type": "record"
    }
  },
  "id": "org.cairnsproto.draft.goldReveal",
  "lexicon": 1
}
