Merge branch 'master' into cayman/ssz-refactor
This commit is contained in:
commit
31d74562df
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
[![Build Status](https://travis-ci.org/ChainSafe/lodestar.svg?branch=master)](https://travis-ci.org/ChainSafe/lodestar)
|
[![Build Status](https://travis-ci.org/ChainSafe/lodestar.svg?branch=master)](https://travis-ci.org/ChainSafe/lodestar)
|
||||||
[![codecov](https://codecov.io/gh/ChainSafe/lodestar/branch/master/graph/badge.svg)](https://codecov.io/gh/ChainSafe/lodestar)
|
[![codecov](https://codecov.io/gh/ChainSafe/lodestar/branch/master/graph/badge.svg)](https://codecov.io/gh/ChainSafe/lodestar)
|
||||||
![ETH2.0_Spec_Version 0.9.2](https://img.shields.io/badge/ETH2.0_Spec_Version-0.8.2-2e86c1.svg)
|
![ETH2.0_Spec_Version 0.9.4](https://img.shields.io/badge/ETH2.0_Spec_Version-0.9.4-2e86c1.svg)
|
||||||
|
|
||||||
This is a Javascript library that implements BLS (Boneh-Lynn-Shacham) signatures and supports signature aggregation.
|
This is a Javascript library that implements BLS (Boneh-Lynn-Shacham) signatures and supports signature aggregation.
|
||||||
|
|
||||||
|
|
|
@ -0,0 +1,26 @@
|
||||||
|
// eslint-disable-next-line @typescript-eslint/no-require-imports
|
||||||
|
const webpackConfig = require("./webpack.config");
|
||||||
|
|
||||||
|
module.exports = function(config) {
|
||||||
|
config.set({
|
||||||
|
|
||||||
|
basePath: "",
|
||||||
|
frameworks: ["mocha", "chai"],
|
||||||
|
files: ["test/unit/*.ts"],
|
||||||
|
exclude: [],
|
||||||
|
preprocessors: {
|
||||||
|
"test/**/*.ts": ["webpack"]
|
||||||
|
},
|
||||||
|
webpack: {
|
||||||
|
mode: "production",
|
||||||
|
node: webpackConfig.node,
|
||||||
|
module: webpackConfig.module,
|
||||||
|
resolve: webpackConfig.resolve
|
||||||
|
},
|
||||||
|
reporters: ["spec"],
|
||||||
|
|
||||||
|
browsers: ["ChromeHeadless"],
|
||||||
|
|
||||||
|
singleRun: true
|
||||||
|
});
|
||||||
|
};
|
17
package.json
17
package.json
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "@chainsafe/bls",
|
"name": "@chainsafe/bls",
|
||||||
"version": "0.2.0",
|
"version": "0.2.1",
|
||||||
"description": "Implementation of bls signature verification for ethereum 2.0",
|
"description": "Implementation of bls signature verification for ethereum 2.0",
|
||||||
"main": "lib/index.js",
|
"main": "lib/index.js",
|
||||||
"types": "lib/index.d.ts",
|
"types": "lib/index.d.ts",
|
||||||
|
@ -30,7 +30,9 @@
|
||||||
"lint:fix": "yarn run lint --fix",
|
"lint:fix": "yarn run lint --fix",
|
||||||
"pretest": "yarn check-types",
|
"pretest": "yarn check-types",
|
||||||
"prepublishOnly": "yarn build",
|
"prepublishOnly": "yarn build",
|
||||||
"test:unit": "nyc --cache-dir .nyc_output/.cache -r lcov -e .ts mocha --colors -r ts-node/register 'test/unit/**/*.test.ts' && nyc report",
|
"test:web:unit": "karma start",
|
||||||
|
"test:node:unit": "nyc --cache-dir .nyc_output/.cache -r lcov -e .ts mocha --colors -r ts-node/register 'test/unit/**/*.test.ts' && nyc report",
|
||||||
|
"test:unit": "yarn run test:node:unit && yarn run test:web:unit",
|
||||||
"test": "yarn test:unit",
|
"test": "yarn test:unit",
|
||||||
"coverage": "codecov -F bls",
|
"coverage": "codecov -F bls",
|
||||||
"benchmark": "node -r ./.babel-register test/benchmarks"
|
"benchmark": "node -r ./.babel-register test/benchmarks"
|
||||||
|
@ -39,13 +41,20 @@
|
||||||
"@chainsafe/bls-keygen": "^0.0.2",
|
"@chainsafe/bls-keygen": "^0.0.2",
|
||||||
"@chainsafe/eth2-bls-wasm": "^0.2.0",
|
"@chainsafe/eth2-bls-wasm": "^0.2.0",
|
||||||
"@chainsafe/eth2.0-types": "^0.2.0",
|
"@chainsafe/eth2.0-types": "^0.2.0",
|
||||||
"assert": "^1.4.1",
|
"assert": "^1.4.1"
|
||||||
"bls-wasm": "^0.2.7"
|
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@chainsafe/benchmark-utils": "^0.1.0",
|
"@chainsafe/benchmark-utils": "^0.1.0",
|
||||||
"js-sha256": "^0.9.0",
|
"js-sha256": "^0.9.0",
|
||||||
"js-yaml": "^3.13.1",
|
"js-yaml": "^3.13.1",
|
||||||
|
"karma": "^4.4.1",
|
||||||
|
"karma-chai": "^0.1.0",
|
||||||
|
"karma-chrome-launcher": "^3.1.0",
|
||||||
|
"karma-cli": "^2.0.0",
|
||||||
|
"karma-mocha": "^1.3.0",
|
||||||
|
"karma-spec-reporter": "^0.0.32",
|
||||||
|
"karma-webpack": "^4.0.2",
|
||||||
|
"ts-loader": "^6.2.1",
|
||||||
"webpack": "^4.30.0",
|
"webpack": "^4.30.0",
|
||||||
"webpack-cli": "^3.3.2"
|
"webpack-cli": "^3.3.2"
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,6 +1,18 @@
|
||||||
module.exports = {
|
module.exports = {
|
||||||
|
entry: "./src/index.ts",
|
||||||
mode: "production",
|
mode: "production",
|
||||||
node: {
|
node: {
|
||||||
fs: "empty"
|
fs: "empty"
|
||||||
|
},
|
||||||
|
output: {
|
||||||
|
filename: "dist/bundle.js"
|
||||||
|
},
|
||||||
|
resolve: {
|
||||||
|
extensions: [".ts", ".js"]
|
||||||
|
},
|
||||||
|
module: {
|
||||||
|
rules: [
|
||||||
|
{test: /\.ts$/, use: {loader: "ts-loader", options: {transpileOnly: true}}}
|
||||||
|
]
|
||||||
}
|
}
|
||||||
};
|
};
|
Reference in New Issue