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/connect-web
Advanced tools
High-level javascript interface for Trezor hardware wallet in web environment.
This package is bundled into web implementations. User interface is presented in a secure popup window served from connect.trezor.io/<version>/popup.html
. To try it out, use @trezor/connect-explorer hosted here.
Contains minimum of code required to:
TrezorConnect
API object@trezor/connect-iframe
hosted on https://connect.trezor.io/<version>/iframe.html
@trezor/connect-popup
hosted on https://connect.trezor.io/<version>/popup.html
Install library as npm module:
npm install @trezor/connect-web
or
yarn add @trezor/connect-web
Include library as inline script:
<script src="https://connect.trezor.io/9/trezor-connect.js"></script>
ES6
import TrezorConnect from '@trezor/connect-web';
Inline
var TrezorConnect = window.TrezorConnect;
For more instructions refer to this document
git clone git@github.com:trezor/trezor-suite.git
yarn && yarn build:libs
yarn workspace @trezor/connect-web predev
yarn workspace @trezor/connect-web dev
Note: don't forget to visit https://localhost:8088/
and allow self-signed certificate. No UI is displayed here.The table below details the support for different environments by TrezorConnect for integrating Trezor devices, including the use of WebUSB and the need for Trezor Bridge.
Environment | Chrome | Firefox | Safari | Chrome Android | Firefox Android | Notes |
---|---|---|---|---|---|---|
Web (WebUSB) | ✓ | ✗ | ✗ | ✓ | ✗ | WebUSB is fully supported where indicated. (Chromium based browsers) |
Web (Bridge) | ✓ | ✓ | ✗ | ✗ | ✗ | Trezor Bridge is required where WebUSB is not supported. (e.g. Firefox) |
WebExtension (WebUSB, Bridge) | ✓ | ✓ | ✗ | ✓ | ✗ | Requires Trezor Bridge on platforms not supporting WebUSB. |
FAQs
High-level javascript interface for Trezor hardware wallet in web environment.
The npm package @trezor/connect-web receives a total of 51,759 weekly downloads. As such, @trezor/connect-web popularity was classified as popular.
We found that @trezor/connect-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.
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.