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/cose` · [View source](https://github.com/yourbuddyconner/toip-tools/blob/main/packages/cose/src/sign1.ts#L62)

Import:

```ts
import { type KeyLookup } from "@toip-tools/cose";
```

## Declaration

type:

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

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

---

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