@hazae41/secp256k1
TypeScript icon, indicating that this package has built-in type declarations

1.0.1 • Public • Published

Secp256k1

Secp256k1 adapter for WebAssembly and JS implementations

npm i @hazae41/secp256k1

Node Package 📦

Features

Current features

  • 100% TypeScript and ESM
  • No external dependencies

Usage

WebAssembly

npm i @hazae41/secp256k1.wasm
import { Secp256k1 } from "@hazae41/secp256k1"
import { Secp256k1Wasm } from "@hazae41/secp256k1.wasm"

await Secp256k1Wasm.initBundled()

Secp256k1.set(Secp256k1.fromWasm(Secp256k1Wasm))

Noble (JavaScript)

npm i @noble/curves
import { Secp256k1 } from "@hazae41/secp256k1"
import * as Secp256k1Noble from "@noble/curves/secp256k1"

Secp256k1.set(Secp256k1.fromNoble(Secp256k1Noble))

Package Sidebar

Install

npm i @hazae41/secp256k1

Weekly Downloads

9

Version

1.0.1

License

MIT

Unpacked Size

123 kB

Total Files

41

Last publish

Collaborators

  • hazae41