A simple Python 2.7 toolkit for Bitcoin developers and researchers.
This repository contains utilities for:
- Extracting R, S, and Z values from raw Bitcoin transactions.
- Working with Bitcoin public key compression.
- Learning and analyzing Bitcoin ECDSA signatures.
Educational & Research Purpose Only
- Extract R, S, and Z values from Raw Bitcoin Transactions
- Bitcoin Public Key Compression utility
- Supports legacy Bitcoin transactions
- Built with Python 2.7
https://2coin.org/getRSZfromRawTX.html
https://iancoleman.io/bitcoin-key-compression/
- Python 2.7
- pip2
Clone the repository:
git clone https://github.com/spyschools/Bitcoin-Key-Compression-Tool.git
cd Bitcoin-Key-Compression-ToolUpgrade pip:
pip2 install --upgrade pipInstall required packages:
pip2 install bitcoin
pip2 install ecdsa
pip2 install utils
pip2 install base58
pip2 install blockchain
pip2 install cryptographyOr install everything at once:
pip2 install bitcoin ecdsa utils base58 blockchain cryptographyRun the script:
python2 RawTX_RSZ.pyFollow the prompts and provide the Raw Bitcoin Transaction when requested.
- Obtain a Raw Bitcoin Transaction.
- Run:
python2 RawTX_RSZ.py- The script extracts:
- R
- S
- Z
- Use the extracted values for Bitcoin signature analysis or educational research.
Bitcoin-Key-Compression-Tool/
│
├── RawTX_RSZ.py
├── README.md
└── LICENSE
- bitcoin
- ecdsa
- base58
- blockchain
- cryptography
- utils
- Python 2.7
- Linux
- Windows
- macOS
This software is provided for educational, interoperability, and research purposes only.
Users are solely responsible for complying with all applicable laws and regulations. The author assumes no responsibility for misuse of this software.
MIT License
SpySchools
GitHub: https://github.com/spyschools