noble-xwing
Version:
Typescript implementation of the X-Wing hybrid Post Quantum KEM using the noble library, as outlined in https://eprint.iacr.org/2024/039.
30 lines (19 loc) • 578 B
Markdown
Typescript implementation of the X-Wing hybrid Post Quantum KEM using the noble library, as outlined in https://eprint.iacr.org/2024/039.
TL;DR: This library allows the use of a KEM combining the ML-KEM-768 Post Quantum KEM with X25519 ECDH.
```bash
npm install noble-xwing
yarn add noble-xwing
pnpm add noble-xwing
```
```typescript
import { generateKeyPair, encapsulate, decapsulate } from "noble-xwing"
const { sk, pk } = generateKeyPair()
const { ss, ct } = encapsulate(pk)
decapsulate(ct, sk)
```