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.
@trezor/blockchain-link
Advanced tools
High-level javascript interface for blockchain communication
blockchain-link is a client and unified interface for several backends (BE further on) of various blockchain networks. Currently, there are implementations for
Add blockchain-link to your dependencies.
yarn add @trezor/blockchain-link
And use it.
import BlockchainLink from '@trezor/blockchain-link';
import Blockbook from '@trezor/blockchain-link/lib/workers/blockbook';
const link = new BlockchainLink({
name: 'Name used in logs.',
worker: Blockbook,
server: ['url1.of.the.be', 'url2.of.the.be'],
debug: true,
});
try {
const resp = link.getInfo();
} catch (error) {}
For complete API see the methods of BlockchainLink
class in index.ts.
Each src/workers/*/index
file can be used in WebWorker thread.
Built from source using webpack worker-loader
:
import BlockbookWorker from 'worker-loader?filename=workers/blockbook-worker.[hash].js!@trezor/blockchain-link/lib/workers/blockbook/index.js';
This package provides a simple testing UI for playing around with various implementations and BEs. Run UI with webworkers support
yarn workspace @trezor/blockchain-link dev
or without webworkers support (workers are compiled into a bundle)
yarn workspace @trezor/blockchain-link dev:module
yarn workspace @trezor/blockchain-link lint
yarn workspace @trezor/blockchain-link type-check
yarn workspace @trezor/blockchain-link test:unit
Testing lib
and build
outputs:
yarn workspace @trezor/blockchain-link build:lib
yarn workspace @trezor/blockchain-link build:workers
yarn workspace @trezor/blockchain-link test:integration
Follow instructions how to publish @trezor package to npm registry.
FAQs
High-level javascript interface for blockchain communication
We found that @trezor/blockchain-link 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.
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.