toip.tools

interface · Browser and Node

VerifyOptions

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

Declaration

TypeScriptinterface
interface VerifyOptions extends SigOptions {
  /** Don't require witness receipts (a controller checking its own log). */
  allowUnwitnessed?: boolean;
  /** Compare with this store's first-seen copies. */
  firstSeen?: LogStore;
  clock?: Clock;
}

Properties

allowUnwitnessedoptional
boolean | undefined

Don't require witness receipts (a controller checking its own log).

firstSeenoptional
LogStore | undefined

Compare with this store's first-seen copies.

clockoptional
Clock | undefined
verifySigoptional
((input: { key: Qb64; message: Uint8Array; sig: IndexedSig; }) => Promise<boolean | undefined> | boolean | undefined) | undefined

A pluggable verifier, tried first. Return undefined to fall back to the built-in checks.

webauthnoptional
false | WebAuthnPolicy | undefined

How to check WebAuthn-wrapped signatures. false rejects them.