{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "Encrypted snapshot of the actor's local pairwise trust secrets for multi-device sync. Ciphertext is encrypted to encryptionPublicKey on social.smallbury.actor.profile; only the identity private key on a authorized device can decrypt it.",
      "key": "literal:self",
      "record": {
        "properties": {
          "ciphertext": {
            "description": "Encrypted keyring payload (pairwise secrets map) for the profile encryption public key.",
            "maxLength": 65536,
            "type": "bytes"
          },
          "createdAt": {
            "format": "datetime",
            "type": "string"
          },
          "updatedAt": {
            "format": "datetime",
            "type": "string"
          },
          "version": {
            "description": "Monotonic counter incremented on each write; used for optimistic merge ordering.",
            "minimum": 1,
            "type": "integer"
          }
        },
        "required": [
          "version",
          "updatedAt",
          "ciphertext"
        ],
        "type": "object"
      },
      "type": "record"
    }
  },
  "id": "social.smallbury.actor.keyring",
  "lexicon": 1
}
