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