interface LabelerOptions

Options for the LabelerServer class.

Properties

did: string

The DID of the labeler account.

signingKey: string

The private signing key used for the labeler. If you don't have a key, generate and set one using plcSetupLabeler.

auth?: (did: string) => boolean | Promise<boolean>

A function that returns whether a DID is authorized to create labels. By default, only the labeler account is authorized.

dbPath?: string

The path to the SQLite .db database file.

Default: labels.db

dbUrl?: string

The URL of the remote SQLite database. If provided, dbPath is ignored.

dbToken?: string

The authentication token for the remote SQLite database. Required if dbUrl is provided.