AT Protocol spaces are in development. Expect changes throughout the beta starting on December 1st, 2026.

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.

Table F.1 · Example identities#
  1. Marcus Space authority for the family space

    DID
    did:plc:ejjl2znzqp3ci25dqaslpkk2
    Handle
    marcus.example.com
    PDS
    https://pds-a.example.com
  2. Elena Member and writer

    DID
    did:plc:53ni6w7okqrxvjxezmopejoo
    Handle
    elena.example.com
    PDS
    https://pds-a.example.com
  3. Ruth Member and writer on a second repo host

    DID
    did:plc:p4256dosynj6j6tkypz2q2l3
    Handle
    ruth.example.com
    PDS
    https://pds-b.example.com
  4. Nora Member and writer

    DID
    did:plc:ashwgt3d5ntfxmlcfyizpu2g
    Handle
    nora.example.com
    PDS
    https://pds-b.example.com
  5. Jake Removed member, author of the labeled bookmark

    DID
    did:plc:brthxhhoomvrib2avauses35
    Handle
    jake.example.com
    PDS
    https://pds-b.example.com
  6. Erin Read-only member with no account

    DID
    did:web:erin.example
    Handle
    erin.example
    PDS
    none
  7. Managing app Managing app for the managedspace example, service #newsletter_app

    DID
    did:web:newsletter.example
    Handle
    none
    PDS
    none
  8. Family app OAuth client and syncer

    DID
    https://family.example/client-metadata.json
    Handle
    none
    PDS
    none

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.

Marcus#

Table F.2 · Marcus’s keys#
  1. #atproto K-256

    Private
    z3vLbPcG9hWAWGjzA3HGDjuaaggcNZdDbH44rWmnCWMS1DNJ
    Public
    did:key:zQ3sha4dxQwxufYojiGeueDiyHcEFjYjPDVaNWoUD9UJbJRfG
  2. #atproto_kem P-256

    Private
    z42tqfEFoheNLvyMjabEiYLfFJnwEn2MN12eybBWU9qwxtM6
    Public
    did:key:zDnaethu4zDP2t6nmJuTrZGSnc4VoDUmaG3NfqziTmsExNC8f
  3. Rotation K-256

    Private
    z3vLgGL5a3JegMMUxx8GCNCw5rWyhcFq86Rwtw2nQQTtfn4X
    Public
    did:key:zQ3shbtBdtYs7b3NBfApyRebCCmg8nT1mL3E8A5KAyXREE3bS

DID document for did:plc:ejjl2znzqp3ci25dqaslpkk2:

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:

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

Elena#

Table F.3 · Elena’s keys#
  1. #atproto K-256

    Private
    z3vLWq25XWqSdkR5bWYZMy2nmXijMLDxAy4L24QVA5p1Ap9c
    Public
    did:key:zQ3shPWwfJKjriJqb4CsR7KBBHkaffnpZin5NCyAYJzztnuRV
  2. #atproto_kem P-256

    Private
    z42ts5ZyDd6kG1fUTNtQJDjgyygVGigU2nwRqdHgVoMJrpK3
    Public
    did:key:zDnaeueFwjSjPA49dvab7bN4VjYDvv7eBVsDSjncdQHsud125
  3. Rotation K-256

    Private
    z3vLgyyN9LGHhkntCvaEArxvdfkEJYkAMyE2vsUZDctXTFo6
    Public
    did:key:zQ3shiEHng2LXQA12HNn54XzBTquzZprwYjCTKu1ySPh71N6r

DID document for did:plc:53ni6w7okqrxvjxezmopejoo:

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:

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

Ruth#

Table F.4 · Ruth’s keys#
  1. #atproto K-256

    Private
    z3vLhSfej1aqiMWBvhjyjTuXM3L7QvFh2J4DKhAcPxtAmAd3
    Public
    did:key:zQ3shtrHbFC5PwLhynynQQQftQcnZeUJ79kx2PvLacgJ5NpLq
  2. #atproto_kem P-256

    Private
    z42tzGEBNL7iDdZLbfZuPyrUr8XFAsrdzhpZimyUwmHZkirZ
    Public
    did:key:zDnaefddyQ4HYrC15kpiBjhAmUcmm6wVqDqNSFWatYRUiHaxy
  3. Rotation K-256

    Private
    z3vLVMBwrNZXbuPf6ji4zUEZcHH7rFUk5ZwZqu2Ed7kJNgFt
    Public
    did:key:zQ3shj6RvpC1UQdemwpNLbEUbUd1Bo7Nfm4gUGzyqpfpe27jt

DID document for did:plc:p4256dosynj6j6tkypz2q2l3:

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:

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

Nora#

Table F.5 · Nora’s keys#
  1. #atproto K-256

    Private
    z3vLjrQAHLD4mz7Qp4huAh9zmcu9KnJsePE992XCpU3Vzzw9
    Public
    did:key:zQ3shXqjG1uHZHmwtPA1sQzqVJB3J7r1FHJNTPPLHNdwkdMei
  2. #atproto_kem P-256

    Private
    z42tkHewqpP6Uec4E4Y4ZqUcotouSc5LqCDYD6SDXz38j8MU
    Public
    did:key:zDnaefZoqiT1a5Z5yQdogzNncMBp9VeNKybzCtHY5aDFZ1AAS
  3. Rotation K-256

    Private
    z3vLWJ9Skm5WhA6ZQhMKmgSi5JBAEeSv6JzVxdHLaigifC2T
    Public
    did:key:zQ3shbAyeCwQBgG2T67tkwA4aifdPyA6BCdArGHm35eNeL3TH

DID document for did:plc:ashwgt3d5ntfxmlcfyizpu2g:

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:

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

Jake#

Table F.6 · Jake’s keys#
  1. #atproto K-256

    Private
    z3vLaKimzb4aMSMGyQzFNLqQwmSHgme7z8gL4NJCcwzr7G4m
    Public
    did:key:zQ3shV9QNX7FEXYyRtMqgxHQ2LsqPU4NhJX6UZUZ6QMxy1FjX
  2. #atproto_kem P-256

    Private
    z42tkUDumnF9QyqtjqXsoU7GtSQF1D5tWgSzFL1UUnjkX4GF
    Public
    did:key:zDnaehVhdn1N89vzNfh2ez4QyqL6tuk6QY49jR85CLYnrUkAn
  3. Rotation K-256

    Private
    z3vLhqMrdmALa6heueBHHKv2p2JcyYEaQrA7cdryntwqFLFz
    Public
    did:key:zQ3shQuSUsNpucKZdbVmTnw2fdnzj4M3PoNZ2LXEoj3hFsnVc

DID document for did:plc:brthxhhoomvrib2avauses35:

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:

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

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 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.

Table F.7 · Erin’s keys#
  1. #atproto K-256

    Private
    z3vLm5xczeGnwY8V2rrp2owhBUCerinCkryK2GwA343h5AzV
    Public
    did:key:zQ3shvWu4gufp9Qp4fCXSRtKdvBeX6nGVEjkvYuE2s3pYgAtz
  2. Credential key P-256

    Private
    z42txN6maM9D6qsfrrFhxZ54pfAovoTRuEoq3kaPP1Wz8AuN
    Public
    did:key:zDnaerESMGLw8NRXkwfGkQvpQ9u2R26RMXChzjkUbp9M1K7iw
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"
    }
  ]
}

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.

Table F.8 · The managing app’s key#
  1. #atproto K-256

    Private
    z3vLiTruhHZscwSy1SS8WZ5ZV2GzAPkKCCzBvwfDEiYtBbUT
    Public
    did:key:zQ3shhtKcZp4cAVPUPynLP7qZf5wQhEMXbY13fEsfoT3JtZqE
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"
    }
  ]
}

The family app#

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

Table F.9 · The family app’s client key#
  1. Client attestation key, key-1 P-256

    Private
    z42tuwr2CJijDjeAGXJ8woV2kwPuJrMKc4b9rxGo3zKaivKC
    Public
    did:key:zDnaeR2kuaWh2w7c4fhAzdDeeACMs2wpCPoV9hVj1thrmaNGp

The same key as a private JWK:

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:

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.

Table F.10 · The family app’s syncer keys#
  1. Credential key, authorization through Elena’s session P-256

    Private
    z42trsj4FFwSja7KNi4gmPVajBmeANteHPFitcWX79bT5Bmk
    Public
    did:key:zDnaeyJrXggfgfsMLx91wQDoHqk5rMmGtE4nkXGG3x5Xzs1rn
  2. Credential key, authorization through Jake’s session P-256

    Private
    z42toDGPtYaHhofXZwdxCJuzr48RfsA84xXBXA1WN8JXqcGi
    Public
    did:key:zDnaepyARB3jVLncHov8c5rxMEBtkdQwE6xfaXmWUNzKHtw1x
  3. Ephemeral KEM key P-256

    Private
    z42tj5gMgfCRAzEGTszobvjz8QaxKcFz2ACw2MY13FB6qBh3
    Public
    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.

Table F.11 · The family app’s notification settings#
  1. Notify secret

    Value
    3514c7e82b3a2e90772a496a8fde3406a0b60279891ed3d2dbfdbb6194b75b80
  2. Notify token

    Value
    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.

Table F.12 · The family app’s DPoP keys#
  1. DPoP key, Marcus’s session P-256

    Private
    z42tkZ7DxxksEvA3DDgeGNARHXMfx6MmQjur18KwiRZWEkL2
    Public
    did:key:zDnaeYN2ihXVw5D3PSpcogqGGdRihGCxrTViNP38Wk1dPoDD5
    JKT
    2Aa6wePvzKvQRC05Prf02qcTddiDPE156T5t48ppcak
  2. DPoP key, Elena’s session P-256

    Private
    z42tzeqcjvjekYFJtsrQ85ou6CA8hV8KMHTG3Xtgq7KucAiG
    Public
    did:key:zDnaegjsHj1GQBUmPuBcJPZjKPVDaeyPVVrbGP8fq1VEFor5w
    JKT
    bLStvuegh8iSNaDvxKEvVRWMmTfIB_rWiyR6XxmDUlg
  3. DPoP key, Ruth’s session P-256

    Private
    z42tjHp7DDLVZJJTHHjC3u7KfFoGw55CFnqxPvsiX9NYZoPS
    Public
    did:key:zDnaecShktUyk9u9sgVEvLQWH427TzfFSbjrCoL88SF9gBh2S
    JKT
    _saM04WcMq9e2H9REzOldNOnjksltWEMBSdn9f8BWO0
  4. DPoP key, Nora’s session P-256

    Private
    z42tpNtJuehD64TtCqwydctzABXbn2d4js9877LypLJBiqk5
    Public
    did:key:zDnaeVx9oDH8HWE2xiSBQajbg3pzPPtmMmLGGStJqJC8ATZDq
    JKT
    -RDp8F5NcGr6rK-nFzp2YmrN5NgmBSgszO0Zw53SzBY
  5. DPoP key, Jake’s session P-256

    Private
    z42txz64hK4ZR3TZk7Ne4KSGiABUWKh7HMfVTPSBJkbJG6Ny
    Public
    did:key:zDnaecbB8WRUevzafNscSNj8z4mGGfSg8zPuJqCoE8BWQaUQE
    JKT
    jS04uaJmFpHjcgOZGSfM05u3nOMM5ePlwdCriHd-Zhg

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

JSON#
{
  "kty": "EC",
  "crv": "P-256",
  "x": "ddtTbllFr3qROgtUOrIp7XI8Ix8RVFVx1Qf1JVpm2_w",
  "y": "aZhmESA3LSdjidIUmA1U6HcBP35RoWf3cvtHfkxtUSY",
  "d": "J6eh6rQ_DgnxOxSVbuDchycL1SyvrYUlPjNgoKigtrM"
}
JSON#
{
  "kty": "EC",
  "crv": "P-256",
  "x": "8lDvl35BUkpVY4UdECy4rbbkkc8JCt-RC92LrX13fzI",
  "y": "02AL1e4xcocPvFZ9w1teKY8hKt1CpAtdACacmkd0mrg",
  "d": "-SMWSTOTZU66FTvX3IOhj7CgP2LmU6fw8Qh-vDsjChU"
}
JSON#
{
  "kty": "EC",
  "crv": "P-256",
  "x": "snyJdgjOVLSQxH76MkMxskPpWIJPQcelRaj8mvfghPM",
  "y": "mrbJXlc9oNNUsemf51C2n6Tfy1a2U8VFlxgc90lQM3g",
  "d": "FODhOeYjtauf8aTgyh87XXqCEZUeQSOP_Y7AUr8e350"
}
JSON#
{
  "kty": "EC",
  "crv": "P-256",
  "x": "UgYD-j0pgwtCZ9Y6ktVIfQaAOBLvyqElTcR-Vkuwgag",
  "y": "g7Wb-GnjAXDgsSwWHLqV7ojb5BbG4AeJ0NINkOd9_bI",
  "d": "YHf4JSSvDvYIjW7wbfXtB1EIXcxeFCnUOekgHxDWBWo"
}
JSON#
{
  "kty": "EC",
  "crv": "P-256",
  "x": "tKgiR0Oy5eC1yim9_3o3ryhf9zzw1ROyexdYllL3o8c",
  "y": "Bin6n3KryPiMySG4WOUNaOmJStJFuMttCgo-ABR0ZDo",
  "d": "4FoVnBP9IppzVMzhU0pUBspXgkFGRR5Law6LOScMJ5Y"
}

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.

Table F.13 · The repo hosts' settings#
  1. Issuer

    PDS-A
    https://pds-a.example.com
    PDS-B
    https://pds-b.example.com
  2. Service DID, the access token aud

    PDS-A
    did:web:pds-a.example.com
    PDS-B
    did:web:pds-b.example.com
  3. JWT secret

    PDS-A
    ae7a49de5c93efd16a91304ed7bfb65d3abedb00c67edfb59d0ece42429e8887
    PDS-B
    767c4e1be9268ca6efd839b4497da3352365130d5aba948d9fb8aa66a714e642
  4. DPoP nonce secret

    PDS-A
    f7fb075a969b2196ab50887ce2e826bd4f334bf6fa748612617d5f3afe24610f
    PDS-B
    ab7c1d4f7f9c6d2a86e60a153c081abcf9c039dd5fa067c832adb1081e5dff69
  5. Nonce rotation

    PDS-A
    60 seconds
    PDS-B
    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.

Appendix F · AT Protocol Spaces: A Field Guide

Search