Socket
Socket
Sign inDemoInstall

mcl-wasm

Package Overview
Dependencies
0
Maintainers
1
Versions
57
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.4.5 to 0.6.0

src/index.js

25

package.json
{
"name": "mcl-wasm",
"version": "0.4.5",
"version": "0.6.0",
"description": "mcl ; A portable and fast pairing-based cryptography library for Node.js by WebAssembly",
"main": "mcl.js",
"main": "src/index.js",
"scripts": {
"lint": "standard mcl.js test.js",
"test": "node test.js"
"lint": "standard src/mcl.js test/test.js",
"test": "node test/test.js"
},

@@ -19,2 +19,9 @@ "repository": {

],
"files": [
"src/index.js",
"src/mcl.js",
"src/mcl_c.js",
"test/test.js",
"test/eth-test.js"
],
"author": "herumi <herumi@nifty.com> (https://github.com/herumi/)",

@@ -28,11 +35,3 @@ "license": "BSD-3-Clause",

},
"homepage": "https://github.com/herumi/mcl-wasm#readme",
"devDependencies": {
"coveralls": "^3.0.1",
"istanbul": "^0.4.5",
"standard": "^10.0.3"
},
"dependencies": {
"nyc": "^11.8.0"
}
"homepage": "https://github.com/herumi/mcl-wasm#readme"
}

@@ -9,2 +9,3 @@ [![Build Status](https://travis-ci.org/herumi/mcl-wasm.png)](https://travis-ci.org/herumi/mcl-wasm)

## News
- 2020/Nov/10 setup function has changed.
- add `mulVec(xVec, yVec)` where xVec is an array of G1 or G2 and yVec is an array of Fr, which returns `sum of xVec[i] yVec[i]`.

@@ -16,6 +17,8 @@ - G1.setHashOf is compatible with [hash-to-curve-09 BLS12381G1_XMD:SHA-256_SSWU_RO_](https://www.ietf.org/id/draft-irtf-cfrg-hash-to-curve-09.html#name-bls12381g1_xmdsha-256_sswu_)

## for Node.js
node test.js
```
node test/test.js
```
## browser demo
[ID-based encryption](https://herumi.github.io/mcl-wasm/ibe-demo.html)
[ID-based encryption](https://herumi.github.io/mcl-wasm/browser/demo.html)

@@ -73,3 +76,3 @@ # usages

see [test.js](https://github.com/herumi/mcl-wasm/blob/master/test.js)
see [test.js](https://github.com/herumi/mcl-wasm/blob/master/test/test.js)

@@ -87,2 +90,5 @@ # License

光成滋生 MITSUNARI Shigeo(herumi@nifty.com)
MITSUNARI Shigeo(herumi@nifty.com)
# Sponsors welcome
[GitHub Sponsor](https://github.com/sponsors/herumi)
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc