OpaqueTimestampOptions
OpaqueTimestampOptions =
object
Defined in: src/codecs/opaque/index.ts:27
Configuration options for an Opaque Timestamp codec instance.
Properties
Section titled “Properties”allowDuplicateBrand?
Section titled “allowDuplicateBrand?”
optionalallowDuplicateBrand?: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.
optionalnow?: () =>number
Defined in: src/codecs/opaque/index.ts:38
Returns the current timestamp in milliseconds. Defaults to Date.now.
Returns
Section titled “Returns”number
optionalrng?: (target) =>void
Defined in: src/codecs/opaque/index.ts:40
Writes random bytes into target for ID generation. Defaults to crypto.getRandomValues.
Parameters
Section titled “Parameters”target
Section titled “target”Uint8Array
Returns
Section titled “Returns”void