Skip to content
btx
btxdocsdocs
btx documentation

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

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.