toip.tools

interface · Browser and Node

SigOptions

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

Declaration

TypeScriptinterface
interface SigOptions {
  /** A pluggable verifier, tried first. Return undefined to fall back to the built-in checks. */
  verifySig?: (input: { key: Qb64; message: Uint8Array; sig: IndexedSig }) => Promise<boolean | undefined> | boolean | undefined;
  /** How to check WebAuthn-wrapped signatures. `false` rejects them. */
  webauthn?: WebAuthnPolicy | false;
}

Properties

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.