UNPKG

eth-crypto

Version:

Cryptographic functions for ethereum and how to use them with web3 and solidity

116 lines (115 loc) 4.1 kB
{ "name": "eth-crypto", "version": "4.1.0", "description": "Cryptographic functions for ethereum and how to use them with web3 and solidity", "keywords": [ "ethereum", "eth", "web3", "solidity", "encryption", "secp256k1", "dapp", "blockchain", "ecies", "smart-contract", "identity", "signature" ], "main": "./dist/lib/index.js", "jsnext:main": "./dist/es/index.js", "module": "./dist/es/index.js", "types": "./typings/index.d.ts", "scripts": { "test": "npm run test:node && npm run test:browser", "test:node": "npm run build && mocha ./test/index.test.js -b --timeout 6000 --exit", "test:browser": "npm run build && karma start ./config/karma.conf.js --single-run", "test:size": "npm run build:webpack && echo \"Build-Size (minified+gzip):\" && gzip-size --raw ./test_tmp/webpack.bundle.js", "test:typings": "npm run build && mocha ./test/typings.test.js -b --timeout 12000 --exit", "test:deps": "dependency-check ./package.json --no-dev --unused --ignore-module @types/bn.js", "lint": "eslint src test config && solhint \"contracts/**/*.sol\"", "clear": "rimraf -rf ./dist && rimraf -rf ./gen && rimraf -rf ./test_tmp", "build:sol": "solidity-cli -i './contracts/*.sol' -o ./gen", "build:es6": "rimraf -rf dist/es && cross-env NODE_ENV=es6 babel src --out-dir dist/es", "build:es5": "babel src --out-dir dist/lib", "build:test": "babel test --out-dir test_tmp", "build": "npm run clear && concurrently \"npm run build:es6\" \"npm run build:es5\" \"npm run build:test\" \"npm run build:sol\"", "build:webpack": "npm run build && cross-env NODE_ENV=build webpack --config ./config/webpack.config.js", "build:size": "npm run build:webpack && echo \"Build-Size (minified+gzip):\" && gzip-size --raw ./test_tmp/webpack.bundle.js", "disc": "npm run build && cross-env NODE_ENV=disc webpack --config ./config/webpack.config.js" }, "repository": { "type": "git", "url": "git+https://github.com/pubkey/eth-crypto.git" }, "author": "pubkey", "funding": "https://github.com/sponsors/pubkey", "license": "MIT", "bugs": { "url": "https://github.com/pubkey/eth-crypto/issues" }, "homepage": "https://github.com/pubkey/eth-crypto#readme", "devDependencies": { "@babel/cli": "7.28.6", "@babel/core": "7.29.0", "@babel/plugin-transform-class-properties": "^7.28.6", "@babel/plugin-transform-runtime": "7.29.0", "@babel/preset-env": "7.29.2", "assert": "2.1.0", "async-test-util": "2.5.0", "babel-loader": "10.1.1", "babelify": "^10.0.0", "bn.js": "5.2.3", "browserify": "17.0.1", "concurrently": "9.2.1", "convert-hrtime": "5.0.0", "cross-env": "10.1.0", "crypto-browserify": "3.12.1", "dependency-check": "4.1.0", "disc": "1.3.3", "@eslint/js": "10.0.1", "eslint": "10.2.1", "globals": "17.5.0", "ganache-cli": "6.12.2", "gzip-size-cli": "5.1.0", "is-node": "1.1.1", "js-sha3": "0.9.3", "karma": "6.4.4", "karma-babel-preprocessor": "8.0.2", "karma-browserify": "8.1.0", "karma-chrome-launcher": "3.2.0", "karma-coverage": "2.2.1", "karma-detect-browsers": "2.3.3", "karma-edge-launcher": "0.4.2", "karma-firefox-launcher": "2.1.3", "karma-ie-launcher": "1.0.0", "karma-mocha": "2.0.1", "karma-opera-launcher": "1.0.0", "karma-safari-launcher": "1.0.0", "mocha": "11.7.5", "rimraf": "4.4.1", "solhint": "6.2.1", "solidity-cli": "1.0.3", "stream-browserify": "3.0.0", "terser-webpack-plugin": "5.5.0", "ts-node": "10.9.2", "typescript": "6.0.3", "uglify-js": "3.19.3", "web3": "1.10.4", "webpack": "5.75.0", "webpack-bundle-analyzer": "5.3.0", "webpack-cli": "5.1.4" }, "dependencies": { "@babel/runtime": "7.29.2", "@ethereumjs/tx": "10.1.1", "@ethereumjs/util": "10.1.1", "@types/bn.js": "5.2.0", "@noble/hashes": "2.2.0", "ethereum-cryptography": "3.2.0", "ethers": "6.16.0" }, "overrides": { "acorn": "^8" } }