# cards.sunshine.cardAdmin

> Published by [sunshine.cards](https://lexicon.garden/identity/did:web:sunshine.cards)

✓ This is the authoritative definition for this NSID.

## Links

- [View on Lexicon Garden](https://lexicon.garden/lexicon/did:web:sunshine.cards/cards.sunshine.cardAdmin)
- [Documentation](https://lexicon.garden/lexicon/did:web:sunshine.cards/cards.sunshine.cardAdmin/docs)
- [Examples](https://lexicon.garden/lexicon/did:web:sunshine.cards/cards.sunshine.cardAdmin/examples)

## Definitions

### `cards.sunshine.cardAdmin`

**Type**: `record`

A card's secrets, kept in its creator's deck. The record key is the card's UID, as 14 upper-case hex characters.

**Key**: `any`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `adminKey` | `bytes` | Yes | The tag's key 0, needed to change its settings or keys. |
| `allowRescans` | `boolean` | No | Whether one person may collect this card more than once. |
| `public` | `unknown` | Yes | The card's public details: a complete cards.sunshine.card record, published when someone first collects the card. |
| `signingKey` | `bytes` | Yes | The key the tag signs taps with. It also decrypts the tag's PICC data. |

## Raw Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "A card's secrets, kept in its creator's deck. The record key is the card's UID, as 14 upper-case hex characters.",
      "key": "any",
      "record": {
        "properties": {
          "adminKey": {
            "description": "The tag's key 0, needed to change its settings or keys.",
            "maxLength": 16,
            "minLength": 16,
            "type": "bytes"
          },
          "allowRescans": {
            "default": true,
            "description": "Whether one person may collect this card more than once.",
            "type": "boolean"
          },
          "public": {
            "description": "The card's public details: a complete cards.sunshine.card record, published when someone first collects the card.",
            "type": "unknown"
          },
          "signingKey": {
            "description": "The key the tag signs taps with. It also decrypts the tag's PICC data.",
            "maxLength": 16,
            "minLength": 16,
            "type": "bytes"
          }
        },
        "required": [
          "adminKey",
          "signingKey",
          "public"
        ],
        "type": "object"
      },
      "type": "record"
    }
  },
  "id": "cards.sunshine.cardAdmin",
  "lexicon": 1
}
```
