toip.tools

interface · Browser and Node

InceptOptions

@toip-tools/eventlogView source
TypeScriptImport
import { type InceptOptions } from "@toip-tools/eventlog";

Declaration

TypeScriptinterface
interface InceptOptions {
  /** Current keys. */
  hot: Signer[];
  /** The rotation seed side. Optional when `next` is given. */
  cold?: ColdKeys;
  /** How many next keys to derive from `cold`. Default: as many as `hot`. */
  nextCount?: number;
  /** Next-key digests held by someone else, such as the agent's principal. Added after the cold ones. (Additive.) */
  extraNext?: Qb64[];
  /** All next-key digests, replacing cold and extraNext. (Additive.) */
  next?: Qb64[];
  kt?: number;
  nt?: number;
  witnesses?: Qb64[];
  bt?: number;
  anchors?: Seal[];
  /** A small data object put in the inception's `a`, such as a device's messaging DID and key class. (Additive.) */
  data?: Record<string, string | number | boolean>;
  /** Signs a DID binding with this identity and seals it in an ixn right after inception. (Additive.) */
  bind?: Identity;
  /** Configuration traits: [] or ["DND"]. */
  traits?: string[];
  checkpoint?: { everyEntries?: number; everyMs?: number };
  store: LogStore;
  clock: Clock;
  /** Signature options used when the controller checks its own log. */
  verify?: SigOptions;
}

Properties

hotrequired
Signer[]

Current keys.

coldoptional
ColdKeys | undefined

The rotation seed side. Optional when next is given.

nextCountoptional
number | undefined

How many next keys to derive from cold. Default: as many as hot.

extraNextoptional
string[] | undefined

Next-key digests held by someone else, such as the agent's principal. Added after the cold ones. (Additive.)

nextoptional
string[] | undefined

All next-key digests, replacing cold and extraNext. (Additive.)

ktoptional
number | undefined
ntoptional
number | undefined
witnessesoptional
string[] | undefined
btoptional
number | undefined
anchorsoptional
Seal[] | undefined
dataoptional
Record<string, string | number | boolean> | undefined

A small data object put in the inception's a, such as a device's messaging DID and key class. (Additive.)

bindoptional
Identity | undefined

Signs a DID binding with this identity and seals it in an ixn right after inception. (Additive.)

traitsoptional
string[] | undefined

Configuration traits: [] or ["DND"].

checkpointoptional
{ everyEntries?: number; everyMs?: number; } | undefined
storerequired
LogStore
clockrequired
Clock
verifyoptional
SigOptions | undefined

Signature options used when the controller checks its own log.