@noble/ed25519
Advanced tools
Comparing version 1.3.0 to 1.3.1
{ | ||
"name": "@noble/ed25519", | ||
"version": "1.3.0", | ||
"version": "1.3.1", | ||
"description": "Fastest JS implementation of ed25519 & ristretto255. Auditable, high-security, 0-dependency pubkey, scalarmult & EDDSA", | ||
"main": "index.js", | ||
"types": "index.d.ts", | ||
"files": [ | ||
"index.js", | ||
"index.d.ts" | ||
"lib" | ||
], | ||
"main": "lib/index.js", | ||
"module": "lib/esm/index.js", | ||
"types": "lib/index.d.ts", | ||
"scripts": { | ||
"build": "tsc -d", | ||
"build": "tsc -d && tsc -p tsconfig.esm.json", | ||
"build-release": "rollup -c rollup.config.js", | ||
@@ -18,10 +18,2 @@ "lint": "prettier --print-width 100 --single-quote --check index.ts", | ||
}, | ||
"jest": { | ||
"testRegex": "/test/.*.ts", | ||
"transform": { | ||
"^.+\\.ts$": "ts-jest" | ||
}, | ||
"useStderr": true, | ||
"bail": 2 | ||
}, | ||
"author": "Paul Miller (https://paulmillr.com)", | ||
@@ -38,13 +30,12 @@ "homepage": "https://paulmillr.com/posts/noble-secp256k1-fast-ecc/", | ||
"devDependencies": { | ||
"@rollup/plugin-commonjs": "^19.0.0", | ||
"@rollup/plugin-node-resolve": "^13.0.0", | ||
"@types/jest": "^26.0.22", | ||
"@types/node": "^14.14.41", | ||
"@types/jest": "^27", | ||
"@types/node": "^16", | ||
"fast-check": "^2.14.0", | ||
"jest": "^26.6.3", | ||
"jest": "^27.4.5", | ||
"micro-bmark": "^0.1.3", | ||
"prettier": "^2.2.1", | ||
"rollup": "^2.50.4", | ||
"ts-jest": "^26.5.5", | ||
"typescript": "^4.2.4" | ||
"prettier": "^2.5.1", | ||
"rollup": "^2.62.0", | ||
"ts-jest": "^27.1.2", | ||
"typescript": "^4.5" | ||
}, | ||
@@ -61,2 +52,3 @@ "keywords": [ | ||
"curve", | ||
"elligator", | ||
"signature", | ||
@@ -68,3 +60,18 @@ "ecc", | ||
"security" | ||
] | ||
], | ||
"exports": { | ||
".": { | ||
"import": "./lib/esm/index.js", | ||
"default": "./lib/index.js" | ||
}, | ||
"./index.d.ts": "./lib/index.d.ts" | ||
}, | ||
"jest": { | ||
"testRegex": "/test/.*.ts", | ||
"transform": { | ||
"^.+\\.ts$": "ts-jest" | ||
}, | ||
"useStderr": true, | ||
"bail": 2 | ||
} | ||
} |
@@ -31,4 +31,5 @@ # noble-ed25519 ![Node CI](https://github.com/paulmillr/noble-ed25519/workflows/Node%20CI/badge.svg) [![code style: prettier](https://img.shields.io/badge/code_style-prettier-ff69b4.svg?style=flat-square)](https://github.com/prettier/prettier) | ||
```js | ||
// Common.js and ECMAScript Modules (ESM) | ||
import * as ed from '@noble/ed25519'; | ||
// if you're using single file, use global variable nobleEd25519 | ||
// If you're using single file, use global variable: nobleEd25519 | ||
@@ -35,0 +36,0 @@ const privateKey = ed.utils.randomPrivateKey(); // 32-byte Uint8Array or string. |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
61993
10
7
1422
245
1