# app.brightblur.face.defs

- Kind: defs
- Authority: face.brightblur.app
- Lexicon: 1
- Published by [joeinn.es](https://lexicon.garden/identity/did:plc:me4kozmcrc74z2wgkvqvkbfd), the NSID's authority

## Links

- [Documentation](https://lexicon.garden/lexicon/did:plc:me4kozmcrc74z2wgkvqvkbfd/app.brightblur.face.defs)
- [Schema JSON](https://lexicon.garden/lexicon/did:plc:me4kozmcrc74z2wgkvqvkbfd/app.brightblur.face.defs/schema.json)
- [Analytics](https://lexicon.garden/lexicon/did:plc:me4kozmcrc74z2wgkvqvkbfd/app.brightblur.face.defs/analytics)

## #setHeaderFace (`app.brightblur.face.defs#setHeaderFace`)

Type: object

One face of a share set's header.

### Properties

- `generation` (integer, required)
  - Constraints: minimum: 0, maximum: 4294967295
- `profileId` (bytes, required): The profile's id: the SHA-256 of its generation-0 manager list.
  - Constraints: minLength: 32, maxLength: 32
- `shareCount` (integer, required)
  - Constraints: minimum: 1, maximum: 4294967295

## #withdrawal (`app.brightblur.face.defs#withdrawal`)

Type: object

A manager's signed withdrawal of one slice for one profile, at a manager-list generation.

### Properties

- `generation` (integer, required)
  - Constraints: minimum: 0, maximum: 4294967295
- `managerId` (string · did, required)
- `profileId` (bytes, required): The profile's id: the SHA-256 of its generation-0 manager list.
  - Constraints: minLength: 32, maxLength: 32
- `signature` (bytes, required)
  - Constraints: minLength: 64, maxLength: 64
- `sliceBinding` (bytes, required): The slice binding: entity id (16) ‖ payload context (16) ‖ SHA-256 of the plaintext base (32).
  - Constraints: minLength: 64, maxLength: 64

## Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "setHeaderFace": {
      "description": "One face of a share set's header.",
      "properties": {
        "generation": {
          "maximum": 4294967295,
          "minimum": 0,
          "type": "integer"
        },
        "profileId": {
          "description": "The profile's id: the SHA-256 of its generation-0 manager list.",
          "maxLength": 32,
          "minLength": 32,
          "type": "bytes"
        },
        "shareCount": {
          "maximum": 4294967295,
          "minimum": 1,
          "type": "integer"
        }
      },
      "required": [
        "profileId",
        "generation",
        "shareCount"
      ],
      "type": "object"
    },
    "withdrawal": {
      "description": "A manager's signed withdrawal of one slice for one profile, at a manager-list generation.",
      "properties": {
        "generation": {
          "maximum": 4294967295,
          "minimum": 0,
          "type": "integer"
        },
        "managerId": {
          "format": "did",
          "type": "string"
        },
        "profileId": {
          "description": "The profile's id: the SHA-256 of its generation-0 manager list.",
          "maxLength": 32,
          "minLength": 32,
          "type": "bytes"
        },
        "signature": {
          "maxLength": 64,
          "minLength": 64,
          "type": "bytes"
        },
        "sliceBinding": {
          "description": "The slice binding: entity id (16) ‖ payload context (16) ‖ SHA-256 of the plaintext base (32).",
          "maxLength": 64,
          "minLength": 64,
          "type": "bytes"
        }
      },
      "required": [
        "sliceBinding",
        "profileId",
        "generation",
        "managerId",
        "signature"
      ],
      "type": "object"
    }
  },
  "id": "app.brightblur.face.defs",
  "lexicon": 1
}
```
