{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "A per-device public key bound to an account DID.",
      "key": "tid",
      "record": {
        "properties": {
          "bindingSig": {
            "description": "base64url ed25519 signature by the device key over the account DID.",
            "type": "string"
          },
          "createdAt": {
            "description": "When this device key was registered.",
            "format": "datetime",
            "type": "string"
          },
          "did": {
            "description": "did:key form of the device public key.",
            "format": "did",
            "type": "string"
          },
          "label": {
            "description": "Optional human-readable device label.",
            "maxLength": 64,
            "type": "string"
          },
          "publicKeyMultibase": {
            "description": "Multibase-encoded multicodec ed25519 public key.",
            "type": "string"
          }
        },
        "required": [
          "publicKeyMultibase",
          "did",
          "createdAt",
          "bindingSig"
        ],
        "type": "object"
      },
      "type": "record"
    }
  },
  "id": "org.zerosum.deviceKey",
  "lexicon": 1
}
