/ed25519

Ed25519 adapter for WebAssembly and JS implementations

Primary LanguageTypeScript

Ed25519

Ed25519 adapter for WebAssembly and JS implementations

npm i @hazae41/ed25519

Node Package 📦

Features

Current features

  • 100% TypeScript and ESM
  • No external dependencies

Usage

Safe (WebCrypto)

https://github.com/tQsW/webcrypto-curve25519/blob/master/explainer.md

import { Ed25519 } from "@hazae41/ed25519"

Ed25519.set(Ed25519.fromSafe())

Berith (WebAssembly)

npm i @hazae41/berith
import { Ed25519 } from "@hazae41/ed25519"

Ed25519.set(await Ed25519.fromSafeOrBerith())

Noble (JavaScript)

npm i @noble/curves
import { Ed25519 } from "@hazae41/ed25519"

Ed25519.set(await Ed25519.fromSafeOrNoble())