# @transmute/web-crypto-key-pair

> ``` npm i @transmute/web-crypto-key-pair@latest --save ```

Latest version **0.7.0-unstable.82** (published 2023-12-06) · Apache-2.0 license · 0 weekly downloads

## Install

```sh
npm install @transmute/web-crypto-key-pair
pnpm add @transmute/web-crypto-key-pair
yarn add @transmute/web-crypto-key-pair
bun add @transmute/web-crypto-key-pair
```

## Health

**Score 30/100 (F)** — status: abandoned.

Positive: has types; esm support; no vulnerabilities; high quality score.

Warnings: low downloads; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.7.0-unstable.82 |
| Published | 2023-12-06 |
| First published | 2021-03-07 |
| Weekly downloads | 0 |
| License | Apache-2.0 |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Node | >=16 |
| Dependencies | 3 |
| Unpacked size | 590.6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 55 |
| Author | Orie Steele |
| Maintainers | ipbyrne, or13, transmute-ci |

## Links

- npm: https://www.npmjs.com/package/@transmute/web-crypto-key-pair
- Repository: https://github.com/transmute-industries/verifiable-data
- Homepage: https://github.com/transmute-industries/verifiable-data/tree/main/packages/web-crypto-key-pair
- Issues: https://github.com/transmute-industries/verifiable-data/issues
- npm.io page: https://npm.io/package/@transmute/web-crypto-key-pair

## Dependencies (3)

- [big-integer](https://npm.io/package/big-integer.md) ^1.6.48
- [@peculiar/webcrypto](https://npm.io/package/@peculiar/webcrypto.md) ^1.1.6
- [@transmute/ld-key-pair](https://npm.io/package/@transmute/ld-key-pair.md) ^0.7.0-unstable.82

## Recent versions

- 0.7.0-unstable.82 (latest) — 2023-12-06
- 0.7.0-unstable.81 — 2023-06-10
- 0.7.0-unstable.80 — 2023-01-24
- 0.7.0-unstable.79 — 2023-01-17
- 0.7.0-unstable.78 — 2023-01-17
- 0.7.0-unstable.77 — 2022-12-16
- 0.7.0-unstable.76 — 2022-12-13
- 0.7.0-unstable.75 — 2022-12-09
- 0.7.0-unstable.74 — 2022-12-09
- 0.7.0-unstable.73 — 2022-12-06
- 0.7.0-unstable.72 — 2022-12-06
- 0.7.0-unstable.71 — 2022-11-28
- 0.7.0-unstable.70 — 2022-10-31
- 0.7.0-unstable.69 — 2022-10-31
- 0.7.0-unstable.68 — 2022-10-29
- … 93 more at https://npm.io/package/@transmute/web-crypto-key-pair/versions

## README

### @transmute/web-crypto-key-pair

```
npm i @transmute/web-crypto-key-pair@latest --save
```

Linked Data Key Pair support for Web Crypto.

```ts
import * as web from '@transmute/web-crypto-key-pair';
const key = await web.KeyPair.generate({ kty: 'EC', crvOrSize: 'P-384' });
const signer = await key.signer();
const verifier = await key.verifier();
const signature = await signer.sign({
  data: Buffer.from('hello'),
});
const verified = await verifier.verify({
  data: Buffer.from('hello'),
  signature,
});
const remote = await key.export({
  type: 'JsonWebKey2020',
  privateKey: false,
});
const bits = await key.deriveBits(remote);
```

---
_Source: https://npm.io/package/@transmute/web-crypto-key-pair · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
