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