# games.cavu.tier-madness.commitment

> Published by [chris.pardy.family](https://lexicon.garden/identity/did:plc:dp7v5b5kejmmzzpwmqyf5wj6)

✓ This is the authoritative definition for this NSID.

## Links

- [View on Lexicon Garden](https://lexicon.garden/lexicon/did:plc:dp7v5b5kejmmzzpwmqyf5wj6/games.cavu.tier-madness.commitment)
- [Documentation](https://lexicon.garden/lexicon/did:plc:dp7v5b5kejmmzzpwmqyf5wj6/games.cavu.tier-madness.commitment/docs)
- [Examples](https://lexicon.garden/lexicon/did:plc:dp7v5b5kejmmzzpwmqyf5wj6/games.cavu.tier-madness.commitment/examples)

## Definitions

### `games.cavu.tier-madness.commitment`

**Type**: `record`

Public commitment to a secret games.cavu.tier-madness.move, written to the game's commitment space (readable by the game's players) under the same rkey as the move. Anyone can later check a revealed move hashes to this CID.

**Key**: `tid`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `createdAt` | `string` (datetime) | Yes |  |
| `game` | `string` | Yes |  |
| `index` | `integer` | No | For placements: deal order. |
| `kind` | `string` | Yes | Which kind of move, so progress can be shown without revealing it. |
| `move` | `string` (cid) | Yes | CID (DAG-CBOR, sha-256) of the secret move record. |
| `round` | `integer` | Yes |  |

## Raw Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "Public commitment to a secret games.cavu.tier-madness.move, written to the game's commitment space (readable by the game's players) under the same rkey as the move. Anyone can later check a revealed move hashes to this CID.",
      "key": "tid",
      "record": {
        "properties": {
          "createdAt": {
            "format": "datetime",
            "type": "string"
          },
          "game": {
            "maxLength": 64,
            "type": "string"
          },
          "index": {
            "description": "For placements: deal order.",
            "maximum": 19,
            "minimum": 0,
            "type": "integer"
          },
          "kind": {
            "description": "Which kind of move, so progress can be shown without revealing it.",
            "knownValues": [
              "vote",
              "place",
              "swap",
              "double"
            ],
            "type": "string"
          },
          "move": {
            "description": "CID (DAG-CBOR, sha-256) of the secret move record.",
            "format": "cid",
            "type": "string"
          },
          "round": {
            "maximum": 20,
            "minimum": 0,
            "type": "integer"
          }
        },
        "required": [
          "game",
          "round",
          "kind",
          "move",
          "createdAt"
        ],
        "type": "object"
      },
      "type": "record"
    }
  },
  "id": "games.cavu.tier-madness.commitment",
  "lexicon": 1
}
```
