toip.tools

interface · Browser and Node

RotateOptions

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

Declaration

TypeScriptinterface
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

ktoptional
number | undefined
ntoptional
number | undefined
nextCountoptional
number | undefined
extraNextoptional
string[] | undefined

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

nextoptional
string[] | undefined

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

addWitnessesoptional
string[] | undefined
removeWitnessesoptional
string[] | undefined
btoptional
number | undefined
anchorsoptional
Seal[] | undefined
cutAfteroptional
Record<string, number> | undefined

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

supersedeoptional
number | undefined

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

exposedoptional
Signer[] | undefined

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

extraKeysoptional
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.)