Security News
Research
Data Theft Repackaged: A Case Study in Malicious Wrapper Packages on npm
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
@fetchai/blst-ts
Advanced tools
Typescript wrapper for supranational/blst native bindings, a highly performant BLS12-381 signature library
This repository is a fork of chainsafe/blst-ts which may be used as a staging area for changes that may (or may not) be upstreamed.
Note that this repo contains a git submodule. Make sure the git submodule blst
is populated before attempting to build locally. After cloning run:
git submodule update --init --recursive
yarn add @fetchai/blst-ts
# or
npm install --save @fetchai/blst-ts
package.json
:depencencies: {
"@fetchai/blst-ts": "^0.3.1",
...
}
webpack.config.js
(V5):module.exports = {
resolve: {
fallback: {
"crypto": require.resolve("crypto-browserify"),
"stream": require.resolve("stream-browserify"),
"buffer": require.resolve("buffer"),
"assert": require.resolve("assert-browserify"),
"path": require.resolve("path-browserify"),
"fs": false,
},
...
},
ignoreWarnings: [
{
module: /^(fs|process)$/,
}
]
}
webpack.config.js
(V4):module.exports = {
plugins: [
new webpack.IgnorePlugin(/^(fs|process)$/),
],
...
}
(NOTE: docker is required to use the script)
yarn build:emscripten
(NOTE: a copy of emsdk is required to build for web assembly. See emscripten docs -> Building Projects for more information)
# ensure enscripten sdk is active
/path/to/emsdk/emsdk activate
source /path/to/emsdk/emsdk_env.sh
CROSS_COMPILE=em CFLAGS="-o ./prebuild/emscripten/blst.js --pre-js ./prebuild/emscripten/pre.js --post-js ./prebuild/emscripten/post.js ./prebuild/emscripten/blst_glue_wrapper.cpp" ./blst/build.sh -link -no-archive
Once built (see building WebAssembly module), applicable mocha tests can be run in the browser using webpack:
yarn test:browser
Additionally, Karma is configured to run browser-relevant tests in chrome by starting and running:
# Optionally, CHROME_BIN=$(which <non-standard-chromium-flavor>)
# (see: https://github.com/karma-runner/karma-chrome-launcher)
yarn karma start
# separate shell
yarn karma run
(NOTE: it currently seems like Karma has to be run a few times before it picks up all the tests)
Apache-2.0
FAQs
Typescript wrapper for supranational/blst native bindings, a highly performant BLS12-381 signature library
The npm package @fetchai/blst-ts receives a total of 0 weekly downloads. As such, @fetchai/blst-ts popularity was classified as not popular.
We found that @fetchai/blst-ts demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Research
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
Research
Security News
Attackers used a malicious npm package typosquatting a popular ESLint plugin to steal sensitive data, execute commands, and exploit developer systems.
Security News
The Ultralytics' PyPI Package was compromised four times in one weekend through GitHub Actions cache poisoning and failure to rotate previously compromised API tokens.