Skip to content

OpaqueTimestampOptions

OpaqueTimestampOptions = object

Defined in: src/codecs/opaque/index.ts:27

Configuration options for an Opaque Timestamp codec instance.

optional allowDuplicateBrand?: boolean

Defined in: src/codecs/opaque/index.ts:42

If true, silences the duplicate-brand warning in non-production environments.


key: OpaqueKey

Defined in: src/codecs/opaque/index.ts:36

OpaqueKey handle for AES-CBC encryption and decryption. Obtain via importOpaqueKey.

A single key, not a ring: rotation is forward-only and caller-tracked — hold one codec per key epoch and select it from your own records. The library cannot trial keys (the payload is unauthenticated). See ADR-0013.


optional now?: () => number

Defined in: src/codecs/opaque/index.ts:38

Returns the current timestamp in milliseconds. Defaults to Date.now.

number


optional rng?: (target) => void

Defined in: src/codecs/opaque/index.ts:40

Writes random bytes into target for ID generation. Defaults to crypto.getRandomValues.

Uint8Array

void