-
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 bitcoindevkit/bdk#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
Run the demo with
python demo.py
Run tests
python -m pytest -vvv --log-cli-level=0
- For xpub derivation bip_utils is used
- For signing a psbt python-bitcointx is used
pip install bitcoin_usb
- 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