Wrapper around hwi, such that one can sign bdk PSBTs directly
Project description
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
- Bitbox02
- Jade
-
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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
bitcoin_usb-0.4.4.tar.gz
(27.9 kB
view hashes)
Built Distribution
Close
Hashes for bitcoin_usb-0.4.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9898d9d01e72f7ce69530c2d949bf43dc8c2f03b6a4da215dc645abf43c161f4 |
|
MD5 | 94ea2d3061897e300d7bf622c349370a |
|
BLAKE2b-256 | 41e9250108667ff06cd3f3e8f1a2e7c3f96cef6645308ace4d68fcd6a13bc8cd |