Build from the bytes up.
btx is a pure-Python toolkit for parsing Bitcoin transactions, extracting ECDSA and Schnorr signatures, working with PSBTs, and reasoning about secp256k1.
Current distribution: install from source or directly from Git. btx is not published to PyPI yet.
Choose a path
Getting started →
Install an isolated checkout, run the CLI, and make your first API call.
API reference →
Find the stable entry points for parsing, signatures, PSBTs, scripts, and services.
Architecture →
Understand the dependency direction and the boundary around network I/O.
Testing →
Run the same formatting, typing, audit, coverage, and site checks used in CI.
What btx covers
- Legacy, SegWit v0, and Taproot transaction parsing and sighash computation.
- ECDSA and Schnorr extraction, verification, linearisation, and nonce-reuse analysis.
- BIP-174 PSBT parsing, editing, signing, and extraction.
- Pure-Python secp256k1 arithmetic with an optional coincurve/libsecp256k1 backend.
- Explicit blockchain providers isolated in
btx.services; core operations remain offline-safe.