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
Metadata
Release files for bitcoin-usb 0.7.9
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| bitcoin_usb-0.7.9.tar.gz | 35.5 kB | Without provenance | Details for bitcoin_usb-0.7.9.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| bitcoin_usb-0.7.9-py3-none-any.whl | Python 3 | none | any | Details for bitcoin_usb-0.7.9-py3-none-any.whl |
Total release size: 76.3 kB
Release files / bitcoin_usb-0.7.9.tar.gz
| Download URL | bitcoin_usb-0.7.9.tar.gz |
|---|---|
| Size | 35.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ebad76b6efdd7caa77c9bc24e6ecdcb0d44b084de329bd9c18f5076de33c9465
|
|
BLAKE2b-256 checksum How to use checksums |
70157d1981aa8b8a946aa9e917bd81c63ae6568c9835f275b0bdab4d198b6940
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.8.5 CPython/3.10.9 Linux/6.8.0-52-generic
|
Release files / bitcoin_usb-0.7.9-py3-none-any.whl
| Download URL | bitcoin_usb-0.7.9-py3-none-any.whl |
|---|---|
| Size | 40.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
eb0dbfbedd27456559d88e12ef76e3e812d4b5984fe2ca98bad80d0f756f07a5
|
|
BLAKE2b-256 checksum How to use checksums |
b1fa5156adde6e179db63bea70b3a2fc89ded5fb8bc022b6f127b74c8cb691ad
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.8.5 CPython/3.10.9 Linux/6.8.0-52-generic
|
Security for bitcoin-usb 0.7.9
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.