{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "A maintainer's commitment to gold entries for one epoch: the root of a Merkle tree over (site key, canonical value digest, salt) leaves, so nobody can tell which sites are gold until the reveal.",
      "key": "tid",
      "record": {
        "properties": {
          "beaconRound": {
            "description": "The beacon round of the epoch the commitment is for. Reveals count once that epoch's retrace window has closed.",
            "minimum": 1,
            "type": "integer"
          },
          "createdAt": {
            "format": "datetime",
            "type": "string"
          },
          "project": {
            "ref": "com.atproto.repo.strongRef",
            "type": "ref"
          },
          "root": {
            "description": "RFC 6962 Merkle tree hash over the entries' leaves in committed order. A leaf is cairns/gold/v1, a zero byte, the site key in hex, a zero byte, the value digest in hex, a zero byte and the salt.",
            "ref": "org.cairnsproto.draft.defs#hash",
            "type": "ref"
          },
          "size": {
            "description": "How many leaves the tree has.",
            "maximum": 100000,
            "minimum": 1,
            "type": "integer"
          }
        },
        "required": [
          "project",
          "beaconRound",
          "root",
          "size",
          "createdAt"
        ],
        "type": "object"
      },
      "type": "record"
    }
  },
  "id": "org.cairnsproto.draft.gold",
  "lexicon": 1
}
