JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 5
  • Score
    100M100P100Q53956F
  • License MIT

x25519 adapter for WebAssembly and JS implementations

Package Exports

  • @hazae41/x25519

Readme

X25519

X25519 adapter for WebAssembly and JS implementations

npm i @hazae41/x25519

Node Package 📦

Features

Current features

  • 100% TypeScript and ESM
  • No external dependencies

Usage

Berith (WebAssembly)

import { X25519 } from "@hazae41/x25519"
import { Berith } from "@hazae41/berith"

await Berith.initBundledOnce()
const x25519 = X25519.fromBerith(Berith)

Noble (JavaScript)

import { X25519 } from "@hazae41/x25519"
import * as noble_ed25519 from "@noble/curves/ed25519"

const x25519 = X25519.fromNoble(noble_ed25519.x25519)