# org.zerosum.deviceKey

> Published by [bandaco.bsky.social](https://lexicon.garden/identity/did:plc:lc2sd5msatepbr55mhtwgdvy)

✓ This is the authoritative definition for this NSID.

## Links

- [View on Lexicon Garden](https://lexicon.garden/lexicon/did:plc:lc2sd5msatepbr55mhtwgdvy/org.zerosum.deviceKey)
- [Documentation](https://lexicon.garden/lexicon/did:plc:lc2sd5msatepbr55mhtwgdvy/org.zerosum.deviceKey/docs)
- [Examples](https://lexicon.garden/lexicon/did:plc:lc2sd5msatepbr55mhtwgdvy/org.zerosum.deviceKey/examples)

## Definitions

### `org.zerosum.deviceKey`

**Type**: `record`

A per-device public key bound to an account DID.

**Key**: `tid`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `bindingSig` | `string` | Yes | base64url ed25519 signature by the device key over the account DID. |
| `createdAt` | `string` (datetime) | Yes | When this device key was registered. |
| `did` | `string` (did) | Yes | did:key form of the device public key. |
| `label` | `string` | No | Optional human-readable device label. |
| `publicKeyMultibase` | `string` | Yes | Multibase-encoded multicodec ed25519 public key. |

## Raw Schema

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