function · Browser and Node

# verifyKel

Verifies a KEL stream or message list. Never throws on bad input.

`@toip-tools/eventlog` · [View source](https://github.com/yourbuddyconner/toip-tools/blob/main/packages/eventlog/src/kel.ts#L482)

Import:

```ts
import { verifyKel } from "@toip-tools/eventlog";
```

## Declaration

Signature:

```ts
verifyKel(input: string | SignedMessage[], opts?: VerifyOptions): Promise<KelResult>;
```

### Parameters

**`input` (required)**

`string | SignedMessage[]`

**`opts` (optional)**

`VerifyOptions`

Default: `{}`

**Fields of `opts`**

**`allowUnwitnessed` (optional)**

`boolean | undefined`

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

**`firstSeen` (optional)**

`LogStore | undefined`

Compare with this store's first-seen copies.

**`clock` (optional)**

`Clock | undefined`

**`verifySig` (optional)**

`((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.

**`webauthn` (optional)**

`false | WebAuthnPolicy | undefined`

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

### Returns

`Promise<KelResult>`

[Usage guide](https://toip.tools/toolkit/eventlog/#usage) · [Error handling](https://toip.tools/toolkit/eventlog/#errors) · [All exports](https://toip.tools/toolkit/eventlog/api/)

---

This is the Markdown version of https://toip.tools/toolkit/eventlog/api/verifyKel/. An index of the documentation for AI assistants is at https://toip.tools/llms.txt.
