How brichard19/bitcrack works
BitCrack is a command-line Bitcoin private-key search tool, with CUDA and experimental OpenCL backends. The principal workflow accepts target addresses and search options, selects a device, scans a key range for matching addresses, and reports matches and progress; the README also documents input/output files, keyspace sharing, strides, and resumable checkpoints. AddrGen is a separate key/address generation utility. The graph follows documented behavior and shown references; some backend internals and configuration-file wiring were not sampled, so uncertain links are omitted or marked unverified.
Main entry points: KeyFinder/main.cpp Search CLI · hash.cpp Bitcoin addresses · AddrGen/main.cpp Address generator · KeyFinder.cpp Search engine
Components 19
Command-line workflows
- Search CLI
KeyFinder/main.cpp - Option parser
CmdParse/CmdParse.cpp - Config files
KeyFinder/ConfigFile.cpp - Address generator
AddrGen/main.cpp - Checkpoint state
KeyFinder/main.cpp
Search orchestration
- Search engine
KeyFinderLib/KeyFinder.cpp - Search targets
KeyFinderLib/KeySearchTypes.h - Device interface
KeyFinderLib/KeySearchDevice.h - Logging
Logger/Logger.cpp
Device compute
- Device discovery
KeyFinder/DeviceManager.cpp - CUDA search
CudaKeySearchDevice/CudaKeySearchDevice.cpp - CUDA utilities
cudaUtil/cudaUtil.cpp - OpenCL search
CLKeySearchDevice/CLKeySearchDevice.cpp - OpenCL context
clUtil/clContext.cpp
Key and address cryptography
- secp256k1
secp256k1lib/secp256k1.cpp - Bitcoin addresses
AddressUtil/hash.cpp - Base58 encoding
AddressUtil/Base58.cpp - Hash primitives
CryptoUtil/sha256.cpp
Other components
- Operator
Connections 22
- Operator → Search CLI: configures search
README.md - Search CLI → Option parser: parses options
KeyFinder/main.cpp - Search CLI → Bitcoin addresses: verifies targets
KeyFinder/main.cpp - Search CLI → Device discovery: lists devices
KeyFinder/main.cpp - Search CLI → Search engine: runs search
KeyFinder/main.cpp - Search CLI → CUDA search: creates backend
KeyFinder/main.cpp - Search CLI → OpenCL search: creates backend
KeyFinder/main.cpp - Search engine → Device interface: dispatches search
- Device discovery → CUDA utilities: queries devices
KeyFinder/DeviceManager.cpp - Device discovery → OpenCL context: queries devices
KeyFinder/DeviceManager.cpp - CUDA search → CUDA utilities: uses runtime
- OpenCL search → OpenCL context: uses context
- CUDA search → secp256k1: computes keys
- OpenCL search → Bitcoin addresses: checks targets
CLKeySearchDevice/CLKeySearchDevice.cpp - Search CLI → Checkpoint state: saves progress
KeyFinder/main.cpp - Operator → Address generator: requests addresses
AddrGen/main.cpp - Address generator → secp256k1: derives public key
AddrGen/main.cpp - Address generator → Bitcoin addresses: encodes address
AddrGen/main.cpp - Bitcoin addresses → Base58 encoding: uses encoding
AddressUtil/Base58.cpp - Bitcoin addresses → Hash primitives: hashes keys
AddressUtil/hash.cpp - Search CLI → Logging: reports status
KeyFinder/main.cpp - Search engine → Logging: reports progress
KeyFinderLib/KeyFinder.cpp