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

bitcoin-usb

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bitcoin-usb

Wrapper around hwi, such that one can sign bdk PSBTs directly

  • 0.7.9
  • PyPI
  • Socket score

Maintainers
1

Wrapper around hwi, such that one can sign bdk PSBTs directly

  • This provides an abstraction layer ontop of hwi, such that only bdk is needed from the outside

  • Currently supported are

    • Coldcard, Q
    • Bitbox02
    • Blockstream Jade
    • Trezor Safe
  • It also provides

    • AddressTypes, which are the commonly used bitcoin output descriptor templates
    • seed_tools.derive_spk_provider to derive xpubs from seeds for all AddressTypes (bdk does not support multisig templates currently https://github.com/bitcoindevkit/bdk/issues/1020)
    • SoftwareSigner which can sign single and multisig PSBTs, this doesn't do any security checks, so only use it on testnet
    • HWIQuick to list the connected devices without the need to unlock them

Demo

Run the demo with

python demo.py

Tests

Run tests

python -m pytest -vvv  --log-cli-level=0

Library Usage

  • For xpub derivation bip_utils is used
  • For signing a psbt python-bitcointx is used

Install package

From pypi

pip install bitcoin_usb

From git

  • Install requirements:
poetry install
  • Automatic commit formatting
pip install pre-commit
pre-commit install
  • Run the precommit manually for debugging
pre-commit run --all-files

FAQs


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