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
- Trezor Safe 5
-
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.7.3.tar.gz
(34.9 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file bitcoin_usb-0.7.3.tar.gz.
File metadata
- Download URL: bitcoin_usb-0.7.3.tar.gz
- Upload date:
- Size: 34.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.5 CPython/3.10.9 Linux/6.8.0-51-generic
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3bef78c9126b3a4a1cf0cbe353fa6f0bde1a6ab4f8eb9591de11a6d5a91c770d
|
|
| MD5 |
f54165cae797e854523c7ef033e9bba6
|
|
| BLAKE2b-256 |
1bca88abf69dd7a81ecc967eca3fa7d1d183e5d769600910b22fc2d0b6ae75f6
|
File details
Details for the file bitcoin_usb-0.7.3-py3-none-any.whl.
File metadata
- Download URL: bitcoin_usb-0.7.3-py3-none-any.whl
- Upload date:
- Size: 40.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.5 CPython/3.10.9 Linux/6.8.0-51-generic
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
521933cf085afc6cbb1c217cd61077fb2a18ebe9cce8ddf3503ace1af6c1cd04
|
|
| MD5 |
a59a20bdc4e7248690ab7110ffbf4dbc
|
|
| BLAKE2b-256 |
ce5f35dea031be9b8596745ea124b69766aa22503f95bf3bda039014b0a8e4d2
|