@noble/bls12-381
Advanced tools
Comparing version 1.0.2 to 1.1.0
{ | ||
"name": "@noble/bls12-381", | ||
"version": "1.0.2", | ||
"version": "1.1.0", | ||
"description": "Fastest JS implementation of BLS12-381. Auditable, secure, 0-dependency aggregated signatures & pairings", | ||
"main": "index.js", | ||
"files": [ | ||
"index.js", | ||
"index.d.ts", | ||
"math.js", | ||
"math.d.ts" | ||
"lib" | ||
], | ||
"main": "lib/index.js", | ||
"module": "lib/esm/index.js", | ||
"types": "lib/index.d.ts", | ||
"scripts": { | ||
"test": "jest test/*.test.ts", | ||
"build": "tsc -d", | ||
"build": "tsc -d && tsc -p tsconfig.esm.json", | ||
"build-release": "rollup -c rollup.config.js", | ||
@@ -57,3 +56,15 @@ "bench": "node test/benchmark.js", | ||
"security" | ||
] | ||
], | ||
"exports": { | ||
".": { | ||
"import": "./lib/esm/index.js", | ||
"default": "./lib/index.js" | ||
}, | ||
"./index.d.ts": "./lib/index.d.ts", | ||
"math": { | ||
"import": "./lib/esm/math.js", | ||
"default": "./lib/math.js" | ||
}, | ||
"./math.d.ts": "./lib/math.d.ts" | ||
} | ||
} |
@@ -82,2 +82,25 @@ # noble-bls12-381 ![Node CI](https://github.com/paulmillr/noble-secp256k1/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) | ||
To use the module with [Deno](https://deno.land), | ||
you will need [import map](https://deno.land/manual/linking_to_external_code/import_maps): | ||
- `deno run --import-map=imports.json app.ts` | ||
- `app.ts` | ||
```typescript | ||
import * as bls from "https://deno.land/x/bls12_381/mod.ts"; | ||
const publicKey = bls.getPublicKey(bls.utils.randomPrivateKey()); | ||
console.log(publicKey); | ||
``` | ||
- `imports.json` | ||
```json | ||
{ | ||
"imports": { | ||
"crypto": "https://deno.land/std@0.119.0/node/crypto.ts", | ||
"./math": "./math.ts" | ||
} | ||
} | ||
``` | ||
## API | ||
@@ -84,0 +107,0 @@ |
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
147029
10
3704
318
1