toip.tools

type · Browser and Node

KeyLookup

Finds the keys that may have signed: for a device, its current key and, around a rotation, the previous one.

@toip-tools/coseView source
TypeScriptImport
import { type KeyLookup } from "@toip-tools/cose";

Declaration

TypeScripttype
type KeyLookup = (kid: Uint8Array | undefined, alg: CoseAlg) => Promise<PublicKey[]>;