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.5.3.tar.gz
(29.9 kB
view details)
Built Distribution
File details
Details for the file bitcoin_usb-0.5.3.tar.gz
.
File metadata
- Download URL: bitcoin_usb-0.5.3.tar.gz
- Upload date:
- Size: 29.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.3 CPython/3.10.9 Linux/6.8.0-45-generic
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e6b69a23521a2c49dcba0f29befc96298caa6991b50739f1c5d95e8537226d65 |
|
MD5 | 74384405c64f7bb75115b1cdcc0cf787 |
|
BLAKE2b-256 | 12d6571ba03528cce67968fa29ce2be814293358f4d78ca45be06d64d3cf9b48 |
File details
Details for the file bitcoin_usb-0.5.3-py3-none-any.whl
.
File metadata
- Download URL: bitcoin_usb-0.5.3-py3-none-any.whl
- Upload date:
- Size: 34.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.3 CPython/3.10.9 Linux/6.8.0-45-generic
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9ecaa1e46be97b163e0468c81efe4aec22fda6b2593c14204334f0479fb65731 |
|
MD5 | 24ae4817211bfe09a0452d33388c4f67 |
|
BLAKE2b-256 | 7cb5a7e85744e537b98496c7fb40ff77e4e4827a3289515e6ef5c4a47f0369f6 |