@noble/secp256k1

v2.1.0
Fastest 4KB JS implementation of secp256k1 ECDH & ECDSA signatures compliant with RFC6979
secp256k1 rfc6979 signature ecdsa noble cryptography elliptic curve ecc curve and 4 more...

build

tsc

build:min

cd test/build; npm install; npm run terser

build:mingz

npm run --silent build:min | gzip -c8

build:release

npm run --silent build:min > test/build/noble-secp256k1.min.js; npm run --silent build:mingz > test/build/noble-secp256k1.min.js.gz

test

node test/index.test.js

test:webcrypto

node test/secp256k1.webcrypto.test.js

bench

node test/benchmark.js

loc

echo "`npm run --silent build:min | wc -c` symbols `wc -l < index.ts` LOC, `npm run --silent build:mingz | wc -c`B gzipped"
npm i @noble/secp256k1

Metadata

  • MIT
  • Whatever
  • Paul Miller
  • released 3/24/2024

Downloads

Maintainers