npm.io
1.6.3 • Published 3 months ago

@trezor/transport

Licence
SEE LICENSE IN LICENSE.md
Version
1.6.3
Deps
6
Size
393 kB
Vulns
0
Weekly
0
Stars
1.0K

@trezor/transport

NPM

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 via 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

Keywords