New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@trezor/transport

Package Overview
Dependencies
Maintainers
6
Versions
62
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@trezor/transport

Low level library facilitating protocol buffers based communication with Trezor devices

  • 1.1.1-beta.2
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
45K
decreased by-19.48%
Maintainers
6
Weekly downloads
 
Created
Source

@trezor/transport

Library for low-level communication with Trezor.

Intended as a "building block" for other packages - it is used in trezor.js (deprecated) and trezor-connect.

You probably don't want to use this package directly. For communication with Trezor with a more high-level API, use trezor-connect.

What is the purpose

  • translate JSON payloads to binary messages using protobuf definitions comprehensible to Trezor devices
  • chunking and reading chunked messages according to the Trezor protocol
  • exposing single API for various transport methods:
    • Trezor Bridge
    • Webusb
  • Create and expose typescript definitions based on protobuf definitions.

Updating messages

In order to be used new features of trezor-firmware you need to update protobuf definitions.

  1. git submodule update --init --recursive to initialize trezor-common submodule
  2. yarn workspace @trezor/transport update:submodules to update trezor-common submodule
  3. yarn workspace @trezor/transport update:protobuf to generate new messages.json and protobuf.d.ts

Publishing

Follow instructions how to publish @trezor package to npm registry.

Keywords

FAQs

Package last updated on 22 Mar 2022

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc