8000 GitHub - ufodia/Bitcoin-Keyhound: Bitcoin Keyhound is a Python-based toolkit designed to analyze and predict Bitcoin private keys. It utilizes nonce calculations, ECDSA signature components, and cryptographic operations to detect potential vulnerabilities in Bitcoin's elliptic curve signature scheme.
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Bitcoin Keyhound is a Python-based toolkit designed to analyze and predict Bitcoin private keys. It utilizes nonce calculations, ECDSA signature components, and cryptographic operations to detect potential vulnerabilities in Bitcoin's elliptic curve signature scheme.

Notifications You must be signed in to change notification settings

ufodia/Bitcoin-Keyhound

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Bitcoin Keyhound

Bitcoin Keyhound is a Python-based toolkit designed to analyze and predict Bitcoin private keys. It utilizes nonce calculations, ECDSA signature components, and cryptographic operations to detect potential vulnerabilities in Bitcoin's elliptic curve signature scheme. This tool is valuable for researchers and enthusiasts aiming to understand Bitcoin security at a deeper level.

Table of Contents

Installation

  1. Clone the repository:

    git clone https://github.com/ufodia/Bitcoin-Keyhound.git
    cd Bitcoin-Keyhound
  2. Install required dependencies:

    pip install -r requirements.txt

Usage

Each file provides specific cryptographic analyses, ranging from nonce calculations to transaction signature decoding. You can run each script to analyze different components of Bitcoin transactions.

Example Usage

To run the individual scripts, use the following commands:

python knonce.py
python privnonce.py
python randk.py
python signature.py

File Descriptions and Key Functions

knonce.py

This script calculates the nonce (k value) used in ECDSA signatures by utilizing known values (d, r, s, z).

Key Functions:

  • calculate_nonce (k): Computes the k value using modular inversion and provided ECDSA signature components.

privnonce.py

Given known values of k, r, s, and z, this script calculates the private key (d).

Key Functions:

  • calculate_private_key (d): Uses the given k, r, s, and z values to determine the private key.

randk.py

This file generates random k values and attempts to find a private key (d) that matches a target public key within a specified range.

Key Functions:

  • generate_random_k: Generates a cryptographically secure random k value.
  • calculate_private_key: Computes a potential private key from a generated k value.
  • get_public_key_hex: Returns the hex representation of the public key associated with a private key.
  • main: Continuously generates and tests k values until a suitable d value that matches the target public key is found.

signature.py

Fetches and decodes Bitcoin transactions, extracting and analyzing the ECDSA signature components (r, s, and z), along with the public key.

Key Functions:

  • fetch_transaction_hex: Retrieves the transaction hex from blockchain.info.
  • calculate_z: Computes the message hash (z) from the transaction hash.
  • decode_signature: Decodes r and s values from the DER-encoded signature.
  • decode_transaction: Analyzes a transaction, extracting signature and public key values for each input.

Contribution

Contributions to Bitcoin Keyhound are welcome. Please follow these steps:

  1. Fork the repository.
  2. Create a new branch for your changes.
  3. Ensure your changes are properly tested.
  4. Submit a pull request.

For issues or suggestions, feel free to open an issue in the GitHub repository.

License

This project is licensed under the MIT License. For details, see the LICENSE file.

Donate:

BTC: 1GZdNtQYa2DN4b3hLekrYErv9c8WLqbBTm

About

Bitcoin Keyhound is a Python-based toolkit designed to analyze and predict Bitcoin private keys. It utilizes nonce calculations, ECDSA signature components, and cryptographic operations to detect potential vulnerabilities in Bitcoin's elliptic curve signature scheme.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

0