toip.tools

function · Browser and Node

verifyCose1

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

Declaration

TypeScriptSignature
verifyCose1(bytes: Uint8Array, key: KeyLookup, opts?: VerifyOptions): Promise<VerifyResult>;

Parameters

bytesrequired
Uint8Array<ArrayBufferLike>
keyrequired
KeyLookup
optsoptional
VerifyOptions

Default: {}

Fields of opts
allowedAlgsoptional
CoseAlg[] | undefined

Default: all five algorithms.

webauthnOriginsoptional
string[] | undefined

Origins a -65600 signature may come from. Required for -65600.

externalAadoptional
Uint8Array<ArrayBufferLike> | undefined

Returns

Promise<VerifyResult>