2.1.22 • Published 10 months ago

@hazae41/ed25519 v2.1.22

Weekly downloads
-
License
MIT
Repository
github
Last release
10 months ago

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

Native (WebCrypto)

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

import { Ed25519 } from "@hazae41/ed25519"

Ed25519.set(Ed25519.fromNative())

WebAssembly

npm i @hazae41/ed25519.wasm
import { Ed25519 } from "@hazae41/ed25519"
import { Ed25519Wasm } from "@hazae41/ed25519.wasm"

await Ed25519Wasm.initBundled()

Ed25519.set(await Ed25519.fromNativeOrWasm(Ed25519Wasm))

Noble Curves (JavaScript)

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

Ed25519.set(await Ed25519.fromNativeOrNoble(Ed25519Noble))

Noble Ed25519 (JavaScript)

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

Ed25519.set(await Ed25519.fromNativeOrNoble({ ed25519 }))
2.1.18

11 months ago

2.1.19

11 months ago

2.1.21

10 months ago

2.1.22

10 months ago

2.1.20

10 months ago

2.1.16

11 months ago

2.1.17

11 months ago

2.1.14

11 months ago

2.1.15

11 months ago

2.1.12

11 months ago

2.1.13

11 months ago

2.1.11

11 months ago

2.1.9

2 years ago

2.1.2

2 years ago

2.0.3

2 years ago

2.1.1

2 years ago

2.0.2

2 years ago

2.1.4

2 years ago

2.1.3

2 years ago

2.0.4

2 years ago

2.1.6

2 years ago

2.1.5

2 years ago

2.1.10

2 years ago

2.1.8

2 years ago

2.1.7

2 years ago

2.1.0

2 years ago

2.0.1

2 years ago

2.0.0

2 years ago

1.0.0

2 years ago