# org.cairnsproto.draft.goldReveal

> 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.

- Kind: record
- Record key: tid
- Authority: draft.cairnsproto.org
- Lexicon: 1
- Published by [cairnsproto.org](https://lexicon.garden/identity/did:plc:np7ezqujtsry4bkogisaabul), the NSID's authority

## Links

- [Documentation](https://lexicon.garden/lexicon/did:plc:np7ezqujtsry4bkogisaabul/org.cairnsproto.draft.goldReveal)
- [Schema JSON](https://lexicon.garden/lexicon/did:plc:np7ezqujtsry4bkogisaabul/org.cairnsproto.draft.goldReveal/schema.json)
- [Analytics](https://lexicon.garden/lexicon/did:plc:np7ezqujtsry4bkogisaabul/org.cairnsproto.draft.goldReveal/analytics)

## Record (`org.cairnsproto.draft.goldReveal`)

Type: record · key tid

### Properties

- `createdAt` (string · datetime, required)
- `entries` (array, required)
  - Constraints: minLength: 1, maxLength: 10000
  - `items` (ref)
    - Reference: `#entry`
- `gold` (ref, required)
  - Reference: `com.atproto.repo.strongRef`

## #entry (`org.cairnsproto.draft.goldReveal#entry`)

Type: object

### Properties

- `anchored` (boolean): The answer came from an anchor, which counts on its own; the entry then adds no read. Default false.
- `index` (integer, required): The leaf's position in the committed tree.
  - Constraints: minimum: 0
- `path` (array, required): The RFC 6962 audit path from the leaf to the root, nearest sibling first.
  - Constraints: maxLength: 64
  - `items` (ref)
    - Reference: `org.cairnsproto.draft.defs#hash`
- `payload` (unknown): The canonical value itself, whose digest is `value`, so a reading can count a value no stone reads.
- `salt` (string, required)
  - Constraints: minLength: 16, maxLength: 128
- `site` (ref, required): The gold site's key.
  - Reference: `org.cairnsproto.draft.defs#hash`
- `value` (ref, required): The digest of the site's canonical value.
  - Reference: `org.cairnsproto.draft.defs#hash`

## Schema

```json
{
  "$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
}
```
