Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@trezor/utxo-lib

Package Overview
Dependencies
Maintainers
5
Versions
51
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@trezor/utxo-lib

Client-side Bitcoin-like JavaScript library

  • 1.0.0-beta.4
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
44K
decreased by-30.61%
Maintainers
5
Weekly downloads
 
Created
Source

Trezor UTXO library (@trezor/utxo-lib)

NPM

Javascript Bitcoin and Bitcoin-like altcoins library for node.js and browsers.

This library is a fork of the bitcoinjs-lib and it is profiled to work with Trezor environment.

Not all the modules/methods from the upstream are present here (like ecpair, psbt...) since we didn't use them for now, however they might be easily added in the future.

You probably don't want to use this package directly. Try one of the alternatives instead:

History timeline

This is fifth and hopefully ultimate attempt to fork and maintain bitcoinjs-lib.

  1. https://www.npmjs.com/package/bitcoinjs-lib-zcash
  2. https://github.com/trezor/bitcoinjs-trezor
  3. https://github.com/BitGo/bitgo-utxo-lib
  4. https://github.com/trezor/trezor-utxo-lib

Main differences

Differences are explicitly described in each file.

  • Transaction class is extended by each custom altcoin implementation.
  • Transaction class is parsing amounts as strings.
  • address module uses different encoding for Decred and handles Bitcoin Cash addresses.
  • added coinselect and compose modules (origin source: https://github.com/trezor/hd-wallet/tree/master/src/build-tx)
  • removed unused modules: block, classify, ecpair, psbt.

Keywords

FAQs

Package last updated on 26 Oct 2021

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