# ai.newnal.illi.private.custodyKey

> The root admin's X25519 custody private key for one home (rkey = homeId), kept in their Private Sphere so logging out or reinstalling the app does not lose it; the app caches it in the Keystore/Keychain.

- Kind: record
- Record key: any
- Authority: private.illi.newnal.ai
- Lexicon: 1
- Published by [illi-service.newnal.id](https://lexicon.garden/identity/did:plc:uztm7bi2ce42dez3uu3qafro), the NSID's authority

## Links

- [Documentation](https://lexicon.garden/lexicon/did:plc:uztm7bi2ce42dez3uu3qafro/ai.newnal.illi.private.custodyKey)
- [Schema JSON](https://lexicon.garden/lexicon/did:plc:uztm7bi2ce42dez3uu3qafro/ai.newnal.illi.private.custodyKey/schema.json)
- [Analytics](https://lexicon.garden/lexicon/did:plc:uztm7bi2ce42dez3uu3qafro/ai.newnal.illi.private.custodyKey/analytics)

## Record (`ai.newnal.illi.private.custodyKey`)

Type: record · key any

### Properties

- `createdAt` (string · datetime, required)
- `home` (string · tid, required)
- `keyId` (string, required)
  - Constraints: maxLength: 64
- `privateKey` (bytes, required)
  - Constraints: maxLength: 64

## Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "The root admin's X25519 custody private key for one home (rkey = homeId), kept in their Private Sphere so logging out or reinstalling the app does not lose it; the app caches it in the Keystore/Keychain.",
      "key": "any",
      "record": {
        "properties": {
          "createdAt": {
            "format": "datetime",
            "type": "string"
          },
          "home": {
            "format": "tid",
            "type": "string"
          },
          "keyId": {
            "maxLength": 64,
            "type": "string"
          },
          "privateKey": {
            "maxLength": 64,
            "type": "bytes"
          }
        },
        "required": [
          "home",
          "keyId",
          "privateKey",
          "createdAt"
        ],
        "type": "object"
      },
      "type": "record"
    }
  },
  "id": "ai.newnal.illi.private.custodyKey",
  "lexicon": 1
}
```
