{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "The account's BrightBlur seed, wrapped under one passkey's PRF output. One record per passkey; the record key is the first 16 bytes of SHA-256(credential id), in hex.",
      "key": "any",
      "record": {
        "properties": {
          "createdAt": {
            "format": "datetime",
            "type": "string"
          },
          "credentialId": {
            "description": "The passkey's WebAuthn credential id.",
            "maxLength": 1023,
            "minLength": 1,
            "type": "bytes"
          },
          "label": {
            "description": "A name the user gave this passkey.",
            "maxLength": 100,
            "type": "string"
          },
          "prfSaltInput": {
            "description": "The PRF salt is SHA-256(\"brightblur:\" + this).",
            "maxLength": 512,
            "type": "string"
          },
          "wrappedSeed": {
            "description": "AES-GCM under a key from the passkey's PRF output.",
            "maxLength": 512,
            "minLength": 1,
            "type": "bytes"
          }
        },
        "required": [
          "credentialId",
          "prfSaltInput",
          "wrappedSeed",
          "createdAt"
        ],
        "type": "object"
      },
      "type": "record"
    }
  },
  "id": "app.brightblur.vault.seed",
  "lexicon": 1
}
