Bitcoin Forum
November 11, 2024, 06:06:11 PM *
News: Latest Bitcoin Core release: 28.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: CudaBrainSecp - Secp256k1 Seed Recovery Tool  (Read 495 times)
kpurens (OP)
Newbie
*
Offline Offline

Activity: 5
Merit: 41


View Profile
August 18, 2022, 06:27:57 PM
Last edit: September 12, 2022, 07:26:28 AM by kpurens
Merited by ABCbits (11), NotATether (10), BlackHatCoiner (6), o_e_l_e_o (4), Cricktor (4), n0nce (3), Pmalek (2), DdmrDdmr (1)
 #1

Development on this tool has been paused.
casinotester0001
Member
**
Offline Offline

Activity: 196
Merit: 67


View Profile
August 18, 2022, 07:19:03 PM
 #2

...
Fantastic work.
kpurens (OP)
Newbie
*
Offline Offline

Activity: 5
Merit: 41


View Profile
August 18, 2022, 07:28:57 PM
 #3

Thanks!
casinotester0001
Member
**
Offline Offline

Activity: 196
Merit: 67


View Profile
August 18, 2022, 09:16:39 PM
 #4

On Github https://github.com/kpurens/CudaBrainSecp, you say:

In the example diagram an extra calculation Sha256 Transform is done before Secp256k1.
This calculation makes it (nearly) impossible to guess the previous or the next private key.

Why (nearly)?  Smiley
kpurens (OP)
Newbie
*
Offline Offline

Activity: 5
Merit: 41


View Profile
August 19, 2022, 04:23:17 AM
 #5

On Github https://github.com/kpurens/CudaBrainSecp, you say:

In the example diagram an extra calculation Sha256 Transform is done before Secp256k1.
This calculation makes it (nearly) impossible to guess the previous or the next private key.

Why (nearly)?  Smiley
If the private key is hashed then the GPU kernel can't simply re-use an existing public key.
Re-using a public key would be ideal, since that would allow doing one point-addition + modular inverse to obtain the next public key.
However since the private key is hashed then there is no way of knowing which is the correct point-addition (which point-addition would result in the next private key that you wish to check).
It is nearly impossible because it would be the same as guessing a 256-bit number (which is technically not impossible).

I should probably make that paragraph more clear and understandable.
casinotester0001
Member
**
Offline Offline

Activity: 196
Merit: 67


View Profile
August 19, 2022, 10:20:40 AM
 #6

It is nearly impossible because it would be the same as guessing a 256-bit number (which is technically not impossible).
Year 2022:
Satoshi's early mined coins are (nearly) impossible to guess  Smiley

Year 2122:
?  Roll Eyes
Cricktor
Legendary
*
Offline Offline

Activity: 938
Merit: 1469


Crypto Swap Exchange


View Profile
August 19, 2022, 04:13:57 PM
 #7

Yes, better instructions to setup a working build environment are highly appreciated and welcome.

█▀▀▀











█▄▄▄
▀▀▀▀▀▀▀▀▀▀▀
e
▄▄▄▄▄▄▄▄▄▄▄
█████████████
████████████▄███
██▐███████▄█████▀
█████████▄████▀
███▐████▄███▀
████▐██████▀
█████▀█████
███████████▄
████████████▄
██▄█████▀█████▄
▄█████████▀█████▀
███████████▀██▀
████▀█████████
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
c.h.
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀█











▄▄▄█
▄██████▄▄▄
█████████████▄▄
███████████████
███████████████
███████████████
███████████████
███░░█████████
███▌▐█████████
█████████████
███████████▀
██████████▀
████████▀
▀██▀▀
kpurens (OP)
Newbie
*
Offline Offline

Activity: 5
Merit: 41


View Profile
August 19, 2022, 05:50:45 PM
 #8

As for compilation issues - i agree the compilation is not very simple and can result in various unexpected errors, mostly due to the complexity of Cuda / gcc / nvcc.

I have very limited knowledge of Cuda compilation / makefiles, however i did the best i could to describe the compilation process in Quick Setup section, and fully tested the project on two different Nvidia GPUs (Ubuntu 22.04)

I can suggest compiling the Nvidia Cuda sample project (https://github.com/NVIDIA/cuda-samples)

It is an excellent source of information about building cuda projects - and explains many different edge cases.
lostrelic
Jr. Member
*
Offline Offline

Activity: 32
Merit: 1


View Profile
August 19, 2022, 10:27:06 PM
 #9

@ETFbitcoin what did you change in the makefile i'm getting lots of commands not found?
lostrelic
Jr. Member
*
Offline Offline

Activity: 32
Merit: 1


View Profile
August 19, 2022, 10:40:10 PM
 #10

anyone know which is the correct path to use?

/.
/etc
/etc/nvcc.profile
/usr
/usr/bin
/usr/bin/bin2c
/usr/bin/cuda-memcheck
/usr/bin/cudafe++
/usr/bin/cuobjdump
/usr/bin/fatbinary
/usr/bin/gpu-library-advisor
/usr/bin/nvcc
/usr/bin/nvdisasm
/usr/bin/nvlink
/usr/bin/nvprune
/usr/bin/ptxas
/usr/include
/usr/include/nvvm.h
/usr/lib
/usr/lib/cuda
/usr/lib/cuda/bin
/usr/lib/cuda/include
/usr/lib/cuda/lib64
/usr/lib/cuda/nvvm
/usr/lib/cuda/version.txt
/usr/lib/nvidia-cuda-toolkit
/usr/lib/nvidia-cuda-toolkit/Sanitizer
/usr/lib/nvidia-cuda-toolkit/Sanitizer/include
/usr/lib/nvidia-cuda-toolkit/Sanitizer/include/sanitizer.h
/usr/lib/nvidia-cuda-toolkit/Sanitizer/include/sanitizer_callbacks.h
/usr/lib/nvidia-cuda-toolkit/Sanitizer/include/sanitizer_driver_cbid.h
/usr/lib/nvidia-cuda-toolkit/Sanitizer/include/sanitizer_memory.h
/usr/lib/nvidia-cuda-toolkit/Sanitizer/include/sanitizer_patching.h
/usr/lib/nvidia-cuda-toolkit/Sanitizer/include/sanitizer_result.h
/usr/lib/nvidia-cuda-toolkit/Sanitizer/include/sanitizer_runtime_cbid.h
/usr/lib/nvidia-cuda-toolkit/Sanitizer/libsanitizer-public.so
/usr/lib/nvidia-cuda-toolkit/bin
/usr/lib/nvidia-cuda-toolkit/bin/cicc
/usr/lib/nvidia-cuda-toolkit/bin/crt
/usr/lib/nvidia-cuda-toolkit/bin/crt/link.stub
/usr/lib/nvidia-cuda-toolkit/bin/crt/prelink.stub
/usr/lib/nvidia-cuda-toolkit/bin/g++
/usr/lib/nvidia-cuda-toolkit/bin/gcc
/usr/lib/nvidia-cuda-toolkit/bin/nvcc
/usr/lib/nvidia-cuda-toolkit/libdevice
/usr/lib/nvidia-cuda-toolkit/libdevice/libdevice.10.bc
/usr/share
/usr/share/doc
/usr/share/doc/nvidia-cuda-toolkit
/usr/share/doc/nvidia-cuda-toolkit/README.Debian.gz
/usr/share/doc/nvidia-cuda-toolkit/copyright
/usr/share/lintian
/usr/share/lintian/overrides
/usr/share/lintian/overrides/nvidia-cuda-toolkit
/usr/share/man
/usr/share/man/man1
/usr/share/man/man1/cuda-binaries.1.gz
/usr/lib/cuda/nvvm/libdevice
/usr/lib/nvidia-cuda-toolkit/bin/nvcc.profile
/usr/share/doc/nvidia-cuda-toolkit/changelog.Debian.gz
/usr/share/man/man1/cuda-memcheck.1.gz
/usr/share/man/man1/cuobjdump.1.gz
/usr/share/man/man1/nvcc.1.gz
/usr/share/man/man1/nvdisasm.1.gz
/usr/share/man/man1/nvprune.1.gz
fxsniper
Member
**
Offline Offline

Activity: 406
Merit: 47


View Profile
August 20, 2022, 03:01:10 AM
Merited by ABCbits (2)
 #11

anyone know which is the correct path to use?


up to your system
mostly

/usr/lib/cuda
/usr/bin/nvcc

you need to config Makefile to correct

know by the search command
whereis cuda
whereis nvcc

the result will tell you the right location of your program


however how to use CudaBrainSecp
lostrelic
Jr. Member
*
Offline Offline

Activity: 32
Merit: 1


View Profile
August 20, 2022, 08:43:20 AM
 #12

Thanks fxsniper, in the makefile compute was 86 which is right, I’ve tried changing the cuda path but is there anything else I should change aswell? Cheers
kpurens (OP)
Newbie
*
Offline Offline

Activity: 5
Merit: 41


View Profile
August 20, 2022, 10:04:50 AM
 #13

Quote
however how to use CudaBrainSecp

You use CudaBrainSecp by simply running ./CudaBrainSecp

There are no other commands, so it's very simple - only the configuration file GPUSecp.h

If the test cases are running succesfully then you can replace the test books / hashes with your books / hashes and try recovering your desired keys.

Please look in Real Launch section about how to do it.
lostrelic
Jr. Member
*
Offline Offline

Activity: 32
Merit: 1


View Profile
August 21, 2022, 12:02:23 PM
 #14

Has anyone got this up and running I’m having a hard time setting the right cuda paths?
lostrelic
Jr. Member
*
Offline Offline

Activity: 32
Merit: 1


View Profile
August 22, 2022, 08:58:28 AM
 #15

Please bare with me as I’m not the most tech savvy.

My setup is windows 11, using windows subsystem Linux and Ubuntu 22

I’ve installed latest nvidia drivers and latest toolkit in Ubuntu

I think when I go to make it it’s not finding the path which is right in the makefile

I’ve read you have to change 2 path environment variables but I’m struggling with it

Can someone help us open, edit and save the editor please

Thanks
GR Sasa
Member
**
Offline Offline

Activity: 199
Merit: 14


View Profile
August 22, 2022, 11:30:05 AM
 #16

can someone who's nice enough to compile Secp256k1 to windows.exe file?

GR,
lostrelic
Jr. Member
*
Offline Offline

Activity: 32
Merit: 1


View Profile
September 12, 2022, 08:45:59 AM
 #17

Hello just noticed you paused development on this project how come?
lostrelic
Jr. Member
*
Offline Offline

Activity: 32
Merit: 1


View Profile
September 21, 2022, 01:57:31 PM
 #18

Has anyone been using this program?

Im currently using the option modebooks which combines affix(1word)+suffix(1word)

Is there a way to use it by say affix or suffix using 6+words

Does anyone know what this command does in the script?

//Maximum length of each Prime word (+1 because first byte contains word length)
#define MAX_LEN_WORD_PRIME 20

//Maximum length of each Affix word (+1 because first byte contains word length)
#define MAX_LEN_WORD_AFFIX 4

Thanks for any support and advice
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!