interface · Browser and Node

# RotateOptions

`@toip-tools/eventlog` · [View source](https://github.com/yourbuddyconner/toip-tools/blob/main/packages/eventlog/src/controller.ts#L44)

Import:

```ts
import { type RotateOptions } from "@toip-tools/eventlog";
```

## Declaration

interface:

```ts
interface RotateOptions {
  kt?: number;
  nt?: number;
  nextCount?: number;
  /** Next-key digests held elsewhere, added after the cold ones. (Additive.) */
  extraNext?: Qb64[];
  /** All new next-key digests. Empty abandons the AID. (Additive.) */
  next?: Qb64[];
  addWitnesses?: Qb64[];
  removeWitnesses?: Qb64[];
  bt?: number;
  anchors?: Seal[];
  /** Recovery: seal these trails at these s, not at their heads. */
  cutAfter?: Record<Qb64, number>;
  /** Recovery: place the rot at this KEL sn, superseding ixns. */
  supersede?: number;
  /** Signers of prior next keys held elsewhere (custody patterns). They become the new current keys. */
  exposed?: Signer[];
  /**
   * More current keys, after the signers, that don't sign this rotation. A principal rotating alone names the agent's new key here,
   * so the agent keeps signing. The signers must still meet the new kt. (Additive.)
   */
  extraKeys?: Qb64[];
}
```

## Properties

**`kt` (optional)**

`number | undefined`

**`nt` (optional)**

`number | undefined`

**`nextCount` (optional)**

`number | undefined`

**`extraNext` (optional)**

`string[] | undefined`

Next-key digests held elsewhere, added after the cold ones. (Additive.)

**`next` (optional)**

`string[] | undefined`

All new next-key digests. Empty abandons the AID. (Additive.)

**`addWitnesses` (optional)**

`string[] | undefined`

**`removeWitnesses` (optional)**

`string[] | undefined`

**`bt` (optional)**

`number | undefined`

**`anchors` (optional)**

`Seal[] | undefined`

**`cutAfter` (optional)**

`Record<string, number> | undefined`

Recovery: seal these trails at these s, not at their heads.

**`supersede` (optional)**

`number | undefined`

Recovery: place the rot at this KEL sn, superseding ixns.

**`exposed` (optional)**

`Signer[] | undefined`

Signers of prior next keys held elsewhere (custody patterns). They become the new current keys.

**`extraKeys` (optional)**

`string[] | undefined`

More current keys, after the signers, that don't sign this rotation. A principal rotating alone names the agent's new key here, so the agent keeps signing. The signers must still meet the new kt. (Additive.)

[Usage guide](https://toip.tools/toolkit/eventlog/#usage) · [Error handling](https://toip.tools/toolkit/eventlog/#errors) · [All exports](https://toip.tools/toolkit/eventlog/api/)

---

This is the Markdown version of https://toip.tools/toolkit/eventlog/api/RotateOptions/. An index of the documentation for AI assistants is at https://toip.tools/llms.txt.
