Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
@nimiq/core-web
Advanced tools
**[Nimiq](https://nimiq.com/)** is a frictionless payment protocol for the web.
Nimiq is a frictionless payment protocol for the web.
Check out our Testnet.
For users looking to run a standalone Nimiq node (which is also capable of mining), see our Downloads page for installable Linux and Windows binary packages.
For developers looking to include Nimiq support on their applications, there are two npm packages available:
@nimiq/core
: Module for use in node.js applications.@nimiq/core-web
: Module for use in client-side (browser) applications.A good way to get started is to have a look at the most simple web application on top of the Nimiq Blockchain.
Import Nimiq
as an ES6 module:
// With a package.json-aware module loader:
import Nimiq from '@nimiq/core-web';
// Otherwise:
import Nimiq from 'node_modules/@nimiq/core-web/web.esm.js';
To use Nimiq's cryptographic functions (for hashing, signing, derivation),
you have to make the following files from this package available to the browser
(for e.g. Vue, this means copying them into the public
folder, or getting them
otherwise into the output directory):
worker.js
worker-js.js
worker-wasm.js
worker-wasm.wasm
You can then load the Nimiq worker by calling Nimiq.load()
with the URL of the folder containing the files:
// Important: must be a full URL, a trailing slash is required.
const workerURL = location.origin + '/assets/nimiq/';
Nimiq.load(workerURL).then(async function() {
// All Nimiq functionality is available here.
});
Include the nimiq.js
file from this package into your project:
<script src="node_modules/@nimiq/core-web/nimiq.js"></script>
If you do not need networking support, you can also use the smaller offline build:
Nimiq.loadOffline().then(...);
If you'd like to contribute to the development of Nimiq please follow our Code of Conduct and Contributing Guidelines.
This project is under the Apache License 2.0.
FAQs
**[Nimiq](https://nimiq.com/)** is a frictionless payment protocol for the web.
The npm package @nimiq/core-web receives a total of 359 weekly downloads. As such, @nimiq/core-web popularity was classified as not popular.
We found that @nimiq/core-web demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 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.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.