X25519 adapter for WebAssembly and JS implementations
npm i @hazae41/x25519
- 100% TypeScript and ESM
- No external dependencies
import { X25519 } from "@hazae41/x25519"
import { Berith } from "@hazae41/berith"
await Berith.initBundledOnce()
const x25519 = X25519.fromBerith(Berith)
import { X25519 } from "@hazae41/x25519"
import * as noble_ed25519 from "@noble/curves/ed25519"
const x25519 = X25519.fromNoble(noble_ed25519.x25519)