krawiec93 / Phrutis_PubHunt

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

PubHunt - Hunt for Puzzles Public keys

alt text
forked from PubHunt

It searches for random compressed Public keys for given hash160.

The idea to do this

This is only useful for Bitcoin puzzle transaction.
For the puzzles 64, 66, 67, 68, 69, 71 or 72 and some more...
There are no Public keys are available, so if we can able to find Public keys for those addresses.
Then Collider algorithm can be used to solve those puzzles.
That's it, cheers 🍺

How does it work

A public key is randomly generated and compared with the hash160 of the puzzle address.
Random Public key -> hex ripemd160 from address

According to theory

1 puzzle address(ripemd160) is equal to 79,228,162,514,264,337,593,543,950,336 private keys in 256 bit
79,228,162,514,264,337,593,543,950,336 private keys = 79,228,162,514,264,337,593,543,950,336 public keys
79,228,162,514,264,337,593,543,950,336 public keys = 1 puzzle address
Therefore, the chance of finding an address collision is much higher. 🍾 ₿

Usage

This is GPU only, no CPU support.

PubHunt.exe -h
PubHunt [-check] [-h] [-v]
        [-gi GPU ids: 0,1...] [-gx gridsize: g0x,g0y,g1x,g1y, ...]
        [-o outputfile] [inputFile]

 -v                       : Print version
 -gi gpuId1,gpuId2,...    : List of GPU(s) to use, default is 0
 -gx g1x,g1y,g2x,g2y, ... : Specify GPU(s) kernel gridsize, default is 8*(MP number),128
 -o outputfile            : Output results to the specified file
 -l                       : List cuda enabled devices
 -check                   : Check CPU and GPU kernel vs CPU
 inputFile                : List of the hash160, one per line in hex format (text mode)
  • Run: PubHunt.exe -gi 0 -gx 9216,1024 puzzle64.txt
  • Run: PubHunt.exe -gi 0 -gx 8192,1024 hashes160.txt
C:\Users\BOSS>PubHunt.exe -gi 0 -gx 9216,1024 puzzle64.txt

PubHunt v1.00 (24.12.2021 phrutis Edition)

DEVICE       : GPU
GPU IDS      : 0
GPU GRIDSIZE : 9216x1024
NUM HASH160  : 1
OUTPUT FILE  : Found.txt
GPU          : GPU #0 NVIDIA GeForce RTX 2070 (36x64 cores) Grid(9216x1024)

[00:10:37] [GPU: 363.60 Gkeys/s] [T: 242,432,650,248,192] [F: 0]

Building

Windows
  • Microsoft Visual Studio Community 2019
  • CUDA version 10.22
Linux
  • Edit the makefile and set up the appropriate CUDA SDK and compiler paths for nvcc. Or pass them as variables to make command.

    CUDA       = /usr/local/cuda-11.5
    CXXCUDA    = /usr/bin/g++
  • To build CPU-only version (without CUDA support):

    $ make all
  • To build with CUDA:

    $ make gpu=1 CCAP=35 all

License

PubHunt is licensed under GPLv3.

Disclaimer

ALL THE CODES, PROGRAM AND INFORMATION ARE FOR EDUCATIONAL PURPOSES ONLY. USE IT AT YOUR OWN RISK. THE DEVELOPER WILL NOT BE RESPONSIBLE FOR ANY LOSS, DAMAGE OR CLAIM ARISING FROM USING THIS PROGRAM.

About

License:GNU General Public License v3.0


Languages

Language:C++ 75.1%Language:C 20.6%Language:Cuda 4.3%