function · Browser and Node

# webCryptoSigner

A WebCrypto key pair (Ed25519 or ECDSA P-256). The private key may be non-extractable.

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

Import:

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

## Declaration

Signature:

```ts
webCryptoSigner(pair: CryptoKeyPair): Promise<Signer>;
```

### Parameters

- **`pair` (required)**: `CryptoKeyPair`

### Returns

`Promise<Signer>`

[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/webCryptoSigner/. An index of the documentation for AI assistants is at https://toip.tools/llms.txt.
