> From *AT Protocol Spaces: A Field Guide* on atproto.how, revised 2026-11-23.
> Web page: https://atproto.how/atproto-spaces-field-guide/f-example-identities
> Index for agents: https://atproto.how/llms.txt · Text CC BY-SA 4.0, code samples MIT.

# Appendix F · Example identities and keys

These are the identities and keys behind the book’s examples, published with their private keys so that readers and agents can check signatures, tokens, and other cryptographic structures against real material. Every private key here is public test material: use it only for examples and tests.

The five `did:plc` identities are valid. Each DID is derived from its signed genesis operation, which is included so you can verify it offline. They are not registered with the PLC directory, so resolve them from this appendix. `#atproto` and rotation keys are K-256; `#atproto_kem`, the app’s client and DPoP keys, and the syncer’s keys are P-256. Private keys are in the multibase form that `goat key generate` prints, beside the public key as a `did:key`.

<a id="table-f-1"></a>

**Table F.1.** Example identities

| Name in the book | DID | Handle | PDS | Role |
| --- | --- | --- | --- | --- |
| Marcus | `did:plc:ejjl2znzqp3ci25dqaslpkk2` | `marcus.example.com` | `https://pds-a.example.com` | Space authority for the family space |
| Elena | `did:plc:53ni6w7okqrxvjxezmopejoo` | `elena.example.com` | `https://pds-a.example.com` | Member and writer |
| Ruth | `did:plc:p4256dosynj6j6tkypz2q2l3` | `ruth.example.com` | `https://pds-b.example.com` | Member and writer on a second repo host |
| Nora | `did:plc:ashwgt3d5ntfxmlcfyizpu2g` | `nora.example.com` | `https://pds-b.example.com` | Member and writer |
| Jake | `did:plc:brthxhhoomvrib2avauses35` | `jake.example.com` | `https://pds-b.example.com` | Removed member, author of the labeled bookmark |
| Erin | `did:web:erin.example` | `erin.example` | none | Read-only member with no account |
| Managing app | `did:web:newsletter.example` | none | none | Managing app for the managedspace example, service `#newsletter_app` |
| Family app | `https://family.example/client-metadata.json` | none | none | OAuth client and syncer |

To check the material yourself:

1. Decode a private key from base58btc, drop its two-byte multicodec prefix (`0x86 0x26` for P-256, `0x81 0x26` for K-256), derive the public key, and compare its compressed `did:key` with the one listed.
2. Encode the signed genesis operation as DAG-CBOR and hash it with SHA-256. The DID is `did:plc:` followed by the first 24 characters of that hash in lowercase base32.
3. Remove `sig` from the genesis operation, encode the rest as DAG-CBOR, and verify `sig` (base64url) against the rotation key.
4. Compare the DID document with the genesis operation: the `#atproto` and `#atproto_kem` methods and the `#atproto_pds` service all come from it.

<a id="marcus"></a>

## F.1 Marcus

<a id="table-f-2"></a>

**Table F.2.** Marcus’s keys

| Key | Type | Private key | Public key |
| --- | --- | --- | --- |
| `#atproto` | K-256 | `z3vLbPcG9hWAWGjzA3HGDjuaaggcNZdDbH44rWmnCWMS1DNJ` | `did:key:zQ3sha4dxQwxufYojiGeueDiyHcEFjYjPDVaNWoUD9UJbJRfG` |
| `#atproto_kem` | P-256 | `z42tqfEFoheNLvyMjabEiYLfFJnwEn2MN12eybBWU9qwxtM6` | `did:key:zDnaethu4zDP2t6nmJuTrZGSnc4VoDUmaG3NfqziTmsExNC8f` |
| Rotation | K-256 | `z3vLgGL5a3JegMMUxx8GCNCw5rWyhcFq86Rwtw2nQQTtfn4X` | `did:key:zQ3shbtBdtYs7b3NBfApyRebCCmg8nT1mL3E8A5KAyXREE3bS` |

DID document for `did:plc:ejjl2znzqp3ci25dqaslpkk2`:

<a id="code-f-1"></a>

```json
{
  "@context": [
    "https://www.w3.org/ns/did/v1",
    "https://w3id.org/security/multikey/v1",
    "https://w3id.org/security/suites/secp256k1-2019/v1",
    "https://w3id.org/security/suites/ecdsa-2019/v1"
  ],
  "id": "did:plc:ejjl2znzqp3ci25dqaslpkk2",
  "alsoKnownAs": [
    "at://marcus.example.com"
  ],
  "verificationMethod": [
    {
      "id": "did:plc:ejjl2znzqp3ci25dqaslpkk2#atproto",
      "type": "Multikey",
      "controller": "did:plc:ejjl2znzqp3ci25dqaslpkk2",
      "publicKeyMultibase": "zQ3sha4dxQwxufYojiGeueDiyHcEFjYjPDVaNWoUD9UJbJRfG"
    },
    {
      "id": "did:plc:ejjl2znzqp3ci25dqaslpkk2#atproto_kem",
      "type": "Multikey",
      "controller": "did:plc:ejjl2znzqp3ci25dqaslpkk2",
      "publicKeyMultibase": "zDnaethu4zDP2t6nmJuTrZGSnc4VoDUmaG3NfqziTmsExNC8f"
    }
  ],
  "service": [
    {
      "id": "#atproto_pds",
      "type": "AtprotoPersonalDataServer",
      "serviceEndpoint": "https://pds-a.example.com"
    }
  ]
}
```

Signed genesis operation:

<a id="code-f-2"></a>

```json
{
  "type": "plc_operation",
  "rotationKeys": [
    "did:key:zQ3shbtBdtYs7b3NBfApyRebCCmg8nT1mL3E8A5KAyXREE3bS"
  ],
  "verificationMethods": {
    "atproto": "did:key:zQ3sha4dxQwxufYojiGeueDiyHcEFjYjPDVaNWoUD9UJbJRfG",
    "atproto_kem": "did:key:zDnaethu4zDP2t6nmJuTrZGSnc4VoDUmaG3NfqziTmsExNC8f"
  },
  "alsoKnownAs": [
    "at://marcus.example.com"
  ],
  "services": {
    "atproto_pds": {
      "type": "AtprotoPersonalDataServer",
      "endpoint": "https://pds-a.example.com"
    }
  },
  "prev": null,
  "sig": "rX1R8ryG9hDFsdYzIJt15oQXGg1T4M1zQKUCCpLAQcNvlTWp6X6vrPpUNKx-NbY6suTFznt8KGOkWR9aGRT-3Q"
}
```

<a id="elena"></a>

## F.2 Elena

<a id="table-f-3"></a>

**Table F.3.** Elena’s keys

| Key | Type | Private key | Public key |
| --- | --- | --- | --- |
| `#atproto` | K-256 | `z3vLWq25XWqSdkR5bWYZMy2nmXijMLDxAy4L24QVA5p1Ap9c` | `did:key:zQ3shPWwfJKjriJqb4CsR7KBBHkaffnpZin5NCyAYJzztnuRV` |
| `#atproto_kem` | P-256 | `z42ts5ZyDd6kG1fUTNtQJDjgyygVGigU2nwRqdHgVoMJrpK3` | `did:key:zDnaeueFwjSjPA49dvab7bN4VjYDvv7eBVsDSjncdQHsud125` |
| Rotation | K-256 | `z3vLgyyN9LGHhkntCvaEArxvdfkEJYkAMyE2vsUZDctXTFo6` | `did:key:zQ3shiEHng2LXQA12HNn54XzBTquzZprwYjCTKu1ySPh71N6r` |

DID document for `did:plc:53ni6w7okqrxvjxezmopejoo`:

<a id="code-f-3"></a>

```json
{
  "@context": [
    "https://www.w3.org/ns/did/v1",
    "https://w3id.org/security/multikey/v1",
    "https://w3id.org/security/suites/secp256k1-2019/v1",
    "https://w3id.org/security/suites/ecdsa-2019/v1"
  ],
  "id": "did:plc:53ni6w7okqrxvjxezmopejoo",
  "alsoKnownAs": [
    "at://elena.example.com"
  ],
  "verificationMethod": [
    {
      "id": "did:plc:53ni6w7okqrxvjxezmopejoo#atproto",
      "type": "Multikey",
      "controller": "did:plc:53ni6w7okqrxvjxezmopejoo",
      "publicKeyMultibase": "zQ3shPWwfJKjriJqb4CsR7KBBHkaffnpZin5NCyAYJzztnuRV"
    },
    {
      "id": "did:plc:53ni6w7okqrxvjxezmopejoo#atproto_kem",
      "type": "Multikey",
      "controller": "did:plc:53ni6w7okqrxvjxezmopejoo",
      "publicKeyMultibase": "zDnaeueFwjSjPA49dvab7bN4VjYDvv7eBVsDSjncdQHsud125"
    }
  ],
  "service": [
    {
      "id": "#atproto_pds",
      "type": "AtprotoPersonalDataServer",
      "serviceEndpoint": "https://pds-a.example.com"
    }
  ]
}
```

Signed genesis operation:

<a id="code-f-4"></a>

```json
{
  "type": "plc_operation",
  "rotationKeys": [
    "did:key:zQ3shiEHng2LXQA12HNn54XzBTquzZprwYjCTKu1ySPh71N6r"
  ],
  "verificationMethods": {
    "atproto": "did:key:zQ3shPWwfJKjriJqb4CsR7KBBHkaffnpZin5NCyAYJzztnuRV",
    "atproto_kem": "did:key:zDnaeueFwjSjPA49dvab7bN4VjYDvv7eBVsDSjncdQHsud125"
  },
  "alsoKnownAs": [
    "at://elena.example.com"
  ],
  "services": {
    "atproto_pds": {
      "type": "AtprotoPersonalDataServer",
      "endpoint": "https://pds-a.example.com"
    }
  },
  "prev": null,
  "sig": "URh4sPB-AiJUI09Pax23GpK5PL-o8Ei5FKwI_C0kV8EoQcRde0yUUYX_slPGw5bokzhSwqZ-QsDy8xkatgfLPg"
}
```

<a id="ruth"></a>

## F.3 Ruth

<a id="table-f-4"></a>

**Table F.4.** Ruth’s keys

| Key | Type | Private key | Public key |
| --- | --- | --- | --- |
| `#atproto` | K-256 | `z3vLhSfej1aqiMWBvhjyjTuXM3L7QvFh2J4DKhAcPxtAmAd3` | `did:key:zQ3shtrHbFC5PwLhynynQQQftQcnZeUJ79kx2PvLacgJ5NpLq` |
| `#atproto_kem` | P-256 | `z42tzGEBNL7iDdZLbfZuPyrUr8XFAsrdzhpZimyUwmHZkirZ` | `did:key:zDnaefddyQ4HYrC15kpiBjhAmUcmm6wVqDqNSFWatYRUiHaxy` |
| Rotation | K-256 | `z3vLVMBwrNZXbuPf6ji4zUEZcHH7rFUk5ZwZqu2Ed7kJNgFt` | `did:key:zQ3shj6RvpC1UQdemwpNLbEUbUd1Bo7Nfm4gUGzyqpfpe27jt` |

DID document for `did:plc:p4256dosynj6j6tkypz2q2l3`:

<a id="code-f-5"></a>

```json
{
  "@context": [
    "https://www.w3.org/ns/did/v1",
    "https://w3id.org/security/multikey/v1",
    "https://w3id.org/security/suites/secp256k1-2019/v1",
    "https://w3id.org/security/suites/ecdsa-2019/v1"
  ],
  "id": "did:plc:p4256dosynj6j6tkypz2q2l3",
  "alsoKnownAs": [
    "at://ruth.example.com"
  ],
  "verificationMethod": [
    {
      "id": "did:plc:p4256dosynj6j6tkypz2q2l3#atproto",
      "type": "Multikey",
      "controller": "did:plc:p4256dosynj6j6tkypz2q2l3",
      "publicKeyMultibase": "zQ3shtrHbFC5PwLhynynQQQftQcnZeUJ79kx2PvLacgJ5NpLq"
    },
    {
      "id": "did:plc:p4256dosynj6j6tkypz2q2l3#atproto_kem",
      "type": "Multikey",
      "controller": "did:plc:p4256dosynj6j6tkypz2q2l3",
      "publicKeyMultibase": "zDnaefddyQ4HYrC15kpiBjhAmUcmm6wVqDqNSFWatYRUiHaxy"
    }
  ],
  "service": [
    {
      "id": "#atproto_pds",
      "type": "AtprotoPersonalDataServer",
      "serviceEndpoint": "https://pds-b.example.com"
    }
  ]
}
```

Signed genesis operation:

<a id="code-f-6"></a>

```json
{
  "type": "plc_operation",
  "rotationKeys": [
    "did:key:zQ3shj6RvpC1UQdemwpNLbEUbUd1Bo7Nfm4gUGzyqpfpe27jt"
  ],
  "verificationMethods": {
    "atproto": "did:key:zQ3shtrHbFC5PwLhynynQQQftQcnZeUJ79kx2PvLacgJ5NpLq",
    "atproto_kem": "did:key:zDnaefddyQ4HYrC15kpiBjhAmUcmm6wVqDqNSFWatYRUiHaxy"
  },
  "alsoKnownAs": [
    "at://ruth.example.com"
  ],
  "services": {
    "atproto_pds": {
      "type": "AtprotoPersonalDataServer",
      "endpoint": "https://pds-b.example.com"
    }
  },
  "prev": null,
  "sig": "AaPEuAAZ6K94a7QTnEnfeftCp15mfulaTYfAXFkPVtJA5jjp1_DJGL4IwomgNvx8DAVYeEDOYh5UnJfQa2wF0Q"
}
```

<a id="nora"></a>

## F.4 Nora

<a id="table-f-5"></a>

**Table F.5.** Nora’s keys

| Key | Type | Private key | Public key |
| --- | --- | --- | --- |
| `#atproto` | K-256 | `z3vLjrQAHLD4mz7Qp4huAh9zmcu9KnJsePE992XCpU3Vzzw9` | `did:key:zQ3shXqjG1uHZHmwtPA1sQzqVJB3J7r1FHJNTPPLHNdwkdMei` |
| `#atproto_kem` | P-256 | `z42tkHewqpP6Uec4E4Y4ZqUcotouSc5LqCDYD6SDXz38j8MU` | `did:key:zDnaefZoqiT1a5Z5yQdogzNncMBp9VeNKybzCtHY5aDFZ1AAS` |
| Rotation | K-256 | `z3vLWJ9Skm5WhA6ZQhMKmgSi5JBAEeSv6JzVxdHLaigifC2T` | `did:key:zQ3shbAyeCwQBgG2T67tkwA4aifdPyA6BCdArGHm35eNeL3TH` |

DID document for `did:plc:ashwgt3d5ntfxmlcfyizpu2g`:

<a id="code-f-7"></a>

```json
{
  "@context": [
    "https://www.w3.org/ns/did/v1",
    "https://w3id.org/security/multikey/v1",
    "https://w3id.org/security/suites/secp256k1-2019/v1",
    "https://w3id.org/security/suites/ecdsa-2019/v1"
  ],
  "id": "did:plc:ashwgt3d5ntfxmlcfyizpu2g",
  "alsoKnownAs": [
    "at://nora.example.com"
  ],
  "verificationMethod": [
    {
      "id": "did:plc:ashwgt3d5ntfxmlcfyizpu2g#atproto",
      "type": "Multikey",
      "controller": "did:plc:ashwgt3d5ntfxmlcfyizpu2g",
      "publicKeyMultibase": "zQ3shXqjG1uHZHmwtPA1sQzqVJB3J7r1FHJNTPPLHNdwkdMei"
    },
    {
      "id": "did:plc:ashwgt3d5ntfxmlcfyizpu2g#atproto_kem",
      "type": "Multikey",
      "controller": "did:plc:ashwgt3d5ntfxmlcfyizpu2g",
      "publicKeyMultibase": "zDnaefZoqiT1a5Z5yQdogzNncMBp9VeNKybzCtHY5aDFZ1AAS"
    }
  ],
  "service": [
    {
      "id": "#atproto_pds",
      "type": "AtprotoPersonalDataServer",
      "serviceEndpoint": "https://pds-b.example.com"
    }
  ]
}
```

Signed genesis operation:

<a id="code-f-8"></a>

```json
{
  "type": "plc_operation",
  "rotationKeys": [
    "did:key:zQ3shbAyeCwQBgG2T67tkwA4aifdPyA6BCdArGHm35eNeL3TH"
  ],
  "verificationMethods": {
    "atproto": "did:key:zQ3shXqjG1uHZHmwtPA1sQzqVJB3J7r1FHJNTPPLHNdwkdMei",
    "atproto_kem": "did:key:zDnaefZoqiT1a5Z5yQdogzNncMBp9VeNKybzCtHY5aDFZ1AAS"
  },
  "alsoKnownAs": [
    "at://nora.example.com"
  ],
  "services": {
    "atproto_pds": {
      "type": "AtprotoPersonalDataServer",
      "endpoint": "https://pds-b.example.com"
    }
  },
  "prev": null,
  "sig": "DhE2FTE6D99kuwN7eTdL23aNQJAUQc5PZO9A-SJEWOcZyyxu8iUd533MBeKpNeS0v6pzrod8uGu6SathZWdKxg"
}
```

<a id="jake"></a>

## F.5 Jake

<a id="table-f-6"></a>

**Table F.6.** Jake’s keys

| Key | Type | Private key | Public key |
| --- | --- | --- | --- |
| `#atproto` | K-256 | `z3vLaKimzb4aMSMGyQzFNLqQwmSHgme7z8gL4NJCcwzr7G4m` | `did:key:zQ3shV9QNX7FEXYyRtMqgxHQ2LsqPU4NhJX6UZUZ6QMxy1FjX` |
| `#atproto_kem` | P-256 | `z42tkUDumnF9QyqtjqXsoU7GtSQF1D5tWgSzFL1UUnjkX4GF` | `did:key:zDnaehVhdn1N89vzNfh2ez4QyqL6tuk6QY49jR85CLYnrUkAn` |
| Rotation | K-256 | `z3vLhqMrdmALa6heueBHHKv2p2JcyYEaQrA7cdryntwqFLFz` | `did:key:zQ3shQuSUsNpucKZdbVmTnw2fdnzj4M3PoNZ2LXEoj3hFsnVc` |

DID document for `did:plc:brthxhhoomvrib2avauses35`:

<a id="code-f-9"></a>

```json
{
  "@context": [
    "https://www.w3.org/ns/did/v1",
    "https://w3id.org/security/multikey/v1",
    "https://w3id.org/security/suites/secp256k1-2019/v1",
    "https://w3id.org/security/suites/ecdsa-2019/v1"
  ],
  "id": "did:plc:brthxhhoomvrib2avauses35",
  "alsoKnownAs": [
    "at://jake.example.com"
  ],
  "verificationMethod": [
    {
      "id": "did:plc:brthxhhoomvrib2avauses35#atproto",
      "type": "Multikey",
      "controller": "did:plc:brthxhhoomvrib2avauses35",
      "publicKeyMultibase": "zQ3shV9QNX7FEXYyRtMqgxHQ2LsqPU4NhJX6UZUZ6QMxy1FjX"
    },
    {
      "id": "did:plc:brthxhhoomvrib2avauses35#atproto_kem",
      "type": "Multikey",
      "controller": "did:plc:brthxhhoomvrib2avauses35",
      "publicKeyMultibase": "zDnaehVhdn1N89vzNfh2ez4QyqL6tuk6QY49jR85CLYnrUkAn"
    }
  ],
  "service": [
    {
      "id": "#atproto_pds",
      "type": "AtprotoPersonalDataServer",
      "serviceEndpoint": "https://pds-b.example.com"
    }
  ]
}
```

Signed genesis operation:

<a id="code-f-10"></a>

```json
{
  "type": "plc_operation",
  "rotationKeys": [
    "did:key:zQ3shQuSUsNpucKZdbVmTnw2fdnzj4M3PoNZ2LXEoj3hFsnVc"
  ],
  "verificationMethods": {
    "atproto": "did:key:zQ3shV9QNX7FEXYyRtMqgxHQ2LsqPU4NhJX6UZUZ6QMxy1FjX",
    "atproto_kem": "did:key:zDnaehVhdn1N89vzNfh2ez4QyqL6tuk6QY49jR85CLYnrUkAn"
  },
  "alsoKnownAs": [
    "at://jake.example.com"
  ],
  "services": {
    "atproto_pds": {
      "type": "AtprotoPersonalDataServer",
      "endpoint": "https://pds-b.example.com"
    }
  },
  "prev": null,
  "sig": "U1jzcI_AG-af2WivluvNF-OWIAQqjgzVj8a57lr7g01kQ83hhhfXh_7-9Fe9T2SlRHpDX2E6pvn7qrIkS_8Z2A"
}
```

<a id="erin"></a>

## F.6 Erin

Erin’s identity is a `did:web` with no PDS account, so her document is served at `https://erin.example/.well-known/did.json` and names no services. [Chapter 6](https://atproto.how/atproto-spaces-field-guide/6-access-control.md#identities-without-an-account) uses her to show an identity reading a space with a delegation token it signs itself. Her credential key is the P-256 key her space credential is bound to.

<a id="table-f-7"></a>

**Table F.7.** Erin’s keys

| Key | Type | Private key | Public key |
| --- | --- | --- | --- |
| `#atproto` | K-256 | `z3vLm5xczeGnwY8V2rrp2owhBUCerinCkryK2GwA343h5AzV` | `did:key:zQ3shvWu4gufp9Qp4fCXSRtKdvBeX6nGVEjkvYuE2s3pYgAtz` |
| Credential key | P-256 | `z42txN6maM9D6qsfrrFhxZ54pfAovoTRuEoq3kaPP1Wz8AuN` | `did:key:zDnaerESMGLw8NRXkwfGkQvpQ9u2R26RMXChzjkUbp9M1K7iw` |

<a id="code-f-11"></a>

```json
{
  "@context": [
    "https://www.w3.org/ns/did/v1",
    "https://w3id.org/security/multikey/v1",
    "https://w3id.org/security/suites/secp256k1-2019/v1"
  ],
  "id": "did:web:erin.example",
  "alsoKnownAs": [
    "at://erin.example"
  ],
  "verificationMethod": [
    {
      "id": "did:web:erin.example#atproto",
      "type": "Multikey",
      "controller": "did:web:erin.example",
      "publicKeyMultibase": "zQ3shvWu4gufp9Qp4fCXSRtKdvBeX6nGVEjkvYuE2s3pYgAtz"
    }
  ]
}
```

<a id="the-managing-app"></a>

## F.7 The managing app

The managedspace example names `did:web:newsletter.example#newsletter_app` as its `managingApp`. It is a `did:web` identity, so its document is served at `https://newsletter.example/.well-known/did.json`. The spec fixes only the `did#serviceId` reference, so the service type here is illustrative.

<a id="table-f-8"></a>

**Table F.8.** The managing app’s key

| Key | Type | Private key | Public key |
| --- | --- | --- | --- |
| `#atproto` | K-256 | `z3vLiTruhHZscwSy1SS8WZ5ZV2GzAPkKCCzBvwfDEiYtBbUT` | `did:key:zQ3shhtKcZp4cAVPUPynLP7qZf5wQhEMXbY13fEsfoT3JtZqE` |

<a id="code-f-12"></a>

```json
{
  "@context": [
    "https://www.w3.org/ns/did/v1",
    "https://w3id.org/security/multikey/v1",
    "https://w3id.org/security/suites/secp256k1-2019/v1"
  ],
  "id": "did:web:newsletter.example",
  "verificationMethod": [
    {
      "id": "did:web:newsletter.example#atproto",
      "type": "Multikey",
      "controller": "did:web:newsletter.example",
      "publicKeyMultibase": "zQ3shhtKcZp4cAVPUPynLP7qZf5wQhEMXbY13fEsfoT3JtZqE"
    }
  ],
  "service": [
    {
      "id": "#newsletter_app",
      "type": "AtprotoManagedSpaceApp",
      "serviceEndpoint": "https://newsletter.example"
    }
  ]
}
```

<a id="the-family-app"></a>

## F.8 The family app

The family app signs its client attestations with an ES256 key published in its client metadata, under `kid` `key-1`.

<a id="table-f-9"></a>

**Table F.9.** The family app’s client key

| Key | Type | Private key | Public key |
| --- | --- | --- | --- |
| Client attestation key, `key-1` | P-256 | `z42tuwr2CJijDjeAGXJ8woV2kwPuJrMKc4b9rxGo3zKaivKC` | `did:key:zDnaeR2kuaWh2w7c4fhAzdDeeACMs2wpCPoV9hVj1thrmaNGp` |

The same key as a private JWK:

<a id="code-f-13"></a>

```json
{
  "kty": "EC",
  "crv": "P-256",
  "x": "COmaVfdUzj6QHwm3ZTZgY8KsbNhtJN12EgFWLsm7_pE",
  "y": "G36xIW2qad2tMbOE8zj-pSq39311l313hbZbcAPTxKw",
  "d": "szP7wc1M4WX3Fdb_md_ADuF5fUUsVLLO2Kv5-oQnsos",
  "kid": "key-1",
  "alg": "ES256",
  "use": "sig"
}
```

Its client metadata, at `https://family.example/client-metadata.json`, publishes the public half:

<a id="code-f-14"></a>

```json
{
  "client_id": "https://family.example/client-metadata.json",
  "client_name": "Family",
  "client_uri": "https://family.example",
  "application_type": "web",
  "grant_types": [
    "authorization_code",
    "refresh_token"
  ],
  "response_types": [
    "code"
  ],
  "redirect_uris": [
    "https://family.example/oauth/callback"
  ],
  "scope": "atproto space:com.example.familyUpdates?authority=* space:com.example.familyUpdates?manage=create&manage=update blob:image/*",
  "token_endpoint_auth_method": "private_key_jwt",
  "token_endpoint_auth_signing_alg": "ES256",
  "dpop_bound_access_tokens": true,
  "jwks": {
    "keys": [
      {
        "kty": "EC",
        "crv": "P-256",
        "x": "COmaVfdUzj6QHwm3ZTZgY8KsbNhtJN12EgFWLsm7_pE",
        "y": "G36xIW2qad2tMbOE8zj-pSq39311l313hbZbcAPTxKw",
        "kid": "key-1",
        "alg": "ES256",
        "use": "sig"
      }
    ]
  }
}
```

As a syncer, the app also holds credential keys, which `authorizeSpaceSync` binds as `credentialKey` and which sign every request presenting the credential, and an ephemeral KEM key whose `did:key` is the `keyid` of a MAC request. Real syncers make a new ephemeral key for every request; the examples use this one so their values can be reproduced.

<a id="table-f-10"></a>

**Table F.10.** The family app’s syncer keys

| Key | Type | Private key | Public key |
| --- | --- | --- | --- |
| Credential key, authorization through Elena’s session | P-256 | `z42trsj4FFwSja7KNi4gmPVajBmeANteHPFitcWX79bT5Bmk` | `did:key:zDnaeyJrXggfgfsMLx91wQDoHqk5rMmGtE4nkXGG3x5Xzs1rn` |
| Credential key, authorization through Jake’s session | P-256 | `z42toDGPtYaHhofXZwdxCJuzr48RfsA84xXBXA1WN8JXqcGi` | `did:key:zDnaepyARB3jVLncHov8c5rxMEBtkdQwE6xfaXmWUNzKHtw1x` |
| Ephemeral KEM key | P-256 | `z42tj5gMgfCRAzEGTszobvjz8QaxKcFz2ACw2MY13FB6qBh3` | `did:key:zDnaenqFhbY4sffBMz5ZatBohkr8LNNAe1pWTmG6C88rMc477` |

The app registers for notifications at `https://family.example`. Its notify token for the family space is the base64url HMAC-SHA256 of the space URI, keyed by the 32 bytes of an app secret.

<a id="table-f-11"></a>

**Table F.11.** The family app’s notification settings

| Setting | Value |
| --- | --- |
| Notify secret | `3514c7e82b3a2e90772a496a8fde3406a0b60279891ed3d2dbfdbb6194b75b80` |
| Notify token | `xIFHpilmY0Wlfxq62sqovyfp66i08zazz2dgpsT_38E` |

For OAuth, the app binds each session’s access tokens to a DPoP key and signs a DPoP proof with it on every request. Real apps make a new DPoP key for each session; these five are fixed so the examples can be reproduced. The `jkt` is the key’s RFC 7638 thumbprint, which the access token carries as `cnf.jkt`.

<a id="table-f-12"></a>

**Table F.12.** The family app’s DPoP keys

| Key | Type | Private key | Public key | `jkt` |
| --- | --- | --- | --- | --- |
| DPoP key, Marcus’s session | P-256 | `z42tkZ7DxxksEvA3DDgeGNARHXMfx6MmQjur18KwiRZWEkL2` | `did:key:zDnaeYN2ihXVw5D3PSpcogqGGdRihGCxrTViNP38Wk1dPoDD5` | `2Aa6wePvzKvQRC05Prf02qcTddiDPE156T5t48ppcak` |
| DPoP key, Elena’s session | P-256 | `z42tzeqcjvjekYFJtsrQ85ou6CA8hV8KMHTG3Xtgq7KucAiG` | `did:key:zDnaegjsHj1GQBUmPuBcJPZjKPVDaeyPVVrbGP8fq1VEFor5w` | `bLStvuegh8iSNaDvxKEvVRWMmTfIB_rWiyR6XxmDUlg` |
| DPoP key, Ruth’s session | P-256 | `z42tjHp7DDLVZJJTHHjC3u7KfFoGw55CFnqxPvsiX9NYZoPS` | `did:key:zDnaecShktUyk9u9sgVEvLQWH427TzfFSbjrCoL88SF9gBh2S` | `_saM04WcMq9e2H9REzOldNOnjksltWEMBSdn9f8BWO0` |
| DPoP key, Nora’s session | P-256 | `z42tpNtJuehD64TtCqwydctzABXbn2d4js9877LypLJBiqk5` | `did:key:zDnaeVx9oDH8HWE2xiSBQajbg3pzPPtmMmLGGStJqJC8ATZDq` | `-RDp8F5NcGr6rK-nFzp2YmrN5NgmBSgszO0Zw53SzBY` |
| DPoP key, Jake’s session | P-256 | `z42txz64hK4ZR3TZk7Ne4KSGiABUWKh7HMfVTPSBJkbJG6Ny` | `did:key:zDnaecbB8WRUevzafNscSNj8z4mGGfSg8zPuJqCoE8BWQaUQE` | `jS04uaJmFpHjcgOZGSfM05u3nOMM5ePlwdCriHd-Zhg` |

The same keys as private JWKs, in the same order:

<a id="code-f-15"></a>

```json
{
  "kty": "EC",
  "crv": "P-256",
  "x": "ddtTbllFr3qROgtUOrIp7XI8Ix8RVFVx1Qf1JVpm2_w",
  "y": "aZhmESA3LSdjidIUmA1U6HcBP35RoWf3cvtHfkxtUSY",
  "d": "J6eh6rQ_DgnxOxSVbuDchycL1SyvrYUlPjNgoKigtrM"
}
```

<a id="code-f-16"></a>

```json
{
  "kty": "EC",
  "crv": "P-256",
  "x": "8lDvl35BUkpVY4UdECy4rbbkkc8JCt-RC92LrX13fzI",
  "y": "02AL1e4xcocPvFZ9w1teKY8hKt1CpAtdACacmkd0mrg",
  "d": "-SMWSTOTZU66FTvX3IOhj7CgP2LmU6fw8Qh-vDsjChU"
}
```

<a id="code-f-17"></a>

```json
{
  "kty": "EC",
  "crv": "P-256",
  "x": "snyJdgjOVLSQxH76MkMxskPpWIJPQcelRaj8mvfghPM",
  "y": "mrbJXlc9oNNUsemf51C2n6Tfy1a2U8VFlxgc90lQM3g",
  "d": "FODhOeYjtauf8aTgyh87XXqCEZUeQSOP_Y7AUr8e350"
}
```

<a id="code-f-18"></a>

```json
{
  "kty": "EC",
  "crv": "P-256",
  "x": "UgYD-j0pgwtCZ9Y6ktVIfQaAOBLvyqElTcR-Vkuwgag",
  "y": "g7Wb-GnjAXDgsSwWHLqV7ojb5BbG4AeJ0NINkOd9_bI",
  "d": "YHf4JSSvDvYIjW7wbfXtB1EIXcxeFCnUOekgHxDWBWo"
}
```

<a id="code-f-19"></a>

```json
{
  "kty": "EC",
  "crv": "P-256",
  "x": "tKgiR0Oy5eC1yim9_3o3ryhf9zzw1ROyexdYllL3o8c",
  "y": "Bin6n3KryPiMySG4WOUNaOmJStJFuMttCgo-ABR0ZDo",
  "d": "4FoVnBP9IppzVMzhU0pUBspXgkFGRR5Law6LOScMJ5Y"
}
```

<a id="the-repo-hosts"></a>

## F.9 The repo hosts

Marcus and Elena have their accounts on `pds-a.example.com`, and Ruth, Nora, and Jake have theirs on `pds-b.example.com`. Each host is also the OAuth authorization server for its accounts.

<a id="table-f-13"></a>

**Table F.13.** The repo hosts' settings

| Setting | `pds-a` | `pds-b` |
| --- | --- | --- |
| Issuer | `https://pds-a.example.com` | `https://pds-b.example.com` |
| Service DID, the access token `aud` | `did:web:pds-a.example.com` | `did:web:pds-b.example.com` |
| JWT secret | `ae7a49de5c93efd16a91304ed7bfb65d3abedb00c67edfb59d0ece42429e8887` | `767c4e1be9268ca6efd839b4497da3352365130d5aba948d9fb8aa66a714e642` |
| DPoP nonce secret | `f7fb075a969b2196ab50887ce2e826bd4f334bf6fa748612617d5f3afe24610f` | `ab7c1d4f7f9c6d2a86e60a153c081abcf9c039dd5fa067c832adb1081e5dff69` |
| Nonce rotation | 60 seconds | 60 seconds |

The host signs access tokens with HS256, keyed by the JWT secret’s text as UTF-8 bytes, which is how the reference PDS uses its `PDS_JWT_SECRET`. Access tokens are opaque to clients, so another host may use a different format.

A DPoP nonce is the base64url HMAC-SHA256, keyed by the 32 bytes of the nonce secret, of the rotation counter as a big-endian 64-bit integer. The counter is the Unix time in milliseconds divided by 60,000, rounded down. The host sends the next counter’s nonce in `DPoP-Nonce` and accepts the previous, current, and next ones.
