Package Exports
- @hazae41/x25519
Readme
X25519
X25519 adapter for WebAssembly and JS implementations
npm i @hazae41/x25519
Features
Current features
- 100% TypeScript and ESM
- No external dependencies
Usage
Safe (WebCrypto)
https://github.com/tQsW/webcrypto-curve25519/blob/master/explainer.md
import { X25519 } from "@hazae41/x25519"
X25519.set(await X25519.fromSafe())
Berith (WebAssembly)
npm i @hazae41/berith
import { X25519 } from "@hazae41/x25519"
X25519.set(await X25519.fromSafeOrBerith())
Noble (JavaScript)
npm i @noble/curves
import { X25519 } from "@hazae41/x25519"
X25519.set(await X25519.fromSafeOrNoble())