@noble/curves

v1.4.2
Audited & minimal JS implementation of elliptic curve cryptography
elliptic curve cryptography secp256k1 ed25519 p256 p384 p521 secp256r1 and 15 more...

lint

prettier --check 'src/**/*.{js,ts}' 'test/*.js'

test

node test/index.test.js

bench

cd benchmark; node secp256k1.js; node curves.js; node ecdh.js; node hash-to-curve.js; node modular.js; node bls.js; node ristretto255.js; node decaf448.js

build

tsc && tsc -p tsconfig.esm.json

format

prettier --write 'src/**/*.{js,ts}' 'test/*.js'

build:clean

rm *.{js,d.ts,d.ts.map,js.map} esm/*.{js,d.ts,d.ts.map,js.map} 2> /dev/null

build:release

cd build && npm i && npm run build
npm i @noble/[email protected]

Metadata

  • MIT
  • Whatever
  • Paul Miller
  • released 7/1/2024

Downloads

Maintainers

Paul Miller