noble-xwing
TypeScript icon, indicating that this package has built-in type declarations

0.5.0 • Public • Published

noble-xwing

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.

Installation

# npm
npm install noble-xwing

# yarn
yarn add noble-xwing

# pnpm
pnpm add noble-xwing

Example usage

import { generateKeyPair, encapsulate, decapsulate } from "noble-xwing"

const { sk, pk } = generateKeyPair()
const { ss, ct } = encapsulate(pk)

decapsulate(ct, sk)

Package Sidebar

Install

npm i noble-xwing

Weekly Downloads

8

Version

0.5.0

License

MIT

Unpacked Size

40.7 kB

Total Files

38

Last publish

Collaborators

  • luka.jacobowitz